Bug 544252 - jar files in the exported application do not contain class files
Summary: jar files in the exported application do not contain class files
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 10
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-07 18:06 EST by Mana Taghdiri CLA
Modified: 2023-01-20 11:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mana Taghdiri CLA 2019-02-07 18:06:06 EST
I'm using eclipse RCP 2018-12 with openjdk11 on Windows 10. 

The application has many plugins. It builds and runs well within eclipse, but when I export the application using the eclipse export product wizard, the jar files (corresponding to the plugins) do not contain any class files! they include meta-inf, plugin.xml, and all the extra folders (eg lib, assets, etc, when available), but they do NOT contain any class files.

The logs.zip that is created during the product export, contains the following line for every plugins:

# Eclipse Compiler for Java(TM) v20181130-1748, 3.16.0, Copyright IBM Corp 2000, 2015. All rights reserved.
option -bootclasspath not supported at compliance level 9 and above

If I manually export each plugin as a jar file, class files are included and the jar looks correct, but I cannot manually export ALL the plugins during the product export because there are so many of them. 

Worth mentioning that using eclipse RCP 2018-09 with java 8 worked very well - no problems at all.
Comment 1 Mana Taghdiri CLA 2019-02-08 03:11:37 EST
Update:

I tried eclipse RCP 2018-12 with java 8 and the PDE export works fine. So the problem is with using java 11.

Can someone please let me know how to fix the bootclasspath error mentioned in my original message (also here):

option -bootclasspath not supported at compliance level 9 and above

I am running everything and setting up environments only within eclipse (no command line) and I don't know where in eclipse the bootclasspath is set.
Comment 2 Eclipse Genie CLA 2021-01-29 13:58:13 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2023-01-20 11:09:31 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.