JDK bundled with Aurora not usable ?

Hi there;

I've been using IDEA for more than one year and a half and must admit that this IDE is wonderful.

I have a question concerning the JRE that is downloadable on the EAP download page, which is to be used when you also download the IDEA zip version. I am developing under Windows 2000, on which I cannot run any installer.

I have noticed that this JRE also contains the javac.exe compiler, which prompts me to believe that this JRE is actually a kind of SDK: I tried to use it as "Target JDK" in IDEA, but each time, I get this message that desperates me: "The directory selected is not a valid JDK home" (I select the %IDEA_HOME%\jre directory).

My questions are:

- how does IDEA decide that a directory is not a valid Java home directory ?

- is it possible (via a little trick) to use the downloadable JRE dedicated to IDEA as a valid JDK ?

Your help would be much appreciated since I cannot develop anymore.

Bests regards,

Edouard

8 comments
Comment actions Permalink

I have noticed that this JRE also contains the javac.exe compiler, which

prompts me to believe that this JRE is actually a kind of SDK

It's not a kinf of jdk. It's a jre with a few files from the jdk added.

Your help would be much appreciated since I cannot develop anymore.


Download the jdk, install and start coding.


0
Comment actions Permalink

I have to admit that your answer does not enlighten that much the situation. I just cannot install anything, that requires modification to the registry, on my machine, and this is the reason why I'd like to use IDEA JRE as a JDK...

From your answer, I understand that the bundled JRE is actually a tricky JRE with some additional resources (like javac) and that IDEA cannot consider it as a JDK. Are you affirmative on that ?

Now, concerning my questions, I still have no answer :

- how does IDEA consider that a given directory is actually a home SDK installation ?

- is it possible to use the bundled JRE as a JDK (via some trick) or not ?

Thank you for your help.

Edouard

0
Comment actions Permalink

Edouard Mercier wrote:

I just cannot install anything, that requires modification to the registry, on my machine,


if so, I think you can't install IDEA - only use the EAP zip.

if I were you, I'd change sysadmin ;)

Edoardo

0
Comment actions Permalink

Edoardo Comar wrote:

Edouard Mercier wrote:

>> I just cannot install anything, that requires modification to the
>> registry, on my machine,


if so, I think you can't install IDEA - only use the EAP zip.

if I were you, I'd change sysadmin ;)


Or, if he has access to another machine where he can install stuff, he
could install the JDK there, zip the directory and copy it across to the
locked-down machine and unzip it there. Should still work without the
registry entries.

Personally, I don't see how anybody can do development work on such a
crippled machine.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

>> Or, if he has access to another machine where he can install stuff, he
could install the JDK there, zip the directory and copy it across to the
locked-down machine and unzip it there. Should still work without the
registry entries.

You're down right Gordon, that's what I intend to do, but I have no other computer at my disposal: I'm in vacacions and do not have access to a Windows machine on which a JDK would be installed. Otherwise, I would zip this install and try to use it (I think that it should work). I have posted a question on Sun forum, in order to get a JDK install via a zip, like they used to do, but did not get any answer. If someone knows where to find such a JDK install, I would be grateful.

IDEA is already installed via the zip, and its JRE also, via the zip. And I cannot become system administrator. I know that my machine is a bit weird, but those are my constraints.

Sorry to insist on that but no one gave a clear answer to my questions! Hope that someone by JetBrain will be able to answer...

Thanks anyway.

Edouard

0
Comment actions Permalink

Hi Edouard,
The JRE bundled with IDEA is intended to be used for running java programs only (namely IDEA). It does have tools.jar since IDEA
requires it and redisribution license allows adding it. We would not include javac.exe into the bundled JRE, but the license
requires us to.
For development you have to use SDK. You can simply copy already installed SDK from another machine and start develop.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0
Comment actions Permalink

Thank you Eugene for your answer. I just want to point out that I'm not a rookie, and that I perfectly know what the bundled JRE is good for. I just wanted a tricky device that enabled me to use it. Concerning the Sun license that forces you to ship the tools.jar file, it enables to make some tricky thing.

It is possible to use the JRE bundled with IDEA as a JDK. The only that you need to do is modify the '.IntelliJIdea\config\options\jdk.table.xml' file (that gathers IDEA JDK configurations) and add the following XML element - where %IDEA_HOME% is the home path of your IDEA:

]]>

However, I still do not know how IDEA recognizes that a given path is actually a home JDK directory.

Now, concerning the installation of the JDK from a zip (non intrusive), I have a solution for Windows users. The Installshield setup can be open by WinZip, and from there you get a data1.cab file, which contains the necessary resources for a JDK. However, this is not a standaard Microsoft cabinet file, despite of its extension, so you need a utility command line program that decompresses it (i6comp.exe is your man).

0
Comment actions Permalink

>However, I still do not know how IDEA recognizes that a given path is actually a home JDK directory

The JDK home directory has layout, that is different from the JRE directory. In order for IDEA to recognize the directory as a JDK
home (and fetch neccesary files from it), you have to duplicate JDK home structure on the disk. However, because the bundled JRE
lacks some files, you may have problems. That's why I suggested to simply copy already installed JDK to avoid potential problems and
save time.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0

Please sign in to leave a comment.