Thread: [HELP] Compile issue.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [HELP] Compile issue. 
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Could smoemone please help me with this compile error? It keeps saying I don't have the right java and I've been messing around with it, just not working.

    My path = program files (x86)/java/jdk1.6.0_27/bin/javac.exe

    Code:
    @echo off
    color 0e
    cls
    :menu
    title Runserver + Compiler version 1.2
    echo Please choose an option below to do that function.
    echo Keep posted on the Moparscape Tutorials section for
    echo any updates that I post.
    echo.
    echo c - Compile your server.
    echo r - To run your server.
    echo e - To exit out of the program.
    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%==e goto end
    if %compile%==E goto end
    if %compile#==* goto error
    goto error
    :compile
    cls
    title Compiler
    if defined javac (goto compile2) else (goto checkjavac)
    :compile2
    if exist *.java (goto compile3) else (goto compileerror)
    :compile3
    %javac% -cp . *.java
    pause
    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
    if exist .\server.class (goto run2) else (goto servererror)
    :run2
    set java=java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar
    cls
    goto run3
    :run3
    %java% server
    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 (x86)%\Java\jdk1.6.0_27\bin\javac.exe" (goto setjavac) else (goto checkjavac2)
    :checkjavac2
    if exist "%programfiles%\Java\jdk1.6.0_07\bin\javac.exe" (goto setjavac2) else (goto checkjavac3)
    :checkjavac3
    if exist "%programfiles%\Java\jdk1.6.0_08\bin\javac.exe" (goto setjavac3) else (goto checkjavac4)
    :checkjavac4
    if exist "%programfiles%\Java\jdk1.6.0_09\bin\javac.exe" (goto setjavac4) else (goto checkjavac5)
    :checkjavac5
    if exist "%programfiles%\Java\jdk1.6.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.6.0\bin\javac.exe" (goto setjavac7) else (goto checkjavac8)
    :checkjavac8
    if exist "%programfiles%\Java\jdk1.6.0_01\bin\javac.exe" (goto setjavac8) else (goto checkjavac9)
    :checkjavac9
    if exist "%programfiles%\Java\jdk1.6.0_02\bin\javac.exe" (goto setjavac9) else (goto checkjavac10)
    :checkjavac10
    if exist "%programfiles%\Java\jdk1.6.0_03\bin\javac.exe" (goto setjavac10) else (goto checkjavac11)
    :checkjavac11
    if exist "%programfiles%\Java\jdk1.6.0_04\bin\javac.exe" (goto setjavac11) else (goto checkjavac12)
    :checkjavac12
    if exist "%programfiles%\Java\jdk1.6.0_05\bin\javac.exe" (goto setjavac12) else (goto javacerror)
    :setjavac
    set javac="%programfiles (x86)%\Java\jdk1.6.0_27\bin\javac.exe"
    goto compile2
    :setjavac2
    set javac="%programfiles%\Java\jdk1.6.0_07\bin\javac.exe"
    goto compile2
    :setjavac3
    set javac="%programfiles%\Java\jdk1.6.0_08\bin\javac.exe"
    goto compile2
    :setjavac4
    set javac="%programfiles%\Java\jdk1.6.0_09\bin\javac.exe"
    goto compile2
    :setjavac5
    set javac="%programfiles%\Java\jdk1.6.0_10\bin\javac.exe"
    goto compile2
    :setjavac6
    set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
    goto compile2
    :setjavac7
    set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
    goto compile2
    :setjavac8
    set javac="%programfiles%\Java\jdk1.6.0_01\bin\javac.exe"
    goto compile2
    :setjavac9
    set javac="%programfiles%\Java\jdk1.6.0_02\bin\javac.exe"
    goto compile2
    :setjavac10
    set javac="%programfiles%\Java\jdk1.6.0_03\bin\javac.exe"
    goto compile2
    :setjavac11
    set javac="%programfiles%\Java\jdk1.6.0_04\bin\javac.exe"
    goto compile2
    :setjavac12
    set javac="%programfiles%\Java\jdk1.6.0_05\bin\javac.exe"
    goto compile2
    :javacerror
    cls
    title Error
    echo You do not have JDK 5.0 or JDK 6.0. Go to Mod Taharok's tutorial
    echo on the Moparscape Tuturoials section for a direct link to download
    echo the newest JDK Update.
    pause
    cls
    goto menu
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Bump.
    Reply With Quote  
     

  3. #3  
    Legit Rank
    Bermuda's Avatar
    Join Date
    Aug 2009
    Posts
    1,463
    Thanks given
    380
    Thanks received
    298
    Rep Power
    2320
    Code:
    @echo off
    Title Compiling...
    "C:/Program Files (x86)/Java/jdk1.6.0_27/bin/javac/exe" *.java
    pause
    Try that.
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Quote Originally Posted by VisualBasic6 View Post
    Code:
    @echo off
    Title Compiling...
    "C:/Program Files (x86)/Java/jdk1.6.0_27/bin/javac/exe" *.java
    pause
    Try that.
    Thanks man, that worked but now I'm getting this error?

    Reply With Quote  
     

  5. #5  
    Legit Rank
    Bermuda's Avatar
    Join Date
    Aug 2009
    Posts
    1,463
    Thanks given
    380
    Thanks received
    298
    Rep Power
    2320
    Umm, try making that piece of code:
    Code:
    public static aClient82;
    If that doesn't work, try:
    Code:
    public static client;
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Quote Originally Posted by VisualBasic6 View Post
    Umm, try making that piece of code:
    Code:
    public static aClient82;
    If that doesn't work, try:
    Code:
    public static client;


    /;
    Reply With Quote  
     

  7. #7  
    Legit Rank
    Bermuda's Avatar
    Join Date
    Aug 2009
    Posts
    1,463
    Thanks given
    380
    Thanks received
    298
    Rep Power
    2320
    Umm, not really sure, but I'll give it a guess.

    Code:
    public static client c;
    Attached image
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Quote Originally Posted by VisualBasic6 View Post
    Umm, not really sure, but I'll give it a guess.

    Code:
    public static client c;
    Hm, still not working. This is an oddly coded source, lol.
    Reply With Quote  
     

  9. #9  
    Legit Rank
    Bermuda's Avatar
    Join Date
    Aug 2009
    Posts
    1,463
    Thanks given
    380
    Thanks received
    298
    Rep Power
    2320
    Idk what else to do, sorry.
    Attached image
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    Quote Originally Posted by VisualBasic6 View Post
    Idk what else to do, sorry.
    It's ok bro, thanks for your help.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Upon Compile I get.
    By Arron in forum Help
    Replies: 2
    Last Post: 01-12-2012, 10:31 PM
  2. Jar issue & Cache Issue
    By Chachi in forum Help
    Replies: 0
    Last Post: 06-19-2009, 02:40 PM
  3. cant compile
    By swaggin on u in forum Help
    Replies: 15
    Last Post: 01-03-2009, 08:21 AM
  4. Compile.bat is wont compile.
    By xXxKBxXx in forum Help
    Replies: 10
    Last Post: 07-27-2008, 09:38 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
  •