Help me to setup Java Enviorment

  2 posts   Feedicon  
Replies: 1 - Last Post: May 10, 2011 03:19
by: dengdai
showing 1 - 2 of 2
 
Posted: August 07, 2009 16:57 by White-Fang
Hi I am a school student I don't know anything about programming so please help me. I really wish to learn some programming by myself.

I download java jdk 6 1.6.0_15 also netbeans IDE 6.7

I type this code from a book name Head First Java

public class myfirstapp{
public static void main (String[] args) {
system.out.printin("I rule");
system.out.printin("The World");
}
}

But it didn't run a red dot beside came says that system package not found or something like that. I search on the net few people got similar problem so I thought it got something to do with enviorment variable.

I don't know how to set please help!!!!
 
Posted: August 08, 2009 11:51 by HxA
Hi,
This is not the right place for this kind of questions. But for a little hint.

Your import statements are missing and you have to take care, you can not type everything in lowercase you have to write it as written in the book.
e.g. System.out.println("Hello World") instead of system.out.println("Hello World")

This was my good deed for this day.

Have fun,

- Bernd
Replies: 1 - Last Post: May 10, 2011 03:19
by: dengdai
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close