Hi,I'm use ubuntu10.04,fail to start the program.
Exception in thread "main" java.lang.RuntimeException: Failed to
create an instance of class org.tomighty.ui.Window
at org.tomighty.ioc.Factory.newInstanceOf(Factory.java:71)
at org.tomighty.ioc.Factory.create(Factory.java:39)
at org.tomighty.ioc.Container.create(Container.java:61)
at org.tomighty.ioc.Container.get(Container.java:50)
at org.tomighty.ioc.Injector.inject(Injector.java:53)
at org.tomighty.ioc.Injector.inject(Injector.java:35)
at org.tomighty.ioc.Factory.create(Factory.java:43)
at org.tomighty.ioc.Container.create(Container.java:61)
at org.tomighty.ioc.Container.get(Container.java:50)
at org.tomighty.ioc.Container.get(Container.java:43)
at org.tomighty.Tomighty.main(Tomighty.java:57)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.tomighty.ioc.Factory.newInstanceOf(Factory.java:69)
... 10 more
Caused by: java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:
173)
at java.awt.Window.<init>(Window.java:437)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:218)
at org.tomighty.ui.Window.<init>(Window.java:48)
... 15 more
On 7月21日, 下午6时19分, Célio <
ccid...@gmail.com> wrote:
> Hi Pietro,
>
> Tomighty should work fine on Unity. When you run it from a text
> terminal do you see any error message? Please try doing this:
>
> 1. Open a terminal
> 2. cd <here goes the path where you downloaded Tomighty's jar into>
> 3. java -jar tomighty-0.7.1.jar
>
> I'm assuming you're running version 0.7.1 of Tomighty. If you see any
> error messages, please send them to me.
>
> Thanks,
>
> Célio
>
> 2011/7/21 pietrosld <
pietro....@gmail.com>: