I am working on chapter 17 of the Professional Java Server Programming
book and haven't had any
problems up to this point, but I am having a hard time compiling and
running packages. I typed in the shell - start java
businesslogic.DefectServer and java ui.defectform files exactly from the
book,
but the program doesn't work. I put the Line and Point files in the
directory c:\tesis\asf\build_tables;c:\tesis\asf\bugtrackerapp; and I have
windows xp
c:/j2sdk1.4.0_01 and C:\Program Files\Apache Group\Apache2
The programs seem to compile.when I run the command javac build_tables
buildbugtracker_access.sql
the compiler doesn't return any errors, just errors pointed in book and
make file .class but when I run
the program with start java businesslogic.DefectServer i get nothing (just
a window open and close suddenly)
and when I run java ui.defectform I get the dreaded Exception in
thread "main"
java.lang.NoClassDefFoundError
I don't understand why this happens. I set my classpath Environment
variable, I run it with the -classpath option, I have tried almost every
possible command line possibility but the program won't run. What
confuses me most is that it compiles.
I dont know what kind of classpath have i to define???
Can anybody tell me what is happening?
Thanks,