Skip to content


解决Spring Tool Suite和Maven2找不到JDK的问题

在运行Spring Tools Suite工具,创建Maven Project时,报eclipse找不到JDK环境,请配置Eclipse JDK环境。
打开E:\springsource\sts-2.3.0.RELEASE目录中的STS.ini文件,加入-vm参数,具体如下:
[color=Red][size=15]-vm
C:\Program Files\Java\jdk1.6.0_13\bin\javaw.exe[/size][/color]
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
com.springsource.sts.ide
–launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1G
-XX:MaxPermSize=256m

注:vm后面一定要加换行,也不知道是什么原因,不换行还是报错。

Tags: eclipse, java, jdk, maven, maven2, spring tool suite

相关文章

Posted in 程序.

Tagged with , , , , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.