All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 30-04-2003, 01:32 PM
orange.peel orange.peel is offline
Registered User
 
Join Date: Apr 2003
Posts: 32
orange.peel is on a distinguished road
PersonalJava development under XP with UIQ SDK

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.

  #2  
Old 02-05-2003, 07:48 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Re: PersonalJava development under XP with UIQ SDK

Quote:
Originally Posted by 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.
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.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden
Ads

  #3  
Old 02-05-2003, 11:05 PM
Guest
 
Posts: n/a
PJava

I can get that far... What do i do now? i'm using win2k...

  #4  
Old 03-05-2003, 02:26 PM
orange.peel orange.peel is offline
Registered User
 
Join Date: Apr 2003
Posts: 32
orange.peel is on a distinguished road
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.

  #5  
Old 05-05-2003, 12:24 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Quote:
Originally Posted by 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.

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.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden

  #6  
Old 05-05-2003, 01:29 PM
vandoor vandoor is offline
Registered User
 
Join Date: Apr 2003
Posts: 13
vandoor is on a distinguished road
thanks for all,
my application starts now!!

i m happy lol

thanks ...

+++

vandoor

  #7  
Old 06-05-2003, 11:19 AM
Guest
 
Posts: n/a
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."

  #8  
Old 11-05-2003, 08:13 AM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Quote:
Originally Posted by 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."
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.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden

  #9  
Old 21-05-2003, 10:20 AM
Guest
 
Posts: n/a
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

  #10  
Old 26-05-2003, 09:11 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Quote:
Originally Posted by 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
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.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden
 

Bookmarks

Tags
development, personaljava, sdk, uiq

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 01:11 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy