我尝试从 eclipse 中的运行配置中运行 iDempiere(版本 2.1 和 4.1) model.generator。显然,从教程视频中,我注意到应该会弹出一个窗口,您可以在其中注册要生成模型的表,但就我而言,没有弹出窗口
以下是日志:
Feb 02, 2017 3:45:40 PM org.compiere.util.Language getLanguage
INFO: Adding Language=en, Country=PH, Locale=en_PH
15:45:40.596 Adempiere.startup: iDempiere(r) Release 4.1_2016-10-31 -Smart Suite ERP, CRM and SCM- (c) 1999-2016 iDempiere(r); Implementation: iDempiere - Supported by iDempiere community [1]
15:45:40.596 Ini.loadProperties: D:SVNSERVERIDEMPIERE41idempiere.properties #32 [1]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://31.fwk2129221032:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://31.fwk2129221032:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
15:45:41.155 DB.isBuildOK: Build DB=${env.ADEMPIERE_VERSION} 20080428-1232 [1]
15:45:41.155 DB.isBuildOK: Build Cl=4.1.0.qualifier [1]
15:45:41.175-----------> DB.isBuildOK: Build Version Error
The program assumes build version 4.1.0.qualifier, but database has build version ${env.ADEMPIERE_VERSION} 20080428-1232.
This is likely to cause hard to fix errors.
Please contact administrator. [1]
15:45:41.245 Language.getLanguage: Adding Language=en, Country=US, Locale=en_US [1]
15:45:41.255 Language.getLanguage: Adding Language=en, Country=US, Locale=en_US [1]
usage: ModelGenerator folder packageName entityType tableName
听起来您在"运行配置"中添加了错误数量的参数。
当调用程序时,将显示您期望的弹出窗口,而不带参数。
如果你想用参数运行它,那么你需要添加四个参数:-文件夹- 包名称- 实体类型- 表名
问候
卡洛斯·鲁伊斯http://wiki.idempiere.org/wiki/User:CarlosRuiz