aspose file tools*
The moose likes Linux / UNIX and the fly likes Java on Fedora 15 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Java on Fedora 15" Watch "Java on Fedora 15" New topic
Author

Java on Fedora 15

Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 217

Hi all,
I need to install and run Java 6 on Fedora 15.I did installed it on Fedora 15 as per the guidelines,but I faced a problem.I could easily compile my classes ,but could not run them.The error i got was 'NoClassDefFound'.Why is this happening?
Please guide me through.

Thanks.......
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Which Java 6? The one from Oracle? Or OpenJDK?

First, verify that the JDK installed properly. Run "java -version" and make sure that it reports the version you installed.

Second, we need to know the classpath you used to run the app, and the name of the missing class. Also the location of where you believe the class resides would help.


JBoss In Action
Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 217

Hi,
I am using the java from oracle,i.e Java SE(6).I may have some trouble regarding the classpath though.So please guide me through the correct and precise steps.
Thanks....
Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 217

Hi all,
I just figured out what was going wrong.It was the classpath,which should be
export JAVA_HOME=export JAVA_HOME="/usr/java/jdk1.7.0_02"

after installing JDK 7 and adding this line in /etc/profile i got my classes compiled and executed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java on Fedora 15