F
Froggy
Alrighty, I am (still) new to all this Java stuff, and it is causing
me a lot of grief. I am trying to implement a class that to
authenticate web users. I originally had the class as a part of the
webpage itself (not a class, but code within doPost) and it worked
fine. I could import and use the JDBC stuff and perform queries and
whatnot. As soon as I seperated it into its own class, everything
goes beserk:
java.lang.NoClassDefFoundError: request/tools/Login
Now, when I compile Login.java and my webpage, I include everything in
my class path:
...\lib\jxl.jar;..\lib\
The lib folder contains javx, jbdc and everything else I use, and I
can import and use them perfectly. However, mine doesnt work.
I actually took my Login.java file from something else that already
worked before as a class, until I got my hands on it. I even copied
the contructor and everything.
Basically, could someone:
1) explain to me how the compilation and execution of Java servlets
works.
2) explain to me why I am getting and NoClassDefFoundError
3) fix it for me.
Thanks
-Pieter
me a lot of grief. I am trying to implement a class that to
authenticate web users. I originally had the class as a part of the
webpage itself (not a class, but code within doPost) and it worked
fine. I could import and use the JDBC stuff and perform queries and
whatnot. As soon as I seperated it into its own class, everything
goes beserk:
java.lang.NoClassDefFoundError: request/tools/Login
Now, when I compile Login.java and my webpage, I include everything in
my class path:
...\lib\jxl.jar;..\lib\
The lib folder contains javx, jbdc and everything else I use, and I
can import and use them perfectly. However, mine doesnt work.
I actually took my Login.java file from something else that already
worked before as a class, until I got my hands on it. I even copied
the contructor and everything.
Basically, could someone:
1) explain to me how the compilation and execution of Java servlets
works.
2) explain to me why I am getting and NoClassDefFoundError
3) fix it for me.
Thanks
-Pieter