Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Using Java 9 Included Modules in Projects
Using Java 9 Included Modules in Projects [message #1773393] Wed, 27 September 2017 11:23 Go to next message
Christian Bachmaier is currently offline Christian BachmaierFriend
Messages: 3
Registered: September 2017
Junior Member
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 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?

Re: Using Java 9 Included Modules in Projects [message #1773419 is a reply to message #1773393] Wed, 27 September 2017 16:44 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1632
Registered: July 2009
Senior Member
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):
Previous Topic:TextEdit design decision
Next Topic:logger.getloggerclass source not found
Goto Forum:

Current Time: Tue Oct 16 06:22:22 GMT 2018

Powered by FUDForum. Page generated in 0.01945 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top