This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes package system does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package system does not exist" Watch "package system does not exist" New topic
Author

package system does not exist

mac hershberger
Greenhorn

Joined: Nov 15, 2005
Posts: 4
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

It's "System" not "system". Capitilization always matters!

And welcome to java!


My Blog: Down Home Country Coding with Scott Selikoff
mac hershberger
Greenhorn

Joined: Nov 15, 2005
Posts: 4
Thanks, Scott

That gets me over the hump and i feel like i'm on my way!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37950
    
  22
hamza mohamed ansari,
Your post was moved to a new topic.
Abid Ramay
Ranch Hand

Joined: Apr 06, 2013
Posts: 43
hi .. now i know why they tell you o write your program and forget about IDE.. lol
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37950
    
  22
And welcome to the Ranch
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2170
    
  47
praneeth chakri,
Your post was moved to a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package system does not exist
 
Similar Threads
J Creator Program
Path and classpath
importing a package
Trouble setting CLASSPATH variable in windows 2000 prof.
Servlet does not compile