Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 08:38:31 +1030
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        David Horwitt <horwitt@aogsquid.ucsd.edu>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: plugin,Netscape,and 1.3.1p6
Message-ID:  <20020312083831.A9904@misty.eyesbeyond.com>
In-Reply-To: <200203112125.g2BLPX368770@aogsquid.ucsd.edu>; from horwitt@aogsquid.ucsd.edu on Mon, Mar 11, 2002 at 01:25:33PM -0800
References:  <200203112125.g2BLPX368770@aogsquid.ucsd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 11, 2002 at 01:25:33PM -0800, David Horwitt wrote:
> Question 1: It seems that I need to run the linux-communicator instead
> of the FreeBSD communicator since the native browser only understands a.out
> and all the plugins are ELF. Is this correct? I would prefer to run the
> native browser if possible.

Netscape didn't allow you to choose different plugins (AFAIK) until 4.78.
Unfortunately the last FreeBSD version was 4.77.  And yes, there is the
a.out vs. ELF issue.

> Question 2: Since I'm using a linux browser, it seems that I also must use the 
> linux Java plugin, as the FreeBSD plugin built from 1.3.1p6 generates the 
> complaint "ELF file OS ABI invalid". Once again, is it possible to use the 
> native FreeBSD plugin with a Netscape browser (I am _NOT_ interested in running
> Mozilla)? Maybe a tool to convert linux ELF to FBSD ELF?

Its not possible to run a FreeBSD shared library in a Linux executable and
vice versa, so yes you need the Linux plugin.

> Question 3: The plugin doesn't actually work to run applets. java_vm starts OK,
> but it seems that the codebase attribute in the <applet> is not being
> interpreted correctly. For example, trying to run the Clock demo from the JDK
> generates this error in the Java console:
> 	java.lang.ClassNotFoundException: java.io.FileNotFoundException: 
> 	/usr/local/java/jdk/demo/applets/Clock/example1.html/Clock2/class.class
> 	(Not a directory)
> If I change the codebase attribute from :
>     <applet codebase="." code="Clock2.class" width=170 height=150>
>       alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
>       Your browser is completely ignoring the &lt;APPLET&gt; tag!
> </applet>
> 
> to:
>     <applet codebase="/usr/local/java/jdk/demo/applets/Clock" code="Clock2.class" width=170 height=150>
>       alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
>       Your browser is completely ignoring the &lt;APPLET&gt; tag!
> </applet>
> 
> the applet runs in the browser. Running the (original) applet from appletviewer 
> works fine.
> 
> When the applet fails, and JAVA_PLUGIN_TRACE is enabled, one of the outputs is:
> MAV(16778478) codebaseURL = file:/usr/local/java/jdk/demo/applets/Clock/example1.html/
> When it works (with the full-path codebase) the corresponding output line is:
> MAV(16778478) codebaseURL = file:/usr/local/java/jdk/demo/applets/Clock/
> 
> I poked around MotifAppletViewer.java, thinking there was a simple bug in
> setting the codebase path, but was quickly overwhelmed due to my Java ignorance.
> 
> I am using the green_threads java_vm. I have monkeyed with various incantations
> of CLASSPATH with no apparent effect.
> 
> Is this a Netscape problem, a plugin problem, a java_vm problem, a personal 
> problem (eg I built the JDK incorrectly or my environment is wrong), or ???

Given that the native plugin can't conceivably work with any version of 
Netscape less than 6, what are you running it in when you attempt this?

Also note that due to the above situation there has been zero testing of
the Netscape 4 version of the plugin, which is what you would need to
use if you somehow had a Netscape 4 version which could use it.

> Thanks for any help/insights/clues you can provide.

HTH.

-- 
Greg Lewis                            Email : glewis@eyesbeyond.com
Eyes Beyond                           Web   : http://www.eyesbeyond.com
Information Technology


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020312083831.A9904>