cancel
Showing results for 
Search instead for 
Did you mean: 

How to set compliance level on CBS server

Former Member
0 Kudos

I am using JDK 1.4 specific keywords (ex. assert) in my code. I was able to compile in my local environment by changing compiler compliance level to 1.4 in Developer Studio.

Go to menu Window -> Preferences -> Java -> Compliances & Classfiles -> Compiler compliance level -> 1.4

Hoever, I'm getting a CBS compile error because the CBS server doesn't seem to like the JDK 1.4 keyword.

How do I tell CBS to use 1.4 compliance level instead of 1.3 which seems to be the default?

Thanks,

-Li

Accepted Solutions (1)

Accepted Solutions (1)

htammen
Active Contributor
0 Kudos

Hi Li,

you have to set this in the SC configuration XML file. You can edit this file in the CMS WebUI.

If you add the following statements to the default build variant of the XML file your source code should be compilable.


<build-options>
  <build-option name="javac_source14">
    <option-value>on</option-value>
  </build-option>
</build-options>

Maybe you also have to set the ant_jdk_version option to JDK[xyz]_HOME that is defined in the CBS configuration of the Visual Admin.

For more details have a look at http://help.sap.com/saphelp_nw04/helpdata/de/4f/c6c94140496024e10000000a1550b0/frameset.htm

Regards

Helmut

Former Member
0 Kudos

Helmet,

Problem solved!

Thank you for your help.

-Li

Answers (0)