• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

as of release 5, 'enum' is a keyword...

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
following is an open source project that can make keytool in GUI looks and use

i try to understand and use it,however it display such error message during compile 1 of the file
as of release 5, 'enum' is a keyword, and may not be used as an identifier

following it he code


how to solve this problem?, thank
Sincerely

willie
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use '-source 1.4 ' to use enum as an identifier when compiling with javac.
[ October 15, 2008: Message edited by: Pavan Kumar Srinivasan ]
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"L.Willie"
Could you please adjust your screen display name to comply to the ranch naming policy?

Coming back to your problem:
Take a look at this article. It lists the reserved keywords in java. As you can see "enum" is one of them.
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

To fix your problem, you need to change to something like

This doesn't look like an advanced question. Can any of the mods. please move this to a more appropriate forum?
 
L Willie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank,understand now
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by L Willie:
thank,understand now



You are welcome.

Did you also read this?

"L.Willie"
Could you please adjust your screen display name to comply to the ranch naming policy?

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic