This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 112168 - java.lang.ClassNotFoundException: hello/HelloMidlet
Summary: java.lang.ClassNotFoundException: hello/HelloMidlet
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 5.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-07 11:28 UTC by dfmiller
Modified: 2007-10-12 07:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dfmiller 2007-08-07 11:28:32 UTC
When running the sample Hello midlet I get the following message in the output window:

/dev/dsp: No such file or directory
Unable to create MIDlet hello.HelloMidlet
java.lang.ClassNotFoundException: hello/HelloMidlet
        at com.sun.midp.midlet.MIDletState.createMIDlet(MIDletState.java:156)
        at com.sun.midp.midlet.Selector.run(Selector.java:150)

--------------------------------------------------------------------------------------------------
netbeans.conf contains path to jdk:

# default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
netbeans_jdkhome="/opt/jdk1.6.0_02"
--------------------------------------------------------------------------------------------------
Comment 1 Adam Sotona 2007-08-07 17:19:43 UTC
This basic case works for me.
The error message seems to detect missing MIDlet in the distribution jar.
Please check in Files tab of the Explorer if the dist/<your app>.jar contains the requested midlet.
And try to clean and build the project again. 
Comment 2 dfmiller 2007-08-07 23:16:50 UTC
Problem resolved -it's now working.

Erroneously I had put the same path in the Project Location and the Project Folder in the New Project wizard, eg
 
Project Location: /home/user/project1
Project folder:   /home/user/project1

correct paths should be:

Project Location: /home/user
Project folder:   /home/user/project1

Asotona:  your hint of missing midlet and suggestion to rebuild sorted me out - many thanks
ps still get "/dev/dsp: No such file or directory" but this doesn't stop it working 
Comment 3 Lukas Hasik 2007-10-12 07:24:30 UTC
c