File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Dumb question here Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dumb question here" Watch "Dumb question here" New topic
Author

Dumb question here

Bradley Wong
Greenhorn

Joined: Aug 10, 2001
Posts: 16
After I compile some Java code, how do I run it from DOS??? I mean, what's the command???
Paul Bull
Ranch Hand

Joined: Feb 14, 2001
Posts: 37
The command is: java filename
Do not include the .java extension
and make sure you type the filename in the
same case as you saved it in. Make sure you are
typing the java command in the same directory as
the one you compiled the file in.
Bradley Wong
Greenhorn

Joined: Aug 10, 2001
Posts: 16
Thanks! I had the wrong case. I was going crazy and was kicking myself for not remembering. Cheers!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The details on using java.exe can be found at
http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
Consider Paul's rocket mass heater.
 
subject: Dumb question here