• Post Reply Bookmark Topic Watch Topic
  • New Topic

classpath to a war  RSS feed

 
Jaffer Shah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a war file, which has many JSPs and the related class files. One of the class files could encrypt text files. I am trying to use this class file, to encrypt a text file from the war itself. I tried setting the classpath to the war file. Then, when I tried to execute the file, I am getting "No Class Def found" error.

The class files are found in Web-inf\classes of the war.
The encrypt file is found in the package structure:
com.ssit.sc.util.EncryptFile inside the Web-inf\classes.

Can you help me to sort this issue?

Regards,
Jaffer.
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way I know of to do that is

 
Jaffer Shah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Brian...

I will try what you have said.

I have solved the issue, by writing a JSP file, that calls the class file to encrypt any given file. The JSP file accepts any textfile with path and when clicked a button "Encrypt", encrypts the specified file.

Thanx all, who gave this a thought...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!