Menu

#1 Compile trouble when using latest version of external jars

open
nobody
None
5
2003-04-14
2003-04-14
Anonymous
No

I tried to get the samples up and running but ran into
trouble when adding jars to the classpath.
I think it might have something to do with different
versions of jars files.

What versions are using on your external libraries?
crimson.jar
js.jar
mail.jar
activation.jar

The specific library I used and that gave trouble was the
js.jar file. I used the latest version "Rhino 1.5R4" found
at http://www.mozilla.org/rhino/download.html
(ftp://ftp.mozilla.org/pub/js/rhino15R4.zip)

Compile errors as shown below. It seems that the
acccess is changed from public to package private for
NativeString in later versions.

H:\projects\XmlSwingTest\sources\xmlswing\ui\TestUI.ja
va

Error: line (332) org.mozilla.javascript.NativeString
is not public in org.mozilla.javascript; cannot be
accessed from outside package

Error: line (334) org.mozilla.javascript.NativeString
is not public in org.mozilla.javascript; cannot be
accessed from outside package

Error: line (335) org.mozilla.javascript.NativeString
is not public in org.mozilla.javascript; cannot be
accessed from outside package

Error: line (336) toString() in
org.mozilla.javascript.NativeString is not defined in a
public class or interface; cannot be accessed from
outside package

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.