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:
- Run your program inside Eclipse.
- Go to the Debug perspective.
- 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