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 COMPILATION PROBLEM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "COMPILATION PROBLEM" Watch "COMPILATION PROBLEM" New topic
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: 18108
    
  39

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: 18108
    
  39

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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: COMPILATION PROBLEM
 
Similar Threads
Configuration problem
server not found
Creating VM in C
Issue First JDBC Pgm
org.apache.poi.hssf