Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Migration of java 8 eclipse plugin to java 11 - jar file not exported?(How to make a jar file within an eclipse plugin visible to other plugins?)
Migration of java 8 eclipse plugin to java 11 - jar file not exported? [message #1823511] Fri, 27 March 2020 21:22 Go to next message
Robert Hilbrich is currently offline Robert HilbrichFriend
Messages: 24
Registered: April 2018
Location: Berlin
Junior Member

We are migrating an eclipse plugin from java 8 to java 11. The plugin contains a library as jar-file. The packages of the library (jar file) are should be exported by the plugin to be used by other plugins.

The whole thing was working fine in java 8, but after we moved to java 11, an automatic module name was added to MANIFEST.MF, but the packages of the library (jar file in the plugin) are no longer visible to other plugins.

However, standard java packages in plugins can be easily exported and used in other plugins.

Any pointers to what is missing?
Re: Migration of java 8 eclipse plugin to java 11 - jar file not exported? [message #1823817 is a reply to message #1823511] Thu, 02 April 2020 14:05 Go to previous messageGo to next message
Vikas Chandra is currently offline Vikas ChandraFriend
Messages: 1
Registered: September 2014
Junior Member
Can you please give detailed steps.
(Solved) Re: Migration of java 8 eclipse plugin to java 11 - jar file not exported? [message #1823879 is a reply to message #1823817] Fri, 03 April 2020 12:29 Go to previous messageGo to next message
Robert Hilbrich is currently offline Robert HilbrichFriend
Messages: 24
Registered: April 2018
Location: Berlin
Junior Member

I tried to simply change the Java Runtime for my Eclipse plugin - this unfortunately did not work. I managed to solve this issue by recreating the Eclipse plugin from scratch by using the wizard which adds the jar files in the plugin successfully. Not sure what the issue was ...

(The goal was to have an Eclipse plugin, which contains a library and exports the API from the jar file to other Eclipse plugins ...)
Re: (Solved) Re: Migration of java 8 eclipse plugin to java 11 - jar file not exported? [message #1823898 is a reply to message #1823879] Fri, 03 April 2020 14:12 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6880
Registered: July 2009
Senior Member
Hi

If it's an Eclipse plugin, it is important to use the update classpath facility within the Manifest editor.

Regards

Ed Willink
Previous Topic:Using jdt for reading Groovy/Kotlin
Next Topic:lost main class
Goto Forum:
  


Current Time: Sat Oct 31 08:29:22 GMT 2020

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

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

Back to the top