Eclipse: is there a way to get Eclipse to output the commands given to run your program?

you can get the exact command used by Eclipse like this:

  1. Run your program inside Eclipse.
  2. Go to the Debug perspective.
  3. Terminate the program, or let it end. right click on the second line. (Terminated, exit value... ) and select properties. in there you will have the full command line used.

I don't know of any way of getting Eclipse to show any command line arguments - but I'm sure we can solve your problem in other ways.

  • What is the full name of your class? Is it just MyClass, or is it in some package? You need to supplied the fully qualified name, e.g.

    java mypackage.MyClass
    
  • Where are the class files? You need to make sure they're on the class path, e.g.

    java -classpath bin mypackage.MyClass
    

Tags:

Java

Eclipse

Ide