Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kaua Costa   on Jul 15 In Java Category.

  
Question Answered By: Komal Mohammad   on Jul 15

unless you made a typo, you compile  a java  source
file using: javac  sourcefile.class (notice the 'c' at
the end of 'java_';<br>when you want to run  the class
file: use java classfilename(the same as source)
'without an extension!' <br>Don't forget! However you
spelled the "PUBLIC CLASS 'filename' " inside of your
code, you MUST use the same to compile the program  or
you will get an error! so, myprogram is not the same
as Myprogram! <br><br>This may seem rather trivial
to you, but there are always beginners that read
this information and are unaware of the above
information about java.

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Linux Java PATH and CLASSPATH Or get search suggestion and latest updates.


Tagged: