How to change jvm of webmethods?

Thank you James

I am using webMethods6.0.1

I did the following steps
1.Changed the JAVA_HOME in environment variables.
2.Changed the path in environment variables.
3.Changed JAVA_DIR to current path of 1.4 in webMethods6\IntegrationServer\bin\server.bat
4.Changed all the JAVA_DIR in every bat file to current path of 1.4 which point to 1.3
5.Copyed tools.jar of Sun1.4.2 to webMethods6\IntegrationServer\lib\jars
6.Restart the server

And I write a method of JDK1.4 to test the JVM version:

String test = “abcdefghijk”;
String result = test.subSequence(0,3).toString();
util.Log.log(“result====” + result);

Now the result is the webMethod can compile the code,but can’t run it.

And the Help>Support Information is:

Developer Environment Settings:
Version: 6.0.1 (425)
Updates: ID_6-0-1_SP1
SSL: Strong (128-bit)
Plug-Ins: Connection Data PlugIn
Listener PlugIn
Flat File Schema plug-in;Version 6.0.1
Flat File Dictionary plug-in;Version 6.0.1
Flat File Schema
Flat File Dictionary
Developer Classpath: C:\Program Files\webMethods6\Developer\updates\ID_6-0-1_SP1.jar;C:\Program Files\webMethods6\Developer\lib\developer.jar;C:\Program Files\webMethods6\Developer\lib\client.jar;C:\Program Files\webMethods6\Developer\lib\ite3.jar;
Java Version: 1.4.1_02 (48.0)
Java Vendor: Sun Microsystems Inc.
Java Home: C:\Works\Dev\j2sdk1.4.1\jre
Java Classpath: C:\Works\Dev\j2sdk1.4.1\jre\LIB\rt.jar;C:\Works\Dev\j2sdk1.4.1\jre\LIB\i18n.jar;C:\Program Files\webMethods6\Developer\LIB\mail.jar;C:\Program Files\webMethods6\Developer\LIB\proxy.jar;C:\Program Files\webMethods6\Developer\LIB\ssl.jar
OS: Windows XP
OS Platform: x86
OS Version: 5.1
Current User: yinyinha
Working Dir: C:\Program Files\webMethods6\Developer
Locale: zh_CN

Server Environment Settings for ‘localhost:5555’:
Version: 6.0.1 (425)
Updates: IS_6-0-1_SP2;TNS_6-0-1_SP1
Server Classpath: C:\Program Files\webMethods6\IntegrationServer\updates\IS_6-0-1_SP2.jar


Java Version: 1.3.0 (46.0)
Java Vendor: IBM Corporation
Java Home: C:\Program Files\webMethods6\IntegrationServer\jvm
Java Classpath: ;C:\Program Files\webMethods6\IntegrationServer\jvm\lib\rt.jar;C:\Program Files\webMethods6\IntegrationServer\jvm\lib\i18n.jar;C:\Program Files\webMethods6\IntegrationServer\lib\proxy.jar;
OS: Windows 2000
OS Platform: x86
OS Version: 5.1
Current User: SYSTEM
Working Dir: C:\Program Files\webMethods6\IntegrationServer
Locale: zh_CN

It seems the Server Environment didn’t change to 1.4, I think it’s the key.

Do you know how to solve it?