Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Java command prompt

  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    31
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Cool Java command prompt

    when i tried to compile java program on command prompt as given below :

    C:\Documents and setting\Administrator>cd C:\Program Files\java\jdk1.6.0_11\bin

    C:\Program Files\Java\jdk1.6.0_11\bin>javac Helloword.java

    Helloword.java:3: cannot find symbol

    symbol : class string

    location: class Helloword

    public static void main(string[]args)
    ^
    Helloword.java:5: package system does not exist

    system.out.println("Helloword");
    ^
    2 errors

    C:\Program Files\Java\jdk1.6.0_11\bin>


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,180
    My Mood
    Hungover
    Thanks
    141
    Thanked 602 Times in 517 Posts

    Default Re: Java command prompt

    String != string. Case matters.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java command prompt

    ur program should look like
    class Helloword{
    public static void main(String args[]){
    System.out.println("Helloword");
    }}

Similar Threads

  1. Java command prompt
    By Tanmaysinha in forum Java Theory & Questions
    Replies: 1
    Last Post: August 29th, 2011, 03:05 PM
  2. Replies: 4
    Last Post: August 17th, 2011, 02:53 PM
  3. Java on command prompt
    By Tanmaysinha in forum What's Wrong With My Code?
    Replies: 12
    Last Post: August 17th, 2011, 06:45 AM
  4. [SOLVED] can't run javac directly from command prompt
    By epezhman in forum Java IDEs
    Replies: 7
    Last Post: January 12th, 2011, 06:38 PM
  5. Strange launch problem using command prompt
    By Asido in forum Java Theory & Questions
    Replies: 2
    Last Post: September 15th, 2010, 07:52 AM

Tags for this Thread