Eclipse returns error message "Java was started but returned exit code = 1" -


this picture of error code

i downloaded , dearchived android sdk windows. i`m using w8 64x.

the error message points problem java version. have jdk installed?

try adding following (noting new line):

-vm  c:/wherever/java/jdk1.6.0_21/jre/bin/server/jvm.dll 

...to eclipse.ini file, pointing jdk want use, , check required java version @ least new jdk. path windows system. more on paths can found here (scroll down).

edit: make sure, -vm option occurs before -vmargs command. after -vmargs passed directly jvm.

if don't know eclipse.ini file is: regularly in folder of eclipse.exe.

edit2: @kadolakatt: reason why installing latest java version worked because eclipse checks standard path jvm if doesn't find -vm entry (see here). i'd not recommend that, since might wrong guessing jvm used. if update java (automatically?) might run problems in eclipse wondering might have changed. better set specific folder in eclipse.ini certain.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -