How do I run .class files on windows from command line?

Posted by AndrejaKo on Stack Overflow See other posts from Stack Overflow or by AndrejaKo
Published on 2010-05-19T10:27:23Z Indexed on 2010/05/19 10:30 UTC
Read the original article Hit count: 315

Filed under:
|
|
|

Hi!

I'm trying to run .class file from command line. It works when I manually move to the directory it's stored in, but when I try something like this:

java C:\Peter\Michael\Lazarus\Main

it says it can't find the main class. Is there any solution to this other than making a .jar file (I know that .jar is the best solution, but at this moment isn't the one I'm looking for)?

© Stack Overflow or respective owner

Related posts about java

Related posts about terminal