2

I am trying to get up and running with Spoofax. When I try to run my project, I get the following warning:

Spoofax needs Eclipse to be started with (can be set in eclipse.ini):
-vmargs -server -Xmx1024m -Xss8m 

The following options are currently missing:
-server

But here is my eclipse.ini file. The options appear to be present. What am I missing?

-vm
C:/Program Files/Java/jre7/bin/server/jvm.dll
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-server
-Xss8m
-Dosgi.requiredJavaVersion=1.7.0_45
-Xms40m
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true

EDIT: This is what I have under Run -> Run Configurations -> Arguments -> VM Arguments:

-server -Xss8m -Dosgi.requiredJavaVersion=1.7.0_45 -Xms40m -Xms256m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true
4

2 回答 2

3

这是 Spoofax 中的一个错误,它没有正确找到 -server 参数。这已在不稳定/夜间版本中修复,但尚未在稳定版本中修复。

于 2013-11-28T14:59:10.310 回答
0

-X 参数必须在 -D 之前定义,否则它们将被忽略。

至少我通过使用 java 调试参数解决了这个问题

-Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4144

如果我将这些参数放在第一个 -D 语句之后,它们将被忽略。

于 2013-11-29T10:34:57.647 回答