954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem Compiling Program

Im trying to compile a program but get this error

javac:invalid flag:order.java-xlint

and when i compile without -xlint i get the following

Note: order.java uses or overided a deprecated API.
Note:Recompile with -Xlint:deprecation for details

cman
Newbie Poster
9 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

compiler flags are case sensitive and need to appear BEFORE any files you are compiling.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

iv tried before n after dunnooo

cman
Newbie Poster
9 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

what EXACTLY is your commandline (all spacing, case sensitive, etc. etc.)?

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Think it's like he said, it's case sensitive and wants the X capitalized. You can compile without it, but you won't get the warnings.

javac ProgramName.java -Xlint

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You