If you're going to cross-compile, you really need to go whole-hog and use the "target", "bootclass", and "extdirs" options. See:

http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/javac.html#crosscomp-options

and:

http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/javac.html#crosscomp-example

Karr, David wrote:
Perhaps a "-target 1.2" option should be specified on our "javac"
targets?  I would guess the number of issues with down-compilation from
1.4 to 1.2 is very small, but if we have one in our code base, the
compiler won't tell us about it.


-----Original Message-----
From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]


-----Original Message-----
From: Martin Cooper [mailto:[EMAIL PROTECTED]

"Ted Husted" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Our installation page says our dependency is J2SE 1.2 or later.

Does that mean I should compile the binary distribution

under the latest


J2SE 1.2, or should I use the latest J2SE 1.4?

I have been building the releases using J2SE 1.4 for some time now, and I would recommend sticking with that. Going with 1.4 ensures we get

the


benefits of the latest compiler improvements. The
compatibility issue is
with the JVM rather than the compiler - we want to be able to
run on J2SE
1.2, but we don't need to build the releases with that.

I don't believe this is correct. I think it actually is the COMPILER

that


can cause a compatibility issue. There is an article over at Java

World


that details this problem. The first example makes it clear.

http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to