2017-02-02 94 views
0

我嘗試從eclipse中的Run Configurations運行iDempiere(版本2.1 & 4.1)model.generator。顯然,從教程視頻,我注意到應該有一個窗口,會彈出,你可以在哪裏註冊哪個表格你想生成一個模型,但在我的情況下,沒有彈出無法在eclipse中運行iDempiere 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:\SVN\SERVER\IDEMPIERE41\idempiere.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 
+0

我覺得可能沒有彈出窗口,我應該在eclipse中使用VM參數。 這裏這部分是我有一個問題是什麼:按[鏈接](https://groups.google.com/forum/#!topic/idempiere ModelGenerator文件夾的packageName的EntityType tableName' : 使用'/c9t1TLlT3pQ) @Pedro Rozo提到我需要指定源文件夾。但即使如此,我得到這個錯誤 '錯誤:無法找到或加載主類D:\ SVN \ SERVER \ IDEMPIERE41 \ org.test.editor \ src' ............. ................. VM參數: D:\ SVN \ SERVER \ IDEMPIERE41 \ org.test.editor \ src \ org.test.models D Test' – Ashenvale

回答

0

它聽起來像你在「運行配置」中添加了錯誤數量的參數。

當程序被調用時沒有參數時,彈出的窗口就會顯示出來。

如果你想運行帶參數,那麼你需要添加正好四個參數: - 文件夾 - 的packageName - 的EntityType - 表名

問候,

卡洛斯·魯伊斯 http://wiki.idempiere.org/wiki/User:CarlosRuiz

+0

嗨,這是我對彈出窗口的想法,但是當我嘗試刪除參數時,沒有彈出窗口,並且日誌只是說: '用法:ModelGenerator文件夾packageName entityType tableName' – Ashenvale