Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

classpath to a war

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic