Page 1 of 1

Compile Problems -

Posted: Sun May 01, 2011 11:08 am
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

Re: Compile Problems -

Posted: Sun May 01, 2011 11:43 am
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.

Re: Compile Problems -

Posted: Sun May 01, 2011 11:44 am
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 :)

Re: Compile Problems -

Posted: Sun May 01, 2011 11:45 am
by jurchiks
Eclipse should find JDK automatically, unless ofc JRE has been added previously.

Re: Compile Problems -

Posted: Sun May 01, 2011 1:43 pm
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 ?

Re: Compile Problems -

Posted: Sun May 01, 2011 2:32 pm
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).

Re: Compile Problems -

Posted: Sun May 01, 2011 4:54 pm
by DareStrike
man look for this eclipse :)