The last changeset

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: The last changeset

Post by Avanael92 »

Importing core went without problems, but importing datapack pulled the following error:

Code: Select all

Importing Gradle project failed due to an error connecting to the Gradle build.

Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.

Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Building core pulls an error too:

Code: Select all

Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
: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: 0.761 secs
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: The last changeset

Post by u3games »

sahar wrote:I got it, then how do I build it?

So far if anyone is interested a guide in details:
1) Install Gradle Buildship
* Open Eclipse
* Go to Help menu -> Eclipse Marketplace
* Search for Gradle Buildship
* Install the first plugin that appears
* Restart eclipse when it asks
2) Clone project
* Clone https://github.com/L2J/L2J_Server.git and https://github.com/L2J/L2J_DataPack.git as you would normally do
* Go to File menu -> Import...
* Expand Gradle -> Gradle Project
* Select the directory where you cloned L2J_Server and click finish
* Once done do the same to L2J_DataPack
3) Build project
* In the line of tabs (where you see Console, Problems etc) press Gradle Tasks
* Right click the project and click Run Default Gradle Tasks
Thx @sahar ^^
Image
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: The last changeset

Post by maneco2 »

Check this > L2J dont have 42 libs :o
Gradle is compiling, but this wrong, but is joining other libs with the project L2J, before upgrading L2J was 15 libs only :-1:
The versions of the libs are also previous...
Before: Server 7 MB
SPOILER:
Image
After: Server 14 MB
SPOILER:
Image
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: The last changeset

Post by maneco2 »

Now is compiling correctly, thank you. :+1:
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: The last changeset

Post by u3games »

Avanael92 wrote:Importing core went without problems, but importing datapack pulled the following error:

Code: Select all

Importing Gradle project failed due to an error connecting to the Gradle build.

Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.

Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Building core pulls an error too:

Code: Select all

Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
: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: 0.761 secs
+1

Image
Last edited by u3games on Wed Aug 05, 2015 4:49 pm, edited 1 time in total.
Image
User avatar
CostyKiller
Posts: 220
Joined: Mon Aug 10, 2009 11:48 pm
Location: Romania

Re: The last changeset

Post by CostyKiller »

I get the same error with tools.jar, I can't get rid of it, I've tried reinstalling everything and still get it.

//Edit

The error is gone after I used a new folder for eclipse workspace, but now I have to add all my changes back to the source. :(
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: The last changeset

Post by UnAfraid »

Make sure your eclipse is using JDK rather then JRE cause only JDK contains tools.jar
Image
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: The last changeset

Post by u3games »

u3games wrote:
Avanael92 wrote:Importing core went without problems, but importing datapack pulled the following error:

Code: Select all

Importing Gradle project failed due to an error connecting to the Gradle build.

Could not fetch model of type 'EclipseProject' using Gradle distribution
'https://services.gradle.org/distributions/gradle-2.6-rc-1-bin.zip'.

Could not resolve all dependencies for configuration ':testRuntime'.
Configuration with name 'default' not found."
Building core pulls an error too:

Code: Select all

Build in build/distributions/L2J_Server_2015-08-03.zip
:clean UP-TO-DATE
: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: 0.761 secs
+1

Image
Fix!

Change "build" and "settings", change "L2J_Server" for name of proyect. My case... "server_x10_core"
Image
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: The last changeset

Post by Avanael92 »

I didn't change anything, but I'm getting another error when importing datapack:

Image

Now I'm having two L2J_Server in Gradle Tasks, but one in Navigator. Anyone got this too?
zhort
Posts: 106
Joined: Thu Oct 06, 2011 11:08 pm

Re: The last changeset

Post by zhort »

Avanael92 wrote:I didn't change anything, but I'm getting another error when importing datapack:

Image

Now I'm having two L2J_Server in Gradle Tasks, but one in Navigator. Anyone got this too?
1- I tried to do & same error
2- I have this error

Description Resource Path Location Type
A cycle was detected in the build path of project 'L2J_DataPack'. The cycle consists of projects {L2J_DataPack, L2J_Server} L2J_DataPack Build path Build Path Problem

Description Resource Path Location Type
A cycle was detected in the build path of project 'L2J_Server'. The cycle consists of projects {L2J_DataPack, L2J_Server} L2J_Server Build path Build Path Problem
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: The last changeset

Post by Zoey76 »

You can ignore that "L2J_Server already" error for now.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
CostyKiller
Posts: 220
Joined: Mon Aug 10, 2009 11:48 pm
Location: Romania

Re: The last changeset

Post by CostyKiller »

I got the same error at first attempt, but then I thought that if I would import the datapack first it would import the both projects, and so was it.
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: The last changeset

Post by maneco2 »

Zoey76 Because with the new build, some libs this in different versions now? example before: c3p0-0.9.5.1 :o
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: The last changeset

Post by Zoey76 »

maneco2 wrote:Zoey76 Because with the new build, some libs this in different versions now? example before: c3p0-0.9.5.1 :o
Because we are using the last version of everything.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
zhort
Posts: 106
Joined: Thu Oct 06, 2011 11:08 pm

Re: The last changeset

Post by zhort »

use jdk 8 51, I had 8 45 & take error for tools.jar
Post Reply