Exception

Hi All,

I got the following Exception.

Exception in thread "main"java.lang.NoClassDefFoundError

at java.lang.Class.forName0(Native method)

at java.lang.Class.forName(Class.java:164)

.

.

.

at com.x.c.ui.ConfDetails.<init>(ConfDetails.java:54)

I searched in google and it shows that my class path is not correct.I am working in solaris OS. I set the path correctly.

export PATH=home/abc/jdk1.5.0_10/bin:/usr/sbin:/usr/bin

If anybody knows please help me.

Thanks.

[543 byte] By [Jas_rose_Discussiona] at [2007-11-27 10:30:51]
# 1

PATH != CLASSPATH

georgemca at 2007-7-28 18:05:28 > top of Java-index,Java Essentials,Java Programming...
# 2

In your computer enviornment variables create the following:

JAVA_HOMEC:/home/abc/jdk1.5.0_10

and change your enviornment variable path as follows:

PATH=%JAVA_HOME%/bin;%JAVA_HOME%/lib

Note use semicolon (as shown above) and not colon as shown in your example.

Next, open a dos window and type 'java', it should return with various pieices of infomration, and no error message. If so, your jdk classpath is set correctly.

George123a at 2007-7-28 18:05:28 > top of Java-index,Java Essentials,Java Programming...
# 3

Hi,

Thanks for reply.I am working in solaris environment.It shows JAVA_HOME not defined.

What to do.

Jas_rose_Discussiona at 2007-7-28 18:05:28 > top of Java-index,Java Essentials,Java Programming...
# 4

I'm not familiar with solaris. My instructions for for WindowsXP, but the concept should be simliar.

George123a at 2007-7-28 18:05:28 > top of Java-index,Java Essentials,Java Programming...