Built-in JRE

Why I mast run IDEA only with built-in JRE? If I make simlink for SUN JRE in $IDEA_HOME to /usr/java/j2sdk1.4.1_01/jre/ then IDEA will not run. How can I solve this problem?

22 comments

Why I mast run IDEA only with built-in JRE? If I make
simlink for SUN JRE in $IDEA_HOME to
/usr/java/j2sdk1.4.1_01/jre/ then IDEA will not run.
How can I solve this problem?


IDEA currently requires 1.4.1_02 - why should they spend time to patch IDEA to run under older JDK?

Sincerely

Jens Peter Grosen

0

Darova wrote:

Why I mast run IDEA only with built-in JRE? If I make simlink for SUN JRE in $IDEA_HOME to /usr/java/j2sdk1.4.1_01/jre/ then IDEA will not run. How can I solve this problem?



Well, once for all,

WHY DO PEOPLE CARE SOO MUCH ABOUT WHICH JDK SUB-RELEASE IDEA RUNS ON ?

when your project can be compiled and run against any
1.2.x,1.3.x,1.4.x.JDK ??

Edo

0

+$ /usr/java/j2sdk1.4.1_01/jre/bin/java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
$ /home/dar/IntelliJ-IDEA/jre/bin/java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)+
As you can see version of JRE is same. IDEA build 693.
Run with $IDEA_HOME's JRE is OK. But if I move this JRE samewere and create simlink for SUN distribution JRE, on start IDEA says "IDEA is not configured properly. The application should be run with supplied JRE."

0

WHY DO YOU CARE
Java applications(web server on example) run on one instance of JRE and when I start IDEA - it start yet another instance of JRE - it's too mach memory leak. Or explain me purpose of 2 instance of JRE in memory.

0

Edo, I agree. As long as the JRE, IDEA requires, is available on my
platform, why JetBrains should support more JRE's than necessary?

Treating the bundled/required JRE as a core component of IDEA makes it
more clear, because no one asks JetBrains "Why don't you use library
x.y, but x.z?".

Cheers,
Tom

0

Darova wrote:

Or explain me purpose of 2 instance of JRE in memory.


In principle:
Separation of concerns. The IDE is concerned with its own JVM, your app
(or its host appserver) with its own one.
Decoupling sw components invariably requires some more hw ... (*)

In practice:
Fixing the JVM version eases development of a graphically complex swing
apps, ie eventually allows for a cheaper product price!

In any case, you'd end up with two JVM instances in memory, each in its
own OS process.
How much memory do you think you would save by running two JVM instances
of the same exact version, vs. two JVMs of different versions ?

if you have a problem with disk space, then because of (*) ... tough
luck (or bribe the sysadmin if you're under quotas ;-).

Edo

0

Sorry Aurora build(802) requires 1.4.1_02.

Sincerely

Jens Peter Grosen

0

I agree about 2 OS process and stability if one JVM crashed. But my interest is "can or can't" I run IDE with other JRE exept bundled. And if I can, then how.

0

Blah :) Read carefully, I wrote "build 693".

0

In principle java application should be run on all compatible JVM, which is not core component because it is development of SUN (in this case). If all developers will do like this - each application run only with bundled JRE - then how can we run 10 or 20 or more java application on same computer? If you don't agree - explain, please.

0

Darova,

Have you ever tried to create a complex Swing application which would run on
several platforms and all JVMs?

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

Darova wrote:

If all developers will do like this - each application run only with

bundled JRE - then how can we run 10 or 20 or more java application on
same computer?

you may need (10 or 20) x 45MB of disk space !

this is generally not needed for simple apps, but when they get complex
(eg IDEA, JBuilder, Together/J, Weblogic, Websphere, ...) this is
exactly what they do to cut down testing and support requests

Edo

0

Have you ever tried to create a complex Swing application which would run

on

several platforms and all JVMs?


Exactly. My swing app (much less focus sensitive than idea) has some focus
problems under 1.4.1 that aren't there when using 1.4.0.

As I haven't yet had the time to look into the problems, my clients are NOT
allowed to migrate to 1.4.1 (easy to enforce: they only use this java app
:)


Idea is very feature intensive and will -most of the time_ be affected by
swing changes between versions. Having to support several jdk versions will
be a waste of time on developers.

Jetbrains: proceed with aurora features instead of wasting time over jdk
version problems.


0

I agree about 2 OS process and stability if one JVM crashed. But my

interest is "can or can't" I run IDE with other JRE exept bundled.

You can't.


0

No, I don't. I havn't expirience in development of very complex Swing application. On JBuilder 6/7 I change JRE 1.3.1 -> 1.4.1 and it works, but there was same ploblems with Swing component redraw.
But my question is steel same: can I run IDEA with no bundled JRE, and how?

0

But my question is steel same: can I run IDEA with no bundled JRE, and

how?

You can't.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

>You can't.
>...............
>"Develop with pleasure!"

It's pretty :( You havn't choise - problem of proprietary software.
Topic is closed. Thanks for short answer for my questions as JetBrains person.

0

If you want to see the longer version, search the newsgroup archive for
'IDEA & JRE' topic. A pretty long discussion...

"Darova" <jiveadmin@jetbrains.com> wrote in message
news:31404820.1047564652794.JavaMail.jrun@is.intellij.net...

>You can't.
>...............
>"Develop with pleasure!"

>

It's pretty :( You havn't choise - problem of proprietary software.
Topic is closed. Thanks for short answer for my questions as JetBrains

person.


0

This is a good question. I understand why IntelliJ people opted for supplying the JVM with the IDE but on the other hand other intensive java apps don't do that like NetBeans or Eclipse (I know it's not Swing).

I don't like this practice and neither should you. And here is why. Since we're all Java developers we want to see many successful Java apps out there. If every one of those apps installed its own JVM I would pretty soon have a lot of JVMs on my box, some of them exact same versions. This is bad PR for Java in general and goes against the whole concept of having a hardware independent virtual machine where you can write once and run anywhere!

Why not follow the practice of publishing supported JVM(s) and for people that don't follow, no support? Like BEA does with Weblogic.

0

Nedim Cholich wrote:

Why not follow the practice of publishing supported JVM(s) and for people that don't follow, no support? Like BEA does with Weblogic.


This was the case until the middle of the previous EAP.
You won't believe how many people had problems because of wrong JRE version.

I believe that you can still run IDEA with other JRE if it is EXACTLY the same version.

regards,
Dimiter

PS: launching 2 JVM's regardless of the JRE version always creates new copy of the Java
environment. This would be solved in the 1.5 release (cannot remember the JSR).

0

IDEA build 802. JDK/JRE 1.4.1_02 - SUN's rpm package.
In $IDEA_HOME simlink for $JAVA_HOME/jre.
In $JAVA_HOME/jre/lib simlink for $JAVA_HOME/lib/tools/jar.
In $JAVA_HOME/jre/bin simlink for $JAVA_HOME/bin/javac.
Startup script $IDEA_HOME/bin/idea.sh runs OK and IDEA runs well.
And now there is no need to have 2 copies of JRE.

PS. It's running o ASPLinux 7.3. May be IDEA developers will read this example and try to run application as subscribed.

0

>> But my question is steel same: can I run IDEA with no
>> bundled JRE, and how?

You can't.


if you don't happen to find the idea.no.jdk.check property ... i have Aurora #957 running with Sun's j2sdk1.4.2_02-b03 perfectly ;)


0

Please sign in to leave a comment.