This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Java on Fedora 15 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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: 201

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: 5536

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: 201

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: 201

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Java on Fedora 15
 
Similar Threads
Fedora or SUSE for apache/tomcat?
installing java on fedora
Invalid Memeory Class
java on feodra
Swing application font issue