STS启动错误 - Java已启动但​​返回退出代码= 13 [英] STS launch error - Java was started but returned exit code=13

查看:139
本文介绍了STS启动错误 - Java已启动但​​返回退出代码= 13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我现在将STS安装到我的Windows 7 64位机器上,每次尝试运行STS时,我都会在下面找到附加的Java退出代码= 13错误。

So I installed STS a while back now onto my Windows 7 64-bit machine, every time I try run STS I get the attached Java exit code=13 error below.

我没有将Eclipse安装到我的机器中,我提到这一点是因为每次我尝试使用Google时,这个错误代码线程都会出现关于Eclipse上发生的相同问题。

I don't have have Eclipse installed into my machine, I mention this because every time I have tried to Google this error code threads about the same issue happening on Eclipse come up.

我也试过检查我的机器上是否安装了Java。

I have also tried checking if Java is installed on my machine which it is.

有谁知道如何解决这个问题?

Does anyone know how to resolve this?

推荐答案

首先,您需要检查您使用的是 64位 java。
接下来你需要在你的 STS.ini 文件中指向那个版本的java。

First you need to check that you are using 64 bit java. Next you need to point to that version of java in your STS.ini file.

你可以通过在 STS.ini 文件中指定 -vm 选项来完成此操作。 -vm 选项必须放在其他特定于Eclipse的选项(例如-product, - launcher。*等)之后,但在-vmargs选项之前。

You can do this by specifying the -vm option in the STS.ini file. The -vm option must be placed after the other Eclipse-specific options (such as -product, --launcher.*, etc), but before the -vmargs option.

-vm 参数可能如下所示:

-vm
C:\jdk1.7.0_21\bin\javaw.exe

-vm C:\jdk1.7.0_21\bin\javaw.exe 

-vm C:\jdk1.7.0_21\jre\bin\java.exe

如果您遇到 Java已启动但​​返回退出代码= 1 将`-vm选项指向jvm.dll

If you encounter Java was started but returned exit code=1 point the `-vm option to jvm.dll

-vm
C:\Development\Java\64bit\jdk1.7.0_09\jre\bin\server\jvm.dll

以下是我在 STS中添加的方法.ini file。

Here is how I added it in my STS.ini file.

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\IBM\Java71\jre\bin\java.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-XX:MaxPermSize=256m
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx1200m

参考文献:


  1. Eclipse Wiki页面

Stack溢出通过DNA回答类似问题

Stack overflow answer by DNA to similar question

这篇关于STS启动错误 - Java已启动但​​返回退出代码= 13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆