Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
274 views
in Technique[技术] by (71.8m points)

When Starting up Eclipse C/C++ it doesn't open but gives a error. Java was started but returned exit code=13

I just wanted to start learning programming in C so i downloaded Eclips C/C++ but when i try to launch it its says: Java was started but returned exit code=13. But the normal eclipse for java works just fine. Here is the 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.v20120913-144807
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m

I haven't editted it in this one but i tried a few thing i have read but it didn't work. I have searched a lot but could find the answer.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you are trying to start Eclipse, but are continually getting a "JVM terminated. Exit code=13" error" then you need to fix the error.

  1. First, realize that this error is caused when you are attempting to start Eclipse using the wrong version of the Java Virtual Machine (JVM). So you need to realize what JVM you are starting with.
  2. If you are using Linux, you can type "which java" on the command line. Otherwise, you can type "java -version". This will give you the Java version.
  3. Now, you need to research the correct JVM for the version of Eclipse that you are using. For example, if you are using Eclipse Europa, it may require the 1.5 JVM to start. When you initially get the error message, you may see something that says "requiredJavaVersion=1.5", which will tell you what version of the JVM is required.
  4. Make sure that you have the correct version of Java installed.
  5. Now, you can either change the Java version environment variable or you can tell Eclipse to use a different version of the virtual machine upon startup. To do this you use the "vm" flag.
    For example: ./eclipse -vm /home/seed/app/jre1.5.0_10/bin
  6. Now that you have changed the version of the Java Virtual Machine that you are using to start Eclipse, the error should be resolved.

For more details visit here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...