简体   繁体   中英

Creating Executable Jar with Maven includes Jgoodies GUI

Im developing a java program and im using jgoodies for its GUI. I was making executable jar from my project, before developing GUI. It was working from command line. But when i developed gui for my project and made a package from it, it didnt work. It compiles successfully but when i tried to execute it, it throws errors:

D:\Documents and Settings\Administrator\Desktop\GPAT\target>java -jar gpat-1.0-SNAPSHOT-jar-with-dependencies.jar
Exception in thread "main" java.lang.IllegalArgumentException: Invalid unit name 'default'. Must be one of: px, dlu, pt, mm, cm, in
    at com.jgoodies.forms.layout.ConstantSize$Unit.valueOf(ConstantSize.java:349)
    at com.jgoodies.forms.layout.ConstantSize.valueOf(ConstantSize.java:146)
    at com.jgoodies.forms.layout.FormSpec.decodeAtomicSize(FormSpec.java:309)
    at com.jgoodies.forms.layout.FormSpec.parseAndInitSize(FormSpec.java:255)
    at com.jgoodies.forms.layout.FormSpec.parseAndInitValues(FormSpec.java:233)
    at com.jgoodies.forms.layout.FormSpec.<init>(FormSpec.java:159)
    at com.jgoodies.forms.layout.ColumnSpec.<init>(ColumnSpec.java:138)
    at com.jgoodies.forms.layout.ColumnSpec.decodeSpecs(ColumnSpec.java:177)
    at com.jgoodies.forms.layout.FormLayout.<init>(FormLayout.java:276)
    at com.alcatel.lucent.tr.gsat.gpat.GPATGUI.initComponents(GPATGUI.java:349)
    at com.alcatel.lucent.tr.gsat.gpat.GPATGUI.<init>(GPATGUI.java:31)
    at com.alcatel.lucent.tr.gsat.gpat.GPATGUI.main(GPATGUI.java:36)

I added the dependencies correctfully i suppose. Does this error make any sense for anyone? Thanks for reading.

似乎您将表单约束之一设置为使用JGoodies不喜欢的default单位。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM