Errors Installing cPath

1 view
Skip to first unread message

Fong Chun Chan

unread,
Mar 22, 2007, 8:15:25 PM3/22/07
to cpath
Hi,

I actually posted this in the cPath Development group too, but I don't
know which one is better regarding how to get support on installation
issues. I hope this is the right group.

I am following the cPath Administrator Guide in installing cPath and I
have having problems at step 7: Compile code. When I follow the
instructions I get these errors:

------------------------------------------------
compile:
[javac] Compiling 276 source files to C:\Documents and Settings
\fchan\My Doc
uments\Project\cPath\build\WEB-INF\classes
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:144: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] Enumeration enum = request.getHeaderNames();
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:145: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] while (enum.hasMoreElements()) {
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:146: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] String headerName = (String)
enum.nextElement();
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:202: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] Enumeration enum =
session.getAttributeNames();
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:203: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] while (enum.hasMoreElements()) {
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:204: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] String name = (String) enum.nextElement();
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:216: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] Enumeration enum =
servletContext.getAttributeNames();
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:217: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] while (enum.hasMoreElements()) {
[javac] ^
[javac] C:\Documents and Settings\fchan\My Documents\Project\cPath
\src\org\m
skcc\pathdb\xdebug\SnoopHttp.java:218: as of release 5, 'enum' is a
keyword, and
may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] String name = (String) enum.nextElement();
[javac] ^
[javac] 9 errors

BUILD FAILED
C:\Documents and Settings\fchan\My Documents\Project\cPath\build.xml:
98: Compile
failed; see the compiler error output for details.
-------------------------------

I am currently using Java 6 and It seems that on Java version 5 and
higher the word enum is a keyword and can't be used as a variable
anymore.

Has anyone else had this problem?

Ethan Cerami

unread,
Mar 23, 2007, 4:04:55 PM3/23/07
to cp...@googlegroups.com
I believe this has been fixed in the latest stable version of cPath
(Version 0.7), which was officially released today.

You can download this latest release from:
http://cbio.mskcc.org/dev_site/cpath/source.html

Let me know if you still encounter the problem, and I will re-check the
code.

Ethan

Fong Chun Chan wrote:

--
Ethan Cerami
Computational Biology Center
Memorial Sloan-Kettering Cancer Center
http://cbio.mskcc.org
Email: cer...@cbio.mskcc.org
Direct phone: (646) 888-2625

Reply all
Reply to author
Forward
0 new messages