Page 1 of 1

Troubles with Eclipse

Posted: Thu Mar 10, 2011 8:07 pm
by Merkury
Hi there.

Duo to some problems with nightly release of L2j Freya I decided to try using Eclipse - some users suggested the newest release accessable through Eclipse has this isseu solved.

I used forum "How to Download & Useful Links" and these two pages:
http://trac.l2jserver.com/wiki/Eclipse
http://trac.l2jdp.com/wiki/Eclipse
But unfortunately my Eclipse looks a lot different that the one from screens. After trying to add new repository location I'm asked for host, directory, user, password and some other stuff - not like in tutorial, "put an url there and we're set".

Can anyone help a newbie to get through this little trouble? ;)

Greetings,
Merkury

Re: Troubles with Eclipse

Posted: Thu Mar 10, 2011 8:33 pm
by jurchiks
You sure you're trying to add an SVN repository location? Not CVS?
You need to go to Window>Show View>Other...>SVN>SVN Repositories and there add it.

Re: Troubles with Eclipse

Posted: Thu Mar 10, 2011 9:35 pm
by Merkury
Damn man, you are great! Thanks a lot. :)
How stupid of me to make such mistake.

Anyway, I managed to build datapack with error:

Code: Select all

 Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego pl 
But I cannot get the server... Everytime getting this kind of error:

Code: Select all

 Buildfile: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build.xmlclean:   [delete] Deleting directory C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\buildverifyRequirements:init:    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\classes    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist\login    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist\gameserverversion:     [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego plcompile:    [javac] Compiling 1520 source files to C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\classes BUILD FAILEDC:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build.xml:63: Unable to find a javac compiler;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\Java\jre6" Total time: 1 second 
Any thoughts? ^_^

Re: Troubles with Eclipse

Posted: Thu Mar 10, 2011 10:07 pm
by pinkcore
Merkury wrote:Damn man, you are great! Thanks a lot. :)
How stupid of me to make such mistake.

Anyway, I managed to build datapack with error:

Code: Select all

 Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego pl 
But I cannot get the server... Everytime getting this kind of error:

Code: Select all

 Buildfile: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build.xmlclean:   [delete] Deleting directory C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\buildverifyRequirements:init:    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\classes    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist\login    [mkdir] Created dir: C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\dist\gameserverversion:     [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego plcompile:    [javac] Compiling 1520 source files to C:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build\classes BUILD FAILEDC:\Documents and Settings\Merkury\Pulpit\workspace\L2J_Server\build.xml:63: Unable to find a javac compiler;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\Java\jre6" Total time: 1 second 
Any thoughts? ^_^
Your Eclipse wants to use JDK but environent variable called JAVA_HOME points at JRE. With JRE you can't compile l2j, with JRE you can only run it.

Read this guide:
http://wso2.org/project/wsas/java/1.1/d ... -home.html

I think it's self explained.

Re: Troubles with Eclipse

Posted: Thu Mar 10, 2011 10:37 pm
by Merkury
Much obliged.
Now it says "build successful" despite this IO error. ;)

Re: Troubles with Eclipse

Posted: Fri Mar 11, 2011 10:08 am
by MELERIX
Merkury wrote:

Code: Select all

 Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego pl 
that issue is because you forgot to install subversion.