Page 1 of 1

eclipse in ubuntu

Posted: Sat Nov 28, 2009 6:46 pm
by qwerty13
Hello dear community. I have some questions about compile server in ubuntu.

When i try to compile gameserver i have this error:

Code: Select all

BUILD FAILED /root/workspace/L2_GameServer/build.xml:76: java.lang.NoClassDefFoundError: gnu/classpath/Configuration 
Im configure eclipse by l2jwiki manual. I have installed subclipse, subversion, JAVA_HOME. Any solution about my problem? Compile from windows works fine, but from ubuntu.. :(

Apologies for my English.

Re: eclipse in ubuntu

Posted: Tue Dec 01, 2009 10:03 am
by qwerty13
No solution in my problem? :(

Re: eclipse in ubuntu

Posted: Tue Dec 01, 2009 4:14 pm
by janiii
Do you use Sun JDK?

Re: eclipse in ubuntu

Posted: Tue Dec 01, 2009 6:09 pm
by qwerty13
Yes, im have installed java-6-sun-1.6.0.15

Re: eclipse in ubuntu

Posted: Tue Dec 01, 2009 9:40 pm
by janiii
what is the output of this command?

Code: Select all

java -version

Re: eclipse in ubuntu

Posted: Wed Dec 02, 2009 11:32 am
by qwerty13

Code: Select all

java version "1.5.0"gij (GNU libgcj) version 4.4.1 Copyright (C) 2007 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
from java -version command.

Re: eclipse in ubuntu

Posted: Wed Dec 02, 2009 3:19 pm
by JIV
set java_home to sun jdk and remove that crap.

Re: eclipse in ubuntu

Posted: Wed Dec 02, 2009 4:02 pm
by qwerty13
Thank you. How can i set java_home correct?

Re: eclipse in ubuntu

Posted: Wed Dec 02, 2009 5:09 pm
by JIV
I am not sure how, search on google.

Re: eclipse in ubuntu

Posted: Wed Dec 02, 2009 5:26 pm
by janiii
- Check directory /usr/lib/jvm for installed java
- edit ~/.bashrc and add this line to it:
export JAVA_HOME="pathToTheSunJava"
- set the proper path to the sun java in the java_home!

Or just google for setting the environmental variable JAVA_HOME on linux

Re: eclipse in ubuntu

Posted: Mon Dec 07, 2009 12:12 am
by qwerty13
Problem solved by install java_home correct. Thank you guys for your support. :)