Page 1 of 1
[Solved] I can't import some libraries properly
Posted: Tue Nov 01, 2016 11:44 pm
by Menoh
Hello, it's the first time I try to get the L2J server version of High Five in my Eclipse and I'm a bit lost
I used this link to get the files :
https://bitbucket.org/l2jserver/l2j_ser ... 8aba59.zip (in
https://bitbucket.org/l2jserver/l2j_server/downloads)
and :
https://bitbucket.org/l2jserver/l2j_dat ... 72cdb8.zip (in
https://bitbucket.org/l2jserver/l2j_datapack/downloads).
At this point, did I get the correct files ?
I imported l2j_server in a new project within Eclipse and three of my folders have an error's red cross :
src/main/java,
src/test/java, and
src.
Referenced Libraries,
JRE System Library,
dist and
gradle are ok.
- In
src/test/java and
src/main/java errors mostly come from libraries that Eclipse can't import, such as javax.mail.*, org.mockito.*, org.testng.*, org.python.util.*, org.slf4j.*, etc..
I searched online and found these pages :
http://stackoverflow.com/questions/7322 ... constructs
and
http://stackoverflow.com/questions/4322 ... e-resolved
but it doesn't help in my case.
- In
src I have two folders : main and test and I can't open any of them. They contain the packages of src/main/java and src/test/java. Why do I have these two unopenable folders if I already have the content in both packages' folders ?
Can someone help me to get the project working ?
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 12:13 am
by Menoh
I can't reach the wiki website, like this page :
http://www.l2jserver.com/wiki/index.php/Apply_a_Patch
Is that normal ? Is there another way to read the wiki ?
I tried this link :
https://bitbucket.org/account/signin/?n ... /wiki/Home
But I haven't created an account yet, it seems to be necessary to continue toward this page.
Edit : I just created an account but haven't the access to the wiki :s
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 1:45 am
by Zoey76
I have published a very basic wiki, we lost oir previous one.
https://bitbucket.org/l2jserver/l2j_server/wiki/Home
I'll be updating it with more stuff along this week.
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 9:15 am
by Menoh
Thank you, I appreciate ^^
I'll probably spend time learning about the server and how it works, and will try to develop stuff with it. I basically have in mind custom work to try but is there still new retail-like things to do for every servers ?
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 6:50 pm
by Zoey76
Menoh wrote:Thank you, I appreciate ^^
I'll probably spend time learning about the server and how it works, and will try to develop stuff with it. I basically have in mind custom work to try but is there still new retail-like things to do for every servers ?
Exactly, we always need a hand implementing and correcting things to improve the server.
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 10:58 pm
by Sacrifice
Zoey76 wrote:Menoh wrote:Thank you, I appreciate ^^
I'll probably spend time learning about the server and how it works, and will try to develop stuff with it. I basically have in mind custom work to try but is there still new retail-like things to do for every servers ?
Exactly, we always need a hand implementing and correcting things to improve the server.
Yes!... thats true.
Re: I can't import some libraries properly
Posted: Wed Nov 02, 2016 11:15 pm
by Menoh
What parts of the project need a hand specifically ? It's pretty vast
I'm not a pro with Java but I hope I know the basics, I'm still learning and I need to practise.
By the way I read the guides you linked upper, Java ( 1.8 ) is installed properly, Eclipse too (Eclipse Juno as IDE for Java EE Developers and Eclipse Neon as IDE for Java Developers, without EE), and I still get my red crosses's errors on both because it can't find the libraries :s
Re: I can't import some libraries properly
Posted: Fri Nov 04, 2016 12:46 am
by Menoh
How is gradle working ?
The dependencies block in my build.gradle looks like this :
Code: Select all
dependencies {
compile 'com.mchange:c3p0:0.9.5.2'
compile 'com.jolbox:bonecp:0.8.0.RELEASE'
compile 'com.sun.mail:javax.mail:1.5.5'
compile 'com.zaxxer:HikariCP:2.4.7'
compile 'mysql:mysql-connector-java:6.0.3'
compile 'org.bitlet:weupnp:0.1.4'
compile 'org.eclipse.jdt.core.compiler:ecj:4.4.2'
compile 'com.google.guava:guava:19.0'
compile 'org.python:jython:2.2.1'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.slf4j:slf4j-jdk14:1.7.21'
compile fileTree(dir: 'dist/libs', include: '*.jar')
testCompile 'org.testng:testng:6.9.12'
testCompile 'org.mockito:mockito-all:2.0.2-beta'
testCompile 'com.beust:jcommander:1.48'
}
But the project can't import some libraries and I'm searching and adding manually one by one all the missing .jar to the project build path
I have no more errors on the project.
Re: [Solved] I can't import some libraries properly
Posted: Thu Mar 10, 2022 2:42 pm
by ASI828277
Menoh wrote: ↑Tue Nov 01, 2016 11:44 pm
Hello, it's the first time I try to get the L2J server version of High Five in my Eclipse and I'm a bit lost
I used this link to get the files :
https://bitbucket.org/l2jserver/l2j_ser ... 8aba59.zip (in
https://bitbucket.org/l2jserver/l2j_server/downloads)
and :
https://bitbucket.org/l2jserver/l2j_dat ... 72cdb8.zip (in
https://bitbucket.org/l2jserver/l2j_datapack/downloads).
At this point, did I get the correct files
?
I imported l2j_server in a new project within Eclipse and three of my folders have an error's red cross :
src/main/java,
src/test/java, and
src.
Referenced Libraries,
JRE System Library,
dist and
gradle are ok.
- In
src/test/java and
src/main/java errors mostly come from libraries that Eclipse can't import, such as javax.mail.*, org.mockito.*, org.testng.*, org.python.util.*, org.slf4j.*, etc..
I searched online and found these pages :
http://stackoverflow.com/questions/7322 ... constructs
and
http://stackoverflow.com/questions/4322 ... e-resolved
but it doesn't help in my case.
- In
src I have two folders : main and test and I can't open any of them. They contain the packages of src/main/java and src/test/java. Why do I have these two unopenable folders if I already have the content in both packages' folders ?
Can someone help me to get the project working ?
Great