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

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

iv tried before n after dunnooo

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.