Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dumb question here

 
Bradley Wong
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I compile some Java code, how do I run it from DOS??? I mean, what's the command???
 
Paul Bull
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! I had the wrong case. I was going crazy and was kicking myself for not remembering. Cheers!
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic