| | |
S60 java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 8
Reputation:
Solved Threads: 0
Hi I was hoping somebody could help me
I have installed the s60(nokia) java on my laptop and i am trying to get the helloworld program running. The javac and preverify are working. But when i go to the directory for the program helloworldplus i am getting 32 errors when i compile!
here is an example... please help i have been trying for 4 days to get going with this!
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:35: cannot find symbol
symbol : variable Command
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
new Command("Cancel", Command.CANCEL, COMMAND_PRIORITY);
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:59: cannot find symbol
symbol : class TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
textField = new TextField("Edit message",
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:62: cannot find symbol
symbol : variable TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
TextField.ANY);
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:68: cannot find symbol
symbol : method setCommandListener(com.nokia.midp.examples.lcdui.helloworldplus
.TextEditor)
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
setCommandListener(this);
^
37 errors
I have installed the s60(nokia) java on my laptop and i am trying to get the helloworld program running. The javac and preverify are working. But when i go to the directory for the program helloworldplus i am getting 32 errors when i compile!
here is an example... please help i have been trying for 4 days to get going with this!
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:35: cannot find symbol
symbol : variable Command
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
new Command("Cancel", Command.CANCEL, COMMAND_PRIORITY);
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:59: cannot find symbol
symbol : class TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
textField = new TextField("Edit message",
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:62: cannot find symbol
symbol : variable TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
TextField.ANY);
^
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:68: cannot find symbol
symbol : method setCommandListener(com.nokia.midp.examples.lcdui.helloworldplus
.TextEditor)
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
setCommandListener(this);
^
37 errors
•
•
•
•
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:35: cannot find symbol
symbol : variable Command
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
new Command("Cancel", Command.CANCEL, COMMAND_PRIORITY);
^
•
•
•
•
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:59: cannot find symbol
symbol : class TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
textField = new TextField("Edit message",
^
import javax.microedition.lcdui.TextField; , or can be wrong spelling in some cases•
•
•
•
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:62: cannot find symbol
symbol : variable TextField
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
TextField.ANY);
^
•
•
•
•
C:\s60\devices\s60_3rd_MIDP_SDK_FP1\s60examples\helloworldplus\src\com\nokia\mid
p\examples\lcdui\helloworldplus\TextEditor.java:68: cannot find symbol
symbol : method setCommandListener(com.nokia.midp.examples.lcdui.helloworldplus
.TextEditor)
location: class com.nokia.midp.examples.lcdui.helloworldplus.TextEditor
setCommandListener(this);
^
37 errors
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Nov 2007
Posts: 8
Reputation:
Solved Threads: 0
Firstly thanks for the help guys...
This program is one of the default ones that came with s60 and i was just following the instructions to get the thing working, is there something else maybe i have to download to get the mobile stuff working
with 37 errors in the code it feels like i need something else...as opposed to there being actually 37 errors i don't think there is!
This program is one of the default ones that came with s60 and i was just following the instructions to get the thing working, is there something else maybe i have to download to get the mobile stuff working
with 37 errors in the code it feels like i need something else...as opposed to there being actually 37 errors i don't think there is!
Java Syntax (Toggle Plain Text)
/* Copyright © 2006 Nokia. */ package com.nokia.midp.examples.lcdui.helloworldplus; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * This class illustrates the implementation of a simple MIDlet that initially * displays a "HelloWorld" message to the screen and allows the user to edit * that message. * <p> * This class extends the class javax.microedition.midlet.MIDlet. It * creates and maintains references to a TextScreen object and a * TextEditor object. * <p> * Note that the HelloWorldMIDlet class has no constructor. MIDlet * contructors are not required to do anything because intializing of the * object is better performed in the startApp() method. */ public class HelloWorldPlusMIDlet extends MIDlet { /** Displays the message on the screen. */ private TextScreen textScreen; /** Allows the user to edit the message displayed. */ private TextEditor textEditor; /** A generic way of indicating whether startApp() has previously been called. */ private Display display; /** * Creates an instance of TextScreen if one has not already been * created and tells the framework to set this instance of TextScreen * as the current screen. */ public void startApp() { if (display == null) { // First time we've been called. display=Display.getDisplay(this); textScreen = new TextScreen(this, "Hello World!"); } display.setCurrent(textScreen); } /** * This must be defined but no implementation is required because the MIDlet * only responds to user interaction. */ public void pauseApp() { } /** * No further implementation is required because the MIDlet holds no * resources that require releasing. * * @param unconditional is ignored. */ public void destroyApp(boolean unconditional) { } /** * A convenience method for exiting. */ public void exitRequested(){ destroyApp(false); /* * notifyDestroyed() tells the scheduler that this MIDlet is now in a * destroyed state and is ready for disposal. */ notifyDestroyed(); } /** * Implements the transition from the TextEditor screen to the TextScreen screen. * * @param string is the new text to be displayed. It is null if the text is * not to be changed. */ public void textEditorDone(String string) { if (string != null) { textScreen.setCurrentText(string); } display.setCurrent(textScreen); } /** * Implements the transition from the TextScreen screen to the TextEditor screen. */ public void textEditorRequested() { String currentText = textScreen.getCurrentText(); if (textEditor == null) { textEditor = new TextEditor(this, currentText); } else { textEditor.setText(currentText); } display.setCurrent(textEditor); } }
I'm just downloading Nokia's SDK for S60 as I'm not familiar with it and I will let you know the outcome
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
What IDE you using NetBEans, Eclipse?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
I do not have Eclipse I mainly use NetBeans or IntelliJ IDEA. I tested this "helloworldplus", there is NetBeans folder avaialable. Then inside I had to go project Properties and add some optional packages. I haven't got such problem when adding Sony Ericsson instance
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
Other Threads in the Java Forum
- Previous Thread: Changing midlet project directory
- Next Thread: DefaultTableModel
| Thread Tools | Search this Thread |
2dgraphics android api apple applet application arguments array arrays automation banking binary binarytree bluetooth capture chat chatprogramusingobjects class classes client code color component count database derby design eclipse eclipsedevelopment encryption error event exception fractal game givemetehcodez graphics gridlayout gui html ide if_statement image input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list loop macintosh map method methods midlethttpconnection mobile netbeans newbie object os print printing problem producer program programming project projectideas read recursion reference replaysolutions ria scanner screen server set size sms sort sourcelabs sql stop string swing threads transforms tree ui unicode validation windows






