running java program under previous JDK release

I have a program that requires jdk 1.3 or 1.4 to run. I have 1.4 and 1.5 installed on my system, but the program detects my jdk version as 1.5 and will not run. How do I tell the program to run under 1.4?
[211 byte] By [codefreak81a] at [2007-10-2 1:20:24]
# 1

You will likely want to look at your Path environment variable and maybe your JAVA_HOME environment variable. You could change those to point to your 1.4 environment.

A simpler answer might be to create a shell/batch file to set those variables first and then run the program. That way it wouldn't be as much of a hassle switching back and forth.

stdunbara at 2007-7-15 18:41:53 > top of Java-index,Administration Tools,Sun Connection...
# 2

I tried changing the PATH to look at the 1.4 instead of the 1.5. The message keep getting is:

C:\java -jar j:\RAWTGui.jar

Remote-AWT cannot start.

The JK version in the User Station

is incompatible with the Remote-AWT version.

User Station JDK version is1.5.0_04

Required JDK versions are 1.3 1.4

I ran this java command while my PATH statement was set to the 1.4.2_09 jdk.

codefreak81a at 2007-7-15 18:41:53 > top of Java-index,Administration Tools,Sun Connection...
# 3
What does:java -versionecho %JAVA_HOME%show?
stdunbara at 2007-7-15 18:41:53 > top of Java-index,Administration Tools,Sun Connection...
# 4
Rather weird program if it won't run on the (fully backwards compatible) 1.5 runtime.Sounds like a hard check to prevent older versions which wasn't implemented properly, contact the supplier of that software and file a bug report.
jwentinga at 2007-7-15 18:41:53 > top of Java-index,Administration Tools,Sun Connection...
# 5
> What does:> > java -version> echo %JAVA_HOME%> > show?java -version shows that the current version is 1.5.0_04?echo %JAVA_HOME% shows.... well, "%JAVA_HOME%" not sure what the purpose of the echo was, though...?
codefreak81a at 2007-7-15 18:41:53 > top of Java-index,Administration Tools,Sun Connection...