Results 1 to 2 of 2
  1. #1
    trill is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Problem with my program HelloWorld

    Hello, I don't know any thing about java.
    I have a program like this from a tutorial HelloWorld.java now I want to compile it What I have to do for compiling it .I try to compile it in dos prompt
    java c HelloWorld.java
    it's in my E:\javafiles\HelloWorld.java
    I have install tomcat also now what to do

    Java Code:
    class HelloWorld {
    public static void main(String args[]) {
    System.out.printIn("Hello World!");
    }
    }
    Thanks.

  2. #2
    Rgfirefly24 is offline Member
    Join Date
    Aug 2007
    Posts
    20
    Rep Power
    0

    Default

    to compile it you do javac not java c and it looks like you have an error with your output. It appears its System.out.printIn when it should be System.out.println
    ^ lowercase L

Similar Threads

  1. Problem with my first Struts program....please help me
    By sireesha in forum Web Frameworks
    Replies: 5
    Last Post: 10-16-2011, 04:19 PM
  2. a problem about java mail client program
    By lunarstyle in forum AWT / Swing
    Replies: 9
    Last Post: 12-19-2009, 04:14 PM
  3. Run a helloWorld in NetBeans
    By mathias in forum NetBeans
    Replies: 1
    Last Post: 08-07-2007, 01:16 AM
  4. problem with recursive binary search program
    By imran_khan in forum New To Java
    Replies: 3
    Last Post: 08-02-2007, 03:08 PM
  5. getting problem in compiling java program?
    By sathish04021984 in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:26 AM

Posting Permissions

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