SMF For Free Support Forum

General Stuff => Programming => Java => Topic started by: blo0d3dlc3 on June 21, 2008, 04:34:49 am

Title: I need help on JDK or a complier or w\e...
Post by: blo0d3dlc3 on June 21, 2008, 04:34:49 am
This is really anoying me!!! I have downloaded the right JDK, well I hope! Here is pics of what i got for jdk... (https://www.smfsupport.com/support/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F24dgax2.jpg&hash=7498ffc56dc000eddd0336cbbfe5be7e7303f0b2) thats on my desktop.
What I do is click "compile" which is here>> (https://www.smfsupport.com/support/proxy.php?request=http%3A%2F%2Fi31.tinypic.com%2Fk2zair.jpg&hash=a108b13fe7cbda830afe254bfbf7f840b448db7d)
And it comes like this when I click it >>(https://www.smfsupport.com/support/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F1zev5eq.jpg&hash=2aed400f97924fe5e49cfa8e167973f7a21bc6ba).. I am trying to get it working!! I tried getting different sources and seeing if it works with that. But it doesnt!! Please help me.......Ty  ???
Title: Re: I need help on JDK or a complier or w\e...
Post by: Crasy on June 21, 2008, 07:28:30 am
Sorry buddy, but I think you're asking the wrong place.

This part of the forum is for SMF For Free Support only.
But I can move your topic over to the Java board. It is Java right?
Title: Re: I need help on JDK or a complier or w\e...
Post by: mintkiller on June 21, 2008, 09:29:40 am
this is about runescape private servers post this problem on runelocus
Title: Re: I need help on JDK or a complier or w\e...
Post by: 3lf-ครรครรเภ on June 21, 2008, 05:20:24 pm
Ok open your source folder. Right click the compiler, and click edit. When a notepad document comes up, delete everything on there and put this:
Code: [Select]
@ECHO OFF
title Server
"C:\Program Files\Java\jdk1.X.0_XX\bin\javac.exe" -cp . *.java
pause
Ok so now you need to edit the X's.
You change the first X to whatever the first number of JDK yours is. If you have JDK 6.X put a six in the first X. Put Five in if you have JDK 5.X
Example for JDK 6.X
Code: [Select]
@ECHO OFF
title Server
"C:\Program Files\Java\jdk1.6.0_XX\bin\javac.exe" -cp . *.java
pause
For the two X's after that, put the ".XX" that your JDK is. From the screenies it looks like you downloaded JDK 5.15 right? So your source should now look like this.
Code: [Select]
@ECHO OFF
title Server
"C:\Program Files\Java\jdk1.5.0_15\bin\javac.exe" -cp . *.java
pause
If you have a single digit number instead of a number like "15" put a 0 before it so since I have JDK 6.6 my source will look like this.
Code: [Select]
@ECHO OFF
title Server
"C:\Program Files\Java\jdk1.6.0_06\bin\javac.exe" -cp . *.java
pause
If you are still having trouble ill post screenies.
Title: Re: I need help on JDK or a complier or w\e...
Post by: mannn on June 25, 2008, 04:40:26 pm
Ok,

Do what "3lf-ครรครรเภ" said. Thats what I did to mine.

Thanks,

Mannn
 :police: I'm A Great Help!