problem

S

Sreenivas

When i am writing code using enum, varargs in eclipse ,it says
source level is not 5.0 compliant so i am unable to use them .could
anybody suggest the work around for this problem?
Thanks in Advance,
Srinivas Reddy Thatiparthy.
 
R

Roedy Green

When i am writing code using enum, varargs in eclipse ,it says
source level is not 5.0 compliant so i am unable to use them .could
anybody suggest the work around for this problem?

use JDK 1.5+ and use the -source 1.5 option on the javac command line,
or configure your IDE to use that for the project.
 
L

Lew

Roedy said:
use JDK 1.5+ and use the -source 1.5 option on the javac command line,
or configure your IDE to use that for the project.

In particular, you use the Eclipse options or projects properties dialogs to
set the compiler options, which include a version compliance option.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top