Freeroam
Hello! Welcome to Freeroam Forums. If this is your first time then Enjoy!

Freeroam

Freeroam Forums
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Latest topics
» What forums to use
Wed Feb 29, 2012 12:20 pm by stopperbud

» mac version?
Mon Apr 26, 2010 4:17 pm by samdadog

» Future of Freeroam
Sun Nov 29, 2009 12:20 pm by poison

» Clien Download
Sun Nov 29, 2009 12:07 pm by poison

» The last surviors
Sat Nov 28, 2009 9:37 pm by poison

» I HATE WoW
Fri Nov 27, 2009 11:09 am by mageofmagers

» Would you rather?
Fri Nov 27, 2009 12:53 am by megamurder8

» VOTE! VOTE!
Fri Nov 27, 2009 12:50 am by megamurder8

» Membership and donator point imfo!
Thu Nov 26, 2009 9:54 pm by megamurder8

Vote
Vote for your favorite Drawing NOW!

Freeroam.forumotion.net - By Playing the server, you agree to the rules in the link below

Top posters
mageofmagers (367)
 
megamurder8 (235)
 
sunny (212)
 
Admin (168)
 
gurkan (138)
 
Aidss (118)
 
Butt muncher (107)
 
Louis (85)
 
Aznforlife (76)
 
zach821822 (67)
 
Search
 
 

Display results as :
 
Rechercher Advanced Search

Share | 
 

 Rhin0's Compiler

Go down 
Go to page : 1, 2  Next
AuthorMessage
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: Rhin0's Compiler   Wed Jul 29, 2009 6:40 am

I made a Compiler that can find JDK 10-14 Cool
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 clown
Back to top Go down
View user profile
mageofmagers
Forum Moderator
Forum Moderator
avatar

Posts : 367
Rep. : 7
Join date : 2009-07-04
Age : 26
Location : Watching you

PostSubject: 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?

_________________
Back to top Go down
View user profile
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: 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
Back to top Go down
View user profile
mageofmagers
Forum Moderator
Forum Moderator
avatar

Posts : 367
Rep. : 7
Join date : 2009-07-04
Age : 26
Location : Watching you

PostSubject: Re: Rhin0's Compiler   Wed Jul 29, 2009 11:51 am

Lol nice. Good job

_________________
Back to top Go down
View user profile
gurkan
Coders
Coders
avatar

Posts : 138
Rep. : 3
Join date : 2009-07-04
Age : 24

PostSubject: Re: Rhin0's Compiler   Fri Aug 07, 2009 2:54 pm

good Very Happy

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
Back to top Go down
View user profile
Rosetta
Novice Player
Novice Player


Posts : 21
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: Re: Rhin0's Compiler   Mon Aug 10, 2009 5:03 pm

Lol Gurkan. Smile

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 Razz
Back to top Go down
View user profile
gurkan
Coders
Coders
avatar

Posts : 138
Rep. : 3
Join date : 2009-07-04
Age : 24

PostSubject: 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.
Back to top Go down
View user profile
stopperbud
Novice Player
Novice Player


Posts : 27
Rep. : 0
Join date : 2009-07-04

PostSubject: Re: Rhin0's Compiler   Fri Aug 14, 2009 10:39 pm

i guess ur using jdk #14
at least thats the one im using
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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?
Back to top Go down
View user profile
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: 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.
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
Admin
Admin
avatar

Posts : 168
Rep. : 2
Join date : 2009-07-04

PostSubject: 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...
Back to top Go down
View user profile http://freeroam.forumotion.net
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: Re: Rhin0's Compiler   Wed Aug 19, 2009 7:20 am

Dont use the system restore..

Gah silent

I made this just 4 you.

Spoiler:
 

Edit the current Run.bat with this.
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: Re: Rhin0's Compiler   Wed Aug 19, 2009 4:24 pm

ty ill try it now
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
Admin
Admin
avatar

Posts : 168
Rep. : 2
Join date : 2009-07-04

PostSubject: 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
Back to top Go down
View user profile http://freeroam.forumotion.net
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: Re: Rhin0's Compiler   Wed Aug 19, 2009 9:12 pm

i did that alrdy but it says it cannot find egui class
Back to top Go down
View user profile
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: 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.
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
Rhin0
3D Designer
3D Designer


Posts : 63
Rep. : 3
Join date : 2009-07-11
Age : 25
Location : Sweden

PostSubject: Re: Rhin0's Compiler   Thu Aug 20, 2009 4:41 pm

I'll help you.

So i promise you'll be able to play Wink

Copy the old Run.bat and type it here..
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: Re: Rhin0's Compiler   Thu Aug 20, 2009 4:41 pm

thank u rhin0
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: 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
Back to top Go down
View user profile
sunny
Experienced Player
Experienced Player
avatar

Posts : 212
Rep. : 0
Join date : 2009-07-05

PostSubject: Re: Rhin0's Compiler   Thu Aug 20, 2009 4:46 pm

@echo off
cls
java -Xmx500m Gui
pause
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Rhin0's Compiler   

Back to top Go down
 
Rhin0's Compiler
Back to top 
Page 1 of 2Go to page : 1, 2  Next
 Similar topics
-
» Stockfish Compiler v1.2.1
» How to compile sourcecode for stockfish?
» Texel

Permissions in this forum:You cannot reply to topics in this forum
Freeroam :: Off Topic-
Jump to: