cancel
Showing results for 
Search instead for 
Did you mean: 

KM API:use-source 1.4 or lower to use 'enum' as an identifier - build error

Former Member
0 Kudos

Hi All,

I am trying to buld a custom report. i am facing the following build error when i try to build my DC.

Could you kindly tell me, what ocnfiguration needs to be changed for this?

[javac] ERROR: C:\Documents and Settings\user1.dtc\0\DCs\km\ep\kmreport\_comp\src.api\com\km\kmreport\TestReport.java:79: as of release 5, 'enum' is a keyword, and may not be used as an identifier

[javac] ERROR: (use -source 1.4 or lower to use 'enum' as an identifier)

[javac] ERROR: import com.sapportals.wcm.repository.enum.PropertyType;

[javac] ERROR: ^

Some ANT information:

Starting Ant..

Using build file: C:\Documents and Settings\user1\.dtc\0\DCs\km\ep\kmreport\_comp\gen\default\logs\build.xml

Using build target: build

Using Ant version: 1.6.2

and currenly i am using JDK1.4 only (selected in the Installed JRE's).

what other parameters needs to be checked?

your help would be grately appreciated <<text removed>>

thanks,

SK

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

and currenly i am using JDK1.4 only (selected in the Installed JRE's).

In Eclipse, have you tried to set the Compiler (Window -> Preferences -> Java -> Compiler) to compliance level 1.4?

Regards,

Tanja

Former Member
0 Kudos

Hi Tanja,

thanks for your response.

the compiler version is set to 1.4 only . I have only 2 options 1.3 and 1.4.. for the compliance level.

is there any other parameter needs to be changed?

Please share some information on this.

thanks,

SK

Former Member
0 Kudos

I changed the path !