Thread: need help my compiler wont work!!!

Results 1 to 3 of 3
  1. #1 need help my compiler wont work!!! 
    ( ͡° ͜ʖ ͡°)

    Magic's Avatar
    Join Date
    Mar 2009
    Age
    25
    Posts
    1,462
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    hi me and my cousin are working on a 2 world project and one is a mem world and one is a free world. but the problem is, is that i can compile my mem world with the compiler but when i try to compile the free world it will say it has an error and not compile it. please help!!!
    here is the compiler that i am using
    Code:
    @echo off
    title Compiler
    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
    The error that it says after I'm finished compiling is:
    Code:
    javac: file not found: *.java
    usage: javac <options> <source files>
    use -help for a list of possible options.
    Finished!
    Press any key to continue...
    Reply With Quote  
     

  2. #2  
    Respected Member

    Situations's Avatar
    Join Date
    Sep 2008
    Posts
    3,915
    Thanks given
    230
    Thanks received
    1,695
    Discord
    View profile
    Rep Power
    5000
    I lol'd.

    Use this one, that one's trash.

    @echo off
    Title Compiler
    "C:\Program Files\Java\jdk1.6.0_12\bin\javac.exe" *.java
    pause

    Switch:
    jdk1.6.0_12

    To the version you have.

    If you don't have java, go [Only registered and activated users can see links. ] and install the newest version.


    If I didn't help, than sorry.
    Reply With Quote  
     

  3. #3  
    ( ͡° ͜ʖ ͡°)

    Magic's Avatar
    Join Date
    Mar 2009
    Age
    25
    Posts
    1,462
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    I'm looking for JDK, not JRE, sorry.
    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

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