tools.jar

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
madmax765
Posts: 4
Joined: Fri Feb 13, 2015 11:36 pm
Location: 3Rd. Rock from the Sun

tools.jar

Post by madmax765 »

Ok i hope some one can help me please. I used this guild here. https://github.com/L2J/L2J_Server/wiki/Setup-Eclipse In the Console output window i see this

Gradle Tasks: build
Working Directory: C:\Users\madma\git\L2J_Server
Gradle User Home: D:\MadMax765\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.6-rc-1
Java Home: C:\Program Files\Java\jre7
JVM Arguments: None
Program Arguments: None

Build in build/distributions/L2J_Server_2015-09-09.zip
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.536 secs


** this info is not in the Setup Eclipse https://github.com/L2J/L2J_Server/wiki/Setup-Eclipse not sure if its needed of not
I know my Aion runs ok witch is java based
I do have jdk1.7.0_15 installed and JAVE_HOME set C:\Program Files\Java\jdk1.7.0_15
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: tools.jar

Post by Sdw »

You may have a JDK but your java home points to the wrong one :

Java_Home: C:\Program Files\Java\jre7
madmax765
Posts: 4
Joined: Fri Feb 13, 2015 11:36 pm
Location: 3Rd. Rock from the Sun

Re: tools.jar

Post by madmax765 »

Thank you for reply but i do have java set right in environment variables.
Image

So i don't under stand why its not fallowing the right path for. Run win 10 pro 64 bit
So where else might i look at ?? And thank you once again.

I do see in eclipse
in preferences/java/installed JRE's name jre7 and location set to c:\program files\java\jre7

should i add jdk under it ? or remove jre7 or add above it ?
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: tools.jar

Post by Sdw »

It should point to jdk not jre I was pointing out the mistake
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: tools.jar

Post by Avanael92 »

In Eclipse go to Window > Preferences > Java > Build Path > Classpath Variables

If JAVA_HOME doesn't exit, just define a new variable with the related path to JDK.
User avatar
volix
Posts: 106
Joined: Tue May 17, 2011 5:20 pm

Re: tools.jar

Post by volix »

madmax765 wrote: Gradle Tasks: build
...
Java Home: C:\Program Files\Java\jre7
Sdw wrote:It should point to jdk not jre
In summary - only JDK contains tools.jar
madmax765
Posts: 4
Joined: Fri Feb 13, 2015 11:36 pm
Location: 3Rd. Rock from the Sun

Re: tools.jar

Post by madmax765 »

I have tried for last 6 hours.. changing one thing at a time and redoing the git pulls and all.. and it still gives me same error.. still showing it points to jre7 I have tried
In Eclipse go to Window > Preferences > Java > Build Path > Classpath Variables

If JAVA_HOME doesn't exit, just define a new variable with the related path to JDK.
http://www.crypthome.com/jdk1.jpg

Image

And I tried to add it here

http://www.crypthome.com/jdk2.jpg
Image

But still I am not doing some thing right... any more guesses on what I am doing wrong ?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: tools.jar

Post by Zoey76 »

Not minor detail, L2j needs JDK8...
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
madmax765
Posts: 4
Joined: Fri Feb 13, 2015 11:36 pm
Location: 3Rd. Rock from the Sun

Re: tools.jar

Post by madmax765 »

Thank You Zoey76

Just looking.. your the one that wrote the "Let's setup Eclipse" Grate job on it. Can you just add a few things to it ? like for java 8 down loads links
http://www.oracle.com/technetwork/java/ ... 33151.html
and how to set it. There no info on needing jdk 8 in the setup page

http://www.crypthome.com/jdk3.jpg
Image
Post by Zoey76 ยป Thu Sep 10, 2015 8:44 pm

Not minor detail, L2j needs JDK8...
Gradle Tasks: <run default tasks>
Working Directory: D:\Games Cores\L2J\L2J_Server
Gradle User Home: C:\Users\madma\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.6-rc-1
Java Home: C:\Program Files\Java\jdk1.8.0_60
JVM Arguments: None
Program Arguments: None

Build in build/distributions/L2J_Server_2015-09-10.zip
:clean UP-TO-DATE
:compileJava
:processResources UP-TO-DATE
:classes
:configuratorJar
:dbInstGsJar
:dbInstLsJar
:distTar UP-TO-DATE
:distZip UP-TO-DATE
:jar
:loginJar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
:zip

BUILD SUCCESSFUL

Total time: 22.21 secs

ok next step lol I got the client.. plus I got to figure where the files are now.. and what to do next... Now that I got the core compiled
Post Reply