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 2 of 2

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

    First I installed jdk-6u11-windows-i586-p on window xp service pack-2 environment.

    Installation processes of "jdk-6u11-windows-i586-p is given below :

    Step (1)Licence Agreement:Accept

    (2)Custom Setup evelopment Tools-Next

    (3)Destination Folder:Next

    (4)Java(TM) SE Development Kit 6 Update 11-Complete :Finish


    (5)Open Program filesook java Folder Option:- Select jdk1.6.0_11

    :- Select bin:- Copy bin address C:\Program Files\Java\jdk1.6.0_11\bin

    (6) Look My Computer Properties

    (7) Advance System Setting

    (8) Environment Variables : User variables for Administrator:-Choose PATH & double click on the path:Edit User Variable:-(In variable name we write PATH & in Variable value we write C:\Program Files\Java\jdk1.6.0_11\bin




    (10)Ok- Ok -Ok.


    (11) Again I installed "netbeans-7.0-ml-javaee-windows" but that time already installing another(Antivirous) & after finish antivirous installation needed to reboot the system but I waited & when "netbeans-7.0-ml-javaee-windows" installation was finished then I reboot the system.



    (12) When I write the program as given below :

    class Helloword
    {
    public static void main(string[]args)
    {
    system.out.println("Helloword");
    }
    }
    and I save it in D drive as Helloword.java in java folder (D:\java).This folder was created by me when I saved the program.

    (13)Go to Start : Run ype cmd-ok then display command prompt window.
    (14)Command prompt window :Microsoft window XP [version 5.1.2600]
    <c> copyright 1985-2001 Microsoft corp.
    c:\Documents and Setting\Administrator> d:

    D:\>.

    (15)Please tell me next step about command prompt(java program execution).


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java command prompt

    "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)

Similar Threads

  1. Replies: 4
    Last Post: August 17th, 2011, 02:53 PM
  2. Java on command prompt
    By Tanmaysinha in forum What's Wrong With My Code?
    Replies: 12
    Last Post: August 17th, 2011, 06:45 AM
  3. [SOLVED] can't run javac directly from command prompt
    By epezhman in forum Java IDEs
    Replies: 7
    Last Post: January 12th, 2011, 07:38 PM
  4. [SOLVED] Redirect command prompt output to log file.
    By goldest in forum File I/O & Other I/O Streams
    Replies: 9
    Last Post: November 24th, 2010, 05:26 AM
  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