🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.language
2 messages
2 total messages Started by Oliver Thu, 19 May 2005 11:07
for-each-loops
#387
Author: Oliver
Date: Thu, 19 May 2005 11:07
13 lines
1390 bytes
Hi,

i recently upgraded my JDK to 1.5, and i tried to compile a project which was originally compiled unter 1.4.2, and it worked fine. Now i added some for-each-loops and the compiler says

for-each-loops are not supported in -source 1.3 (try source -1.5 to enable for-each-loops)

Now i guess i have to add "source -1.5" somewhere, but where?
My settings (target JDK) is on JDK 1.5 as it should be. There must be another place to tell him about 1.5.

thanks

Oliver
ok i solved it
#388
Author: Oliver
Date: Thu, 19 May 2005 11:21
24 lines
1659 bytes
Hi,

i found it. There is under "Project settings" (i use IntelliJ) the tab "Paths" and there is a ComboBox "language level for project", there one has to choose 5.0.

regards

Oliver

"Oliver" <o.maas@nospam_metrohm.de> wrote:
>
>Hi,
>
>i recently upgraded my JDK to 1.5, and i tried to compile a project which was originally compiled unter 1.4.2, and it worked fine. Now i added some for-each-loops and the compiler says
>
>for-each-loops are not supported in -source 1.3 (try source -1.5 to enable for-each-loops)
>
>Now i guess i have to add "source -1.5" somewhere, but where?
>My settings (target JDK) is on JDK 1.5 as it should be. There must be another place to tell him about 1.5.
>
>thanks
>
>Oliver
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads