: Tim Tyler wrote:
:> :> : The MIDlet-Jar-URL should have the fully qualified URL for the JAR
:> :> : file in it; i.e.,
http://www.foo.com/download/mysuite.jar. [...]
:> :>
:> :> Should it?
:>
:> : Ought to be.
:>
:> Well it isn't.
: Whatever.
:> :> That means you need a different version of the
:> :> JAD file when you are running locally and when you are
:> :> deploying over the internet.
:>
:> : Why? I know of no situation where running a MIDlet suite locally
:> : requires a different JAD file than when deploying OTA.
:>
:> *If* you can have a remote MIDlet-Jar-URL, and /still/ run offline -
:> then I stand corrected.
:>
:> However, when *I* try this I get:
:>
:> ``Error: Download of
http://foo.bar/test.jar failed.
:> Error: Please check again the URL location and proxy settings
:> Exception Warning: java.util.zip.ZipException: error in opening zip file
:> in thread "main" java.lang.NullPointerException''
:>
:> That may act as a bit of a deterrernt for people contemplating using
:> absoulte URLs.
: But, the whole point of my posts has been to answer the question "how can I
: have users run my MIDlet from a browser on their computer?" I answer that.
: All this rest is irrelevant; if you're offline, you're not running it from
: a website, right? [...]
*if*.
: You're providing ad hoc arguments that go against the
: original question.
The original question never suggested I was offline.
:> :> Developers seem to have voted with their feet on this issue.
:> :>
:> :> They are almost all using relative URLs - presumably so they don't have
:> :> to bother with maintaining or generating different versions for
:> :> different contexts - and if their content ever moves - or is downloaded
:> :> to a local drive - it continues to work.
:>
:> : I have no idea what you're on about. I was giving you some help in
:> : making your JAR/JAD available to the RI emulator, and you're now on
:> : about some hypothetical developers and some unsupported claim about
:> : relative URLs.
:>
:> These developers are *not* "hypothetical".
:>
:>
http://spruce.jp/freemidlets/GO/SpruceGO.jad
:>
:> ...for example. Or:
:>
:>
http://javamobiles.com/midlets/jfdoue/asteroids.jad
:>
:> In fact *all* the JAD files I look at are as I describe -
:> and I have yet to see one "in the wild" that fits your description.
: Dude, what are you looking for, answers or arguments? You point to two JAD
: files with I assume relative URLs. So?
So the "hypothetical developers" are no longer "hypothetical" -
and my "unsupported claim about relative URLs" is supported.
: Almost all of the midlets at MIDlet Central are fully qualified URLs,
: TMK. So what of it?
Maybe - but:
``The Midletcentral Site is still undergoing extended maintenance. We
apologise for any inconvenience caused. Please check back in the next
few weeks.''
If /some/ developers do this it is of low relevance - since most of
the ones I have tried don't. A solution that only works with a tiny
fraction of midlets is unlikely to be very satisfying.
:> Also I believe we are at cross purposes. When I asked to have
:> links to JAD files open the emulator on my desktop, perhaps
:> I should have stated more clearly that these JAD files
:> are likely to be other folk's programs on the internet.
:>
:> I can run my own programs in the emulator OK - it's
:> launching Midlets across the internet from a web
:> browser I was trying to find out about.
: Then why do you ask how people will run them offline?
Where did I mention being offline?
I may have talked about people running JAD files locally.
That was because you raised the issue of using absoulte URLs.
These apparently won't work when the JAD/JAR files are used from desktops
offline - thus, perhaps partially explaining why very few people seem to
use them.
In other words, any mention of being offline was to offer an
explanation of why developers might avoid using absolute URLs.
:> :> They are probably following the principle that hard-wired in absolute
:> :> addresses are usually bad.
:>
:> : Who "they" and from where is the above assertion drawn?
:>
:> The programmers who use relative URLs for their "MIDlet-Jar-URL"s.
: And you've performed a survey to find out that the majority feel this way,
No. I did not claim to know how they felt.
: or you're assuming conclusions to support your assertions?
To quote from the message you are replying to:
``I don't know for certain why they are doing it. Maybe it is due to
the reasons I mentioned. Or maybe it's because that's what all Sun's
examples do.''
:> In other words, I'm looking for the MIDP equivalent of Java Web Start.
: You can install ME4SE and run MIDlets in an applet embedded in a webpage.
Yes - though that's not running midlets from JAD files on web pages by
clicking on their links.
:> Browsers in phones can do it OK - but my desktop machine can't -
:> I have to fall back to the command line to run midlets.
: MIDP was never intended to run in desktops; the whole architecture was
: designed around OTA provisioning to mobiles.
Indeed there are technical reasons stopping it from working in
today's browsers.
That probably explains why Sun didn't implement it - it isn't currently
possible.
No doubt future browsers will allow midlets to be executed from links
on web pages.