Jasypt Users Forum

NoClassDefFoundError displayed when running encrypt.sh

View: New views
1 Messages — Rating Filter:   Alert me  

NoClassDefFoundError displayed when running encrypt.sh

by Nach PL :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried to run encrypt.sh file in cygwin. I used the following command

./encrypt.sh input="this is message" password=MY_PASSWORD verbose=false

I am getting the below error message in cygwin. Please let me know the classpath entries to run this file and how i need to set it.

vmuser@vmware01 /tmp/jasypt-1.5/bin
$ ./encrypt.sh input="this is message" password=MY_PASSWORD verbose=false
Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/J
asyptPBEStringEncryptionCLI
Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptPBEString
EncryptionCLI
        at java.net
.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI.
  Program will exit.