Home » Newcomers » Newcomers » Unable to set Project Facets' Java version to 1.5 in Galileo
Unable to set Project Facets' Java version to 1.5 in Galileo [message #492016] |
Sat, 17 October 2009 04:31 |
|
In Europa, I have no trouble setting my Project Facets' Java version to 1.5.
My Galileo installation, like my Europa installation, knows of JDK 1.4 and 1.5 (and, as it happens, 1.6, but I'm not concerned with that tonight).
The default compiler is 1.4 for 5 of the 10 projects, but I have the other 5 for which I explicitly use Java 1.5 and I have already set up their Build Path->Libraries to use JRE 1.5 and their Java Compiler preference to set Enable project specific settings and the Compiler compliance level to 1.5. 3 of those 5 are Dynamic Web Projects whose Project Facets I set to 1.5 (or want to).
What's offered me for Preferences->Project Facets->Java version is 1.3 or 1.4. 1.5 is not an option. In Europa, it was and I set it to 1.5 for the 3 Dynamic Web Projects. (I'm able to look at Europa right now as I haven't discarded it.)
What is new in Galileo this way or what am I doing wrong?
Thanks,
Russ Bateman
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492020 is a reply to message #492016] |
Sat, 17 October 2009 05:57 |
|
Hi,
Preferences -> Java -> Compiler. Set the compiler "Compiler Compliance
level" to whatever version you like.
Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
Russell Bateman wrote:
> In Europa, I have no trouble setting my Project Facets' Java version to
> 1.5.
>
> My Galileo installation, like my Europa installation, knows of JDK 1.4
> and 1.5 (and, as it happens, 1.6, but I'm not concerned with that tonight).
>
> The default compiler is 1.4 for 5 of the 10 projects, but I have the
> other 5 for which I explicitly use Java 1.5 and I have already set up
> their Build Path->Libraries to use JRE 1.5 and their Java Compiler
> preference to set Enable project specific settings and the Compiler
> compliance level to 1.5. 3 of those 5 are Dynamic Web Projects whose
> Project Facets I set to 1.5 (or want to).
>
> What's offered me for Preferences->Project Facets->Java version is 1.3
> or 1.4. 1.5 is not an option. In Europa, it was and I set it to 1.5 for
> the 3 Dynamic Web Projects. (I'm able to look at Europa right now as I
> haven't discarded it.)
>
> What is new in Galileo this way or what am I doing wrong?
>
> Thanks,
>
> Russ Bateman
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492022 is a reply to message #492020] |
Sat, 17 October 2009 06:10 |
|
Lars Vogel wrote:
> Hi,
>
> Preferences -> Java -> Compiler. Set the compiler "Compiler Compliance
> level" to whatever version you like.
>
> Best regards, Lars
>
Lars,
I was trying to explain that I have already done that and verified it
several times. So, ...
1) Preferences -> Java -> Compiler is set to Java 1.5 for each of the
three projects in question.
2) The Libraries tab of Build Paths contain not the JRE 1.4, but the JRE
1.5 library.
3) Then, when I go to Project Facets for any of the three Dynamic Web
Projects in question, the drop-down menu for Java gives me the choice
only between 1.3 and 1.4. In Europa, I get the additional choice of 1.5.
Perhaps I'll erase all the projects, set the whole Eclipse workbench to
Java 1.5, and make exceptions of the (several simple and one Dynamic
Web) projects that must be 1.4?
(Note that the reason any of them are 1.4 is because parts of them run
on NetWare which never released Java 1.5 even though we'd finished
porting it.)
Thanks for letting me annoy you,
Russ
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492026 is a reply to message #492022] |
Sat, 17 October 2009 07:38 |
|
Hi Russ,
If I create a new Dynamic Web project in Galileo I can select Java 1.3,
1.4. 5.0 and 6.0 in the Facets. Can you try with a new project? Does
Eclipse then show the additional options?
Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
Windofkeltia wrote:
> Lars Vogel wrote:
>> Hi,
>>
>> Preferences -> Java -> Compiler. Set the compiler "Compiler Compliance
>> level" to whatever version you like.
>>
>> Best regards, Lars
>>
> Lars,
>
> I was trying to explain that I have already done that and verified it
> several times. So, ...
>
> 1) Preferences -> Java -> Compiler is set to Java 1.5 for each of the
> three projects in question.
>
> 2) The Libraries tab of Build Paths contain not the JRE 1.4, but the JRE
> 1.5 library.
>
> 3) Then, when I go to Project Facets for any of the three Dynamic Web
> Projects in question, the drop-down menu for Java gives me the choice
> only between 1.3 and 1.4. In Europa, I get the additional choice of 1.5.
>
> Perhaps I'll erase all the projects, set the whole Eclipse workbench to
> Java 1.5, and make exceptions of the (several simple and one Dynamic
> Web) projects that must be 1.4?
>
> (Note that the reason any of them are 1.4 is because parts of them run
> on NetWare which never released Java 1.5 even though we'd finished
> porting it.)
>
> Thanks for letting me annoy you,
>
> Russ
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492054 is a reply to message #492026] |
Sat, 17 October 2009 17:55 |
|
Lars Vogel wrote:
> Hi Russ,
>
> If I create a new Dynamic Web project in Galileo I can select Java 1.3,
> 1.4. 5.0 and 6.0 in the Facets. Can you try with a new project? Does
> Eclipse then show the additional options?
>
> Best regards, Lars
>
Thanks, Lars. No that doesn't work.
First, I tried removing one of my DWPs and re-creating it. This produced
the same result. Then, I tried creating an entirely new project, which
no source code (unlike the other projects whose source code is coming
out of svn), but still get the same problem.
By the way, by default projects are created using JDK 1.4 with JRE 1.4
libraries. As soon as I create the project, the first thing I do is go
to Build Path and change the compiler to 1.5 and the library. Then I try
to change the Project Facets to match--what doesn't work.
Also, Galileo hangs and/or crashes very quickly whereas I can usually
run Europa most of the day before it goes belly up--something I've
learned to tolerate on Linux as opposed to Windows where I never had
that problem.
See http://www.windofkeltia.com/stuff/ for a) Screenshot.png showing the
1.3/1.4-only options in Project Facets, b) eclipse.ini (for Galileo) and
c) eclipse-europa.ini (copy of my Europa ini file). (b) and (c) only if
you care to look and comment.
Thanks,
Russ
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492055 is a reply to message #492026] |
Sat, 17 October 2009 17:57 |
|
Lars Vogel wrote:
> Hi Russ,
>
> If I create a new Dynamic Web project in Galileo I can select Java 1.3,
> 1.4. 5.0 and 6.0 in the Facets. Can you try with a new project? Does
> Eclipse then show the additional options?
>
> Best regards, Lars
>
Thanks, Lars. No that doesn't work.
First, I tried removing one of my DWPs and re-creating it. This produced
the same result. Then, I tried creating an entirely new project, with no
source code (unlike the other projects whose source code is coming out
of svn), but still get the same problem.
By the way, by default projects are created using JDK 1.4 with JRE 1.4
libraries. As soon as I create the project, the first thing I do is go
to Build Path and change the compiler to 1.5 and the library. Then I try
to change the Project Facets to match--what doesn't work.
Also, Galileo hangs and/or crashes very quickly when creating or doing
other things with a DWP whereas I can usually run Europa most of the day
before it goes belly up--something I've learned to tolerate on Linux as
opposed to Windows where I never had that problem.
See http://www.windofkeltia.com/stuff/ for a) Screenshot.png showing the
1.3/1.4-only options in Project Facets, b) eclipse.ini (for Galileo) and
c) eclipse-europa.ini (copy of my Europa ini file). (b) and (c) only if
you care to look and comment.
Thanks,
Russ
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492061 is a reply to message #492055] |
Sat, 17 October 2009 20:20 |
|
Hi Russ,
as I have the other options I cannot help. I'm also using Windows this
may also cause the difference.
Perhaps someone else can help you?
You might also want to try the eclipse.webtools newgroup.
Best regards, Lars
Windofkeltia wrote:
> Lars Vogel wrote:
>> Hi Russ,
>>
>> If I create a new Dynamic Web project in Galileo I can select Java
>> 1.3, 1.4. 5.0 and 6.0 in the Facets. Can you try with a new project?
>> Does Eclipse then show the additional options?
>>
>> Best regards, Lars
>>
> Thanks, Lars. No that doesn't work.
>
> First, I tried removing one of my DWPs and re-creating it. This produced
> the same result. Then, I tried creating an entirely new project, with no
> source code (unlike the other projects whose source code is coming out
> of svn), but still get the same problem.
>
> By the way, by default projects are created using JDK 1.4 with JRE 1.4
> libraries. As soon as I create the project, the first thing I do is go
> to Build Path and change the compiler to 1.5 and the library. Then I try
> to change the Project Facets to match--what doesn't work.
>
> Also, Galileo hangs and/or crashes very quickly when creating or doing
> other things with a DWP whereas I can usually run Europa most of the day
> before it goes belly up--something I've learned to tolerate on Linux as
> opposed to Windows where I never had that problem.
>
> See http://www.windofkeltia.com/stuff/ for a) Screenshot.png showing the
> 1.3/1.4-only options in Project Facets, b) eclipse.ini (for Galileo) and
> c) eclipse-europa.ini (copy of my Europa ini file). (b) and (c) only if
> you care to look and comment.
>
> Thanks,
>
> Russ
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492316 is a reply to message #492016] |
Mon, 19 October 2009 22:13 |
|
Russell Bateman wrote:
> In Europa, I have no trouble setting my Project Facets' Java version to
> 1.5.
>
> My Galileo installation, like my Europa installation, knows of JDK 1.4
> and 1.5 (and, as it happens, 1.6, but I'm not concerned with that tonight).
>
> The default compiler is 1.4 for 5 of the 10 projects, but I have the
> other 5 for which I explicitly use Java 1.5 and I have already set up
> their Build Path->Libraries to use JRE 1.5 and their Java Compiler
> preference to set Enable project specific settings and the Compiler
> compliance level to 1.5. 3 of those 5 are Dynamic Web Projects whose
> Project Facets I set to 1.5 (or want to).
>
> What's offered me for Preferences->Project Facets->Java version is 1.3
> or 1.4. 1.5 is not an option. In Europa, it was and I set it to 1.5 for
> the 3 Dynamic Web Projects. (I'm able to look at Europa right now as I
> haven't discarded it.)
>
> What is new in Galileo this way or what am I doing wrong?
>
> Thanks,
>
> Russ Bateman
It's not abundantly clear to me what I did to fix this, however, I
explicitly added:
-vm /home/russ/dev/jdk1.6.0_12/jre/bin
to eclipse.ini, and I went into add this same path to my list of
potential JDK sources in Preferences.
Then, I made 1.5 the workbench-wide default and visited each of my 1.4
projects to reset them back to 1.4.
Finally, I visited (Build Path) each of my Dynamic Web projects and
verified that they were being compiled with 1.5, had the right JRE
library, and at very last I returned to the Project Facets preference
which I then found I could set to 5.0.
I don't know if this would also have been a problem on Windows, thought
I don't see why not. Anyway, I hope this will help anyone browsing this
forum. (Or, hehehehe, anyone as dim-witted as I, but then I don't
exactly what I did wrong.)
|
|
|
Re: Unable to set Project Facets' Java version to 1.5 in Galileo [message #492317 is a reply to message #492316] |
Mon, 19 October 2009 22:15 |
|
Windofkeltia wrote:
> [snip]
>
>
> It's not abundantly clear to me what I did to fix this, however, I
> explicitly added:
>
> -vm /home/russ/dev/jdk1.6.0_12/jre/bin
>
> to eclipse.ini, and I went into add this same path to my list of
> potential JDK sources in Preferences.
>
> Then, I made 1.5 the workbench-wide default and visited each of my 1.4
> projects to reset them back to 1.4.
>
> Finally, I visited (Build Path) each of my Dynamic Web projects and
> verified that they were being compiled with 1.5, had the right JRE
> library, and at very last I returned to the Project Facets preference
> which I then found I could set to 5.0.
>
> I don't know if this would also have been a problem on Windows, thought
> I don't see why not. Anyway, I hope this will help anyone browsing this
> forum. (Or, hehehehe, anyone as dim-witted as I, but then I don't
> exactly what I did wrong.)
Uh, I probably meant "workspace-wide" instead of "workbench-wide" default.
|
|
|
Goto Forum:
Current Time: Thu Apr 25 00:36:15 GMT 2024
Powered by FUDForum. Page generated in 0.08222 seconds
|