Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in WEB-INF/lib  RSS feed

 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Tomcat5.5,and have a application named myapp.
There are two packages under the myapp/WEB-INF/classes.The classes in "servlet" package extends HttpServlet, they will import another package named "java_c" and use the class in java_c.
Now I want to make the java_c package into a jar file, and remove the java_c package in the WEB-INF/classes/, put the jar file in the WEB-INF/lib/.But after I did that, there is a exception that the class in the java_c package can't be found.
Why?What should I do?
Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66185
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should work if you've constructed the jar file correctly.
 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Should work if you've constructed the jar file correctly.


I use eclipse to make the jar file without warning and error.
 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem has been solved,thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!