| Rhin0's Compiler | |
|
|
|
Author | Message |
---|
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Rhin0's Compiler Wed Jul 29, 2009 6:40 am | |
| I made a Compiler that can find JDK 10-14 if you got some problem with this, plz tell me xD - Code:
-
:main @echo off cls Title Rhin0's Compiler color 71 set cc=%programfiles%\Java\jdk1.6.0_14\bin\javac.exe :: Its my Default, maybe yours. if not exist="%cc%" goto fail goto rdy :fail cls if exist="%programfiles%\Java\jdk1.6.0_10\bin\javac.exe" goto 10 if exist="%programfiles%\Java\jdk1.6.0_11\bin\javac.exe" goto 1 if exist="%programfiles%\Java\jdk1.6.0_12\bin\javac.exe" goto 2 if exist="%programfiles%\Java\jdk1.6.0_13\bin\javac.exe" goto 3 goto fail!
:10 set cc=%programfiles%\Java\jdk1.6.0_10\bin\javac.exe goto rdy :1 set cc=%programfiles%\Java\jdk1.6.0_11\bin\javac.exe goto rdy :2 set cc=%programfiles%\Java\jdk1.6.0_12\bin\javac.exe goto rdy :3 set cc=%programfiles%\Java\jdk1.6.0_13\bin\javac.exe goto rdy :fail! cls echo. echo JDK was not found. echo Look in your C:\..\java\ If there is any JDK folder. echo If there is, type in the JDK version. echo. set /p new=%programfiles%\java\jdk1.6.0_ set cc=%programfiles%\Java\jdk1.6.0_%new%\bin\javac.exe if not exist="%cc%" goto fail! goto rdy
:rdy @echo off cls echo. echo ~JDK was found~ echo. echo Press a button to start. echo. pause cls echo. %cc% *.java echo. echo. pause goto rdy How to use it? 1. Open Notepad 2. Paste the code inte it. 3. Save the file as Rhin0Compiler.bat 4. Click on it | |
|
| |
mageofmagers Forum Moderator
Posts : 367 Rep. : 7 Join date : 2009-07-04 Age : 31 Location : Watching you
| Subject: Re: Rhin0's Compiler Wed Jul 29, 2009 8:54 am | |
| Oh so that is for if you don't know what jdk you have? | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Wed Jul 29, 2009 10:24 am | |
| Well, i've seen many compilers but every time i have to edit it.
So now i made a compiler that finds it instead xD | |
|
| |
mageofmagers Forum Moderator
Posts : 367 Rep. : 7 Join date : 2009-07-04 Age : 31 Location : Watching you
| Subject: Re: Rhin0's Compiler Wed Jul 29, 2009 11:51 am | |
| | |
|
| |
gurkan Coders
Posts : 138 Rep. : 3 Join date : 2009-07-04 Age : 29
| Subject: Re: Rhin0's Compiler Fri Aug 07, 2009 2:54 pm | |
| good but isn't it unnececary long? the compiler i use: - Code:
-
@echo off title Compile cd Source "C:\Program Files\Java\Bin\javac.exe" -cp . -d ./Bin/ ./*java pause | |
|
| |
Rosetta Novice Player
Posts : 21 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Fri Aug 07, 2009 4:23 pm | |
| Ergh, I had one that automatically found the file directory but I can't remember what it was and I deleted it :c | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Mon Aug 10, 2009 5:03 pm | |
| Lol Gurkan. But why use "C:\Program Files\..." When you can use "%programfiles&\..." And i dont understand how you can use "Javac" without using jdk folder Classpath maybe? Some computers like mine used the folder c:\Program\java So that compiler would'nt work at my comp | |
|
| |
gurkan Coders
Posts : 138 Rep. : 3 Join date : 2009-07-04 Age : 29
| Subject: Re: Rhin0's Compiler Fri Aug 14, 2009 6:07 pm | |
| hmm i tried to compile an other server that i edited but my compiler didnt work. so i decided to try this but it didnt work either. | |
|
| |
stopperbud Novice Player
Posts : 27 Rep. : 0 Join date : 2009-07-04
| Subject: Re: Rhin0's Compiler Fri Aug 14, 2009 10:39 pm | |
| i guess ur using jdk #14 at least thats the one im using | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Mon Aug 17, 2009 10:06 pm | |
| im tryin to put d claws on my server and the compiler wont work i copy and pasted urs like u said rhin0 but then wut can it do in a note pad? | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Tue Aug 18, 2009 8:34 am | |
| You can edit it in the .txt file..
<i>Save the file as Rhin0Compiler.bat</i> Then it should be in .Bat
=Batch and then you can use it.
Also look if you got any of the JDK's. | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Tue Aug 18, 2009 6:20 pm | |
| omfg i cant use clients anymore bcause of (jdk) after i downloaded version 6 update 14 it stopped letting me run clients and run my server host how do i fix this | |
|
| |
Admin Admin
Posts : 168 Rep. : 2 Join date : 2009-07-04
| Subject: Re: Rhin0's Compiler Tue Aug 18, 2009 7:04 pm | |
| Just do a system restore... to the point at which you didn't have it downloaded... | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Wed Aug 19, 2009 7:20 am | |
| Dont use the system restore.. Gah I made this just 4 you. - Spoiler:
:set cls @echo off @title Rhin0's Run set run="EGUI" if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error) :compile for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\java.exe") if defined p (%p% %run%) if defined p (goto end) :end pause exit :error echo Cant find JDK. pause exit
Edit the current Run.bat with this. | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Wed Aug 19, 2009 4:24 pm | |
| | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Wed Aug 19, 2009 5:04 pm | |
| whats the egui is there a download for it it says it cannot find it | |
|
| |
Admin Admin
Posts : 168 Rep. : 2 Join date : 2009-07-04
| Subject: Re: Rhin0's Compiler Wed Aug 19, 2009 7:53 pm | |
| Put into notepad and save it as .bat
Or did you do that and ur asking a detour?
ERGH | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Wed Aug 19, 2009 9:12 pm | |
| i did that alrdy but it says it cannot find egui class | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:38 pm | |
| Did you want to run a Client or a server?
Look around in the Folder, see if there's any class files.. And copy and write the old Run.bat here, thanks. | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:40 pm | |
| both and dude im scared what if i cant fix it and i cant play freeroam ive been waiting so long omfg im so scared | |
|
| |
Rhin0 3D Designer
Posts : 63 Rep. : 3 Join date : 2009-07-11 Age : 31 Location : Sweden
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:41 pm | |
| I'll help you. So i promise you'll be able to play Copy the old Run.bat and type it here.. | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:41 pm | |
| | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:42 pm | |
| there are diffrent ones i was using diffrent sources and client and they wouldnt work | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:45 pm | |
| :set cls @echo off @title Rhin0's Run set run="EGUI" if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error) :compile for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\java.exe") if defined p (%p% %run%) if defined p (goto end) :end pause exit :error echo Cant find JDK. pause exit | |
|
| |
sunny Experienced Player
Posts : 212 Rep. : 0 Join date : 2009-07-05
| Subject: Re: Rhin0's Compiler Thu Aug 20, 2009 4:46 pm | |
| @echo off cls java -Xmx500m Gui pause | |
|
| |
Sponsored content
| Subject: Re: Rhin0's Compiler | |
| |
|
| |
| Rhin0's Compiler | |
|