Skip to main content

#java jxta error

7 replies [Last post]
nanechane
Offline
Joined: 2007-08-20
Points: 0

ive installed " jxta-lib-2.4.1.tar.gz " in Fedora, and i used a TAR -XVVF command from root. its UNZIP now, but I dont know wether it has been installed or not ??? another thing, that if its installed, then when i give a command from root prompt # java jxta, then i get an error i.e

java jxta
Exception in thread "main" java.lang.NoClassDefFoundError: jxta
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: jxta not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.8rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
.............

can someone help me please, ill be very thankful

Cheers

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hamada
Offline
Joined: 2003-06-12
Points: 0

you need to install and run Java 5 or 6.

http://java.sun.com/javase/downloads/index.jsp

nanechane
Offline
Joined: 2007-08-20
Points: 0

Yes Hamada, I've already Installed JDK 6, Moreover I am trying to get help from internet as well as from "JXTA IN A NUTSHELL" of O'REILLY. But I havnt got any satisfactory documentation or help. Following are the RPM of JDK 6.

jdk-6u2-linux-i586.rpm sun-javadb-core-10.2.2-0.1.i386.rpm
jdk-6u2-linux-i586-rpm.bin sun-javadb-demo-10.2.2-0.1.i386.rpm
sun-javadb-client-10.2.2-0.1.i386.rpm sun-javadb-docs-10.2.2-0.1.i386.rpm
sun-javadb-common-10.2.2-0.1.i386.rpm sun-javadb-javadoc-10.2.2-0.1.i386.rpm

Probably its NOT installed properly, and this is also my question, wether its installed properly or not , because when I give a command

# java ( i get the following result )

Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.

.....................

AND

when i give the following command i get different type of result.

#java jxta

Exception in thread "main" java.lang.NoClassDefFoundError: jxta
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: jxta not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.8rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at gnu.java.lang.MainThread.run(libgcj.so.8rh)

----------------

Kindly help

Cheers

hamada
Offline
Joined: 2003-06-12
Points: 0

your problem is simply a system PATH problem, prefix "PATH" with the installed JDK path.

your default path includes gnu java which is not supported by JXTA

nanechane
Offline
Joined: 2007-08-20
Points: 0

Thanks for your reply, so it means, that I shudn't go for JXTA Over Fedora. And do my project on Windows platform.
May be im wrong, but I thought for security reasons, Linux is a bit powerful, so if i go for JXTA over Linux, then that would be much secure than using Windows. Am I right Hamada ???

Thanks

hamada
Offline
Joined: 2003-06-12
Points: 0

I don't think I ever suggested an alternate platform. Your problem is simply a execution path problem. The Fedora pre-installed java is not a supported VM. you installed a new JDK, however you did not setup your path correctly, once you do that you should be fine.

Good luck

thenetworker
Offline
Joined: 2003-06-13
Points: 0

Have you read the documentation or any tutorials? I don't recall that is how the JXTA tutorial advises you to start the JXTA.

nanechane
Offline
Joined: 2007-08-20
Points: 0

Yes
I am getting help from "JXTA IN A NUTSHELL" by O'REILLY and obviously from Internet, BUT, I havnt got any satisfactory material for help. Still i am stucked there , cant move forward