Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sir help me to resolve

 
azim sain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i compile using following

javac mnu.java

i get a note on command prompt that

Note mnu.java uses a depricated api.
Note recompile using -xlint:deprication for details.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's just a warning, not an error. You can ignore it if you want (the class file has been generated regardless).

To find out what's causing the warning, just follow the instructions it printed out.

Oh, and next time, please UseAMeaningfulSubjectLine when posting.
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you then follow the suggested approach to obtain the details? You haven't given us enough info to help you.
 
azim sain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank sir,but what should i do next for recompiling,give me statemnnt that i should type in ms-dos.
And sir can you explain the purpouse of warming
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message tells you exactly what you need to add to your compile command. I'm sure that the most cursory of Google searches will find examples of how to use that option when compiling Java code from the command line.
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try javac -Xlint:deprecation mnu.java. That will show you which classes / methods you use are deprecated.
 
azim sain
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir,thankz for help
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with Swing/AWT/SWT. Moving the thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic