problem with compiling

Reply

Join Date: Sep 2009
Posts: 15
Reputation: shashikant.v is an unknown quantity at this point 
Solved Threads: 0
shashikant.v shashikant.v is offline Offline
Newbie Poster

problem with compiling

 
0
  #1
22 Days Ago
hi friends

when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me

thanks in advance for reply
shashikant
shashikant
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,356
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 252
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven
 
0
  #2
22 Days Ago
by, instead of calling javac <filename> calling javac -Xlint:deprecation <filename> and letting the compiler tell you exactly what it doesn't like. The message, however, is only a warning.
Last edited by masijade; 22 Days Ago at 4:59 am.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 26
Reputation: Cronless is an unknown quantity at this point 
Solved Threads: 2
Cronless Cronless is offline Offline
Light Poster
 
0
  #3
21 Days Ago
Deprecation warnings are telling you that the API you're calling has been marked as unsuitable for long-term use. Generally, the documentation for that class will tell you what should be used instead--consult the Javadoc for the object you're using in your program and it should shed some light on the matter.
~~ Free Cron Jobs - Online Cron Service ~~
Best place to run your PHP Cron Jobs
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 13
Reputation: topest1 is an unknown quantity at this point 
Solved Threads: 0
topest1 topest1 is offline Offline
Newbie Poster
 
0
  #4
20 Days Ago
It is just a warning !
http://www.j2ee.me/j2se/1.5.0/docs/a...eprecated.html


use "javac filename.java Xlint:deprecation"

It will tell you which method is deprecated
Search the Java Docs for the better equivalent
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3
Reputation: josephkn is an unknown quantity at this point 
Solved Threads: 0
josephkn josephkn is offline Offline
Newbie Poster
 
1
  #5
18 Days Ago
it is a common problem when dealing with applet so you need to create an applet to view the output or if not an applet program look at the compillation options given to you after compilling
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,356
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 252
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven
 
1
  #6
18 Days Ago
Originally Posted by josephkn View Post
it is a common problem when dealing with applet so you need to create an applet to view the output or if not an applet program look at the compillation options given to you after compilling
Huh? This is purely a compilation issue. What does applet, or not applet, have anything to do with it?
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 15
Reputation: shashikant.v is an unknown quantity at this point 
Solved Threads: 0
shashikant.v shashikant.v is offline Offline
Newbie Poster
 
0
  #7
11 Days Ago
Originally Posted by topest1 View Post
It is just a warning !
http://www.j2ee.me/j2se/1.5.0/docs/a...eprecated.html


use "javac filename.java Xlint:deprecation"

It will tell you which method is deprecated
Search the Java Docs for the better equivalent
dear sir,

I am beginer in java and I am working on a project so that i am unable to solve the deprecation warning. so pls help how that warning will be solved.
pls help me.

thanks for ur reply
shashikant
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 15
Reputation: shashikant.v is an unknown quantity at this point 
Solved Threads: 0
shashikant.v shashikant.v is offline Offline
Newbie Poster

tanks

 
0
  #8
11 Days Ago
dear sir
thanks for ur reply
i am beginer in java and working on a project , and i am unable to solve the deprecation warning so pls help me how that warning will be solved. if necessary i can forward my code.
pls give reply as soon as possible.
thanks
shashikant
shashikant
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,356
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 252
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven
 
0
  #9
11 Days Ago
And have you used that option to javac, yet? Using an option on a command line is not a Java issue, and if you do not know how to provide options and arguments to a command on the command line then you need to learn that, first. And, as said, that is not a Java issue.

If it is that you are using an IDE and don't know how to set the options in the IDE, well, read the user documentation for your IDE and find out how.

Once you have the respective issue corrected, then do that. If you still don't understand what's wrong, then post here what that compilation attempt gave you and we will help you further.

P.S. PM's asking for help are summarily ignored.

Edit: If you simply want the warning to "go away" then use the "@Deprecated" annotation (Google that) or use the "-nowarn" or "-Xlint:none" options to javac.
Last edited by masijade; 11 Days Ago at 6:49 am.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 15
Reputation: shashikant.v is an unknown quantity at this point 
Solved Threads: 0
shashikant.v shashikant.v is offline Offline
Newbie Poster

problem while compiling

 
0
  #10
11 Days Ago
Originally Posted by topest1 View Post
It is just a warning !
http://www.j2ee.me/j2se/1.5.0/docs/a...eprecated.html


use "javac filename.java Xlint:deprecation"

It will tell you which method is deprecated
Search the Java Docs for the better equivalent
dear sir
i have gone through ur given reply but as a beginer in java i cant able to solve the problem of deprecation. so pls help me how the problem will be solved.
thanks
shashikant
shashikant
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC