cancel
Showing results for 
Search instead for 
Did you mean: 

replaceAll() error when run the program

Former Member
0 Kudos

Hi everyone, I am developing an application to replace one string by another string with the method replaceAll() or replaceFirst() on NWDS v2.0.14.

I have changed the Java Build Path from jdk1.3 to j2sdk 1.4.2_10 in order to make those two methods available.

There is no problem in build and deployment. But when execute this application I get an error telling there is no such method. When I comment out the line with the method in the code I can run this application without any error. I am sure the error is caused by the method.

Can you tell me how to fix this problem? Should jdk of Java engine on server be upgraded?

Any hint will be appreciated.

Kind regards.

Wang

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As you use NWDS 2.0.14 I guess you also run SP14 of your engine, so your engine should already run on top of JDK 1.4.

You can add a line like this to your code to verify it:

System.getProperty("java.version")

Regards,

Dieter

Former Member
0 Kudos

Hi Dieter, thanks for reply. I have got the Java version. It is version1.3.1_13. That is the reason of getting the error.

Thanks for help.

Kind regards.

Wang