Thread: Need help making my Compiler to work

Results 1 to 8 of 8
  1. #1 Need help making my Compiler to work 
    Banned
    Join Date
    Feb 2012
    Posts
    81
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Yeah, So I'm having a small issue trying to compile, *im new to java so dont be too hard on me, this is something i really want to learn*

    It says it cannot find the path specified. If anyone has teamview and wouldnt mind helping a noob out, I will very much appreciate it.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Typoerased's Avatar
    Join Date
    Feb 2010
    Age
    27
    Posts
    1,114
    Thanks given
    103
    Thanks received
    150
    Rep Power
    540
    Change to your JDK version. Or just pm me tv info.
    Reply With Quote  
     

  3. #3  
    Donator
    Ed17's Avatar
    Join Date
    Jun 2011
    Posts
    296
    Thanks given
    42
    Thanks received
    14
    Rep Power
    10
    Open your compiler.bat file in your server and edit the stuff in read to your java location:
    Code:
    @echo off
    :build
    cls
    "C:\Program Files\Java\jdk1.6.0_30\bin\javac.exe" -classpath deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar -d bin src\server\event\*.java src\server\model\items\*.java src\server\model\minigames\*.java src\server\model\npcs\*.java src\server\model\objects\*.java src\server\model\players\*.java src\server\model\players\skills\*.java src\server\model\players\packets\*.java src\server\model\shops\*.java src\server\net\*.java src\server\task\*.java src\server\util\*.java src\server\world\*.java src\server\util\log\*.java src\server\*.java src\server\world\map\*.java
    pause
    goto :build
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2012
    Posts
    32
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Wasn't there a nice version that automatically finds the path? Would be useful, if not for compiler, since that's what only you use, then for run.bat.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2012
    Posts
    394
    Thanks given
    58
    Thanks received
    16
    Rep Power
    10
    Quote Originally Posted by Pingster View Post
    Wasn't there a nice version that automatically finds the path? Would be useful, if not for compiler, since that's what only you use, then for run.bat.
    Go to start enter this

    C:\Program Files\Java

    Then press enter after that it will bring you to this


    Mine is jdk1.6.0_24

    Hope I helped.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2012
    Posts
    32
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Yeah, no, I mean, for compiler/run.bat. Cheapfix is to have a run.bat for each of the current versions of Java and then copypasta for (86), cause people are lazy and will not change it themselves, but pretty sure I saw a version that detects it automatically.
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Dec 2011
    Posts
    532
    Thanks given
    219
    Thanks received
    53
    Rep Power
    0
    Try this:
    Code:
    @echo off
    if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
    :compile
    for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
    if defined p (%p% -cp . *.java)
    if defined p (goto end)
    :error
    echo You do not have Java installed. Please download it at the site that is about to load.
    "%programfiles%\Internet Explorer\iexplore.exe" http://java.sun.com/javase/downloads/index.jsp
    :end
    echo Finished!
    pause
    exit
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2012
    Posts
    32
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Oh that looks about right, throw in a goto for "program files" and should work fine! Thanks
    Reply With Quote  
     


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. Does your compiler not work !!!
    By jami3 in forum Tutorials
    Replies: 0
    Last Post: 11-16-2008, 12:15 PM
  2. Making ur compiler Work with all jdk
    By Tx-Sec in forum Tutorials
    Replies: 3
    Last Post: 03-09-2008, 10:07 AM
  3. Replies: 8
    Last Post: 11-17-2007, 05:44 AM
  4. Making Your Compiler Work
    By Jazz in forum Tutorials
    Replies: 3
    Last Post: 09-29-2007, 09:04 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
  •