Eclipse Helios Error when Debugging: "Error: Could not create the Java Virtual Machine." [message #1851858] |
Wed, 20 April 2022 12:04 |
Medi Degani Messages: 9 Registered: April 2022 |
Junior Member |
|
|
I really need help with this as I cannot find a solution anywhere, having searched the internet and forums for a few weeks now!
I have a project in Eclipse Helios (Eclipse for RCP and RAP Developers Version Helios Service Release 2 Build id: 20110218-0911 running on Windows XP) which has been working fine, I can debug and run without any problems etc.
I have set up a new Windows 10 machine and I have exact same software versions and paths to the local drive for my project. As far as I can see, everything is identical.
However, when I use the Debug on the Windows 10 machine, I get the following error:
"Error: Could not create the Java Virtual Machine."
"Error: A fatal exception has occurred. Program will exit."
followed by:
'Launching ***.product' has encountered a problems.
Cannot connect to VM
(screenshots attached)
I have come across posts which suggest modifying the eclipse.ini file but they are all for solving the issue with Eclipse not launching rather than when Eclipse is working fine but the Debug has the issue.
I'm thinking that this is due to a setting within the Eclipse Platform or within Java settings? I'm running out of ideas!
Any help or suggestions with this would be very much appreciated.
-
Attachment: Error 1.png
(Size: 5.99KB, Downloaded 70 times) -
Attachment: Error 2.png
(Size: 6.62KB, Downloaded 71 times) -
Attachment: Eclipse.png
(Size: 28.09KB, Downloaded 72 times) -
Attachment: Java.png
(Size: 6.42KB, Downloaded 70 times)
|
|
|
|
|
Re: Eclipse Helios Error when Debugging: "Error: Could not create the Java Virtual Machine.& [message #1851879 is a reply to message #1851876] |
Wed, 20 April 2022 20:04 |
Medi Degani Messages: 9 Registered: April 2022 |
Junior Member |
|
|
Attached is a screenshot of the detailed error messages:
Cannot connect to VM
com.sun.jdi.connect.TransportTimeoutException
at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:97)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Unknown Source)
Cannot connect to VM
java.net.SocketException: socket closed
at java.net.TwoStacksPlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Unknown Source)
[Updated on: Wed, 20 April 2022 20:21] Report message to a moderator
|
|
|
|
|
|
|
Re: Eclipse Helios Error when Debugging: "Error: Could not create the Java Virtual Machine.& [message #1851920 is a reply to message #1851915] |
Thu, 21 April 2022 16:33 |
Medi Degani Messages: 9 Registered: April 2022 |
Junior Member |
|
|
Modified my eclipse.ini file to point to JRE 1.8
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.rcp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-- launcher.appendVmargs
-vm
C:\Java\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
and now I get this error when launching Eclipse. See attached.
[Updated on: Thu, 21 April 2022 16:35] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03225 seconds