Bug 224974 - -jar option as a VM argument is causing grief for other added VM argument
Summary: -jar option as a VM argument is causing grief for other added VM argument
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-03-31 15:39 EDT by Olivier Thomann CLA
Modified: 2019-12-09 01:49 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2008-03-31 15:39:45 EDT
When setting a java application launching configuration with a -jar VM argument (which is used to pass an executable jar for example), I get an error about the fact that the other VM arguments are treated as argument to the main class inside the executable jar.

Also the main class option of the java launching configuration is not required as it is implicitly declared inside the executable jar.

To reproduce the error:
1) Set up a java project
2) Define a Hello World application
3) Run it using -jar <path to ecj.jar>

You'll get an error like:
Unrecognized option : -Dfile.encoding=Cp1252

I think we should either have another java application launching configuration to launch executable jars or change the way the extra VM arguments are added and the main class is specified when an executable jar is set using -jar VM option.
Comment 1 Eclipse Genie CLA 2019-11-28 14:51:39 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 2 Sarika Sinha CLA 2019-12-09 01:49:00 EST
It is an enhancement request.