• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

COMPILATION PROBLEM

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is case sensitive. I think you meant the System (with a capital S) class.

Henry
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And BTW, I think you want you source file named "prog.java", not "prog.c".

Henry
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Popeye has his spinach. I have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic