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

JVM for Symbian P800

6 replies · 2,852 views · Started 28 March 2003

Hi,

I tried to run a Java applet using the P800 built-in browser but it didn't display the applet. I suspect this is because JVM need to be installed in it (correct me if I'm wrong). I have been looking for the JVM for Symbian P800 but couldn't find.

So, is anyone can help to give me the answers of:
1. Where can I download the JVM? please give me the URL if you have.
2. How should I download it?

Thank's for reading this message and hope to get feedback soon.

[quote="Agnes"]Hi,

I tried to run a Java applet using the P800 built-in browser but it didn't display the applet. I suspect this is because JVM need to be installed in it (correct me if I'm wrong). I have been looking for the JVM for Symbian P800 but couldn't find.

So, is anyone can help to give me the answers of:
1. Where can I download the JVM? please give me the URL if you have.
2. How should I download it?

Thank's for reading this message and hope to get feedback soon.[/quote]

Hello, the built-in browser doesn't support Applets, however a capable Java runtime to support it exists in the phone so it's a matter for browser vendors to take advantage of the capability. Browser vendors who have an interest in supporting Applets throught the built in java runtime can obtain such information through their ordinary Symbian support channels.

Every P800 manufactured includes two separate Java environments, a 'kvm' that runs J2ME/MIDP 1.0 applications and a PersonalJava runtime environment and JVM (appr. JDK 1.1.8 level of API's).

Hi,
if the standard browser does not support a Java Applet, then how do I install a Java application that uses Java Personal Profile on my P800? I could only install a MIDlet, but it seems MIDlets can only be constructed from JAVA Micro Edition compatible programms...
Any help or pointers are appricated,
Thanks,
Dietrich

[quote="Dietrich"]Hi,
if the standard browser does not support a Java Applet, then how do I install a Java application that uses Java Personal Profile on my P800? I could only install a MIDlet, but it seems MIDlets can only be constructed from JAVA Micro Edition compatible programms...
Any help or pointers are appricated,
Thanks,
Dietrich[/quote]

Hello, "Personal Profile" is related to J2ME/CDC which requires a CDC Virtual machine. P800 supports "PersonalJava", a Java edition that Sun put together back in 1997, one could call it a precursor to J2ME CDC. The formal document that specifies what it contains (Sun PJAE 1.1.1a) is found here:

http://java.sun.com/products/personaljava/spec-1-1-1/pjae-spec.pdf

On a Symbian based device a PersonalJava application is packaged for installation the same way as a native SymbianOS C++ application (=as a .SIS file which is a Symbian specific install format). You use tools in the UIQ SDK such as 'AifBuilder' and 'makesis' for doing this. There a re detailed documentatiion in the UIQ SDK on how to accomplish this.

P800 contains two separate Java runtime environments and virtual machines, one for J2ME/CLDC/MIDP 1.0 and the other for PersonalJava.

For UIQ SDK look here:
http://www.ericsson.com/mobilityworld/sub/open/technologies/epoc/tools/7_uiq

...On a Symbian based device a PersonalJava application is packaged for installation the same way as a native SymbianOS C++ application (=as a .SIS file which is a Symbian specific install format). You use tools in the UIQ SDK such as 'AifBuilder' and 'makesis' for doing this. There a re detailed documentatiion in the UIQ SDK on how to accomplish this.
...

Hi, thanks for the answer. I installed the SDK and managed to run my application with the emulator, but still cannot install it on my P800. The problem is the AIFBuilder: when I run the gui then it gives me "error code 2" when I hit the generate button. That seems to be a known problem and the solution appears to use the command line. However, that doesn't seem to do it for me either. It tells me that it cannot find the installation files. The problem is, I have no idea what installation files it is looking for and my .aifb file seems to look just fine. Here it is:

<?xml version="1.0" encoding="UTF-8"?>

<AIFBPROJECTFILE>
<APPLICATION NAME="DiceMachine" UID="0x01000000" LANGUAGE="JAVA">
<COMMAND>-cp DiceMachine.jar com.symbian.devnet.quartz.dicemachine.DiceMachine</COMMAND>
</APPLICATION>
<DFRD MBM="">
<DFRDNAME>UIQ</DFRDNAME>
<OUTPUTLOC OUTPUTDIR="C:\java\Symbian\UIQ_70\epoc32\winscw\c\system\Apps\DiceMachine\" WORKINGDIR="C:\temp\" />
</DFRD>
</AIFBPROJECTFILE>

Here is my command line:
C:\java\Symbian\UIQ_70\epoc32\winscw\c\system\Apps\DiceMachine>java -cp c:\java\
Symbian\UIQ_70\epoc32\tools\AIFBuilder\aifbuilder.jar com.symbian.sdk.AIFBuilder.CAIFBuilder -generate c:\java\Symbian\UIQ_70\erj\examples\DiceMachine\DiceMachine.aifb
Unable to locate configuration files

Please note that I had to call the java file directly instead of the batch file. I copied the DiceMachine.jar file into both directories, the working dir and the examples dir, so that shouldn't be the problem. I hope.
Thanks in advance for any help,
cheers,
Dietrich

Hello, I don't remember right now if this was the solution to that particular AifBuilder message
but did you do the following DOS command line command before you launched AifBuilder ? :

Open up a DOS shell and type

devices -setdefault @UIQ_70:com.symbian.UIQ

Then try launching 'aifbuilder' again.

[quote="gunnar-p800"]Open up a DOS shell and type

devices -setdefault @UIQ_70:com.symbian.UIQ

Then try launching 'aifbuilder' again.[/quote]

Sorry, that doesn't do it either. No change in behavior...
Thanks anyway,
D