| Author |
COMPILATION PROBLEM
|
alice parker
Greenhorn
Joined: Oct 31, 2007
Posts: 2
|
|
hi all, Being a beginner in java application programmer, I m having a problem in running a simple java program stored at <c:\java\jdk1.5.0_02\bin> on my PC. following error occurs each time I try compiling it(prog.java)as[ C:\java\jdk1.5.0_02\bin>javac prog.c ] 1 error: "system class doesnot exist" here goes my so simple program: class prog { public static void main(String args[]) { system.out.println("hello java"); } } as far as I know there seems to be some prob in settings or so.. Plzzz help me out so dat I can move on.. TIA
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16687
|
|
Java is case sensitive. I think you meant the System (with a capital S) class. Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16687
|
|
And BTW, I think you want you source file named "prog.java", not "prog.c". Henry
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
Originally posted by alice parker: ...a simple java program stored at <c:\java\jdk1.5.0_02\bin> on my PC...
Also, the bin directory is for Java's internal workings. Adding your own files there is really asking for trouble.
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
alice parker
Greenhorn
Joined: Oct 31, 2007
Posts: 2
|
|
THNX HENRY N MARC.. It jst slipped my mind dat our dear Java is case sensitive.n ya marc I meant .java file only-(typing error). newazz thnx 4 assistance..
|
 |
 |
|
|
subject: COMPILATION PROBLEM
|
|
|