Jasypt Users Forum

jasypt cli issue

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

jasypt cli issue

by Srinivasa, Kadiyala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 

Srinivasa, Kadiyala

Re: jasypt cli issue

by Srinivasa, Kadiyala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello ..
Some one can help me?

Thanks

skadiy000 wrote:
Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 
Srinivasa, Kadiyala

Re: jasypt cli issue

by bornleo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


skadiy000 wrote:
Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 

Just a food for thought try unzipping the jar file and check if it has the specified class in it.


Leo

Re: jasypt cli issue

by Srinivasa, Kadiyala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Leo

Thanks for the reply. I have already checked that and the JAR has the file.

Any more ideas?

Appreciate help.
bornleo wrote:
skadiy000 wrote:
Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 

Just a food for thought try unzipping the jar file and check if it has the specified class in it.


Leo
Srinivasa, Kadiyala

Re: jasypt cli issue

by Srinivasa, Kadiyala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is fixed.

I just did :

export JASYPT_CLASSPATH=~/Downloads/icu4j-4_0.jar

skadiy000 wrote:
Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 
Srinivasa, Kadiyala

Re: jasypt cli issue

by Srinivasa, Kadiyala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is fixed.

I just did :

export JASYPT_CLASSPATH=icu4j-4_0.jar

skadiy000 wrote:
Dear All

 

When I am using with command line in Unix, I am getting the following error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error issue.

 

Appreciate help.

 

Thanks

 
Srinivasa, Kadiyala

Re: jasypt cli issue

by dfernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

+------------------------+
  Jasypt Users List      
  http://www.jasypt.org 
+------------------------+


Hello,

Yours is an adequate solution. From version 1.5 on, jasypt does not include icu4j's jars as a part of its standard distribution (a necessary step due to icu4j's enormous size and the fact that it is not a required library if you are using Java 1.6). Because of this, it must be added manually to the JASYPT_CLASSPATH variable (honored by all the CLI scripts) in order for CLI utils to be run in Java 1.5 or older versions.

Currently, site documentation only mentions JASYPT_CLASSPATH as a means to add salt generators or security providers. I will update it so that it includes this other use, and also add a FAQ entry.

Regards,
Daniel.


skadiy000 wrote:
+------------------------+
  Jasypt Users List      
  http://www.jasypt.org  
+------------------------+

The problem is fixed.

I just did :

export JASYPT_CLASSPATH=icu4j-4_0.jar


skadiy000 wrote:
  
Dear All

 

When I am using with command line in Unix, I am getting the following
error:

 

 

bash-3.00$ ./encrypt.sh input="test" password=test

 

----ENVIRONMENT-----------------

 

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03

 

 

 

----ARGUMENTS-------------------

 

input: test

password: test

 

 

 

----ERROR-----------------------

 

java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer

 

 

I have copied the icu4j-3_8_1.jar to bin and it did not fix the error
issue.

 

Appreciate help.

 

Thanks

 



    

  


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
jasypt-users mailing list
jasypt-users@...
https://lists.sourceforge.net/lists/listinfo/jasypt-users

Re: jasypt cli issue

by bornleo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Good to know that issue is solved and thanx for posting the solutuon.
Thanx  Daniel for explaining it.

Leo.

dfernandez wrote:
+------------------------+
  Jasypt Users List      
  http://www.jasypt.org 
+------------------------+


Hello,

Yours is an adequate solution. From version 1.5 on, jasypt does not
include icu4j's jars as a part of its standard distribution (a necessary
step due to icu4j's enormous size and the fact that it is not a required
library if you are using Java 1.6). Because of this, it must be added
manually to the JASYPT_CLASSPATH variable (honored by all the CLI
scripts) in order for CLI utils to be run in Java 1.5 or older versions.

Currently, site documentation only mentions JASYPT_CLASSPATH as a means
to add salt generators or security providers. I will update it so that
it includes this other use, and also add a FAQ entry.

Regards,
Daniel.


skadiy000 wrote:
> +------------------------+
>   Jasypt Users List      
>   http://www.jasypt.org 
> +------------------------+
>
> The problem is fixed.
>
> I just did :
>
> export JASYPT_CLASSPATH=icu4j-4_0.jar
>
>
> skadiy000 wrote:
>  
>> Dear All
>>
>>  
>>
>> When I am using with command line in Unix, I am getting the following
>> error:
>>
>>  
>>
>>  
>>
>> bash-3.00$ ./encrypt.sh input="test" password=test
>>
>>  
>>
>> ----ENVIRONMENT-----------------
>>
>>  
>>
>> Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 1.5.0_07-b03
>>
>>  
>>
>>  
>>
>>  
>>
>> ----ARGUMENTS-------------------
>>
>>  
>>
>> input: test
>>
>> password: test
>>
>>  
>>
>>  
>>
>>  
>>
>> ----ERROR-----------------------
>>
>>  
>>
>> java.lang.NoClassDefFoundError: com/ibm/icu/text/Normalizer
>>
>>  
>>
>>  
>>
>> I have copied the icu4j-3_8_1.jar to bin and it did not fix the error
>> issue.
>>
>>  
>>
>> Appreciate help.
>>
>>  
>>
>> Thanks
>>
>>  
>>
>>
>>
>>    
>
>  


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
jasypt-users mailing list
jasypt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasypt-users