Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DartEditor.exe and java exit code 1

Tags:

eclipse

dart

I try to run DartEditor on Windows. I've downloaded the latest version from: dartlang.org/docs/getting-started/editor/index-win.html

(i tried both the stable and untested latest version - same results)

At first Editor was facing problem with finding the java virtual machine, so I added the path to the "DartEditor.ini", which now looks like that:

-data
workspace
-vm
C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m

Now java is starting BUT it's returning following error: (sorry for URLs, but i'm not yet allowed to post images)

https://i.sstatic.net/rCgwf.png

and information:

https://i.sstatic.net/LKSC3.png

I suppose that this error is connected with eclipse, but sadly I have no idea where exactly the problem is. Any help appreciated.

like image 857
user1210973 Avatar asked Mar 31 '26 17:03

user1210973


2 Answers

I don't see anything wrong with your posted .ini contents, it could be that you are seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=188968

Essentially the -Xmx1024m might be too large and the jvm can't find a contiguous block of memory that large. Shared libraries might be loaded in the middle of the address space fragmentin the available memory).

By removing the .ini file, you get the default Xmx args which are much lower. You could try changing to -Xmx512m or -Xmx768m.

like image 171
Andrew Niefer Avatar answered Apr 03 '26 09:04

Andrew Niefer


I had the same issue until I upgraded my JRE from version 6 to 7. Though dartlang.org states that Dart Editor's minimum required Java version is 6, I believe they may have forgotten to update this info.

Additionally, dartlang.org states that Windows XP is not supported. FYI

like image 27
Cengiz Avatar answered Apr 03 '26 09:04

Cengiz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!