Using Java 9 Included Modules in Projects [message #1773393] |
Wed, 27 September 2017 07:23  |
Eclipse User |
|
|
|
I am developing a JAXB annotation under Java 9 and latest eclipse 4.7.1a U-build. Eclipse itself is currently startet with latest Java 8. Unfortunately, the package java.xml.bind is not in the base module, but in java.xml.bind or java.se.ee. Thus, on the command line with javac --add-modules java.xml.bind and java --add-modules java.xml.bind the applications run. I know how to add this on the run classpath, but how is this done in project properties for the compile classpath?
Thanks,
Chris
|
|
|
Re: Using Java 9 Included Modules in Projects [message #1773419 is a reply to message #1773393] |
Wed, 27 September 2017 12:44  |
Eclipse User |
|
|
|
We have recently added new UI, so even though it's possible to hand-code the tweaks in .classpath, it should be much easier like this:
- Open the project's Java Build Path
- Select tab Libraries and open the node "JRE System Library"
- Inside you find a node "Is modular", double click to edit module related details
- On tab Contents you will find three lists, showing the modules that are available (but not included), those that are explicitly included, and those that are implicitly included as dependencies of the former.
Use double click or select and press the arrow buttons to move modules to and fro.
- OK and Apply and the selection is persisted (in .classpath)
Here's a preview of the New&Noteworthy that briefly touches upon the new Java Build Path configuration (towards the end): https://www.eclipse.org/eclipse/news/4.7.1a/
|
|
|
Powered by
FUDForum. Page generated in 0.03530 seconds