Wednesday, December 5, 2001 06:25 PM
This shows that you have the package BaseWep.beans.session.city
in your classpath. This normally happens when having this package in the directory/folder from where you are compiling the bean into this package, and because of having current directory (.) in CLASSPATH this error is produced.
Now the solution is simple, make a sub-folder (e.g build) in the folder where you have that package, and compile the bean giving -d build
in javac command (e.g javac *.java -d build)
, you can now make the meta-inf folder in that build
folder and produce the .jar file(s) within that folder.
For claraficaion here's the hierarchy :
|---- all .java files
|---- all required packages (BaseWep in your case )
|--- meta-inf (containing deployment descriptor)
|--- BaseWep (package containing compiled .class files)
|--- .jar file(s) will be created here
Hope this will help.