Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Standard Java to Symbian Java

3 replies · 6,724 views · Started 04 June 2004

Dear all,
I have written tons of Standard Java Code which runs perfectly under Windows ME. Now I want to make this code runable on the Symbian Device NOKIA Communicator 9210 without a new programming of the Java code. What I am looking for is a tool which transforms Standard Java Code to Symbian Java code.

Does anyone knows such a tool?

Thanks for all.

Rick

What you call "Symbian Java" is perfectly standard Java (or as standard as Java can be), but there may be additional device/platform specific class libraries available (or missing), etc.

The "Symbian Java" is in practice either a Sun standard PersonalJava implementation (on Nokia Communicator and Sony Ericsson P800/P900) or Sun standard J2ME (Java 2 Micro Edition) or "MIDP Java" implementation.

Note that there are both MIDP 1.0 and MIDP 2.0 specifications, and devices vary in their support of which release and what other JSRs (Java Specification Requests) they support.

For what they include in general, check http://java.sun.com/ (e.g., http://java.sun.com/j2me/ is good place where to start).

For complete JSRs see http://www.jcp.org/en/home/index

Personal Java (sometimes called pJava) is being "phased out", more or less.

For what's been added on top by Nokia (& what JSR's are supported), check the Java SDK's and related documentation on http://forum.nokia.com/

For other vendors, check their developer sites.

I don't know of any code translators, transformators or converters that can do the job for you (convert a J2SE based Java application to a J2ME application). I'm afraid you have to do porting by yourself.

If Symbian Java is standard Java, please let me know how can I make the following program on my NOKIA 9210 runable:

class Hello {
public static void main (String args[]) {
System.out.println (�Hello world�);
}
}

I work with ESHELL. Under Windows ME I do:

javac Hello.java
java Hello

So, it would be very great if you could tell me how I can run (compile) the above program on my 9210. If the program above runs like it is, my problem is solved.

Thanks for all.

Greetings Rick

I was searching the Java Emulator or JVM for Windows ME because I thought there isn't, but probably there is JVM but Java standart edition as You wrote. Anyway, the java on Symbians phones is J2ME, what means it's smaller java than on Windows.

I would like to have a J2ME Java on Windows ME instead of You, who want J2SE on Symbian. I think it would be a problem to both.

Best Regards, [email][email protected][/email]

--------------------------------------------------------------------

Rick wrote:If Symbian Java is standard Java, please let me know how can I make the following program on my NOKIA 9210 runable:

class Hello {
public static void main (String args[]) {
System.out.println (�Hello world�);
}
}

I work with ESHELL. Under Windows ME I do:

javac Hello.java
java Hello

So, it would be very great if you could tell me how I can run (compile) the above program on my 9210. If the program above runs like it is, my problem is solved.

Thanks for all.

Greetings Rick