启动脚本中的 GATE -Dgate.plugins.home 选项
GATE -Dgate.plugins.home option in your start-up script
我在Eclipse LUNA Java 1.8中使用 GATE.ac.uk.SCR代码。我在启动 GATE 时遇到执行问题,application.it 显示如下错误:
"初始化期间出错:盖特尔:实用。GateRuntime异常:无法推断已安装的插件主页!请使用启动脚本中的 -Dgate.plugins.home 选项手动设置它。你还想启动GATE吗?
安慰:log4j:警告 找不到记录器(门。门)。log4j:警告 请正确初始化 log4j 系统。log4j:WARN 有关详细信息,请参阅 http://logging.apache.org/log4j/1.2/faq.html#noconfig。
如果你知道,哪个版本的Eclipse用于GATE开发,请告诉我。
然后,如果您知道此错误的解决方案,请告诉我启动脚本中的插件(-Dgate.plugins.home选项)配置步骤。
您也可以在代码中定义它。下面的示例首先定义 GateHome 和 PluginsHome 的位置。正如 kundan 所写,您还可以将插件 dir 复制到您的项目目录中。
if(Gate.getGateHome() == null)
Gate.setGateHome(new File("C:/Program Files (x86)/GATE_Developer_8.2"));
if(Gate.getPluginsHome() == null)
Gate.setPluginsHome(new File("C:/Program Files (x86)/GATE_Developer_8.2/plugins"));
Gate.init();
// register the needed plugins
Gate.getCreoleRegister().registerDirectories(new File(Gate.getPluginsHome(), "yourPlugin").toURI().toURL());
您需要告诉 eclipse GATE 安装附带plugins
文件夹的路径。这是对我有用的。
第 1 步:将plugins
文件夹从C:'Program Files (x86)'GATE_Developer_8.0
复制到项目根文件夹(存在.project
和.classpath
)
第 2 步:在 eclipse 中,右键单击项目 --> Run As
-->单击Run Configurations
--> 转到Arguments
选项卡,然后将以下内容粘贴到VM Argument
"-Dgate.plugins.home="${project_loc}'plugins"
PS:您还需要复制gate.xml
并以类似的方式提供VM Arguments
。这是我是如何做到的... -Dgate.site.config="${project_loc}'gate.xml"
- gulp-load-plugins.sourcemaps.init() TypeError: 无法读取 undefine
- nodemon找不到模块'/路径/to/project/home/index.js'
- navigator.plugins如何查找并返回安装在web浏览器上的插件对象数组
- 每次我点击我的网站,它都会重定向到home.html,然后返回到我点击的所需url
- Cordova/Window.plugins undefined
- React and jQuery plugins
- 启动脚本中的 GATE -Dgate.plugins.home 选项
- 引导数据库数据切换在同时使用两个标签时不使用 href #home 选项卡
- 致命错误:函数名称必须是第 7 行 /home/User/public_html/website/index.php 中
- 如何摆脱我网站网址中的 /webroot/page/home
- 你如何使用页面现有的jQuery + Twitter Bootstrap/plugins与StealJS
- 如何在javascript中覆盖navigator.plugins或如何将其设置为空
- 函数未在 window.plugins in Angular/Ionic 中运行
- WebStorm未解析变量window.cordova.plugins.Keyboard
- 未捕获错误:无法加载路由模块(viewmodels/home/index).详细信息:'resourceName
- WebSocket连接到'wss://localhost:44300/Home/websocketcon'
- Office.js应用程序:Excel找不到home.html文件
- Cordova Plugins
- 覆盖默认的navigator.plugins
- 有人能解释一下为什么(http://localhost:3000/#/home) #出现在url之间吗?