IDEA JDK 5 debugging

Has anyone run idea with JDK 5.0, and if so is the debugger working for
you, and did you have to do anything special to make it work? (I am on
OSX, but wanted to know for anyone running JDK 5)

Right now when starting the debugger I am getting a
ClassNotFoundException: com.sun.tools.jdi.SocketTransport, and I
thought this was in rt.jar which exists in JDK 5 on the Mac, but it
seems that in fact this class is not there... so a little confused if I
should be reporting this as a major problem to Apple, or if this is
something that JetBrains needs to deal with.

Thanks
R

20 comments
Comment actions Permalink

Yes, Ive been running Idea under JDK1.5 for a couple of months now. It cores now and again (especially builds 3281 and 3290), but I can manage.

You need to copy the tools.jar from a 1.4.2 distribution into your JDK1.5/lib directory.

Nick

0
Comment actions Permalink

In article <27739233.1113575774970.JavaMail.itn@is.intellij.net>,
Nick Pratt <no_mail@jetbrains.com> wrote:

Yes, Ive been running Idea under JDK1.5 for a couple of months now. It cores
now and again (especially builds 3281 and 3290), but I can manage.

You need to copy the tools.jar from a 1.4.2 distribution into your JDK1.5/lib
directory.


I remembered something like that being discussed, but could not find it.
Thanks much. Let's see if this works for OSX as well then.

R

0
Comment actions Permalink

Seems the issue with OSX is going to be hairier. We don't have a
tools.jar, and the particular class file we need is in classes.jar which
contains every class and it's mother. So either I have to extract the
classes I need into a self made tools.jar for OSX, or I'm just gonna
have to forget running IDEA with JDK5 until JetBrains has an impl which
works correctly with JDK5. So I'll pick the later. I wanted to run all
of idea with JDK 5 out of curiosity, not because it's going to give me
anything specific. I can compile with JDK 5 and I get the features I am
interested to learn just fine so I don't really care that much.

Thanks
R

0
Comment actions Permalink

Thanks Robert, that's fixed.
They (I wonder why) renamed SocketTransport to SocketTransportService and
SharedMemoryTransport to SharedMemoryTransportSerivce. Those classes were
loaded by reflection API (this is indended way to work with them) thus we
had to check for JDK version and load other classes if it is 1.5.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Seems the issue with OSX is going to be hairier. We don't have a
tools.jar, and the particular class file we need is in classes.jar
which contains every class and it's mother. So either I have to
extract the classes I need into a self made tools.jar for OSX, or I'm
just gonna have to forget running IDEA with JDK5 until JetBrains has
an impl which works correctly with JDK5. So I'll pick the later. I
wanted to run all of idea with JDK 5 out of curiosity, not because
it's going to give me anything specific. I can compile with JDK 5 and
I get the features I am interested to learn just fine so I don't
really care that much.

Thanks
R



0
Comment actions Permalink

Its fixed, as in I will no longer have to copy tools.jar from 1.4 in to my 1.5 JDK dir?

Nick

0
Comment actions Permalink

Yep, right.
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Its fixed, as in I will no longer have to copy tools.jar from 1.4 in
to my 1.5 JDK dir?

Nick



0
Comment actions Permalink

Yep, right.
-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


Included on the next public build? And oh, this means that running IDEA under JRE 1.5 will be supported by JetBrains, or is this just a friendly fix to those of us trying to do it?

Besides debugging, there used to be a couple of issues about running with a 1.5 JRE, most having something to do with a change in JTable. Roman Dawdkin found most of them a while ago, search the forums :P

0
Comment actions Permalink

We do not support it officially. Still. Yet we'd like to ensure the transition
will be as smooth as possible when we do. Thus fixing those issues that prevent
anyone from using 1.5 based IDEA worth fixing.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>> Yep, right.
>> -


>> Maxim Shafirov
>> http://www.jetbrains.com
>> "Develop with pleasure!"

Included on the next public build? And oh, this means that running
IDEA under JRE 1.5 will be supported by JetBrains, or is this just a
friendly fix to those of us trying to do it?

Besides debugging, there used to be a couple of issues about running
with a 1.5 JRE, most having something to do with a change in JTable.
Roman Dawdkin found most of them a while ago, search the forums :P



0
Comment actions Permalink

Awesome {:-)
Thanks

0
Comment actions Permalink

We do not support it officially. Still. Yet we'd like
to ensure the transition
will be as smooth as possible when we do. Thus fixing
those issues that prevent
anyone from using 1.5 based IDEA worth fixing.


Thanks, that's exactly what I was expecting to hear. There are a couple of known problems when running with a 1.5 JRE, and I haven't reported them so far. Now, next time I run into a problem that seems to be caused by the new JRE, I will enter a JIRA bug ;)

0
Comment actions Permalink

With build 3296, Weblogic debugging does not work when running IDEA with jdk
1.5. It says it can't find class com.sun.tools.jdi.SocketTransportService

"Nick Pratt" <no_mail@jetbrains.com> wrote in message
news:27739233.1113575774970.JavaMail.itn@is.intellij.net...

Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
cores now and again (especially builds 3281 and 3290), but I can manage.

>

You need to copy the tools.jar from a 1.4.2 distribution into your
JDK1.5/lib directory.

>

Nick



0
Comment actions Permalink

In article <d45kef$t7j$1@is.intellij.net>, "Brad" <brad@somewhere.com>
wrote:

With build 3296, Weblogic debugging does not work when running IDEA with jdk
1.5. It says it can't find class com.sun.tools.jdi.SocketTransportService

"Nick Pratt" <no_mail@jetbrains.com> wrote in message
news:27739233.1113575774970.JavaMail.itn@is.intellij.net...

Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
cores now and again (especially builds 3281 and 3290), but I can manage.

>

You need to copy the tools.jar from a 1.4.2 distribution into your
JDK1.5/lib directory.

>

Nick


Did you copy your tools.jar from 1.4.2 into JDK 5.0/lib? If so remove
it you need to have a clean JDK 5 install.

R

0
Comment actions Permalink

I already removed it but I wonder if it caches the jdk setup somehow.

"Robert S. Sfeir" <robert@codepuccinoNOSPAM.com> wrote in message
news:robert-A8C63B.10444420042005@mail.intellij.net...

In article <d45kef$t7j$1@is.intellij.net>, "Brad" <brad@somewhere.com>
wrote:

>
>> With build 3296, Weblogic debugging does not work when running IDEA with
>> jdk
>> 1.5. It says it can't find class com.sun.tools.jdi.SocketTransportService
>>
>> "Nick Pratt" <no_mail@jetbrains.com> wrote in message
>> news:27739233.1113575774970.JavaMail.itn@is.intellij.net...
>> > Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
>> > cores now and again (especially builds 3281 and 3290), but I can
>> > manage.
>> >
>> > You need to copy the tools.jar from a 1.4.2 distribution into your
>> > JDK1.5/lib directory.
>> >
>> > Nick
>

Did you copy your tools.jar from 1.4.2 into JDK 5.0/lib? If so remove
it you need to have a clean JDK 5 install.

>

R



0
Comment actions Permalink

Okay, got it to work by copying jre dir from my jdk 1.5 home to IDEA_HOME
and copying tools.jar from jdk 1.5 home/lib to IDEA_HOME/jre/lib. Maxim, why
can't I just point idea.bat to my jdk 1.5 home?

"Brad" <brad@somewhere.com> wrote in message
news:d45qdh$tir$1@is.intellij.net...
>I already removed it but I wonder if it caches the jdk setup somehow.
>

"Robert S. Sfeir" <robert@codepuccinoNOSPAM.com> wrote in message
news:robert-A8C63B.10444420042005@mail.intellij.net...

>> In article <d45kef$t7j$1@is.intellij.net>, "Brad" <brad@somewhere.com>
>> wrote:
>>
>>> With build 3296, Weblogic debugging does not work when running IDEA with
>>> jdk
>>> 1.5. It says it can't find class
>>> com.sun.tools.jdi.SocketTransportService
>>>
>>> "Nick Pratt" <no_mail@jetbrains.com> wrote in message
>>> news:27739233.1113575774970.JavaMail.itn@is.intellij.net...
>>> > Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
>>> > cores now and again (especially builds 3281 and 3290), but I can
>>> > manage.
>>> >
>>> > You need to copy the tools.jar from a 1.4.2 distribution into your
>>> > JDK1.5/lib directory.
>>> >
>>> > Nick
>>
>> Did you copy your tools.jar from 1.4.2 into JDK 5.0/lib? If so remove
>> it you need to have a clean JDK 5 install.
>>
>> R
>



0
Comment actions Permalink

These are the two SERIOUS problems I still have running under JDK 5.0. It may be Linux specific - I don't know.

1. CTRL-R (Replace): When the dialog pops up to prompt me to enter what to search/replace, If I click to change either, focus does not move to the fill-in correctly, I have to click away from the fill-in, then back into it for it to accept typing.

2. Splitting the editor (vertically OR horizontally) causes the IDE to freeze up completely.

Using Linux 2.6.11-7 with JDK 1.5.0_02 on an AMD Athlon.

0
Comment actions Permalink

In article <26038144.1114020097868.JavaMail.itn@is.intellij.net>,
Grant Smith <no_mail@jetbrains.com> wrote:

These are the two SERIOUS problems I still have running under JDK 5.0. It may
be Linux specific - I don't know.

1. CTRL-R (Replace): When the dialog pops up to prompt me to enter what to
search/replace, If I click to change either, focus does not move to the
fill-in correctly, I have to click away from the fill-in, then back into it
for it to accept typing.


works on OSX


2. Splitting the editor (vertically OR horizontally) causes the IDE to freeze
up completely.


Works on OSX


Using Linux 2.6.11-7 with JDK 1.5.0_02 on an AMD Athlon.


PB 1.5Ghz 1.5 gig of RAM w/JDK 1.5.0_02 DP8

0
Comment actions Permalink

I have been trying to get this working, but if I copy tools.jar to the
jre/lib dir, I get a message about a version mismatch saying I need to
use 1.4.2_06. If I remove tools.jar, the message says that I need to
just use the included jre.

Any help with this? I assume there is a switch somewhere to ignore the
version?

thanks,
adam

Robert S. Sfeir wrote:

In article <27739233.1113575774970.JavaMail.itn@is.intellij.net>,
Nick Pratt <no_mail@jetbrains.com> wrote:

>>Yes, Ive been running Idea under JDK1.5 for a couple of months now. It cores
>>now and again (especially builds 3281 and 3290), but I can manage.
>>
>>You need to copy the tools.jar from a 1.4.2 distribution into your JDK1.5/lib
>>directory.


I remembered something like that being discussed, but could not find it.
Thanks much. Let's see if this works for OSX as well then.

R

0
Comment actions Permalink

You need to add -Didea.no.jdk.check=true to IDEA_JVM_ARGS in idea.bat

"Adam C" <nowhere@nowhere.com> wrote in message
news:4266B118.2030107@nowhere.com...
>I have been trying to get this working, but if I copy tools.jar to the
>jre/lib dir, I get a message about a version mismatch saying I need to use
>1.4.2_06. If I remove tools.jar, the message says that I need to just use
>the included jre.
>

Any help with this? I assume there is a switch somewhere to ignore the
version?

>

thanks,
adam

>

Robert S. Sfeir wrote:

>> In article <27739233.1113575774970.JavaMail.itn@is.intellij.net>,
>> Nick Pratt <no_mail@jetbrains.com> wrote:
>>
>>
>>>Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
>>>cores now and again (especially builds 3281 and 3290), but I can manage.
>>>
>>>You need to copy the tools.jar from a 1.4.2 distribution into your
>>>JDK1.5/lib directory.
>>
>>
>> I remembered something like that being discussed, but could not find it.
>> Thanks much. Let's see if this works for OSX as well then.
>>
>> R


0
Comment actions Permalink

Thanks! I couldn't find this anywhere.

adam

Brad wrote:

You need to add -Didea.no.jdk.check=true to IDEA_JVM_ARGS in idea.bat

"Adam C" <nowhere@nowhere.com> wrote in message
news:4266B118.2030107@nowhere.com...

>>I have been trying to get this working, but if I copy tools.jar to the
>>jre/lib dir, I get a message about a version mismatch saying I need to use
>>1.4.2_06. If I remove tools.jar, the message says that I need to just use
>>the included jre.
>>
>>Any help with this? I assume there is a switch somewhere to ignore the
>>version?
>>
>>thanks,
>>adam
>>
>>Robert S. Sfeir wrote:
>>
>>>In article <27739233.1113575774970.JavaMail.itn@is.intellij.net>,
>>> Nick Pratt <no_mail@jetbrains.com> wrote:
>>>
>>>
>>>
>>>>Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
>>>>cores now and again (especially builds 3281 and 3290), but I can manage.
>>>>
>>>>You need to copy the tools.jar from a 1.4.2 distribution into your
>>>>JDK1.5/lib directory.
>>>
>>>
>>>I remembered something like that being discussed, but could not find it.
>>>Thanks much. Let's see if this works for OSX as well then.
>>>
>>>R


0
Comment actions Permalink

NP, let me know if debugging works for you.

"Adam C" <nowhere@nowhere.com> wrote in message
news:4266B407.3060207@nowhere.com...

Thanks! I couldn't find this anywhere.

>

adam

>

Brad wrote:

>> You need to add -Didea.no.jdk.check=true to IDEA_JVM_ARGS in idea.bat
>>
>> "Adam C" <nowhere@nowhere.com> wrote in message
>> news:4266B118.2030107@nowhere.com...
>>
>>>I have been trying to get this working, but if I copy tools.jar to the
>>>jre/lib dir, I get a message about a version mismatch saying I need to
>>>use 1.4.2_06. If I remove tools.jar, the message says that I need to
>>>just use the included jre.
>>>
>>>Any help with this? I assume there is a switch somewhere to ignore the
>>>version?
>>>
>>>thanks,
>>>adam
>>>
>>>Robert S. Sfeir wrote:
>>>
>>>>In article <27739233.1113575774970.JavaMail.itn@is.intellij.net>,
>>>> Nick Pratt <no_mail@jetbrains.com> wrote:
>>>>
>>>>
>>>>
>>>>>Yes, Ive been running Idea under JDK1.5 for a couple of months now. It
>>>>>cores now and again (especially builds 3281 and 3290), but I can
>>>>>manage.
>>>>>
>>>>>You need to copy the tools.jar from a 1.4.2 distribution into your
>>>>>JDK1.5/lib directory.
>>>>
>>>>
>>>>I remembered something like that being discussed, but could not find it.
>>>>Thanks much. Let's see if this works for OSX as well then.
>>>>
>>>>R
>>
>>

0

Please sign in to leave a comment.