I'm setting up a new dev machine with Eclipse Kepler to deploy on a Glassfish 3.1.2.2 instance.
When I go to
project properties > java build path > libraries > add library > server runtime
There is no option to add the Glassfish server libraries.
Some other notes of what I've done (whether they help or not...):
I pretty much had the same setup on my other machine with the exception that I used Juno instead of Kepler (however, I tried the above with a fresh Juno install as well). That machine has everything working but was set up a while ago. From what I understand, there has been a lot of changes with GF, Eclipse plugins and such: https://blogs.oracle.com/piotrik/entry/glassfish_3_1_2_2 . So perhaps it's still under works and not fully ready?
In the meantime, I created a User Library with the Glassfish jar files from the Modules folder. Not the ideal solution but it works for now.
However, I still rather have the "cleaner" method of adding a Server Runtime instead. Ideas?
See the thread GlassFish Tools does not provide a Server Runtime for Java Build Path in the Oracle forum.
Summary: They no longer provide a "Server Runtime" for plain Java projects. Instead, the project needs to be a faceted project and have a target runtime.
To configure this, do the following:
In case you need to export the GlassFish libraries to dependent projects, also do the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With