Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse for Linux - Java Issues
Eclipse for Linux - Java Issues [message #144464] Wed, 22 March 2006 10:11 Go to next message
Eclipse UserFriend
Originally posted by: dtucker.arlut.utexas.edu

Hello, I recently installed Fedora Core 4, which came with an Eclipse
package (v3.2?). When I attempted to write Java code in the IDE, however,
I get errors for ArrayList<Character>. It tells me that ArrayList is not
generic. However, I get no such problem when doing the same thing in
Eclipse v3.1 for Windows. I tried changing the JDK Compliance level
between 5.0 and 1.4, but neither worked. Any idea of what the problem
might be?

Don
Re: Eclipse for Linux - Java Issues [message #144473 is a reply to message #144464] Wed, 22 March 2006 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

Don Tucker schrieb:
> Hello, I recently installed Fedora Core 4, which came with an Eclipse
> package (v3.2?). When I attempted to write Java code in the IDE,
> however, I get errors for ArrayList<Character>. It tells me that
> ArrayList is not generic. However, I get no such problem when doing the
> same thing in Eclipse v3.1 for Windows. I tried changing the JDK
> Compliance level between 5.0 and 1.4, but neither worked. Any idea of
> what the problem might be?
>
> Don
>

Fedora Core 4 comes with the GCJ and Eclipse 3.1. GCJ doesn't support
Java 1.4 as far as I know. I've installed the Sun JDK from JPackage.org
to use the new Java 5.0 language features in FC4.

Kind regards,
Daniel
Re: Eclipse for Linux - Java Issues [message #144480 is a reply to message #144473] Wed, 22 March 2006 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dtucker.arlut.utexas.edu

Daniel,

I also have the Sun JDK installed, but I'm not sure how to tell Eclipse to
use that instead of what it uses by default? Could you tell me what you
changed to make it work?

Don
Re: Eclipse for Linux - Java Issues [message #144516 is a reply to message #144480] Wed, 22 March 2006 15:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

You can launch Eclipse with the -vm /path/to/sun's/java command line
argument, or you can make sure Sun's java shows up first in your PATH.

Hope this helps,
- Jeff
Re: Eclipse for Linux - Java Issues [message #144598 is a reply to message #144480] Thu, 23 March 2006 05:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

Don Tucker schrieb:
> Daniel,
>
> I also have the Sun JDK installed, but I'm not sure how to tell Eclipse
> to use that instead of what it uses by default? Could you tell me what
> you changed to make it work?
>
> Don
>

The JPackage.org RPM does this by adding a new entry for the Sun JDK to
the alternate system and making it the default (this changes the
symlinks java, javac, and rmic). So Eclipse will be started using the
new JDK. For programming with Java 1.5 you must change the used JDK in
Eclipse under Window -> Preferences -> Java -> Installed JRE. The
directory is the GCJ installation dir. This must be changed to the Sun
JDK installation dir.

I cannot look at a running Sun JDK and Eclipse installation because I've
updated to FC5 and my wlan card doesn't work :-(.

HTH
Daniel
Re: Eclipse for Linux - Java Issues [message #144640 is a reply to message #144598] Thu, 23 March 2006 10:18 Go to previous message
Eclipse UserFriend
Originally posted by: dtucker.arlut.utexas.edu

Thanks, Daniel and Jeff. I went to Windows->Preferences->Java->JRE and
searched for other JREs, found the Sun one and made that the default.
Everything compiled and ran. :)

Don
Previous Topic:Static
Next Topic:Closing a view from its tab
Goto Forum:
  


Current Time: Fri Jul 18 00:42:59 EDT 2025

Powered by FUDForum. Page generated in 0.13243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top