Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » finding out the commandline equivalent to an eclipse run
finding out the commandline equivalent to an eclipse run [message #330985] Wed, 20 August 2008 15:06 Go to next message
Eclipse UserFriend
Originally posted by: mopaxian.hotmail.com

Hi all,

I am trying to get a projected developed in Eclipse to run from commandline,
but I can't for the life of me figure out what eclipse is issuing as commands
that make it work: when I try to run java with the same dependencies in
classpath, same program and VM arguments, it doesn't work.

Is there some way to see what the final rewritten command is that eclipse
issues so I can copy it?

Thanks to anyone who knows.

- Mike Kamermans
Re: finding out the commandline equivalent to an eclipse run [message #330988 is a reply to message #330985] Wed, 20 August 2008 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Mike Kamermans wrote:
> Hi all,
>
> I am trying to get a projected developed in Eclipse to run from commandline,
> but I can't for the life of me figure out what eclipse is issuing as commands
> that make it work: when I try to run java with the same dependencies in
> classpath, same program and VM arguments, it doesn't work.
>
> Is there some way to see what the final rewritten command is that eclipse
> issues so I can copy it?
>
> Thanks to anyone who knows.

Note: this is a FAQ - please search the newsgroup archives before
posting questions.

In the Debug view, you can right-click on the javaw.exe node in the tree
and view the properties, which includes the command line details.

Hope this helps,
Eric
Re: finding out the commandline equivalent to an eclipse run [message #330990 is a reply to message #330985] Wed, 20 August 2008 15:54 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You can more or less reconstruct it by looking at the properties
"eclipse.vmargs" and "eclipse.commands".

Also, look at OpenWorkspaceAction#buildCommandLine from
org.eclipse.ui.ide to see how those properties are combined to create
the command line used for the relaunch that switches workspaces.

-Andrew

Mike Kamermans wrote:
> Hi all,
>
> I am trying to get a projected developed in Eclipse to run from commandline,
> but I can't for the life of me figure out what eclipse is issuing as commands
> that make it work: when I try to run java with the same dependencies in
> classpath, same program and VM arguments, it doesn't work.
>
> Is there some way to see what the final rewritten command is that eclipse
> issues so I can copy it?
>
> Thanks to anyone who knows.
>
> - Mike Kamermans
Previous Topic:Navigate > Open Type is missing. Also CTRL + SHIFT + T does not work.
Next Topic:Calculating plugin classpath for a launch configuration
Goto Forum:
  


Current Time: Sat Nov 02 22:50:52 GMT 2024

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

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

Back to the top