NoClassDefFoundError javax.crypto.spec.secretkeyspec from console
803782Oct 15 2010 — edited Oct 15 2010Hello, I have done a program in eclipse, using the JCE to encrypt and decrypt some messages using AES. In the eclipse graphical interface it works perfect, but if i run it from console, i mean like this
java -jar org.eclipse.osgi_3.6.0.v20100517.jar -console -configuration config_path -clean -dev file:dev.properties_path
It works but throw the exception
NoClassDefFoundError javax.crypto.spec.secretkeyspec
I think there must be something wrong with the java path because JCE is already inside the jre environment. I need to know how can i indicate in the command line, the right path to the JCE
I am working on windows
Thank you!