Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2012, 07:00 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 3
Rep: 
|
ClassNotFoundException
Hi,
I am running files reading java class but encountered error:
java.lang.ClassNotFoundException
Is there a way to overcome this error? I am new to using java in linux.
Thanks for any help in advance.
Regards
Michelle
|
|
|
04-25-2012, 07:14 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,358
|
sure, there is a way, but we need more info. At least the full error message, but would be better to explain something about your source files also.
|
|
|
04-25-2012, 10:29 PM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 3
Original Poster
Rep: 
|
ClassNotFoundException
Hi
I am attaching file with error message so it makes clearer what the problem is. Also info on java jdk that I have installed on linux. Hope to get more detail info on how to overcome this problem.
Thanks
|
|
|
04-26-2012, 01:50 AM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Obviously no JAVA_PATH or CLASS_PATH are present in your environment.
Try manually setting them.
|
|
|
04-26-2012, 08:46 PM
|
#5
|
LQ Newbie
Registered: Apr 2012
Posts: 3
Original Poster
Rep: 
|
Tried setting Classpath & Java-Home as below, the same errors still appear. Hope can get some help on overcoming it. Thanks.
export CLASSPATH=/home/tools/opennlp/maxent/
export JAVA_HOMe=/usr/bin/java
|
|
|
04-28-2012, 11:48 AM
|
#6
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,358
|
if you have got the same error your CLASSPATH is still not set correctly. You would better read some documents on it (how to set up a java environment) . Maybe you need to download/install some packages also. Unfortunately the information you gave is not sufficient to solve it from here.
|
|
|
All times are GMT -5. The time now is 04:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|