enum cannot be resolved (or it is not a valid type)


B

bossanovaplayer

Wondering if anyone has any pointers on how to have Eclipse compiling
Java enum(s) without the 'enum cannot be resolved (or it is not a valid
type)' message. I understand that I need to use some sort of compiler
directive to instruct it to use 1.5, but where is that file that I need
to alter the property, if there's one? Below are the Eclipse system
properties as installed.

Thanks,

-BNGP
----------------------------------------------------------------
Eclipse Version: 3.0.2
Build ID:200503110845
*** Date: 6/16/05 1:43 PM
*** Platform Details:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
catalina.base=/c:/Program
Files/Eclipse/eclipse/plugins/org.eclipse.tomcat_4.1.30/
catalina.home=/c:/Program
Files/Eclipse/eclipse/plugins/org.eclipse.tomcat_4.1.30/
catalina.useNaming=true
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M200503110845
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
C:\Program Files\Eclipse\eclipse\eclipse.exe -showsplash 600
-exitdata
C:\Program Files\Eclipse\eclipse\eclipse.exe -exitdata 2b0_38
-vm
C:\WINNT\system32\javaw.exe

eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1118770120653
eclipse.vm=C:\WINNT\system32\javaw.exe
eclipse.vmargs=-cp
C:\Program Files\Eclipse\eclipse\startup.jar
org.eclipse.core.launcher.Main

eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files\Eclipse\eclipse\startup.jar
java.class.version=49.0
java.endorsed.dirs=C:\program files\Java\jre1.5.0_03\lib\endorsed
java.ext.dirs=C:\program files\Java\jre1.5.0_03\lib\ext
java.home=C:\program files\Java\jre1.5.0_03
java.io.tmpdir=C:\DOCUME~1\TEMP\LOCALS~1\Temp\
java.library.path=C:\WINNT\system32;.;C:\WINNT\system32;C:\WINNT;C:\Ent\Appl\Prod\Oracle8i\bin;c:\ent\appl\prod\Oracle8i\JRE\bin;C:\WINNT\system32;c:\ent\appl\prod\perl\5.00502\bin\MSWin32-x86;c:\ent\appl\prod\perl\5.00502\bin;C:\WINNT;C:\WINNT\system32\wbem;c:\ent\appl\prod\bin;
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs=org.apache.naming
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_03-b07
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_03
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_03-b07
line.separator=

org.eclipse.jdt.debug.ui.debuggerActive=false
org.eclipse.jdt.debug.ui.scrapbookActive=false
org.osgi.framework.executionenvironment=
org.osgi.framework.language=en
org.osgi.framework.os.name=WindowsXP
org.osgi.framework.os.version=5.1
org.osgi.framework.processor=x86
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.2.0
os.arch=x86
os.name=Windows XP
os.version=5.1
osgi.arch=x86
[email protected]:start,
[email protected]:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore=c:\Program
Files\Eclipse\eclipse\configuration\org.eclipse.osgi\bundles
osgi.configuration.area=file:/c:/Program
Files/Eclipse/eclipse/configuration/
osgi.framework=file:/c:/Program
Files/Eclipse/eclipse/plugins/org.eclipse.osgi_3.0.1/
osgi.framework.beginningstartlevel=1
osgi.framework.version=3.0.0
osgi.frameworkClassPath=core.jar, console.jar, osgi.jar, resolver.jar,
defaultAdaptor.jar, eclipseAdaptor.jar
osgi.install.area=file:/c:/Program Files/Eclipse/eclipse/
osgi.instance.area=file:/D:/data/(deleted)/development/workspaces/
osgi.logfile=(deleted)
osgi.manifest.cache=c:\Program
Files\Eclipse\eclipse\configuration\org.eclipse.osgi\manifests
osgi.nl=en_US
osgi.os=win32
osgi.splashLocation=c:\Program
Files\Eclipse\eclipse\plugins\org.eclipse.platform_3.0.2\splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.ws=win32
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C:\program
files\Java\jre1.5.0_03\lib\rt.jar;C:\program
files\Java\jre1.5.0_03\lib\i18n.jar;C:\program
files\Java\jre1.5.0_03\lib\sunrsasign.jar;C:\program
files\Java\jre1.5.0_03\lib\jsse.jar;C:\program
files\Java\jre1.5.0_03\lib\jce.jar;C:\program
files\Java\jre1.5.0_03\lib\charsets.jar;C:\program
files\Java\jre1.5.0_03\classes
sun.boot.library.path=C:\program files\Java\jre1.5.0_03\bin
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.net.client.defaultConnectTimeout=60000
sun.net.client.defaultReadTimeout=60000
sun.os.patch.level=Service Pack 2
user.country=US
user.dir=C:\Program Files\Eclipse\eclipse
user.home=(deleted)
user.language=en
user.name=(deleted)
user.timezone=America/New_York
user.variant=

*** Features:
org.eclipse.jdt (3.0.2) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.0.2) "Eclipse Java Development Tools SDK"
org.eclipse.pde (3.0.2) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.0.2) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.platform (3.0.2) "Eclipse Platform"
org.eclipse.platform.source (3.0.2) "Eclipse Platform Plug-in Developer
Resources"
org.eclipse.sdk (3.0.2) "Eclipse Project SDK"

*** Plug-in Registry:
org.apache.ant (1.6.2) "Apache Ant"
org.apache.lucene (1.4.3) "Apache Lucene"
org.eclipse.ant.core (3.0.0) "Ant Build Tool Core"
org.eclipse.ant.ui (3.0.2) "Ant UI"
org.eclipse.compare (3.0.0) "Compare Support"
org.eclipse.core.boot (3.0.0) "Core Boot"
org.eclipse.core.expressions (3.0.0) "Expression Language"
org.eclipse.core.filebuffers (3.0.1) "File Buffers"
org.eclipse.core.resources (3.0.1) "Core Resource Management"
org.eclipse.core.resources.win32 (3.0.0) "Core Resource Management
Win32 Fragment"
org.eclipse.core.runtime (3.0.2) "Core Runtime"
org.eclipse.core.runtime.compatibility (3.0.0) "Core Runtime Plug-in
Compatibility"
org.eclipse.core.variables (3.0.0) "Core Variables"
org.eclipse.debug.core (3.0.2) "Debug Core"
org.eclipse.debug.ui (3.0.2) "Debug UI"
org.eclipse.help (3.0.0) "Help System Core"
org.eclipse.help.appserver (3.0.0) "Help Application Server"
org.eclipse.help.base (3.0.2) "Help System Base"
org.eclipse.help.ide (3.0.0) "Help System IDE"
org.eclipse.help.ui (3.0.2) "Help System UI"
org.eclipse.help.webapp (3.0.2) "Help System Webapp"
org.eclipse.jdt (3.0.2) "Eclipse Java Development Tools"
org.eclipse.jdt.core (3.0.2) "Java Development Tools Core"
org.eclipse.jdt.debug (3.0.2) "JDI Debug Model"
org.eclipse.jdt.debug.ui (3.0.2) "JDI Debug UI"
org.eclipse.jdt.doc.isv (3.0.1) "Eclipse JDT Plug-in Developer Guide"
org.eclipse.jdt.doc.user (3.0.1) "Eclipse Java Development User Guide"
org.eclipse.jdt.junit (3.0.1) "Java Development Tools JUnit support"
org.eclipse.jdt.junit.runtime (3.0.2) "Java Development Tools JUnit
runtime support"
org.eclipse.jdt.launching (3.0.2) "Java Development Tools Launching
Support"
org.eclipse.jdt.source (3.0.2) "Eclipse Java Development Tools SDK"
org.eclipse.jdt.ui (3.0.2) "Java Development Tools UI"
org.eclipse.jface (3.0.2) "JFace"
org.eclipse.jface.text (3.0.2) "JFace Text"
org.eclipse.ltk.core.refactoring (3.0.1) "Refactoring Core"
org.eclipse.ltk.ui.refactoring (3.0.1) "Refactoring UI"
org.eclipse.osgi (3.0.1) "OSGi System Bundle"
org.eclipse.osgi.services (3.0.0) "OSGi Release 3 Services"
org.eclipse.osgi.util (3.0.0) "OSGi R3 Utility Classes"
org.eclipse.pde (3.0.1) "Eclipse Plug-in Development Environment"
org.eclipse.pde.build (3.0.1) "Plug-in Development Environment Build
Support"
org.eclipse.pde.core (3.0.2) "Plug-in Development Core"
org.eclipse.pde.doc.user (3.0.0) "Eclipse Plug-in Development User
Guide"
org.eclipse.pde.junit.runtime (3.0.0) "PDE JUnit Plug-in Test"
org.eclipse.pde.runtime (3.0.1) "Plug-in Development Environment
Runtime"
org.eclipse.pde.source (3.0.2) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.pde.ui (3.0.2) "Plug-in Development UI"
org.eclipse.platform (3.0.2) "Eclipse Platform"
org.eclipse.platform.doc.isv (3.0.1) "Eclipse Platform Plug-in
Developer Guide"
org.eclipse.platform.doc.user (3.0.1) "Eclipse Workbench User Guide"
org.eclipse.platform.source (3.0.2) "Eclipse Platform Plug-in Developer
Resources"
org.eclipse.platform.source.win32.win32.x86 (3.0.2) "Eclipse Platform
Plug-in Developer Resources"
org.eclipse.sdk (3.0.2) "Eclipse Project SDK"
org.eclipse.search (3.0.1) "Search Support"
org.eclipse.swt (3.0.2) "Standard Widget Toolkit"
org.eclipse.swt.win32 (3.0.2) "Standard Widget Toolkit for Windows"
org.eclipse.team.core (3.0.0) "Team Support Core"
org.eclipse.team.cvs.core (3.0.1) "CVS Team Provider Core"
org.eclipse.team.cvs.ssh (3.0.0) "CVS SSH Core"
org.eclipse.team.cvs.ssh2 (3.0.0) "CVS SSH2"
org.eclipse.team.cvs.ui (3.0.1) "CVS Team Provider UI"
org.ec220 753144 <[email protected]>
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 16 Jun 2005 13:00:50 -0500
From: "Lucy" <[email protected]>
Newsgroups: comp.lang.java.programmer
References: <[email protected]> <[email protected]>
Subject: Re: a logging/trace lib for java
Date: Thu, 16 Jun 2005 13:00:48 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <[email protected]>
Lines: 17
NNTP-Posting-Host: 67.173.43.178
X-Trace: sv3-g57gn2tfISnAupVfsgWCzIRIWdsgWAICD1CUr3ZLzRccVWiPtSuurUXm4lxFb2HzlJVGYpahnwZuP4/!Iu9qZ+hGUqO9iHa3IaMbm9VwS5UuxxpgCfxi0zrNbgpZBNGss6ywrmB9jKWzHlezP9r+kpjc
X-Complaints-To: (e-mail address removed)
X-DMCA-Complaints-To: (e-mail address removed)
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.31
Xref: number1.nntp.dca.giganews.com comp.lang.java.programmer:753144


There is a program called "trace" that you can use. It prints out whenever
you enter or leave a method.
 
Ad

Advertisements

R

Roland

Wondering if anyone has any pointers on how to have Eclipse compiling
Java enum(s) without the 'enum cannot be resolved (or it is not a valid
type)' message. I understand that I need to use some sort of compiler
directive to instruct it to use 1.5, but where is that file that I need
to alter the property, if there's one? Below are the Eclipse system
properties as installed.

Thanks,

-BNGP
Eclipse version 3.0.2 does not support the new Java 5/1.5 language features.
You need Eclipse 3.1 for that. At the time of this writing, the current
version is 3.1RC2, available from
<http://download.eclipse.org/eclipse/downloads/drops/S-3.1RC2-200506101757/>.
But check at <http://www.eclipse.org/downloads/> if a newer version has
been release in the meantime.
--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 
T

Tor Iver Wilhelmsen

bossanovaplayer said:
Wondering if anyone has any pointers on how to have Eclipse compiling
Java enum(s) without the 'enum cannot be resolved (or it is not a valid
type)' message.

Upgrade to Eclipse 3.1 RC 1.
 
Ad

Advertisements


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

Top