Skip to main content

You must include the IO platform port before the IO in the classpath!

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
abuhmead1987
Offline
Joined: 2010-04-21

I tried to run SearchImages app from trunc SVN on netbeans Platform but an error appeared

java.lang.NoClassDefFoundError: com/sun/lwuit/io/impl/PlatformImplementation

at com.sun.lwuit.io.impl.IOImplementation.<clinit>(IOImplementation.java:54)

at java.lang.Class.invoke_clinit(), bci=0

at java.lang.Class.initialize(), bci=143

at com.sun.lwuit.io.NetworkManager$NetworkThread.start(), bci=0

at com.sun.lwuit.io.NetworkManager.start(NetworkManager.java:308)

at userclasses.StateMachine.initVars(StateMachine.java:34)

at generated.StateMachineBase.<init>(StateMachineBase.java:23)

at generated.StateMachineBase.<init>(StateMachineBase.java:48)

at userclasses.StateMachine.<init>(StateMachine.java:24)

at userclasses.MainMIDlet.run(MainMIDlet.java:21)

at com.sun.lwuit.Display.processSerialCalls(), bci=112

at com.sun.lwuit.Display.mainEDTLoop(Display.java:752)

at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)

How to solve this problem?

Thanks a lot in advance!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

I'm guessing you mean the IO demo?

You need to use the platform port for IO and not the IO library (e.g. ports/midp/io_midp). The platform port for UI must come before the IO port.