LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ClassNotFoundException (https://www.linuxquestions.org/questions/linux-newbie-8/classnotfoundexception-941655/)

michelle hiong 04-25-2012 07:00 AM

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

pan64 04-25-2012 07:14 AM

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.

michelle hiong 04-25-2012 10:29 PM

ClassNotFoundException
 
2 Attachment(s)
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

Tinkster 04-26-2012 01:50 AM

Obviously no JAVA_PATH or CLASS_PATH are present in your environment.

Try manually setting them.

michelle hiong 04-26-2012 08:46 PM

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

pan64 04-28-2012 11:48 AM

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:14 PM.