Prev: Testing Java
Next: Java crash
From: Andrew Thompson on 27 Feb 2010 02:57 On Feb 27, 9:34 am, Roedy Green <see_webs...(a)mindprod.com.invalid> wrote: > On Fri, 26 Feb 2010 21:03:04 +1100, "Qu0ll" <Qu0llSixF...(a)gmail.com> > wrote, quoted or indirectly quoted someone who said : > > >> Embedded JNLP applets should not include a codebase > >> attribute. > > >I included that only out of desperation. It doesn't work with or without. > > Is this beast an Applet or a JWS application? .. Since JWS can launch applets, it is not an 'either/or' situation. Normally the applet launched by JWS would become free-floating (outside any web page). But to further complicate things, the plugin2 architecture actually makes it possible to provide webstart abilities to applets that are *embedded* in a web page. See <https://jdk6.dev.java.net/plugin2/jnlp/#USAGE> for more details. This latter circumstance, is the situation the OP is trying to achieve. -- Andrew T. pscode.org
From: Andrew Thompson on 27 Feb 2010 03:13 On Feb 27, 4:46 pm, "Qu0ll" <Qu0llSixF...(a)gmail.com> wrote: > "Andrew Thompson" <andrewtho...(a)gmail.com> wrote in message >... > > I was also kind of hoping you'd have the > > initiative to upload your files to some/any > > site, so people with the systems and specs. > > you are suggesting the problem occurs with, > > can test it by simply clicking a link. (sigh) > > I would like very much to do this but I don't have any publicly accessible > server lying around so if you could suggest a place to put things I will do > it immediately. I am always faintly amused/surprised when a commercial entity (e.g. the company you work for) is unwilling to provide a few bucks for getting a publicly available server for testing such things. I do not make a point of researching free servers any longer (since I am very happy with my current host - http://www.cheap-jsp-hosting.com/), but AFAIR it is possible to upload stuff to free Google sites. But I'll tell you what. Since I have a vested interest in seeing this resolved, if you: 1) Can't find a free server for hosting JNLP applets. 2) Implement *every* recommendation I made. 3) Stick it all in a zip with a build file I can run. 4) Mail that to my gmail address. I will be willing to upload it to my pscode.org site. -- Andrew T. pscode.org
From: Andrew Thompson on 27 Feb 2010 03:18 On Feb 27, 1:05 am, Thomas Pornin <por...(a)bolet.org> wrote: > According to Andrew Thompson <andrewtho...(a)gmail.com>: > > > Huhh.. When I changed over to Ubuntu Linux, I > > specifically chose the 32 bit JRE on the understanding > > that 64 bit did not support applets & JWS! > > Things change over time. I have a 64-bit Ubuntu Linux (9.10) which runs > 64-bit web browsers, which are quite happy with the 64-bit Java plugin > for applet that comes with Sun's JDK. > > Namely, the 'sun-java6-bin' package installs Sun's JVM 1.6.0_16, > including /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/amd64/libnpjp2.so. > My /etc/alternatives/firefox-javaplugin.so link points to that > file, and both Firefox and chromium pick it up. Things just work. Thanks for the further details, especially the discussion of the .so files. I've only found info. that refers to making those changes manually. It is very reassuring that it is now handled by the installer. -- Andrew T. pscode.org
From: Andrew Thompson on 27 Feb 2010 04:12 Based on the advice of Lew and Thomas, I tried again to get JNLP applets working in my Ubuntu box. Since I was doing this, I decided to install Google Chrome before I did anything. Then I visited www.java.com (I'm really only interested in getting it to work in the JRE, since you can *develop* JNLP embedded applets in any recent version of the JDK), got totally confused about which exact installer to download, and ended up getting 3. Had no luck using Sun's instructions to install them, geting errors in the console. <output> Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming... Extracting... ../install.sfx.5948: 1: ELF: not found ../install.sfx.5948: 2: Syntax error: ")" unexpected Done. </output> Then decided to just point Chrome at my existing JNLP based applet* (which I had not previously been able to test, in its embedded form), and found it worked in Chrome! I went as far as checking that I could open images using the (JNLP API) FileOpenService. * Chase the link from <http://pscode.org/gifanim/#applet> So, to answer your original question. *YES* It does work 'at all'. It still fails in FF, but I think that is hangover problems from before, and to be honest, I am not that motivated to try and track down what its problems are. I suspect if I downloaded and installed FF at this instant, it would work. -- Andrew T. pscode.org
From: Andrew Thompson on 27 Feb 2010 04:19
On Feb 27, 8:12 pm, Andrew Thompson <andrewtho...(a)gmail.com> wrote: >...Then decided to just point Chrome at my existing > JNLP based applet* (which I had not previously been > able to test, in its embedded form), and found it > worked in Chrome! I went as far as checking that > I could open images using the (JNLP API) > FileOpenService. > > * Chase the link from > <http://pscode.org/gifanim/#applet> For those using Linux and other browser/JRE combos., note that this applet is small (less than 100Kb) and sand-boxed. If you go to open images for use in the applet, you will be prompted at that moment, as to whether you want to allow the applet that ability. (But of course, the applet is very pointless if you refuse, since it makes animated GIFs from images supplied by the user.) I'd be interested to hear how some of the other Linux based boxes with different browser/JRE combos, go with that applet. ...Oh, and, probably so would Quoll. ;) -- Andrew T. pscode.org |