mobile - Most classes (Scanner, Math, Calendar, Time) don't work for Java ME -
i extremely frustrated fact after installing java me on netbeans , trying use vital classes java provides, of them don't work!
the other ones do-able, scanner?!!!? can't function without (pardon pun)
my code:
/* * change license header, choose license headers in project properties. * change template file, choose tools | templates * , open template in editor. */ package priorityapp.prioritize; import java.util.*; /** * * @author courtneymaroney */ public class test { public static void main(string [] args) { scanner scanner = new scanner(system.in); prioritize p = new prioritize(); system.out.println("add new event: "); string input = scanner.nextline(); } }
now, on it, has error says "cannot find symbol" no suggestions importing. has happened large variety of methods or classes have been trying use, being kind of main reason using java in first place...
what should do? suggestions?
javame has no main class. when creating midlets have extend midlet
class (just extend applet
class when making applets, or httpservlet
class when creating servlets, or xlet
class when making xlets).
the midlet
class has startapp()
method, method runs when app started.
a few links hello world example:
https://www.roseindia.net/j2me/hello-world.shtml
https://www.codeproject.com/articles/169501/j-me-hello-world-mobile-application
something keep in mind, i've been told many times other javame developers: javame != java
Comments
Post a Comment