Alternative JRE using wrong classpath

I've tried to use IntelliJ IDEA 5.0 (been using 4.5 until now),
and tried to use the Use alternative JRE option in the Run/Debug
configurations. But when I use it the classpath given on the
commandline is wrong. It only contains the classes of the selected
module under "Use classpath and JDK of module" and not of all the
modules it depends on. It works fine if I uncheck "Use alternative JRE",
but I want to use this option to run 1.4 classes under 1.5.

What am I doing wrong?

--

- Rene Smit

7 comments
Comment actions Permalink

Hello Rene,

RS> I've tried to use IntelliJ IDEA 5.0 (been using 4.5 until now),
RS> and tried to use the Use alternative JRE option in the Run/Debug
RS> configurations. But when I use it the classpath given on the
RS> commandline is wrong. It only contains the classes of the selected
RS> module under "Use classpath and JDK of module" and not of all the
RS> modules it depends on. It works fine if I uncheck "Use alternative
RS> JRE",
RS> but I want to use this option to run 1.4 classes under 1.5.
RS> What am I doing wrong?

This is a bug in IDEA which has already been fixed, and the fix will be included
in the 5.0.1 build.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Ok, great. Thanks for the quick answer. I'll plug my boss to update our
4.5 license to 5.0(.1) :)

On Tue, 16 Aug 2005 11:49:59 +0000 (UTC), Dmitry Jemerov
<yole@jetbrains.com> wrote:

Hello Rene,

>

RS> I've tried to use IntelliJ IDEA 5.0 (been using 4.5 until now),
RS> and tried to use the Use alternative JRE option in the Run/Debug
RS> configurations. But when I use it the classpath given on the
RS> commandline is wrong. It only contains the classes of the selected
RS> module under "Use classpath and JDK of module" and not of all the
RS> modules it depends on. It works fine if I uncheck "Use alternative
RS> JRE",
RS> but I want to use this option to run 1.4 classes under 1.5.
RS> What am I doing wrong?

>

This is a bug in IDEA which has already been fixed, and the fix will be
included in the 5.0.1 build.

>



--

- Rene Smit

0
Comment actions Permalink

It seems to be fixed in build 3455, but not completely. The output
directories
of the modules it depends on are present now, but not the module libraries.

0
Comment actions Permalink

Hello Rene,

RS> It seems to be fixed in build 3455, but not completely. The output directories
RS> of the modules it depends on are present now, but not the module libraries.

Indeed, the fix included in the build 3455 was not complete. We'll include
the complete fix in a later build.

Thanks for your feedback!

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Indeed, the fix included in the build 3455 was not complete. We'll
include the complete fix in a later build.

>

Thanks for your feedback!


Ok, great :) Would it also be possible to select a configured JDK? I've
read
the same request somewhere else (on JIRA) in response to the fact that the
wrong source files are shown when debugging while this option is used, and
it seems like a good idea.



--

- Rene Smit

0
Comment actions Permalink

Hello Rene,

>> Indeed, the fix included in the build 3455 was not complete. We'll
>> include the complete fix in a later build.
>>
>> Thanks for your feedback!
>>
RS> Ok, great :) Would it also be possible to select a configured JDK? I've
read
RS> the same request somewhere else (on JIRA) in response to the fact that
the
RS> wrong source files are shown when debugging while this option is used,
and
RS> it seems like a good idea.

No, the 5.0.1 build will not include any other changes in this area besides
a fix to the bug causing module libraries not to be included.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.