• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

COMPILATION PROBLEM

 
alice parker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21016
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case sensitive. I think you meant the System (with a capital S) class.

Henry
 
Henry Wong
author
Marshal
Pie
Posts: 21016
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And BTW, I think you want you source file named "prog.java", not "prog.c".

Henry
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
alice parker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic