List<String> list = new ArrayList<String>();

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

List<String> list = new ArrayList<String>();

Zosh S
This does not compile on ImageJ (on Winxp). Apparently the compiler is not
1.5 compatible. I've seen a recommendation of compiling with "-source 1.5",
but failed to see how this can be done in ImageJ.
Any ideas?
Thanks very much
Zosh
Reply | Threaded
Open this post in threaded view
|

Re: List<String> list = new ArrayList<String>();

Wayne Rasband
> This does not compile on ImageJ (on Winxp). Apparently the compiler
> is not 1.5 compatible. I've seen a recommendation of compiling
> with "-source 1.5", but failed to see how this can be done in ImageJ.
> Any ideas?

You need to install the version of ImageJ for Windows that is bundled  
with Java 5.0_3. Or install the J2SE 5.0 JDK from <http://
java.sun.com/j2se/1.5.0/download.jsp> and then the Windows version of  
ImageJ that does not include a bundled Java.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: List<String> list = new ArrayList<String>();

Zosh S
Thanks very much, Wayne.
I did download the 1.34 version, bundled with JRE 5.0 3; it didn't make any
difference. How can I check which Java version is on? is there some
configuration settings? can I set some compiler flags (such as -source
1.5)...?
Thanks
Zeev

----- Original Message -----
From: "Rasband Wayne" <[hidden email]>
To: <[hidden email]>
Sent: Monday, February 20, 2006 9:21 PM
Subject: Re: List<String> list = new ArrayList<String>();


>> This does not compile on ImageJ (on Winxp). Apparently the compiler
>> is not 1.5 compatible. I've seen a recommendation of compiling
>> with "-source 1.5", but failed to see how this can be done in ImageJ.
>> Any ideas?
>
> You need to install the version of ImageJ for Windows that is bundled
> with Java 5.0_3. Or install the J2SE 5.0 JDK from <http://
> java.sun.com/j2se/1.5.0/download.jsp> and then the Windows version of
> ImageJ that does not include a bundled Java.
>
> -wayne
>
Reply | Threaded
Open this post in threaded view
|

Re: List<String> list = new ArrayList<String>();

yeliang
Check Java Version: Windows Configuration -> Control Panel -> Java
Plug-in -> "About Java Plug-in" Tab.
If you use Eclipse to edit and compile ImageJ, follow this way to check your
config:
Window -> Preference -> Java -> Compiler

Good Luck.
----- Original Message -----
From: "zosh" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, February 21, 2006 4:55 AM
Subject: Re: List<String> list = new ArrayList<String>();


> Thanks very much, Wayne.
> I did download the 1.34 version, bundled with JRE 5.0 3; it didn't make
> any difference. How can I check which Java version is on? is there some
> configuration settings? can I set some compiler flags (such as -source
> 1.5)...?
> Thanks
> Zeev
>
> ----- Original Message -----
> From: "Rasband Wayne" <[hidden email]>
> To: <[hidden email]>
> Sent: Monday, February 20, 2006 9:21 PM
> Subject: Re: List<String> list = new ArrayList<String>();
>
>
>>> This does not compile on ImageJ (on Winxp). Apparently the compiler
>>> is not 1.5 compatible. I've seen a recommendation of compiling
>>> with "-source 1.5", but failed to see how this can be done in ImageJ.
>>> Any ideas?
>>
>> You need to install the version of ImageJ for Windows that is bundled
>> with Java 5.0_3. Or install the J2SE 5.0 JDK from <http://
>> java.sun.com/j2se/1.5.0/download.jsp> and then the Windows version of
>> ImageJ that does not include a bundled Java.
>>
>> -wayne
>>
Reply | Threaded
Open this post in threaded view
|

Re: List<String> list = new ArrayList<String>();

Wayne Rasband
In reply to this post by Zosh S
> I did download the 1.34 version, bundled with JRE 5.0 3; it didn't
> make any difference. How can I check which Java version is on? is
> there some configuration settings? can I set some compiler flags (such
> as -source 1.5)...?

You can find out which version of Java ImageJ is using with the
Help>About ImageJ command or with the Plugins>Utilities>Image
Properties command.

There is currently no way to set the compiler flags used by the
Plugins>Compile and Run command. To use generics, you will need to
compile the plugin using the javac command, or use an IDE such Eclipse
or NetBeans.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: List<String> list = new ArrayList<String>();

Zosh S
Thanks very much....
Zeev

----- Original Message -----
From: "Wayne Rasband" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, February 21, 2006 7:18 PM
Subject: Re: List<String> list = new ArrayList<String>();


>> I did download the 1.34 version, bundled with JRE 5.0 3; it didn't
>> make any difference. How can I check which Java version is on? is
>> there some configuration settings? can I set some compiler flags (such
>> as -source 1.5)...?
>
> You can find out which version of Java ImageJ is using with the
> Help>About ImageJ command or with the Plugins>Utilities>Image
> Properties command.
>
> There is currently no way to set the compiler flags used by the
> Plugins>Compile and Run command. To use generics, you will need to
> compile the plugin using the javac command, or use an IDE such Eclipse
> or NetBeans.
>
> -wayne
>