Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Debug with JDK 1.2.2, Eclipse 2.1.0 possible?
Debug with JDK 1.2.2, Eclipse 2.1.0 possible? [message #77170] Thu, 17 July 2003 11:10 Go to next message
Eclipse UserFriend
Originally posted by: tobias.knoetzele.premiere.de

I have got a problem to debug some legacy system written with VAJ and JDK
1.2.2 which I wanted to

migrate to Eclipse. Unfortunately I canŽt migrate to JDK 1.3 or 1.4
because we currently donŽt have a

deployment environment in my company.

Running the application in Eclipse works fine, but when I try to debug it,
I get the following

Message:
Exception occured during launch
Reason: Cannot connect to VM
On the console it reads:
Can't load "jdwp.dll", because Can't find dependent libraries
Could not create the Java virtual machine.

The manual says that Eclipse needs JRE 1.3.1_06 or 1.4.x and I heard and
read that there are
significant differences in the Debug API. (See Phillippe Mulet
http://dev.eclipse.org/newslists/news.eclipse.tools/msg05649 .html)

But maybe somebody knows a way to use JDK 1.2.2 nevertheless?

My Configuration:
- Windows XP
- Eclipse Release 2.1.0, Build id: 200306051737 (Running with J2RE 1.4.2)
- Installed JREs (Menu:Window/Preferences/Java/Installed JREs)
j2re1.2.2 (Type "Standard VM")
j2re1.4.2 (Checked, ie. default to build and run)

- Project Settings (Right Mouse on Projekt / Properties)
- Java Build Path / Libraries / JRE System Library [j2re1.2.2]
- Java Compiler / Compliance and Classfiles / Compiler Compliance
level: 1.3 (1.2 is not available)
- Java Compiler / Compliance and Classfiles / Generated .class file
compatibility: 1.2
- Java Compiler / Compliance and Classfiles / Source compatibility: 1.3
(1.2 is not available)

- Launch Configuration (Menu:Run/Run...) / JRE: j2re1.2.2

What I tried to solve the problem:
- Read Manual, Search Google, Search eclipse.org (Newsgroups)
- Use very simple programm with no dependencies, just main(...) {
System.out.println("Hello"); }
- Use JRE 1.2.2 or 1.4.2 as Standard Installed JRE
- Different Combinations of Project Settings / Launch Configuration
- Install JRE 1.2.2 as Type "Standard 1.1.x VM" -> not possible, Error
"Target is not a JDK root"
whatever Home Directory I try to give, eg. D:\Programme\j2jre1.2 or
Subfolders
- Copy some DLLŽs from JDK 1.4.2 to JRE 1.2.2 like suggested by Michael
Moser
( http://dev.eclipse.org/newslists/news.eclipse.tools/msg08868 .html) for
JDK 1.3.x (!)
Result: Debugger starts, but ends up with UnsupportedClassVersionError:
java.lang.UnsupportedClassVersionError:
de/premiere/test/test/SimpleDebugTest
(Unsupported major.minor version 47.0) at
java.lang.ClassLoader.defineClass(ClassLoader.java:471)

Best regards,
Tobias Knoetzele
Re: Debug with JDK 1.2.2, Eclipse 2.1.0 possible? [message #77186 is a reply to message #77170] Thu, 17 July 2003 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Thu, 17 Jul 2003 15:10:04 +0000 (UTC), tobias.knoetzele@premiere.de
(Tobias Knötzele) a écrit :
>- Launch Configuration (Menu:Run/Run...) / JRE: j2re1.2.2
You should install a JDK1.2.2 and not a JRE 1.2.2 if you want to
debug.
--
Olivier
Re: Debug with JDK 1.2.2, Eclipse 2.1.0 possible? [message #77593 is a reply to message #77186] Fri, 18 July 2003 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobias.knoetzele.premiere.de

Hello Olivier,

Thanks for your response.
Unfortunately it didnŽt solve my problem (maybe I misunderstood you?).
On my machine I have installed the JDK 1.2.2 and SDK 1.4.2, the JREŽs were
installed automatically as a copy in a different directory. In Eclipse I
configured the JREŽs at Menu:Window / Preferences / Java / Installed JREs.
In fact, the location was pointing to the JRE directory, not the JDK/SDK.
I changed it to the JDK directory, but the same error occurs. Anyway with
1.4.2 the location is pointing to the JRE either, and this works. And the
required jdwp.dll does not exist in the JDK.

Am I missing your point?

Regards,
Tobias

> Le Thu, 17 Jul 2003 15:10:04 +0000 (UTC), tobias.knoetzele@premiere.de
> (Tobias Knötzele) a écrit :
> >- Launch Configuration (Menu:Run/Run...) / JRE: j2re1.2.2
> You should install a JDK1.2.2 and not a JRE 1.2.2 if you want to
> debug.
> --
> Olivier
Re: Debug with JDK 1.2.2, Eclipse 2.1.0 possible? [message #77607 is a reply to message #77593] Fri, 18 July 2003 05:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Fri, 18 Jul 2003 09:52:51 +0000, Tobias Knötzele wrote:

> Hello Olivier,
>
> Thanks for your response.
> Unfortunately it didn't solve my problem (maybe I misunderstood you?).
> On my machine I have installed the JDK 1.2.2 and SDK 1.4.2, the JRE's were
> installed automatically as a copy in a different directory. In Eclipse I
> configured the JRE's at Menu:Window / Preferences / Java / Installed JREs.
> In fact, the location was pointing to the JRE directory, not the JDK/SDK.
> I changed it to the JDK directory, but the same error occurs. Anyway with
> 1.4.2 the location is pointing to the JRE either, and this works. And the
> required jdwp.dll does not exist in the JDK.
>
> Am I missing your point?

Did you try getting the JPDA from
http://java.sun.com/products/jpda/download.html ?

I don't know if it works with Eclipse, but you would at least need that to
get JPDA support in JDK1.2.2 (which is what Eclipse uses to do debugging).

mike

>
> Regards,
> Tobias
>> --
>> Olivier

--
http://zclipse.org
Re: Debug with JDK 1.2.2, Eclipse 2.1.0 possible? [message #77694 is a reply to message #77607] Fri, 18 July 2003 08:28 Go to previous message
Eclipse UserFriend
Originally posted by: tobias.knoetzele.premiere.de

ThatŽs it! It works fine with Eclipse 2.1.0.

The steps I took:
1) Download http://java.sun.com/products/jpda/download.html
2) Extract the 3 DLLŽs from bin folder (jdwp.dll, dt_shmem.dll,
dt_socket.dll)
into bin folder of JRE 1.2.2
3) Extract the one jar from lib folder (jpda.jar) into lib folder of JRE
1.2.2
Done.

Thanks a lot,
Tobias

PS: So far I had never heard about JPDA but read a tip of copying these
dllŽs from a newer SDK to the JRE 1.2.2. This did not work.

Michael R Head wrote:

> Did you try getting the JPDA from
> http://java.sun.com/products/jpda/download.html ?

> I don't know if it works with Eclipse, but you would at least need that to
> get JPDA support in JDK1.2.2 (which is what Eclipse uses to do debugging).

> mike
Previous Topic:Unnecessary cast diagnosis
Next Topic:Example of research java source
Goto Forum:
  


Current Time: Wed Jul 16 22:52:53 EDT 2025

Powered by FUDForum. Page generated in 0.27962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top