Compile Problems -

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
allromanianrejects
Posts: 48
Joined: Sat Dec 18, 2010 11:58 am

Compile Problems -

Post by allromanianrejects »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: Doesn't Matter
L2JDP Revision Number: Doesn't Matter

I've searched all l2jserver forums and didn't find a solution, thanks to other private site who fixed this, and here is the saviour post for peoples with this problem ...

If you get this error :

com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java2\jre6"


You must go to your Eclipse, -> Windows -> Preferences -> Ant -> Editor -> Runtime

- Then press "Add External JARs" and Select the file : "tools.jar"
Usualy located in
"C:\Program Files\Java\jdk1.60.25\LIB"
- Or just run a search procces and find the location of yours"

Image
Time ? It's just a matter of wasteing ...
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile Problems -

Post by jurchiks »

that just means that you put JRE instead of JDK in your JAVA_HOME variable. JAVA_HOME = JDK, PATH = JDK or JRE bin folder.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Re: Compile Problems -

Post by hiroshima »

download Java JDK (not JRE), go to your Eclipse... Preferences -> Java -> Installed JRE's, then click on Search and set your JDK location... then mark jdk instead of jre... and you are done :)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile Problems -

Post by jurchiks »

Eclipse should find JDK automatically, unless ofc JRE has been added previously.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
allromanianrejects
Posts: 48
Joined: Sat Dec 18, 2010 11:58 am

Re: Compile Problems -

Post by allromanianrejects »

thank you guyz
i've doubted that anyone would even dareto click my post XD
well this is the alternative i've chosen ...
is ther something wrong with it ?
Time ? It's just a matter of wasteing ...
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Compile Problems -

Post by jurchiks »

just adding the tools.jar might not be enough, it might cause some vm/compiler errors.
It's better to configure the Installed JRE's like hiroshima said. Just remove the JRE and add JDK instead (in Eclipse).
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Compile Problems -

Post by DareStrike »

man look for this eclipse :)
Post Reply