The Artima Developer Community
Sponsored Link

Java Answers Forum
Deprecated?

3 replies on 1 page. Most recent reply: Aug 22, 2002 3:08 AM by Ratul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Maria Armstrong

Posts: 2
Nickname: a007007007
Registered: Jul, 2002

Deprecated? Posted: Jul 15, 2002 7:14 PM
Reply to this message Reply
Advertisement
Hello

I have a small applet which I can't seem to compile on account of the error messages which I am getting (below).

navdeluxe.java:9: cannot resolve symbol
symbol : class JSObject
location: package javascript
import netscape.javascript.JSObject;
^
navdeluxe.java:349: cannot resolve symbol
symbol : class JSObject
location: class navdeluxe
JSObject jsobject = JSObject.getWindow(this);
^
navdeluxe.java:349: cannot resolve symbol
symbol : variable JSObject
location: class navdeluxe
JSObject jsobject = JSObject.getWindow(this);
^
navdeluxe.java:358: cannot resolve symbol
symbol : class JSException
location: class navdeluxe
catch(JSException _ex)
^
Note: navdeluxe.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
5 errors

C:\jdk1.3.1\bin>

I understand that deprecation means 'soon to be invalid', but does that mean I have to rewrite the whole thing?

Many thanks and best wishes


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Deprecated? Posted: Jul 15, 2002 9:55 PM
Reply to this message Reply
> Note: navdeluxe.java uses or overrides a deprecated
> API.
> Note: Recompile with -deprecation for details.

In some rare cases, a compiler does give useful messages. In this case, if you recompile with the -deprecation command line option, as suggested, you can probably squeak by for a while longer.

Maria Armstrong

Posts: 2
Nickname: a007007007
Registered: Jul, 2002

Re: Deprecated? Posted: Jul 16, 2002 3:57 AM
Reply to this message Reply
Hello Matt

Thank you for your message.

I'll try it.

Best wishes

Ratul

Posts: 5
Nickname: rats
Registered: Aug, 2002

Re: Deprecated? Posted: Aug 22, 2002 3:08 AM
Reply to this message Reply
Hi,

You need to put the required jar file which contain JSObject etc classes in the classpath.

You can do one thing there will be a jar file called -'jaws.jar' in your jdk installation (...D:\jdk1.3.1\jre\lib\jaws.jar) - copy 'jaws.jar' file to the directory called 'ext'(...D:\jdk1.3.1\jre\lib\ext) and try compiling.

Hope this helps you.

Flat View: This topic has 3 replies on 1 page
Topic: XML Reading... Previous Topic   Next Topic Topic: How to configure MYSQL in WSAD4.0.3

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use