[lug] Help J2EE in Fedora
Hi
I installed the required things for working in J2EE
on Fedora Core 4 I had never worked in J2EE platform I worked only on
Java simple programming was what I had done so no problem with regards
to my JAVA syntax I am having a No Class Definition Found Error
which is probably due to misconfigured $PATH variable
previously I had configured this and every thing was working fine
unless I downloaded
j2eesdk-1_4_02_2005Q2-linux.bin
from Sun's Site I started the localhost it did it well
http://localhost:8080 was running
it was only when I tried to run a simple Java Programm Hello World
which is just nothing and it gave following errors
Exception in thread "main" java.lang.NoClassDefFoundError: welcome.java
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: welcome.java not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
My PATH variable in .bash_profile is
PATH=$PATH:$HOME/SUNWappserver/bin:$HOME/bin
Now the problem here is that there ae two bin directories in the
Installation Directory of J2EE
one is the bin and inside this I have another directory which has jdk
name and a bin is here it should use this bin to simply run the
programm but it does not do so
I tried to go in this directoy and make it run but here also
I got the same error what problem should I lookl
0 Comments:
Yorum Gönder
<< Home