Troubles with Eclipse

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Merkury
Posts: 11
Joined: Wed Feb 23, 2011 4:16 am

Troubles with Eclipse

Post 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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Troubles with Eclipse

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Merkury
Posts: 11
Joined: Wed Feb 23, 2011 4:16 am

Re: Troubles with Eclipse

Post 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? ^_^
User avatar
pinkcore
Posts: 247
Joined: Fri Jul 24, 2009 3:04 am
Location: Czech Republic

Re: Troubles with Eclipse

Post 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.
I'm not here only for food!
Merkury
Posts: 11
Joined: Wed Feb 23, 2011 4:16 am

Re: Troubles with Eclipse

Post by Merkury »

Much obliged.
Now it says "build successful" despite this IO error. ;)
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Troubles with Eclipse

Post 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.
Post Reply