Connecting Tech Pros Worldwide Forums | Help | Site Map

Cross Compilation Problem in JDK 1.5 environment

Newbie
 
Join Date: Nov 2007
Posts: 17
#1: Nov 25 '08
Hi all,

I tried to cross compile the java files from 1.5 to 1.3 in JDK 1.5 environment by using the below command

javac -target 1.3 *.java.


But it showing an error message Like cross compilation is not possible..

is it possible to cross compile the files (1.3 version) in JDK1.5 environment..
Kindly suggest me

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Nov 25 '08

re: Cross Compilation Problem in JDK 1.5 environment


Quote:

Originally Posted by akaley View Post

Hi all,

I tried to cross compile the java files from 1.5 to 1.3 in JDK 1.5 environment by using the below command

javac -target 1.3 *.java.


But it showing an error message Like cross compilation is not possible..

is it possible to cross compile the files (1.3 version) in JDK1.5 environment..
Kindly suggest me

Java 1.3 is long dead; it doesn't even smell funny anymore. There were lots of enhancements in 1.5 that didn't exist in 1.3 (generics, enhanced for loop, wrappers for the primitives, a lot of collection stuff etc.) so they can't be compiled to version 1.3. You either have to work around those enhancements or forget all about it.

kind regards,

Jos
Reply


Similar Java bytes