Thread: Full Compiler Fix [Updated Java 6u2]!

Results 1 to 6 of 6
  1. #1 Full Compiler Fix [Updated Java 6u2]! 
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    Ok, im going to start off with some background information
    Most compilers, like mod tharoks (or whatever) is updated to java 6, and most of you people (like new to mopar) would have downloaded latest java - Java 6u2
    So i worked off my own All-In-One Compiler, which is updated to latest java
    and will work for everyone, no matter which version of java they have....

    Layout:
    Downloading Java (havent added tutorial, adding later)
    Enviroment Variables
    All-In-One Compiler
    Seeing If It Works


    ============ Downloading Java ============
    Download It Here

    [BEWARE! YOU MAY NOT NEED TO DO THIS, IF YOU WANT SKIP THIS AND GO TO == All-In-One Compiler]

    ============ Enviroment Variables ============
    Once fully installed, open up My Computer and right-click and select properties. A new tab will appear. Go to advanced.

    Open up Environment Variables. You will see two different sections:
    and
    In System Variables click new and there will be two different spaces:
    Variable Name:
    Variable value:
    For the Variable Name put classpath
    For the variable value put C:\Program Files\Java\Java\jdk1.6.0_02\bin\

    Now look in System Variables for path, highlight it by clicking it once then click edit. Change the Variable Name to PATH and the value to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_02\bin

    6. Click Ok, then Ok and Ok again.
    MUST DO THIS WHEN FINISHED! – RESTART YOUR COMPUTER!

    ============ All-In-One Server Compiler ============
    Now, click on your compiler in your server folder and press ctrl+c
    and then press ctrl+v
    Now, download the attachment below,
    open it and press ctrl+a then ctrl+c (highlight all text and copy it)
    Now Right click it and press edit on the copy of the compiler you made
    Press ctrl+a (should highlight all the text)
    and now press ctrl+v (paste the stuff)
    Now save it and it should work!
    If you dont understand, just post here and i will explain better
    You can also just replace your compiler text with this
    Code:
    @echo off
    Color 01F
    :menu
    cls
    title All-In One Compiler V3 Latest! By Icepkz
    echo Please choose an option below to do that function.
    echo Check out www.rune-server.org for new updates on this
    echo compiler.
    echo Updated To: Java 6u2
    echo Made By Icepkz!
    echo.
    echo c - Compile your server.
    echo r - To run your server.
    echo e - To exit out of the program.
    echo color - Change the Text and Backround colors of this compiler.
    echo reset - Resets your Compiler Logs.
    echo.
    echo.
    set /p compile=Option: 
    if %compile%==c goto compile
    if %compile%==C goto compile
    if %compile%==r goto run
    if %compile%==R goto run
    if %compile%==color goto color
    if %compile%==Color goto color
    if %compile%==COLOR goto color
    if %compile%==reset goto reset
    if %compile%==Reset goto reset
    if %compile%==RESET goto reset
    if %compile%==e goto end
    if %compile%==E goto end
    if %compile%==* goto error
    goto error
    :co1
    set b=0
    set t=7
    goto co2
    :co2
    color %b%%t%
    :color
    cls
    echo Would you like to change the backround color, change
    echo the text color, or reset it to default?
    echo.
    echo back - Change the backround color.
    echo text - Change the text color.
    echo def - Change all colors back to default.
    echo.
    echo.
    set /p color=Option: 
    if %color%==back goto back
    if %color%==BACK goto back
    if %color%==text goto text
    if %color%==TEXT goto text
    if %color%==def goto co1
    if %color%==DEF goto co1
    if %color%==* goto error
    goto error
    :back
    cls
    echo Please select a color to change the backround to:
    echo.
    echo black
    echo white
    echo red
    echo yellow
    echo green
    echo blue
    echo purple
    echo.
    echo.
    set /p back=Color: 
    if %back%== black (set b=0)
    if %back%== white (set b=7)
    if %back%== red (set b=4)
    if %back%== yellow (set b=6)
    if %back%== green (set b=2)
    if %back%== blue (set b=1)
    if %back%== purple (set b=5)
    goto co2
    :text
    cls
    echo Please select a color to change the text to:
    echo.
    echo black
    echo white
    echo red
    echo yellow
    echo green
    echo blue
    echo purple
    echo.
    echo.
    set /p back=Color: 
    if %back%== black (set t=0)
    if %back%== white (set t=7)
    if %back%== red (set t=4)
    if %back%== yellow (set t=6)
    if %back%== green (set t=2)
    if %back%== blue (set t=1)
    if %back%== purple (set t=5)
    goto co2
    :c
    cls
    :compile
    cls
    title Compiler! By Icepkz
    goto checkjavac
    :compile2
    if exist src (goto cl) else (goto compile3)
    :compile3
    if exist *.java (goto cl2) else (goto compileerror)
    :compile4
    %javac% -cp . *.java
    pause
    cls
    goto menu
    :compile5
    %javac% -cp . .\src\*.java
    pause
    move .\src\*.class .\classes\
    cls
    goto menu
    :compileerror
    cls
    echo You need to have Java files for this compiler to compile.
    pause
    cls
    goto menu
    :run
    cls
    title Runserver
    goto checkjava
    :run2
    set runjava=%java% -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    cls
    goto run3
    :run3
    if exist .\classes\server.class (goto sl2) else (goto run4)
    :run4
    if exist .\server.class (goto sl) else (goto servererror)
    :run5
    %runjava%
    pause
    cls
    goto menu
    :run6
    set runjava=
    set runjava=%java% -cp .;./classes; Server
    %runjava%
    pause
    cls
    goto menu
    :servererror
    cls
    title Error
    echo You do not have a Server.class. Make sure that you have used the
    echo compiler with your server BEFORE you try running it.
    pause
    cls
    goto menu
    :error
    cls
    title Error
    echo Invalid command. Please make sure the commands you type
    echo in are correct.
    pause
    cls
    goto menu
    :end
    cls
    exit
    :checkjavac
    if exist "%programfiles%\Java\jdk1.5.0_06\bin\javac.exe" (goto setjavac) else (goto checkjavac2)
    :checkjavac2
    if exist "%programfiles%\Java\jdk1.5.0_07\bin\javac.exe" (goto setjavac2) else (goto checkjavac3)
    :checkjavac3
    if exist "%programfiles%\Java\jdk1.5.0_08\bin\javac.exe" (goto setjavac3) else (goto checkjavac4)
    :checkjavac4
    if exist "%programfiles%\Java\jdk1.5.0_09\bin\javac.exe" (goto setjavac4) else (goto checkjavac5)
    :checkjavac5
    if exist "%programfiles%\Java\jdk1.5.0_10\bin\javac.exe" (goto setjavac5) else (goto checkjavac6)
    :checkjavac6
    if exist "%programfiles%\Java\jdk1.6.0\bin\javac.exe" (goto setjavac6) else (goto checkjavac7)
    :checkjavac7
    if exist "%programfiles%\Java\jdk1.5.0\bin\javac.exe" (goto setjavac7) else (goto checkjavac8)
    :checkjavac8
    if exist "%programfiles%\Java\jdk1.5.0_01\bin\javac.exe" (goto setjavac8) else (goto checkjavac9)
    :checkjavac9
    if exist "%programfiles%\Java\jdk1.5.0_02\bin\javac.exe" (goto setjavac9) else (goto checkjavac10)
    :checkjavac10
    if exist "%programfiles%\Java\jdk1.5.0_03\bin\javac.exe" (goto setjavac10) else (goto checkjavac11)
    :checkjavac11
    if exist "%programfiles%\Java\jdk1.5.0_04\bin\javac.exe" (goto setjavac11) else (goto checkjavac12)
    :checkjavac12
    if exist "%programfiles%\Java\jdk1.5.0_05\bin\javac.exe" (goto setjavac12) else (goto checkjavac13)
    :checkjavac13
    if exist "%programfiles%\Java\jdk1.6.0_01\bin\javac.exe" (goto setjavac13) else (goto checkjavac14)
    :checkjavac14
    if exist "%programfiles%\Java\jdk1.6.0_02\bin\javac.exe" (goto setjavac14) else (goto javacerror)
    :setjavac
    set javac="%programfiles%\Java\jdk1.5.0_06\bin\javac.exe"
    goto compile2
    :setjavac2
    set javac="%programfiles%\Java\jdk1.5.0_07\bin\javac.exe"
    goto compile2
    :setjavac3
    set javac="%programfiles%\Java\jdk1.5.0_08\bin\javac.exe"
    goto compile2
    :setjavac4
    set javac="%programfiles%\Java\jdk1.5.0_09\bin\javac.exe"
    goto compile2
    :setjavac5
    set javac="%programfiles%\Java\jdk1.6.0_02\bin\javac.exe"
    goto compile2
    :setjavac6
    set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
    goto compile2
    :setjavac7
    set javac="%programfiles%\Java\jdk1.5.0\bin\javac.exe"
    goto compile2
    :setjavac8
    set javac="%programfiles%\Java\jdk1.5.0_01\bin\javac.exe"
    goto compile2
    :setjavac9
    set javac="%programfiles%\Java\jdk1.5.0_02\bin\javac.exe"
    goto compile2
    :setjavac10
    set javac="%programfiles%\Java\jdk1.5.0_03\bin\javac.exe"
    goto compile2
    :setjavac11
    set javac="%programfiles%\Java\jdk1.5.0_04\bin\javac.exe"
    goto compile2
    :setjavac12
    set javac="%programfiles%\Java\jdk1.5.0_05\bin\javac.exe"
    goto compile2
    :setjavac13
    set javac="%programfiles%\Java\jdk1.6.0_01\bin\javac.exe"
    goto compile2
    :setjavac14
    set javac="%programfiles%\Java\jdk1.6.0_02\bin\javac.exe"
    goto compile2
    :javacerror
    cls
    title Error
    echo You do not have JDK 5.0 or JDK 6.0. Go To www.java.sun.com
    echo and download the latest java, Java 6u2
    echo Also you can check out tutorials on 
    echo www.rune-server.org
    pause
    cls
    goto menu
    :checkjava
    if exist "%programfiles%\Java\jdk1.5.0_06\bin\java.exe" (goto setjava) else (goto checkjava2)
    :checkjava2
    if exist "%programfiles%\Java\jdk1.5.0_07\bin\java.exe" (goto setjava2) else (goto checkjava3)
    :checkjava3
    if exist "%programfiles%\Java\jdk1.5.0_08\bin\java.exe" (goto setjava3) else (goto checkjava4)
    :checkjava4
    if exist "%programfiles%\Java\jdk1.5.0_09\bin\java.exe" (goto setjava4) else (goto checkjava5)
    :checkjava5
    if exist "%programfiles%\Java\jdk1.5.0_10\bin\java.exe" (goto setjava5) else (goto checkjava6)
    :checkjava6
    if exist "%programfiles%\Java\jdk1.6.0\bin\java.exe" (goto setjava6) else (goto checkjava7)
    :checkjava7
    if exist "%programfiles%\Java\jdk1.5.0\bin\java.exe" (goto setjava7) else (goto checkjava8)
    :checkjava8
    if exist "%programfiles%\Java\jdk1.5.0_01\bin\java.exe" (goto setjava8) else (goto checkjava9)
    :checkjava9
    if exist "%programfiles%\Java\jdk1.5.0_02\bin\java.exe" (goto setjava9) else (goto checkjava10)
    :checkjava10
    if exist "%programfiles%\Java\jdk1.5.0_03\bin\java.exe" (goto setjava10) else (goto checkjava11)
    :checkjava11
    if exist "%programfiles%\Java\jdk1.5.0_04\bin\java.exe" (goto setjava11) else (goto checkjava12)
    :checkjava12
    if exist "%programfiles%\Java\jdk1.5.0_04\bin\java.exe" (goto setjava12) else (goto checkjava13)
    :checkjava13
    if exist "%programfiles%\Java\jdk1.6.0_01\bin\java.exe" (goto setjava13) else (goto checkjava14)
    :checkjava14
    if exist "%programfiles%\Java\jdk1.6.0_02\bin\java.exe" (goto setjava14) else (goto javaerror)
    :setjava
    set java="%programfiles%\Java\jdk1.5.0_06\bin\java.exe"
    goto run2
    :setjava2
    set java="%programfiles%\Java\jdk1.5.0_07\bin\java.exe"
    goto run2
    :setjava3
    set java="%programfiles%\Java\jdk1.5.0_08\bin\java.exe"
    goto run2
    :setjava4
    set java="%programfiles%\Java\jdk1.5.0_09\bin\java.exe"
    goto run2
    :setjava5
    set java="%programfiles%\Java\jdk1.5.0_10\bin\java.exe"
    goto run2
    :setjava6
    set java="%programfiles%\Java\jdk1.6.0\bin\java.exe"
    goto run2
    :setjava7
    set java="%programfiles%\Java\jdk1.5.0\bin\java.exe"
    goto run2
    :setjava8
    set java="%programfiles%\Java\jdk1.5.0_01\bin\java.exe"
    goto run2
    :setjava9
    set java="%programfiles%\Java\jdk1.5.0_02\bin\java.exe"
    goto run2
    :setjava10
    set java="%programfiles%\Java\jdk1.5.0_03\bin\java.exe"
    goto run2
    :setjava11
    set java="%programfiles%\Java\jdk1.5.0_04\bin\java.exe"
    goto run2
    :setjava12
    set java="%programfiles%\Java\jdk1.5.0_05\bin\java.exe"
    goto run2
    :setjava13
    set java="%programfiles%\Java\jdk1.6.0_01\bin\java.exe"
    goto run2
    :setjava14
    set java="%programfiles%\Java\jdk1.6.0_02\bin\java.exe"
    goto run2
    :javaerror
    cls
    title Error
    echo You do not have JDK 5.0 or JDK 6.0. Go To www.java.sun.com
    echo and download the latest java, Java 6u2
    echo Also you can check out tutorials on 
    echo www.rune-server.org
    pause
    cls
    goto menu
    :sl
    cls
    echo Ran Server at %time% and on %date%. >> "Compile Logs.txt"
    echo Server was run using %java%. >> "Compile Logs.txt"
    echo Thankx For Using Icepkz V3 Compiler >> "Compile Logs.txt"
    echo. >> "Compile Logs.txt"
    goto run5
    :sl2
    cls
    echo Ran Server at %time% and on %date%. >> "Compile Logs.txt"
    echo Server was run using %java%. >> "Compile Logs.txt"
    echo Thankx For Using Icepkz V3 Compiler >> "Compile Logs.txt"
    echo. >> "Compile Logs.txt"
    goto run6
    :cl
    cls
    echo Compiled Java files at %time% and on %date%. >> "Compile Logs.txt"
    echo Java files were compiled using %javac%. >> "Compile Logs.txt"
    echo TThankx For Using Icepkz V3 Compiler >> "Compile Logs.txt"
    echo. >> "Compile Logs.txt"
    goto compile5
    :cl2
    cls
    echo Compiled Java files at %time% and on %date%. >> "Compile Logs.txt"
    echo Java files were compiled using %javac%. >> "Compile Logs.txt"
    echo Thankx For Using Icepkz V3 Compiler >> "Compile Logs.txt"
    echo. >> "Compile Logs.txt"
    goto compile4
    :reset
    cls
    echo Resetting the Compiler's Logs...
    pause
    del "Compile Logs.txt"
    echo                                              ----------Compiler Logs---------- >> "Compile Logs.txt"
    echo. >> "Compile Logs.txt"
    goto menu

    ============ Seeing If It Works ============
    Open the compiler and press c and then enter
    After a few moments it will say something like this:

    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    Press any key to continue . . .

    It should look like something like this If you have made errors it will:

    (First put your error)
    e.g.
    Copy of client.java:12: class client is public, should be declared in a file nam
    ed client.java
    public class client extends Player implements Runnable {
    ^
    client.java:27: cannot find symbol
    symbol : method creadasfasdfasdfasteFrame(int)
    location: class stream
    outStream.creadasfasdfasdfasteFrame(85);
    ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    2 errors
    Press any key to continue . . .

    Creds: To me for making this, and The Ace for enviroment variables
    Please tell me about any errors and i can help you
    :::. Icepkz .:::
    ENJOY <

    .::.. 1033 R3p Thx ALL ! ..::.
     

  2. #2  
    Banned
    Join Date
    Sep 2006
    Posts
    375
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Ahaa! Thanks Icepkz... Again hehe. Finally, instead of me telling friends how to do it, Ill give them a link

    EDIT: I noticed this:

    Code:
    For the variable value put C:\Program Files\Java\Java\jdk1.6.0_01\bin\
    JDK1.6.0_01?! lol I thought this was 02. And this:

    Code:
    Now look in System Variables for path, highlight it by clicking it once then click edit. Change the Variable Name to PATH and the value to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.5.0_10\bin
    I thought it was JDK1.6.0_02 not JDK1.5.0_10
     

  3. #3  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    Quote Originally Posted by madman00901 View Post
    EDIT: I noticed this:

    Code:
    For the variable value put C:\Program Files\Java\Java\jdk1.6.0_01\bin\
    JDK1.6.0_01?! lol I thought this was 02. And this:

    Code:
    Now look in System Variables for path, highlight it by clicking it once then click edit. Change the Variable Name to PATH and the value to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.5.0_10\bin
    I thought it was JDK1.6.0_02 not JDK1.5.0_10
    lol oops, i rushed this so yeahm im goin to fix it now, and when i get bak from school im goin to make this much easier to do, thx

    .::.. 1033 R3p Thx ALL ! ..::.
     

  4. #4  
    Banned
    Join Date
    Sep 2006
    Posts
    375
    Thanks given
    0
    Thanks received
    3
    Rep Power
    0
    Okay No Problem. Thanks again for this great tut :B
     

  5. #5  
    trainer311
    Guest
    dude, it says:

    You do not have JDK 5.0 or JDK 6.0. Go to Mod Taharok's tutorial on the Moparscape section for step-by-step instructions link to download the newest JDK update.
    press any key to continue...

    but i have JDK 6u2...
     

  6. #6  
    Spanky
    Guest
    Thank you so much ive been looking for this.
    [rep\\
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Java < Compiler >
    By Willy Wonkaa in forum Help
    Replies: 6
    Last Post: 11-02-2010, 04:45 PM
  2. Basics of Java [Updated Regularly]
    By Roger in forum Application Development
    Replies: 18
    Last Post: 11-27-2009, 03:04 AM
  3. Quint's Full Sprite Kit ( UPDATED )
    By Quint in forum Graphics
    Replies: 37
    Last Post: 05-29-2009, 12:49 AM
  4. Newest Updated Item.Java for Miss Silabsoft
    By BLooDHounD in forum Tutorials
    Replies: 11
    Last Post: 09-16-2007, 02:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •