Jmol, Java and netscape.javascript

Omair Majid omajid at redhat.com
Wed Aug 17 17:05:21 UTC 2011


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.

HTH,
Omair


More information about the devel mailing list