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

PersonalJava development under XP with UIQ SDK

9 replies · 5,697 views · Started 30 April 2003

Hello,
I am a veteran developer who is new to the Java language.
I would like to create a very small app on the P800 which just shows 4 icons on screen and you click on them to open up another application (like calendar, or messages, or whatever).
I know I'd have to use PersonalJava to do this rather than MIDP.
I have downloaded the UIQ SDK for Symbian OS7.0 and am running it on XP but cannot get anything to work! Is it compatible with XP? It suggests I dont need CodeWarrior to create apps and I dont wanna pay loads of cash for that.
Any ideas for a very very simple way of creating such an app?
Many thanks in advance to anyone who replies.

[quote="orange.peel"] Hello,
I am a veteran developer who is new to the Java language.
I would like to create a very small app on the P800 which just shows 4 icons on screen and you click on them to open up another application (like calendar, or messages, or whatever).
I know I'd have to use PersonalJava to do this rather than MIDP.
I have downloaded the UIQ SDK for Symbian OS7.0 and am running it on XP but cannot get anything to work! Is it compatible with XP? It suggests I dont need CodeWarrior to create apps and I dont wanna pay loads of cash for that.
Any ideas for a very very simple way of creating such an app?
Many thanks in advance to anyone who replies.[/quote]

I don't think the SDK is explicitly supported on XP but that doesn't have to mean it won't work. We could try to check how far you are getting;
I don't have an XP box here to try it on but I can try to reason some about it no less..
The SDK needs access to the tools path, on a Windows 2K or W98 box the PATH environment variable typically becomes set to include the path
"C:\Program Files\Common Files\Symbian\Tools"
In that folder you will find files such as "AIFBuilder.exe".
So if you don't have that path on XP then you could try searching for that exe file to see where it has ended up after installation. The location where you find it is your UIQ SDK tools path. You can check if the path is correctly setup already by opening a DOS shell, then type the command

devices

You should see something like :

UIQ_70:com.symbian.UIQ

If that works then you are well on your way to using the neccessary tools for PJava deployment on XP. Tell me if you get that far and I can then try to guide you further.

Thanks for that.

I can run the example apps that come with the UIQ SDK in java (using the java command) but not with the emulator (using the pjava commands)

When I run pjava i get the following message...

Unable to initialize threads cannot find class java/lang/Thread

I am running the j2sdk1.4.1_02 and runtime of the same version.

[quote="orange.peel"]Thanks for that.

I can run the example apps that come with the UIQ SDK in java (using the java command) but not with the emulator (using the pjava commands)

When I run pjava i get the following message...

Unable to initialize threads: cannot find class java/lang/Thread

I am running the j2sdk1.4.1_02 and runtime of the same version.[/quote]

That is a class path problem, the JVM can't find any of the classes needed.

Check if this works for you :

Define the following environment variable:

set _epoc_drive_j=C:\Symbian\uiq_70\epoc32\Java

(Symbian J: virtual drive letter) This will have the VM find its 'classes.zip' file.

If your application is located in some other folder than this, then define yet another environment variable (Symbian I: virtual drive letter). Let's assume you have a jar file HelloWorld.jar located in the \erj folder where the main class is HelloWorld.class :

set _epoc_drive_i=C:\Symbian\uiq_70\erj

Then run 'pjava_g.exe ' to start the emulator towards your application (notice the use of the I: variable you defined) :

c:\Symbian\uiq_70\epoc32\release\winscw\udeb\pjava_g.exe -cp I:\HelloWorld.jar HelloWorld

That will start the emulator towards that application. If the application does not show up on screen then press CTRL+SHIFT+ALT+T which brings up a task list. Select your application in that list and press "Go to File" and you should then see your application on screen.

Thanks Gunnar-P800 for the info.

I have also located the AIFbuilder.exe in the path "c:\program files\common files\symbian\tools" and have set the SDK path to reflect this. However, In XP when I type the command:

devices

I get a reply stating "'Perl' is not recognised has an internal or external command, operable program or batch file."

[quote="rocketman"]However, In XP when I type the command:

devices

I get a reply stating "'Perl' is not recognised has an internal or external command, operable program or batch file."[/quote]

Normally Perl becomes installed part of the UIQ SDK install. Check if you find a folder "C:\perl" on your system. If so, the "C:/perl/bin" folder needs to be on the search path. In a DOS shell, type "perl -version" and you should get a printout that shows if it's on your path.

Hi Gunnar-p800

I included the search path "c:\perl\bin". Now Im able to type "perl - version" and get a short message stating the version number. The odd part is that when I go to the directory "c:\program files\common files\symbian\tools" and then type "devices" I get a statement saying

UIQ_70:COM.symbian.uiq - default
UIQ_70:COM.symbian.uiq-runtime

However, the same is not true when Im in any other directory. Although all the search paths and environment variable are set.

Will I ever get this thing to work ? Why is it that neither Sony Ericsson nor Symbian provide for more explanatory documentation for UIQ setup for use on its P800.

Thanks

[quote="rocketman"]
Will I ever get this thing to work ? Why is it that neither Sony Ericsson nor Symbian provide for more explanatory documentation for UIQ setup for use on its P800.

Thanks[/quote]

Well XP isn't one of the supported OS'es to begin with. Normally things would work right away after the install, that's why no end-user debugging help is supposed to be needed. What I've been doing here is try to help you breathe life into something that is unsupported. I suggest other developers who got this to work on XP feel free to assist rocketman in progressing. I still think it could help to take a look at your search path setting.