Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Debugging run configuration
Debugging run configuration [message #1698624] Tue, 16 June 2015 14:07 Go to next message
Eclipse UserFriend

New to Eclipse and Java Dev here. But I would like to know more about what is Eclipse doing when you click on "Run". I can setup the run configurations, and run my module to run, and see output in Eclipse. But I would like to also do the same from the command line outside Eclipse. Is there a way to see what command the "Run" button creates? Also to be able to debug that the run configuration is correct.

Where is this possibly documented also?

Douglas
Re: Debugging run configuration [message #1698858 is a reply to message #1698624] Thu, 18 June 2015 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Hey Douglas,

Eclipse uses the parameter from run configuration to start the java executable. You can use your task manager to check the command line parameter of the java.exe. Did I get this right?

Kon
Re: Debugging run configuration [message #1699059 is a reply to message #1698858] Fri, 19 June 2015 18:54 Go to previous messageGo to next message
Eclipse UserFriend
That sounds like it might be what I want. I mean if I design something in Eclipse, how do I move the app out of eclipse and run it from the command line?

But I am not sure what is the task manager? Where do I find the task manager?

Douglas
Re: Debugging run configuration [message #1699128 is a reply to message #1699059] Sun, 21 June 2015 16:25 Go to previous messageGo to next message
Eclipse UserFriend
No (OS-specific) task manager necessary. Just open the "Debug" view in Eclipse, select the second node (which should be labelled by the path to your JVM), right-click "Properties" and see the "Command Line" section.
Re: Debugging run configuration [message #1699157 is a reply to message #1699128] Mon, 22 June 2015 04:23 Go to previous message
Eclipse UserFriend
Hey,

if you are finished with your java application, you could export it as runnable jar (that would be the easiest way for you right know Smile ). Select the project and right click on in -> Export -> Runnable Jar File
Once you've created the jar file, you can start it with java -jar myapp.jar from command line.

@Stephan Thanks for the info, I didn't know about this view Smile

Kon
Previous Topic:Eclipse uses an old PATH reference to command
Next Topic:what is the solution to java.lang.SecurityException?
Goto Forum:
  


Current Time: Tue Apr 29 18:19:42 EDT 2025

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

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

Back to the top