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.
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.