Cross Compilation problem
hello,
i have java 1.5 but im trying to compile a specific program to run on 1.4.
im useing this code:
javac -target 1.4 -bootclasspath "C:\Program Files\Java\j2re1.4.2_12\lib\rt.jar" -extdirs "" LightBulbCircuit3.java
but i get this error :
javac: target release 1.4 conflicts with default source release 1.5
any help on what to do?
[377 byte] By [
sergio87a] at [2007-10-3 9:06:51]

This si just a guess but it appears you are running on windows with JDK 1.5 installed but you want to build the LBC3 program with target of 1.4 . If so, I would try this.javac -target 1.4 LightBulbCircuit3.javaIf this does not wor please provide a java -version
javac -target 1.4 LightBulbCircuit3.javastill gives me the error
javac: target release 1.4 conflicts with default source release 1.5
java -version gives:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
in my "java" folder.. i had a jre1.5.0_06 folder and a jdk1.5.0_06
so i downloaded the j2re1.4.2_12 , put it in the same "java folder" and in my -bootsclasspath referenced the rt.jar file in the lib folder of the j2re1.4.2_12
i only want to compile specific programs to run on a different computer that has 1.4
any idea on how to do that? thanks