• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query regarding WEB-INF\classes folder

 
vikas sharmaa
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
suppose i have a java file name com\Test.java where com is the package name. now where we put our Test.class file for tomcat server. under WEB-INF\classes\ folder or WEB-INF\classes\com\ folder. Please guide me.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on package declaration of the class file itself.
 
vikas sharmaa
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke,

does it mean that i need to check whether package declaration exists in the .class file using decompiler?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't have the java source of it, then yes you need to decompile it. The path of the file in the classpath must match the package declaration.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic