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;
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?
--
Jussi Lehtola
Fedora Project Contributor
jussilehtola@fedoraproject.org
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
08-17-2011, 05:05 PM
Omair Majid
Jmol, Java and netscape.javascript
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
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
08-23-2011, 08:44 AM
Jussi Lehtola
Jmol, Java and netscape.javascript
On Wed, 17 Aug 2011 13:05:21 -0400
Omair Majid <omajid@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@fedoraproject.org
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
08-23-2011, 06:25 PM
Omair Majid
Jmol, Java and netscape.javascript
On 08/23/2011 04:44 AM, Jussi Lehtola wrote:
$ ant -lib %{_datadir}/icedtea-web/plugin.jar doc main
doesn't work, it still fails in the same error.
There are two things that were causing problems. The spec file was
setting classpath to a directory, not a jar. Also, the build.xml file
was instructing ant to discard the classpath specified on the command line.
I have attached two patches (made against f16, and contain some extra
debugging commands). I started off a build using them:
The build failed, but it managed to compile at least some of the java
code without the JSObject errors.
Cheers,
Omair
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
08-24-2011, 07:04 PM
Jussi Lehtola
Jmol, Java and netscape.javascript
On Tue, 23 Aug 2011 14:25:16 -0400
Omair Majid <omajid@redhat.com> wrote:
> On 08/23/2011 04:44 AM, Jussi Lehtola wrote:
> > $ ant -lib %{_datadir}/icedtea-web/plugin.jar doc main
> > doesn't work, it still fails in the same error.
>
> There are two things that were causing problems. The spec file was
> setting classpath to a directory, not a jar. Also, the build.xml file
> was instructing ant to discard the classpath specified on the command
> line.
The build.xml statement was indeed the culprit. Thanks for your help!
--
Jussi Lehtola
Fedora Project Contributor
jussilehtola@fedoraproject.org
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel