4.5.1 under JDK5 RC?

I know this isnt supported.

With that said:

Has anyone got 4.5.1 running under JDK5 RC?

Ive set the JRE up and supplied the correct -D flag, and IDEA starts up. However, when I try and run my unit tests, IDEA fails while trying to find com.sun.tools.jdi.SocketTransport

This class is not shipped with JDK5 RC.
It is with 1.4.x (in tools.jar) - and I have this linked from ./jre/lib/tools.jar - the RC does not contain this class (IT has a SocketTransportService.class, amongst others).

Im trying to find a workaround for the focus issues with 4.5.1 under Linux - thought I might give JDK5 a shot.

Nick

5 comments

Has anyone got 4.5.1 running under JDK5 RC?


People have tried but it seems they weren't successful for the same
reasons.

http://www.intellij.net/forums/thread.jsp?forum=22&thread=108068

Vince.


0

Ok, so Sun changed the name.
Does anyone know if the functionality changed?

Ill write a forwarding adaptor tonight and stick the class in the classpath.

0

I have no question about running 4.5.1 under JDK5 RC. The following is my steps. My Jdk 1.5 is installed in d:\tools\jdk1.5 .
1 don't change the IDEA directory. You should not copy JRE 1.5 for replacing JRE 1.4 of IDEA. Attention!!!!
2 modify the "idea.lax" file,and change it as following:
lax.nl.current.vm=D:
tools
jdk1.5.0
bin
java.exe
add "-Didea.no.jdk.check=true -Dswing.aatext=true" to "lax.nl.java.option.additional" .
3 restart the IDEA, and everyting including debug is ok. :)

By this way,the error of com.sun.tools.jdi.SharedMemoryTransport during debug will disappear.

0

I got it working at least it seems to be, by copying in the tools.jar from my 1.4.2 JDK in to JRE1.5/LIB directory and renaming it tools-142.jar.

0

I got it working at least it seems to be, by copying
in the tools.jar from my 1.4.2 JDK in to JRE1.5/LIB
directory and renaming it tools-142.jar.


Personally I configured 4.5.3 like this:
- Delete the original JRE folder under IDEA installation
- Set IDEA.lax current JVM to point to JDK1.5/bin/java.exe
- copy the 1.4.2 tools.jar to idea/lib as tools142.jar

So far so good. Debugging also works.

0

Please sign in to leave a comment.