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: Running my Java first program

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Running my Java first program

    Hi

    I installed java on my computer..I like to know about class path or path settings before running the code
    i am getting "javac is not recognized " sort of thing

    Please help me in this regard...am very new to java programming....Thanks


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Running my Java first program

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Verify you installed the Java SDK and not just the Java Runtime Environment or JRE.

    There are guides for configuring the classpath in Windows, and I assume that's your OS. Using Google, I found this one at Oracle. Come back if you still have questions or if your OS is not Windows.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Running my Java first program

    "javac is not recognized "
    That's a message from the OS saying it can't find the javac program. The Windows OS uses the contents of the PATH environment variable to find commands. Make sure the path to the JDK's bin folder is on the PATH variable.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. running java program without jdk installed
    By eku in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 25th, 2014, 08:28 AM
  2. Replies: 21
    Last Post: June 12th, 2013, 11:33 AM
  3. Java program not running in command prompt
    By Padmahasa in forum Computer Support
    Replies: 1
    Last Post: August 10th, 2012, 07:22 AM
  4. Java program is running .. But I am not getting my outputs in the JSP
    By sankarravi6 in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: July 30th, 2012, 07:01 PM
  5. Replies: 3
    Last Post: February 23rd, 2011, 01:27 AM

Tags for this Thread