Results 1 to 4 of 4
  1. #1
    sireesha is offline Member
    Join Date
    Nov 2007
    Posts
    50
    Rep Power
    0

    Default give me a advise

    Hi,
    I am learning JAVA.
    I installed jdk6 in my pc.
    But when i compiled some code,i got some errors.
    (like when i am using System.out.format() for output)
    am i using correct version ?
    what i have to install ?
    please tell me.

  2. #2
    Krmeus is offline Member
    Join Date
    Dec 2007
    Posts
    3
    Rep Power
    0

    Default

    If this happens when you tried to compile code then it is more than likely just a syntax error. Try using something simple to start with, like a nice Hello World! script.

  3. #3
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    Or you could always do the smart thing and post your error.

  4. #4
    Join Date
    Dec 2007
    Posts
    7
    Rep Power
    0

    Default Re:

    Java Code:
    public class HelloWorld
    {
        public static void main(String[] args)
        {
    
           System.out.println("Hello World");
    
        }
    }
    Run that and see whether you still get the compilation error. If so then it is possible that your jdk installation was not 100% successful or your text editor cannot find the path to the java compiler..

    HTH
    Last edited by definewebsites; 12-11-2007 at 11:27 AM. Reason: Sorry, should have added the class declaration just incase you tried to run it as it is..:)

Similar Threads

  1. anyone can give idea 2 my assignment?
    By chen8735 in forum Advanced Java
    Replies: 2
    Last Post: 03-08-2008, 07:03 PM
  2. Replies: 0
    Last Post: 01-19-2008, 10:04 AM
  3. Give me some suggestion on wedding story book
    By roots in forum Forum Lobby
    Replies: 1
    Last Post: 01-10-2008, 05:17 PM
  4. Replies: 1
    Last Post: 06-15-2007, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •