Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Jazz build errors

I am trying to build an old java application on my build engine. I have updated the Vector<E> and the likes and in RTC my code runs fine. If however I try to build I get errors like


Syntax error, parameterized types are only available if source level is 5.0


or

The type Vector is not generic; it cannot be parameterized with arguments


The java version I use is 1.5.0 and the code does compile/run when I compile the fetched code in my sandbox on the build machine.

Has anybody experienced this before or knows what to do??

(I tried setting the target in my build.xml but that did not help)

0 votes



3 answers

Permanent link
I was thinking, would this be due to the fact that I use the JDTCompilerAdapter?

Am I able to set the level to Java 5?

0 votes


Permanent link
I am not sure if this applies to your case, but I've seen the compiler args
set this way:

<compilerarg>

As in....

<javac>

<classpath>
<pathelement>
</classpath>

<compilerarg>
</javac>

0 votes


Permanent link
I would say best practice is to store the JDK in RTC SCM and refer to it in your javac ant task. Your Eclipse workspace should also point to the same JDK. This will eliminate any problems between different versions on different PCs.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 24 '08, 1:12 p.m.

Question was seen: 4,244 times

Last updated: Nov 24 '08, 1:12 p.m.

Confirmation Cancel Confirm