Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to select source 1.5 (Java Studio Creator 2)

Reply
Thread Tools

How to select source 1.5 (Java Studio Creator 2)

 
 
r.emmerink@gmail.com
Guest
Posts: n/a
 
      03-22-2006
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

 
Reply With Quote
 
 
 
 
Kroll, Michael
Guest
Posts: n/a
 
      03-22-2006
Hello,

schrieb:
> 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.
>


which JDK do you have installed ?



Regards
Michael

--
http://www.smurfi.de
German NetBeans Site
 
Reply With Quote
 
 
 
 
r.emmerink@gmail.com
Guest
Posts: n/a
 
      03-22-2006
I've got JDK 1.50_06 installed.

 
Reply With Quote
 
IchBin
Guest
Posts: n/a
 
      03-22-2006
wrote:
> 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

--

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-)
 
Reply With Quote
 
r.emmerink@gmail.com
Guest
Posts: n/a
 
      03-22-2006
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.

 
Reply With Quote
 
IchBin
Guest
Posts: n/a
 
      03-22-2006
wrote:
> 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-)
 
Reply With Quote
 
r.emmerink@gmail.com
Guest
Posts: n/a
 
      03-22-2006
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).

 
Reply With Quote
 
IchBin
Guest
Posts: n/a
 
      03-23-2006
wrote:
> 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-)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java studio creator error javajedi Java 2 07-28-2006 12:03 PM
JAVA STUDIO CREATOR - a real simple one about project distribution... alan_conoco@hotmail.co.uk Java 2 06-11-2006 04:13 PM
Client-Side Encryption and Studio Creator Dev Java 20 04-25-2006 07:07 PM
Studio Creator and Applets ineedyourluvin1@yahoo.com Java 17 03-26-2006 01:41 PM
[JSF][Java Studio Creator] Format output and customize display FD Java 0 08-25-2005 06:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57