IDEA 7.0.4 under jdk1.6.0u10?

Is it possible to run IDEA under the latest RC of 1.6U10? I've tried setting IDEA_JDK and IDEA_SDK to the jdk1.6.0u10 path but it seems IDEA quietly ignores this request and tries the next sdk it finds. As I deleted the jre folder from my default installation this currently this picks a old 1.5 SDK on my machine and fails with "bad bytecode version" errors. Will I really have to re-install an older 1.6.0u<=7 sdk to run IDEA again?

Was mostly after the font rendering improvements.

6 comments
Comment actions Permalink

Hello Richard,

The simplest way I found was to delete the jre directory and replace it with
a symlink to the jdk1.6.0u10 installation. If you're on windows use junction
(http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx) to create
the symlink.

HTH,
Andrei

RO> Is it possible to run IDEA under the latest RC of 1.6U10? I've tried
RO> setting IDEA_JDK and IDEA_SDK to the jdk1.6.0u10 path but it seems
RO> IDEA quietly ignores this request and tries the next sdk it finds.
RO> As I deleted the jre folder from my default installation this
RO> currently this picks a old 1.5 SDK on my machine and fails with "bad
RO> bytecode version" errors. Will I really have to re-install an older
RO> 1.6.0u<=7 sdk to run IDEA again?
RO>
RO> Was mostly after the font rendering improvements.
RO>


0
Comment actions Permalink

Does IDEA not check it's internal jre path for validity then? I assume the reason IDEA_JDK, IDEA_SDK didn't work is that the latest u10 RC has changed the sdk folder structure and wasn't recognised..?

0
Comment actions Permalink

Hello Richard,

The internal check accepts jdk1.6.0u10, I think, it's 1.7 you'd have to force
a nojvmcheck parameter for.

AFAIK, starting IDEA with idea.exe tries to use the jre in IDEA's install
directory. The IDEA_SDK value is in the idea.bat file and you'd have to start
IDEA using the batch file if you wanted to use those values. If you change
the batch file but start with idea.exe I don't believe the changes are taken
into account.

Pointing the jre to a valid jdk1.6.0u10 install works fine for me, there's
no structure that's confusing IDEA. Another option is to copy (overwrite)
the whole structure inside the jre dir, but this would be just wasted space
(hence the suggestion to use junction).

HTH,
Andrei

RO> Does IDEA not check it's internal jre path for validity then? I
RO> assume the reason IDEA_JDK, IDEA_SDK didn't work is that the latest
RO> u10 RC has changed the sdk folder structure and wasn't recognised..?
RO>


0
Comment actions Permalink

>AFAIK, starting IDEA with idea.exe tries to use the jre in IDEA's install
>directory. The IDEA_SDK value is in the idea.bat file and you'd have to start
>IDEA using the batch file if you wanted to use those values.

hmmm no I don't think so, I have trouble remembering which one to use (so I set both)
and the batch file complains about IDEA_SDK one, but they do normally work for the
executable. I've got 1.5 as my default JVM and was choosing 1.6.0_u5 like this
until I replaced it. Setting the above to 1.5 causes the bad version number errors, so it
seems it'd normally work - but not for 1.6.0u10 (or 7.0 I'd guess)?

Where would you set nojvmcheck? couldn't find mention in the forum - which seems busted
(keeps trying to download .jspa files??)

0
Comment actions Permalink

..Also tried copying the 1.6.0u10 b32 jdk into the idea/jre folder (similar to a symlink) and IDEA won't run at all, no messages - but the idea.bat says its not valid. Is this all because b32 dosn't install a jre?

0
Comment actions Permalink

Ah ah ah forget it - It was me.. somehow I managed to download the jre snapshot and install that into a pre-exiting jdk1.6.0_10 folder (old, old beta). Thought they were being very progressive removing the redundant jre in the sdk.. As I was compiling under 1.5 and running under 1.6.0_u10 didn't notice the lack of compiler and tools. Installed the u10 jdk and IDEA.EXE worked with it right away (via the env vars).. doh!

0

Please sign in to leave a comment.