Page 1 of 1
tools.jar
Posted: Thu Sep 10, 2015 2:42 am
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
Re: tools.jar
Posted: Thu Sep 10, 2015 7:55 am
by Sdw
You may have a JDK but your java home points to the wrong one :
Java_Home: C:\Program Files\Java\jre7
Re: tools.jar
Posted: Thu Sep 10, 2015 10:27 am
by madmax765
Thank you for reply but i do have java set right in environment variables.
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 ?
Re: tools.jar
Posted: Thu Sep 10, 2015 10:52 am
by Sdw
It should point to jdk not jre I was pointing out the mistake
Re: tools.jar
Posted: Thu Sep 10, 2015 12:57 pm
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.
Re: tools.jar
Posted: Thu Sep 10, 2015 9:22 pm
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
Re: tools.jar
Posted: Thu Sep 10, 2015 9:33 pm
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
And I tried to add it here
http://www.crypthome.com/jdk2.jpg
But still I am not doing some thing right... any more guesses on what I am doing wrong ?
Re: tools.jar
Posted: Fri Sep 11, 2015 1:44 am
by Zoey76
Not minor detail, L2j needs JDK8...
Re: tools.jar
Posted: Fri Sep 11, 2015 3:24 am
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
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