首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google plugin for Eclipse:如何在运行配置中添加JVM参数

Google plugin for Eclipse:如何在运行配置中添加JVM参数
EN

Stack Overflow用户
提问于 2013-01-19 05:59:20
回答 1查看 2.2K关注 0票数 2

我需要将参数添加到Eclipse中的App Engine运行配置中,并在textbox Program参数中的选项卡参数中添加参数,如https://developers.google.com/appengine/docs/java/cloud-sql/developers-guide中所述

代码语言:javascript
复制
 --jvm_flag=-Drdbms.server=local
 --jvm_flag=-Drdbms.driver=com.mysql.jdbc.Driver
 --jvm_flag=-Drdbms.url=jdbc:mysql://localhost:3306/yourdatabase?user=username&password=password 

但我总是得到,快速错误:

代码语言:javascript
复制
Usage: <dev-appserver> [options] <app directory>

Options:
 --help, -h                 Show this help message and exit.
 --server=SERVER            The server to use to determine the latest
  -s SERVER                   SDK version.
 --address=ADDRESS          The address of the interface on the local machine
  -a ADDRESS                  to bind to (or 0.0.0.0 for all interfaces).
 --port=PORT                The port number to bind to on the local machine.
  -p PORT
 --sdk_root=DIR             Overrides where the SDK is located.
 --disable_update_check     Disable the check for newer SDK versions.
 --generated_dir=DIR        Set the directory where generated files are created.
 --jvm_flag=FLAG            Pass FLAG as a JVM argument. May be repeated to
                              supply multiple flags.

我做错了什么?

EN

回答 1

Stack Overflow用户

发布于 2013-01-19 07:13:44

Run Configurations - Arguments中,将以下jvm_flag参数添加到VM arguments部分,而不是Program arguments部分:

代码语言:javascript
复制
-Drdbms.server=local
-Drdbms.driver=com.mysql.jdbc.Driver
-Drdbms.url=jdbc:mysql://localhost:3306/yourdatabase?user=username&password=password

这应该可以解决您的问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14408340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档