Thread: my compiler dont compile

Results 1 to 3 of 3
  1. #1 my compiler dont compile 
    Registered Member
    Join Date
    May 2009
    Posts
    741
    Thanks given
    6
    Thanks received
    22
    Rep Power
    30
    when i click compile it says it compile everthing when i run my source and log on nothing is changed.
    how do i fix my compiler?
    Code of compiler.
    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
    My run is outside the files btw.
    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,340
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    Code:
    @echo off
    "C:/Program Files/Java/jdk1.6.0_#/bin/javac.exe" *.java
    pause
    Replace the # with your JDK version.

    If you have set your environmental variables, this should work for you.

    Code:
    @echo off
    javac *.java
    pause
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2009
    Posts
    741
    Thanks given
    6
    Thanks received
    22
    Rep Power
    30
    copy that into my compile compile it and it still dont change anything.
    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
  •