我想通过 Windows 上的桌面快捷方式运行 Eclipse,并使用可在命令行上使用的 -Duser.timezone 参数。
我的快捷方式目标如下所示:
C:\Alan\SDK\3.7.1\eclipse.exe -vm "c:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe" -vmargs -Xmx512m -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M
如您所见,我使用 -X.. 参数增加了内存空间。无论出于何种原因,我都无法在 -vmargs 条目后输入 -Duser.timezone=Europe/Dublin 。难道不能通过快捷方式做到这一点吗?我可以从命令行使用这个 -D 参数,没有问题。
编辑:我会将其添加到 .ini 文件中,但我不允许!
最佳答案
您必须在虚拟机参数切换之前添加程序参数。来自 vmargs documentation :
All arguments following (but not including) the -vmargs entry are passed directly through to the indicated Java VM as virtual machine arguments.
关于windows - 通过 Windows 桌面快捷方式运行 Eclipse JVM 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11672249/