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: Compiling Error?

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Compiling Error?

    I can't compile my code...I think I know how to fix it, but I don't know the exact details.


    Here's what I think
    You go to Control Panel, Then System, Advanced, Then Enviroment Variables.

    After that I have no idea...Any Suggestions?


  2. #2
    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: Compiling Error?

    Can you explain what your problem is?

    If you know the location of the javac command, you can compile your program using the full path to the compiler:
    C:\Java\jdk1.6\bin\javac.exe YOURPROGRAM.java

    To tell the OS where to look for a command, you need to add the path to the folder containing the command to the PATH environment variable.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Compiling Error?

    Add JAVA_HOME in Enviroment variables and also add java_home\bin in path variable in system variables

    For example
    Variable Name = Path
    Varaiable value = %SystemRoot%\system32;C:\Java\jdk1.6\bin

Similar Threads

  1. Compiling many source files at once
    By mjpam in forum Java Theory & Questions
    Replies: 3
    Last Post: May 9th, 2011, 11:41 PM
  2. compiling from a txt file
    By gib65 in forum Java Theory & Questions
    Replies: 4
    Last Post: April 6th, 2011, 11:01 AM
  3. Help with Compiling
    By w.spidey in forum Object Oriented Programming
    Replies: 10
    Last Post: September 9th, 2010, 01:48 PM
  4. compiling a file
    By jkoracle23 in forum Java Theory & Questions
    Replies: 4
    Last Post: June 19th, 2010, 03:20 PM
  5. Strange Compiling Error
    By crism85 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 13th, 2009, 12:59 AM