Notices

Tips and Tricks Share tips that can save others time and frustration here !

Reply
 
LinkBack Thread Tools
Old 09-13-06, 02:44 PM   #1 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,572
Thanked 1 Time in 1 Post
New Java & PPC tips & tricks, incl. running Oanda.com Stocks Applet

How do I run the well-known Oanda.com Stocks Applet on my Pocket PC? (Incl. TONS of brand new, never-published Java tips & compatibility reports!)

I’ve just received a question over at the Pocket PC Thoughts forums (read it in its entirety if interested) concerning how the well-known Oanda.com Stocks Applet should be run on the Pocket PC.

When you click this link on your desktop, the stocks applet will run just OK. When you click it on your Pocket PC, on the other hand, it won’t – just a strange, small “beta.jnlp” file will be downloaded to the Pocket PC.

This is a Java-related file but, as there are no so-called “Java Web Start” (JWS) ports on the Pocket PC. Don’t EVER try to copy the files off, say, the JWS files off your IBM J9 ( from \Program Files\IBM\WEME\runtimes\61\wm50-arm-midp20\_jvm\jre\javaws on your desktop PC ) - you can’t directly run it on the PPC because it’s compiled for the desktop Windows, not for the Pocket PC operating system.

That is, the only way to access ANY applet that only has a Java Web Start interface (and not a standard applet interface) is just converting its .jnlp file to a simpler, Pocket PC-compliant HTML page containing a simple APPLET tag.

The conversion itself isn’t very complicated: if you just compare the above-linked source .jnlp file and the result of my conversion available here (the latter is clickable from any Java-capable desktop browser to see it indeed works. Note that you should NOT click it from the Pocket PC IEM equipped with CrEme simply because the latter doesn’t parse the ‘codebase’ attribute if it’s secure and, therefore, won’t work)

You can also fully download the entire Java archive (the references beta.jar) so that you greatly speed up the connection / reduce the internet traffic (you don’t end up having to fetch the 600-kbyte JAR file each time you want to connect to it and it’s not in the local automatic cache): just click this link, save the JAR file and copy it to anywhere (in any directory) on your PDA.

After this, just install either Jeode or CrEme on your PDA. The latter is NOT recommended if you have a WM5 device: as you will need to explicitly switch to the Tiny mode with CrEme (read THIS for a complete tutorial - you will need to follow it if you stick to CrEme), which isn’t supported under WM5, you will only be able to run the applet under Jeode if you have a WM5 Pocket PC. Please consult my other Java-related articles on these two JVM’s (availibility, download etc): I won’t repeat here what I’ve already written about.

After this, download (right-click the link and choose “Save Target As...”) and copy this file to the same directory where beta.jar resides. Do the same to either of the CrEme or the Jeode link ("executable") files. (Note that in the latter you’ll need to modify the file URL “file:///local.html” to contain the actual path of local.html if it isn’t in the root directory. With the CrEme-specific command link file, this isn’t necessary.)

Now, just click the last-copied lnk file and the applet will start.

Some screenshots:

CrEme, QVGA, without the Tiny library
CrEme, forced VGA, with the Tiny library

Note that, by default, CrEme isn’t VGA-aware; you can just force \Windows\CrEme\bin\CrEme.exe into VGA (don’t need to explicitly switch to VGA). The same stands for Jeode’s \Windows\evm.exe.

Jeode, QVGA
Jeode, forced VGA

As can clearly be seen, if you plan to run the applet on a QVGA device, you will want to consider doing it in Landscape mode and, at least with CrEme, switching to full-screen mode (with the additional '-ntb' parameter in the .lnk file)

Recommended reading

Please do check out my Java-related articles if you have Java on the Pocket PC-related questions. I’ve published dozens of high-quality articles on all questions about Java on the Pocket PC.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Sponsor Ads
Reply

Tags
applet, incl, java, oandacom, ppc, running, stocks, tips, tricks

Sponsor Ads

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toy Golf (Fathammer) Tips and Tricks dboy Games 16 06-02-06 02:56 PM
:help: Repost from Tips and tricks hegui PDA/AXIM Newbies 0 10-21-04 10:56 AM
Tips and Tricks Beowulf Site Troubles/Suggestions 1 02-10-03 04:39 PM
tips and tricks dreamchaser Site Troubles/Suggestions 3 01-23-03 11:43 AM


All times are GMT -5. The time now is 02:28 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC