eclipse in ubuntu

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

eclipse in ubuntu

Post 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.
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: eclipse in ubuntu

Post by qwerty13 »

No solution in my problem? :(
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: eclipse in ubuntu

Post by janiii »

Do you use Sun JDK?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: eclipse in ubuntu

Post by qwerty13 »

Yes, im have installed java-6-sun-1.6.0.15
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: eclipse in ubuntu

Post by janiii »

what is the output of this command?

Code: Select all

java -version
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: eclipse in ubuntu

Post 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.
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: eclipse in ubuntu

Post by JIV »

set java_home to sun jdk and remove that crap.
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: eclipse in ubuntu

Post by qwerty13 »

Thank you. How can i set java_home correct?
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: eclipse in ubuntu

Post by JIV »

I am not sure how, search on google.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: eclipse in ubuntu

Post 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
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: eclipse in ubuntu

Post by qwerty13 »

Problem solved by install java_home correct. Thank you guys for your support. :)
Post Reply