Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package system does not exist

 
mac hershberger
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am truly a beginner. I've just started reading Head First Java. I've downloaded Java 5 and now i am trying to write the first program in the book. my code is:

public class myfirstapp {
public static void main (String[] args)
{system.out.print("I Rule!");}
}

when i try to compile the program using "javac.exe myfirstapp.java" i get the following error message:

"package system does not exist"

and it points to the word "system".

What should i do to get past this?

Thank you,

Mac
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's "System" not "system". Capitilization always matters!

And welcome to java!
 
mac hershberger
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Scott

That gets me over the hump and i feel like i'm on my way!
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hamza mohamed ansari,
Your post was moved to a new topic.
 
Abid Ramay
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi .. now i know why they tell you o write your program and forget about IDE.. lol
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Tony Docherty
Bartender
Posts: 2957
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
praneeth chakri,
Your post was moved to a new topic.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic