xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Cox" <j...@kornet.net>
Subject Setting Up Java Class Packages
Date Mon, 19 Nov 2007 21:55:28 GMT
Hello,

 

I am trying to set up Java for Batik with the NetBeans IDE.  I seen to have problems with
conflicting source levels of some of the dependant libraries.

 

When I try to build with Source Level 1.6 I get the following type errors:

 

E:\wc3\org\w3c\app\db\TableObject.java:283: as of release 5, 'enum' is a keyword, and may
not be used as an identifier

(use -source 1.4 or lower to use 'enum' as an identifier)

        Enumeration enum = hdata.keys();

                    ^

E:\wc3\org\w3c\app\db\TableObject.java:285: as of release 5, 'enum' is a keyword, and may
not be used as an identifier

(use -source 1.4 or lower to use 'enum' as an identifier)

        while (enum.hasMoreElements()) {

               ^

E:\wc3\org\w3c\app\db\TableObject.java:287: as of release 5, 'enum' is a keyword, and may
not be used as an identifier

(use -source 1.4 or lower to use 'enum' as an identifier)

            String keyed = (String) enum.nextElement();

                                    ^

E:\wc3\org\w3c\app\db\TableObject.java:939: as of release 5, 'enum' is a keyword, and may
not be used as an identifier

(use -source 1.4 or lower to use 'enum' as an identifier)

        Enumeration enum = hdata.keys();

                    ^

E:\wc3\org\w3c\app\db\TableObject.java:945: as of release 5, 'enum' is a keyword, and may
not be used as an identifier

(use -source 1.4 or lower to use 'enum' as an identifier)

        while (enum.hasMoreElements()) {

               ^

************

 

 

 While I attempt to build with Source Level 1.4 or below, I get the following errors:

 

E:\wc3\org\w3c\IsaViz\fresnel\FSLSesameHierarchyStore.java:157: generics are not supported
in -source 1.4

(use -source 5 or higher to enable generics)

    public void handleTuple(List<? extends Value> tuple){

E:\wc3\org\w3c\app\db\TableObject.java:283: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

        Enumeration enum = hdata.keys();

                    ^

E:\wc3\org\w3c\app\db\TableObject.java:285: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

        while (enum.hasMoreElements()) {

               ^

E:\wc3\org\w3c\app\db\TableObject.java:287: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

            String keyed = (String) enum.nextElement();

                                    ^

E:\wc3\org\w3c\app\db\TableObject.java:939: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

        Enumeration enum = hdata.keys();

                    ^

E:\wc3\org\w3c\app\db\TableObject.java:945: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

        while (enum.hasMoreElements()) {

               ^

E:\wc3\org\w3c\app\db\TableObject.java:947: warning: as of release 5, 'enum' is a keyword,
and may not be used as an identifier

(use -source 5 or higher to use 'enum' as a keyword)

            String keyed = (String) enum.nextElement();

 

 

 

 

Are there any suggestions on how to fix this problem? The only w3c.org.app packages that I
have found are 7 years old.

 

Thanks for any help in advance.

 

Joe


Mime
View raw message