From: Andrew Thompson on
I suggest you break it down to the simplest
valid files that can display the error.

1) <http://java.sun.com/javase/6/docs/technotes/guides/javaws/
developersguide/syntax.html#applet_desc>
"The documentBase *must* be provided explicitly
since a JNLP file is not embedded in an HTML page."
(Emphasis mine)
2)
<java
version="1.6+"
href="http://java.sun.com/products/autodl/j2se"
max-heap-size="512m"/>
The deployJava.js should ensure 1.6 but if you
want to get technical, the version attribute
should be 1.6.0_10+. So I'd recommend to change
that element to..
<java version="1.6.0_10+"/>
3) <property name="jnlp.packEnabled" value="true"/>
...is redundant to a simple test example.

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)

--
Andrew T.
pscode.org
From: Thomas Pornin on
According to Andrew Thompson <andrewthommo(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.


--Thomas Pornin
From: Jeffrey H. Coffield on


Qu0ll wrote:
> My applet is launched using a JNLP file (by specifying the jnlp_href
> parameter in deployJava.js) and this is working very nicely on most
> browsers on Windows but when I tried it on Linux (Ubuntu 9.10 and
> Firefox 3.5.7) it doesn't launch with the error being that it was unable
> to find the applet class (ClassNotFoundException).
>
> So, does launching an applet (yes, applet) using JNLP work at all on
> Linux? In all cases I am using Java 6 Update 18.
>
> There is absolutely no point in us continuing development of this applet
> if we are unable to launch it via JNLP on all platforms so the answer to
> this question is critical.


I thought that an applet and Java Web Start were two different things. I
use NetBeans on Linux to build Java/Swing applications, switch the
project to "web start" and it builds a start.html and a start.jnlp.
Since I don't use Tomcat, I then edit the .jnlp file to get the correct
codebase name and put the whole "dist" folder on the web server. These
are then used by Mac, Linux (Suse usually) and even Windoze users. The
only issue I have had was a work around for some issue with the Mac.

Jeff
From: Roedy Green on
On Fri, 26 Feb 2010 21:03:04 +1100, "Qu0ll" <Qu0llSixFour(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? Perhaps converting it
to the other might be a way out.
--
Roedy Green Canadian Mind Products
http://mindprod.com

The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
~ Douglas Adams (born: 1952-03-11 died: 2001-05-11 at age: 49)
From: Qu0ll on
"Andrew Thompson" <andrewthommo(a)gmail.com> wrote in message
news:4b3252f5-11ad-4a45-a729-a80ac14cd1b1(a)q2g2000pre.googlegroups.com...

> I suggest you break it down to the simplest
> valid files that can display the error.
>
> 1) <http://java.sun.com/javase/6/docs/technotes/guides/javaws/
> developersguide/syntax.html#applet_desc>
> "The documentBase *must* be provided explicitly
> since a JNLP file is not embedded in an HTML page."
> (Emphasis mine)

I tried this and it hasn't helped and I doubt it's going to help Java find
the DownloadServiceListener class.

> 2)
> <java
> version="1.6+"
> href="http://java.sun.com/products/autodl/j2se"
> max-heap-size="512m"/>
> The deployJava.js should ensure 1.6 but if you
> want to get technical, the version attribute
> should be 1.6.0_10+. So I'd recommend to change
> that element to..
> <java version="1.6.0_10+"/>

Good point but again it hasn't helped.

> 3) <property name="jnlp.packEnabled" value="true"/>
> ..is redundant to a simple test example.

True, but makes no difference either way.

> 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.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour(a)gmail.com
[Replace the "SixFour" with numbers to email me]