How to run java apps under 1.4 but with java_home to 1.5?
Hello!I trying to start a standalone java application and just would like it to run in 1.4 since all my code is compiled with:
<javac srcdir="src/" destdir="distribution/" debug="on" source="1.4" target="1.4">
I have tried:
[fredrik@linux_2 namesjavaapplication]$ java -version:1.4 -jar namesjavaapplication.jar
Unable to locate JRE meeting specification "1.4"
[fredrik@linux_2 namesjavaapplication]$ java -Djava.home=/home/fredrik/Applications/bea/jrockit81sp6_142_10/jre -version:1.4 -jar namesjavaapplication.jar
Unable to locate JRE meeting specification "1.4"
[fredrik@linux_2 namesjavaapplication]$ java -Djava.home=/home/fredrik/Applications/bea/jdk142_11/jre -version:1.4 -jar namesjavaapplication.jar
Unable to locate JRE meeting specification "1.4"
But as you can see it do not manage to find 1.4. I use jre:s installed with Bea Weblogic 8.1.6. To me that should be 1.4??
My JAVA_HOME is already set to 1.5, and I would like to have it like that.
echo $JAVA_HOME
/home/fredrik/Applications/Java/Java_ee_sdk_5-04/jdk
Correct me if i'm wrong, but I think it should be possible to start it like this.
So if you see anything strange please let me know.
Best regards
Fredrik
