Adblock breaks this site

Need Help with Java (im new to programming)

Discussion in 'Programming General' started by top score, Dec 4, 2007.

  1. top score

    top score Active Member

    Joined:
    May 27, 2007
    Posts:
    161
    Referrals:
    0
    Sythe Gold:
    0
    Need Help with Java (im new to programming)

    I got a book to learn to script Java and i need the "javac" file, but when i tried to get it this is what i got
    [​IMG]

    please help me
     
  2. /\/\OO please.

    /\/\OO please. Member

    Joined:
    Oct 13, 2007
    Posts:
    77
    Referrals:
    0
    Sythe Gold:
    0
    Need Help with Java (im new to programming)

    do you have the latest java ?
     
  3. syther133

    syther133 Active Member
    Banned

    Joined:
    Feb 17, 2007
    Posts:
    203
    Referrals:
    0
    Sythe Gold:
    0
    Need Help with Java (im new to programming)

    Im quite new to java coding, but i think that means that you havent specified a batch file...
     
  4. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Need Help with Java (im new to programming)

    javac.exe isn't in your PATH environment variable.

    do this:

    Code:
    cd C:\PATH\TO\JAVA\THAT\CONTAINS\THE\FILE\
    javac whatever.java
    It should work now.
     
  5. ccaveman

    ccaveman Forum Addict

    Joined:
    May 1, 2006
    Posts:
    314
    Referrals:
    0
    Sythe Gold:
    0
    Need Help with Java (im new to programming)

    If cp_'s suggestion doesn't work, make sure you have the right directory. That means the correct path to where the file you are trying to compile is located.
     
  6. pwnthosenoobs

    pwnthosenoobs Guest

    Referrals:
    0
    Need Help with Java (im new to programming)

    Why dont you get a book out of the library, Beggining programming with Java for dummies by Barry Burd, is a great step by step Java guide about setting up and running successful Java programs.(and setting up the compliers and re's
     
  7. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Need Help with Java (im new to programming)

    or go search the web for a tut on how to set up java correctly.
     
  8. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Need Help with Java (im new to programming)

    Assuming you have downloaded and installed the JDK,

    Open your main menu, and right click on Computer/My Computer, click properties. If you're running Vista you may need to authorize yourself and click "Advanced System Settings".

    in the "advanced" tab of the dialog that appears, click the button that says "Environment Variables". This is where you set up the programs that can be run through command prompt, i.e. notepad or mspaint. Locate the variable "Path" (cases may vary) in side the "System Variables" group, and click Edit after you've selected it.

    In the text box labeled "Variable value", you will be confronted with a bunch of paths. These are the locations of the programs you want to run via command prompt, i.e. Notepad, Outlook, or in your case, Java/Compiler.

    This is what my "path" looks like:
    Code:
    C:\Program Files\Microsoft DirectX SDK (August 2007)\Utilities\Bin\x86;C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Autodesk\Backburner\;C:\Program Files\Common Files\Autodesk Shared\;C:\MinGW\bin\; C:\Qt\4.3.4\bin;C:\Progra~1\Notepad++;C:\Program Files\Common Files\Adobe\AGL
    Every path is separated by a semi-colon, so add a semi-colon to the end of your current path, and find the location of your Java SDK. The most common place to look is C:\Progra~1\Java (C Drive->Program Files->Java). Once you've located your Java SDK, open the "bin" directory, copy the path from your address bar, and place it after the semi-colon you placed at the end of "Variable value". Click OK and close any remaining dialogs, and you now have your paths set up, so you will be able to run Javac (C:\Progra~1\java\<jdk version>\bin\Javac.exe) from the terminal/command prompt.

    For linux, there is a simple command called "export" in the terminal that can do all of this for you. I bet you're using Windows though.
     
  9. foreverNocturnal

    foreverNocturnal Guest

    Referrals:
    0
    Need Help with Java (im new to programming)

    &#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;&#8239;
     
< The next step! | Two extremely usefull RuneScape functions. >


 
 
Adblock breaks this site