Monday 10 June 2013

Java was started but returned exit code=1

For this we have to go to Command line

type

c:\> java -version
then you can find some error like
Error occurred during initialization of VM. I could not find agent library jvmhook on the library path, with error: %1 is not a valid Win32 application.

So now you have go to Control panel-> System -> Environment variables

Under "System Variable" tab you can find
JAVA_TOOL_OPTIONS

Delete that one and click on ok

Now again go to c:\> java -version

Now it will work fine.

Your eclipse problem also will resolve.






Eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
-Xss1024k
-Declipse.buildId=v21.0.0-519525

No comments:

Post a Comment