Thread: Fix For "Path Cannot Be Specified" Jdk.

Results 1 to 5 of 5
  1. #1 Fix For "Path Cannot Be Specified" Jdk. 
    Jonny J
    Guest
    Purpose: To Fix "Path Cannot Be Specified" Or "Java Is Not Reconised" OR "You Dont Have JDK 5.0 or 6.0" In Your Compiler.

    Difficulty: 1-2

    Assumed Knowledge: <------ Knowing What that Means

    Server Base: <----- Lol At Your Face.

    Classes Modified: Compiler?

    Procedure

    Step 1: Getting The RIGHT JDK

    First Go To This Link....[Only registered and activated users can see links. ]
    And When Your There Click The JDK 6 Update 4 Download,

    Then Select The Operating System, And Agree To Terms Of Service Etc.

    Select The, Windows Offline Installation And Click The Orange Download Bar.

    Step 2: Downloading and Installing The Right JDK

    After Following Step 1, A "Sun Download Manager" Should Come Up With The File You Wanted To Download In It, Select It And Click Start,

    After Thats Done (May Take A Few Minutes) Close The Sun Download Manager And look On Your Desktop For A JDK Install, (See If There Is A New Icon On Desktop...) If There IS Click It And Follow Instructions And install.

    If There ISNT A Shortcut On Your Desktop, Click Start, Then Search And Search For...
    Code:
    jdk-6u4-windows-i586-p.exe
    And Then It Should Find You The Installer.

    Step 3: Making Your Computer Recognize Java.

    FOR WINDOWS XP OR HIGHER

    Open up "My Computer".

    Click "View System information"

    Click "Advanced".

    Click "Environment Variables".

    Under "User Variables" click "New".

    Name it "CLASSPATH" and for the "Variable Value" Enter
    Code:
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    Click "New" Again But..

    Name it "PATH" and for the "Variable Value" Enter
    Code:
    C:\Program Files\Java\jdk1.6.0_04\bin
    Click "OK".

    Click "OK".

    Your computer now recognizes Java.

    FOR WINDOWS 2000 OR LOWER

    Go To My Computer, Then Right Click And Select "Properties" Then..

    Click "Advanced".

    Click "Environment Variables".

    Under "User Variables" click "New".

    Name it "CLASSPATH" and for the "Variable Value" Enter
    Code:
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    Click "New" Again But..

    Name it "PATH" and for the "Variable Value" Enter
    Code:
    C:\Program Files\Java\jdk1.6.0_04\bin
    Click "OK".

    Click "OK".

    Your computer now recognizes Java.

    Step 4: The Compiler!

    Now Go Into Your Server File, And Where you See Your Compiler, Right Click It, And Click "Edit" Delete EVERYTHING Inside It, And Copy And Paste This In There
    Code:
    @echo off
    COLOR 01
    title Jonny's Server Compiler
    echo -------------------------
    echo Jonny Is Compiling Your Files.....
    echo -------------------------
    "C:\Program Files\Java\jdk1.6.0_04\bin\javac.exe" -cp . *.java
    pause
    cls
    COLOR 01
    echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    echo Files Compiled
    echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pause
    And Then ALL Is Fixed And Working Well

    Thanks All. Please Post Problems And Ill Try Reply.

    Credits: Me, Cos I Just Wrote This All Out Now,
     

  2. #2  
    Kurt
    Guest
    That must of took about 3 hours, putting a cap at the start of every word and all.

    Nice tutorial.. ++
     

  3. #3  
    Jonny J
    Guest
    Lol, I Just Type Like That To Slow Myself Down And Thanks,
     

  4. #4  
    Bree
    Guest
    Wow! Thanks !
     

  5. #5  
    deltascape co owner
    Guest
    well umm i have question i cant find jdk 6u3 im doing jdk 6u3 do i need jdk 6u4?
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •