Jmol, Java and netscape.javascript

Jussi Lehtola jussilehtola at fedoraproject.org
Tue Aug 23 08:44:52 UTC 2011


On Wed, 17 Aug 2011 13:05:21 -0400
Omair Majid <omajid at redhat.com> wrote:
> On 08/17/2011 12:22 PM, Jussi Lehtola wrote:
> > Hi,
> >
> > I tried to update Jmol to the latest release, when I ran once again
> > into
> >
> > error: package netscape.javascript does not exist
> > import netscape.javascript.JSObject;
> >
> 
> The package is not standard part of Java. It is provided by
> plugin.jar. In Fedora <= 15 plugin.jar was included with the JDK (if
> the java-1.6.0-openjdk-plugin package was installed). Now plugin.jar
> is provided by icedtea-web.
> 
> > My spec builds fine in Fedora 15, but fails to build in 16 and 17.
> > http://pkgs.fedoraproject.org/gitweb/?p=jmol.git;a=blob;f=jmol.spec;hb=HEAD
> >
> > Does someone have a solution to this problem?
> 
> I think one possible fix would be to BuildRequire icedtea-web and 
> include /usr/share/icedtea-web/plugin.jar in the classpath.

icedtea-web had already been a BuildRequire since Fedora 15 (and the
package compiles fine in Fedora 15), but the jar file has been moved
after that.

$ ant -lib %{_datadir}/icedtea-web/plugin.jar doc main
doesn't work, it still fails in the same error.
-- 
Jussi Lehtola
Fedora Project Contributor
jussilehtola at fedoraproject.org


More information about the devel mailing list