Jump to content
  • 0
homework9293

4 Errors when trying to compile client

Question

I get these errors when I try to compile my client:

starting...
src\Class466.java:6: error: package netscape.javascript does not exist
import netscape.javascript.JSObject;
^
src\Class457.java:78: warning: Win32GraphicsDevice is internal proprietary API a
nd may be removed in a future release
Field field = sun.awt.Win32GraphicsDevice.class.
getDeclaredField("valid");
^
src\Class457.java:93: warning: Win32GraphicsDevice is internal proprietary API a
nd may be removed in a future release
Field field = sun.awt.Win32Graph
icsDevice.class.getDeclaredField("valid");
^
src\Class457.java:103: warning: Win32GraphicsDevice is internal proprietary API
and may be removed in a future release
Field field = sun.awt.Win32GraphicsDevic
e.class.getDeclaredField("valid");
^
src\Class110_Sub1.java:14: warning: Unsafe is internal proprietary API and may b
e removed in a future release
long aLong8597;
^
src\Class_ra_Sub3.java:35: warning: Unsafe is internal proprietary API and may b
e removed in a future release
public Unsafe anUnsafe8219;
^
src\Class_ra_Sub3.java:5: warning: Unsafe is internal proprietary API and may be
removed in a future release
import java.nio.ByteBuffer;
^
src\Class_ra_Sub3.java:2864: warning: Unsafe is internal proprietary API and may
be removed in a future release
Field field = sun.misc.Unsafe.class.getDeclaredF
ield("theUnsafe");
^
src\Class_ra_Sub3.java:2866: warning: Unsafe is internal proprietary API and may
be removed in a future release
anUnsafe8219 = (Unsafe) field.get(null);
^
src\Class387_Sub3.java:157: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_7894.anUns
afe8219;
^
src\Class387_Sub3.java:2636: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2668: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2815: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2854: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class466.java:11: error: cannot find symbol
JSObject.getWindow(applet).eval(string);
^
symbol: variable JSObject
location: class Class466
src\Class466.java:19: error: cannot find symbol
return JSObject.getWindow(applet).call(string, null);
^
symbol: variable JSObject
location: class Class466
src\Class466.java:27: error: cannot find symbol
return JSObject.getWindow(applet).call(string, objects);

^
symbol: variable JSObject
location: class Class466
src\Class481_Sub1.java:74: warning: AuthenticationInfo is internal proprietary A
PI and may be removed in a future release
Class var_class = sun.net.[url]www.protocol.h[/url]
ttp.AuthenticationInfo.class;

^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
14 warnings
Press any key to continue . . .

-------



How do I fix them?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
[quote name='homework9293']I get these errors when I try to compile my client:

starting...
src\Class466.java:6: error: package netscape.javascript does not exist
import netscape.javascript.JSObject;
^
src\Class457.java:78: warning: Win32GraphicsDevice is internal proprietary API a
nd may be removed in a future release
Field field = sun.awt.Win32GraphicsDevice.class.
getDeclaredField("valid");
^
src\Class457.java:93: warning: Win32GraphicsDevice is internal proprietary API a
nd may be removed in a future release
Field field = sun.awt.Win32Graph
icsDevice.class.getDeclaredField("valid");
^
src\Class457.java:103: warning: Win32GraphicsDevice is internal proprietary API
and may be removed in a future release
Field field = sun.awt.Win32GraphicsDevic
e.class.getDeclaredField("valid");
^
src\Class110_Sub1.java:14: warning: Unsafe is internal proprietary API and may b
e removed in a future release
long aLong8597;
^
src\Class_ra_Sub3.java:35: warning: Unsafe is internal proprietary API and may b
e removed in a future release
public Unsafe anUnsafe8219;
^
src\Class_ra_Sub3.java:5: warning: Unsafe is internal proprietary API and may be
removed in a future release
import java.nio.ByteBuffer;
^
src\Class_ra_Sub3.java:2864: warning: Unsafe is internal proprietary API and may
be removed in a future release
Field field = sun.misc.Unsafe.class.getDeclaredF
ield("theUnsafe");
^
src\Class_ra_Sub3.java:2866: warning: Unsafe is internal proprietary API and may
be removed in a future release
anUnsafe8219 = (Unsafe) field.get(null);
^
src\Class387_Sub3.java:157: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_7894.anUns
afe8219;
^
src\Class387_Sub3.java:2636: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2668: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2815: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class387_Sub3.java:2854: warning: Unsafe is internal proprietary API and may
be removed in a future release
Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
94.anUnsafe8219;
^
src\Class466.java:11: error: cannot find symbol
JSObject.getWindow(applet).eval(string);
^
symbol: variable JSObject
location: class Class466
src\Class466.java:19: error: cannot find symbol
return JSObject.getWindow(applet).call(string, null);
^
symbol: variable JSObject
location: class Class466
src\Class466.java:27: error: cannot find symbol
return JSObject.getWindow(applet).call(string, objects);

^
symbol: variable JSObject
location: class Class466
src\Class481_Sub1.java:74: warning: AuthenticationInfo is internal proprietary A
PI and may be removed in a future release
Class var_class = sun.net.[url]www.protocol.h[/url]
ttp.AuthenticationInfo.class;

^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
14 warnings
Press any key to continue . . .

-------



How do I fix them?[/QUOTE]
[code]
import netscape.javascript.JSObject;[/code]
either a miss-spelt package or a useless one (either fix or delete)

there all pretty self-explanatory

Share this post


Link to post
Share on other sites
  • 0
[quote name='officiallulzs3c'][code]
import netscape.javascript.JSObject;[/code]
either a miss-spelt package or a useless one (either fix or delete)

there all pretty self-explanatory[/QUOTE]
That's wrong silly :P
^

In your client folder, make a folder called "libs" and put your clientlibs in there.

Share this post


Link to post
Share on other sites
  • 0
I assume you are using Java 8 to compile. Since java 8 netscape is no longer included in the runtime. Java 7 still has it but clientlibs.jar has it too so the package is known everywhere. So like ferret said, include the library in your classpath.

Share this post


Link to post
Share on other sites
  • 0
[quote name='ferret']That's wrong silly :P
^

In your client folder, make a folder called "libs" and put your clientlibs in there.[/QUOTE]

my bad, never really been a fan of anything 317+ so not familiar with the doc's on libs and etc

Share this post


Link to post
Share on other sites

×