Skip to main content

Basic. Error in HelloLWUIT

2 replies [Last post]
diegosoria
Offline
Joined: 2008-07-28
Points: 0

Hello, I'm new in netbeans, I make the LWUIT Tutorial Hello, LWUIT!
https://lwuit.dev.java.net/nonav/tutorial/hello.html

in line:

public class HelloLWUITMidlet extends MIDlet implements ActionListener {

error:
"class HelloLWUITMidlet is Public, should be declarated in a file named HelloLWUITMidlet.java"

Thank for your requets.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
diegosoria
Offline
Joined: 2008-07-28
Points: 0

The problem was in a code, in the file name.

the file name: HelloLWUITMIDlet.java

the code: public class HelloLWUITMidlet extends MIDlet implements ActionListener {

Francis De Brabandere

This is not a LWUIT issue but rather a java issue, you need to rename
your source file to HelloLWUITMidlet.java as the warning indicates, I
think you'd better start with a java tutorial (java 1.4) and then
start using lwuit

On Mon, Jul 28, 2008 at 10:21 PM, wrote:
> Hello, I'm new in netbeans, I make the LWUIT Tutorial Hello, LWUIT!
> https://lwuit.dev.java.net/nonav/tutorial/hello.html
>
> in line:
>
> public class HelloLWUITMidlet extends MIDlet implements ActionListener {
>
> error:
> "class HelloLWUITMidlet is Public, should be declarated in a file named HelloLWUITMidlet.java"
>
> Thank for your requets.
> [Message sent by forum member 'diegosoria' (diegosoria)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289933
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net