[HTC Excalibur] truggl:
Hello everybody,

I've figured a few things out regarding JBed and Opera Mini on Kavana's latest WM6.1 ROM, and I thought I'd share them with you.

Introduction

First off, a quick introduction: Opera Mini 4, a Java MIDlet web browser, is arguably the best browser available for Windows Mobile. It routes traffic through Opera servers, so it doesn't take as much data (or time) to browse the Web, and it has small-screen rendering like iPhone's. Slashdot, for example, loads in seconds under OM, as opposed to half an hour in Pocket IE. Esmertec JBed respects the system's network settings, so it works with the T-Zones $5.99 internet trick.

JBed isn't perfect, though. It has a few glaring issues: network access permissions, inability to use a MIDlet as a systemwide default browser, and ugly fonts. I haven't figured out the last one yet, but the first two are solvable, and here's how.

Network Access Permissions

Most tutorials for fixing this problem refer to the file \Windows\AppDB\Selector.utf; editing this file and replacing the text

domain=untrusted, \

with

domain=tckmax , \

fixes the problem under Cloudyfa's JBed. The version of JBed in Kavana's WM6.1 stores its data in \Application Data\JavaDB, and the selector.utf trick doesn't work. The culprit is a missing file named policy.utf, which defines tckmax. I've attached a copy of this file; just move it to your \Application Data\JavaDB directory and the selector.utf trick will work as usual.

Systemwide Default Browser

First off, you can make it easier to access Opera Mini by changing the short_IE.lnk file to open OM instead of PIE. I've attached a version of that file for your convenience; copy it to your \Windows directory and the IE (or T-Zones) button will open a usable browser for a change. This only works if OM is the first MIDlet you've installed; if you have installed other MIDlets you'll have to edit the shortcut (Notepad works nicely) to reflect the change. If OM is your second MIDlet, change s0_ to s1_; third, s2_; and so on.

Also, various MortScript scripts have been floating around that attempt to automate the process of copying a clicked link to the system clipboard, opening OM, and pasting the link into the address bar. I haven't found one that works, but a much better solution is available. The linked post contains a CAB file (which I've reposted here for convenience) that installs an actual application that works well under WM6.1. This one is hardcoded with the assumption that Opera Mini is the first MIDlet that you've installed.

One Other Thing

I recommend backing up your \Application Data\JavaDB directory once you get everything working; you can simply copy it back from your backup after a cold boot to get everything working again. I don't know how to make a CAB file myself, but if someone is up to the challenge, I'd suggest making a single file that installs Opera Mini and the Opera Mini Default Browser application, and optionally replaces the PIE button with OM. Or maybe Kavana can add this to his next ROM :)

Hope you find this useful!

EDIT: The application I've attached only works if Opera Mini is the first application ever installed under JBed. If you uninstall it and reinstall it, it will get a new suite number. You can look at your selector.utf file and figure out your suite number (e.g., s1_), but I would recommend clearing out your \Application Data\JavaDB folder to reset your suite numbers. Also, it may be a bad idea to edit your selector.utf file in Notepad; a hex editor should avoid corruption issues.

~truggl