Cannot start Hello World Visual application, java.io.IOException: /theme.res not found

255 views
Skip to first unread message

asoo...@gmail.com

unread,
Oct 3, 2015, 2:52:08 PM10/3/15
to CodenameOne Discussions
Hi
I'm having quite a bad start with Codename One, the HelloWorld (Manual) application worked fine but the visual one won't launch.

I can see the theme.res file under the build/tmp folder but unlike the HelloWorld Manual project, there is no theme.res file at the root of the source directory. Is this normal?

java.io.IOException: /theme.res not found
at com.codename1.ui.util.Resources.open(Resources.java:715)
at com.codename1.ui.util.Resources.openLayered(Resources.java:683)
at com.codename1.ui.util.Resources.openLayered(Resources.java:647)
at generated.StateMachineBase.startApp(StateMachineBase.java:45)
at generated.StateMachineBase.<init>(StateMachineBase.java:31)
at generated.StateMachineBase.<init>(StateMachineBase.java:96)
at userclasses.StateMachine.<init>(StateMachine.java:18)
at com.mycompany.myapp.MyApplication.start(MyApplication.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.codename1.impl.javase.Executor$1$1.run(Executor.java:100)
at com.codename1.ui.Display.processSerialCalls(Display.java:1144)
at com.codename1.ui.Display.mainEDTLoop(Display.java:963)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)

IDE: Eclipse
Desktop OS: Windows 10
Java version: 8

Allen Sooredoo

unread,
Oct 3, 2015, 2:56:59 PM10/3/15
to codenameone...@googlegroups.com
It fixed itself after buiilding and refreshing the project

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/S7Ol2lLelgE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e4fd0f77-456a-4451-af7f-61d9c8d9420f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages