Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

How to select source 1.5 (Java Studio Creator 2)

Thread view: 
r.emmerink@gmail.com - 22 Mar 2006 02:44 GMT
Hi,

I've got some source files in Java Studio Creator 2.
When building I get errors like:

C:\...\Creator\Projects\....\src\Lijst.java:1: generics are not
supported in -source 1.4
(try -source 1.5 to enable generics)
class Lijst <EltType> {

When right clicking the project and selecting properties I can change
source level to 1.5 in a drop down box. However I get the same error
after rebuilding, it seems the setting is unchanged. Maybe I do
something wrong here, hopefully someone can tell me how to change to
-source 1.5 so I can compile the project.

Thanks in advance,

Roderik
Kroll, Michael - 22 Mar 2006 07:00 GMT
Hello,

r.emmerink@gmail.com schrieb:
> Hi,
>
[quoted text clipped - 11 lines]
> something wrong here, hopefully someone can tell me how to change to
> -source 1.5 so I can compile the project.

which JDK do you have installed ?

Regards
Michael

Signature

http://www.smurfi.de
German NetBeans Site

r.emmerink@gmail.com - 22 Mar 2006 14:10 GMT
I've got JDK 1.50_06 installed.
IchBin - 22 Mar 2006 18:58 GMT
> I've got JDK 1.50_06 installed.

If you have your Project Library set to JDK1.5 then
you could add this to the compiler options (Project
Properties\Build\Compile):

-Xlint:unchecked

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

r.emmerink@gmail.com - 22 Mar 2006 21:17 GMT
Well, it doesn't help. I described the problem with some screenshots on
my website hopefully you (and maybe others) might take a look on it.
http://www.roderik.net/javacreator_problem.php

Thanks in advance.
IchBin - 22 Mar 2006 21:56 GMT
> Well, it doesn't help. I described the problem with some screenshots on
> my website hopefully you (and maybe others) might take a look on it.
> http://www.roderik.net/javacreator_problem.php
>
> Thanks in advance.

Well I am confused. I am running Sun's Studio Creator 2 also but my
'Source' items are different than yours.

You change the Java version on the "Java Platform Manager".

So, on your 'Properties'\'Libraries' item selection you should select
the "Manage Platform" button and add the JDK you want to use.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
r.emmerink@gmail.com - 22 Mar 2006 22:37 GMT
Thanks! Changing the JDK from the standard one that came with Creator
to the normal JDK solved the problem.
I thought Creator should had a recent JDK or used the most recent found
on my system, since I downloaded it quite recently (about two weaks
ago).
IchBin - 23 Mar 2006 03:56 GMT
> Thanks! Changing the JDK from the standard one that came with Creator
> to the normal JDK solved the problem.
> I thought Creator should had a recent JDK or used the most recent found
> on my system, since I downloaded it quite recently (about two weaks
> ago).

If I remember the Creator install, like Netbeans 1.4 and 1.5 it will
show you what versions it has found on your system. It then lets you
inspect then to tell it which one to use.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.