Compile with one JDK, run with another
Hi,
Would it be possible to easily compile my IDEA project with JDK 1.5 and
run/debug it with JDK 1.4.2? The reason is, that I want to use Generics and
compile with the flag "-target jsr14", which seems to create Java
1.4-compatible class files.
Tom
Please sign in to leave a comment.
Any idea from JetBrains?
Tom
Probably this will be implemented as a side effect of j2me support, though
I'm not quite sure.
Eugene.
"Thomas Singer (MoTJ)" <nomail@nodomain.com> wrote in message
news:ci6bod$5rj$1@is.intellij.net...
>
So nothing in near future?
Tom
Hello, Thomas!
You wrote on Tue, 14 Sep 2004 11:24:43 +0200:
TSM> So nothing in near future?
AFAIK, -source 1.5 -target 1.4 will be disabled in JDK 5...
But it work in generics 2.2...
Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru
"-source 1.5 -target 1.4" does not work, but (at least with the rc)
"-source 1.5 -target jsr14" works.
Tom
Maybe I'm missing some obvious problems, but can't you use an ANT script
to build your project and just use IDEA to run/debug it?
Bas
Thomas Singer (MoTJ) wrote:
Hmm, I never tried it. I would need to tell IDEA to use 1.5-compatible
source and use a JDK 1.4 for running/debug...
Tom
Hello, Thomas!
You wrote on Tue, 14 Sep 2004 11:54:02 +0200:
TSM> "-source 1.5 -target 1.4" does not work, but (at least with the rc)
TSM> "-source 1.5 -target jsr14" works.
Waw... :) It is official? :)
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru
Hello, Thomas!
You wrote on Tue, 14 Sep 2004 12:31:50 +0200:
TSM> Hmm, I never tried it. I would need to tell IDEA to use
TSM> 1.5-compatible source and use a JDK 1.4 for running/debug...
BTW, maybe such option is for debug. Something like forcing classing JVM?
Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru
No, but it works.
Tom