• 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

Path and classpath

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having difficulty getting the compiler to work. This is the error message that I get:

Hundred.java:15: package system does not exist
system.out.print(firstName + " ");

I've read and re-read your FAQs and still can't get this thing to work. My JDK is located in C:\Program Files\Java\jdk1.5.0_10. My path is as follows:
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";%JAVA_HOME%\bin;%J2EE_HOME%\bin.

JAVA_HOME is another environment variable which is C:\Program Files\Java\jdk1.5.0_10.

I'd appreciate any help that you might give me.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it might be because system needs to be capitalized? dunno, though might be something else too

Tony
 
Mark Petruszak
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Tony, that is exactly what the problem was. Whilst you were posting I was discovering my typo. I appreciate your response.
 
Tony VanHorn
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem man, seems to be the way it goes. You ask a question and then you find the answer right afterward. It happens to me all the time, I think it may have something to do with having to put the problem into words it makes me think a little harder and may even change the way I was thinking about the issue. Anyway, glad you got it to work.

Tony
reply
    Bookmark Topic Watch Topic
  • New Topic