You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jack Krupansky <ja...@basetechnology.com> on 2013/02/02 17:39:15 UTC
Outdated message - Must my Eclipse project "use a Java 6 JRE"?
I just did an svn co of the 4x branch and then ant eclipse and it says:
eclipse:
...
[echo]
[echo] SUCCESS: You must right-click your project and choose Refresh.
[echo] Your project must use a Java 6 JRE.
Is Java 6 required? No Java 7? Or does this message simply need to restate the requirement from SYSTEM_REQUIREMENTS.txt: “Java 6 or greater. When using Java 7, be sure to install at least Update 1!”?
Maybe the build should say “Your project must use either a Java 6 JRE or a Java 7 JRE of at least Update 1”
I didn’t check to see what the other releases/trunks say.
-- Jack Krupansky
Re: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
Posted by Simon Willnauer <si...@gmail.com>.
On Sat, Feb 2, 2013 at 9:39 PM, Shawn Heisey <so...@elyograg.org> wrote:
> On 2/2/2013 9:51 AM, Jack Krupansky wrote:
>>
>> Okay, I see the distinction now – Lucene/Solr themselves must be built
>> with Java 6, but apps that use them can be Java 6 or Java 7 (update 1 or
>> later). Got it.
>
>
> Because I'm using log4j, I always build Solr. I do so on the Linux machine
> that runs it, which has JDK 7u11. Is this a bad thing to do?
not at all. using 1.7 is actually recommended. We just guarantee that
it will run with 1.6 too and our bulidservers check that so a
problematic api won't slip through.
simon
>
> Thanks,
> Shawn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
Posted by Shawn Heisey <so...@elyograg.org>.
On 2/2/2013 9:51 AM, Jack Krupansky wrote:
> Okay, I see the distinction now – Lucene/Solr themselves must be built
> with Java 6, but apps that use them can be Java 6 or Java 7 (update 1 or
> later). Got it.
Because I'm using log4j, I always build Solr. I do so on the Linux
machine that runs it, which has JDK 7u11. Is this a bad thing to do?
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
Posted by Jack Krupansky <ja...@basetechnology.com>.
Okay, I see the distinction now – Lucene/Solr themselves must be built with Java 6, but apps that use them can be Java 6 or Java 7 (update 1 or later). Got it.
-- Jack Krupansky
From: Uwe Schindler
Sent: Saturday, February 02, 2013 11:43 AM
To: dev@lucene.apache.org
Subject: RE: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
This message is not outdated!
If you use Java 7, it can accidently happen that you use Java 7 features and the code no longer compiles after commit. Also the syntax autocompletion does suggest wrong things.
You have to configure the language level for Java 6! The JDK used *may* be newer, but that may cause compile failures later (see recent failures on Jenkins), if you use e.g. a method/class not in Java 6. See also https://issues.apache.org/jira/browse/LUCENE-4725
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
From: Jack Krupansky [mailto:jack@basetechnology.com]
Sent: Saturday, February 02, 2013 5:39 PM
To: Lucene/Solr Dev
Subject: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
I just did an svn co of the 4x branch and then ant eclipse and it says:
eclipse:
...
[echo]
[echo] SUCCESS: You must right-click your project and choose Refresh.
[echo] Your project must use a Java 6 JRE.
Is Java 6 required? No Java 7? Or does this message simply need to restate the requirement from SYSTEM_REQUIREMENTS.txt: “Java 6 or greater. When using Java 7, be sure to install at least Update 1!”?
Maybe the build should say “Your project must use either a Java 6 JRE or a Java 7 JRE of at least Update 1”
I didn’t check to see what the other releases/trunks say.
-- Jack Krupansky
RE: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
Posted by Uwe Schindler <uw...@thetaphi.de>.
This message is not outdated!
If you use Java 7, it can accidently happen that you use Java 7 features and the code no longer compiles after commit. Also the syntax autocompletion does suggest wrong things.
You have to configure the language level for Java 6! The JDK used *may* be newer, but that may cause compile failures later (see recent failures on Jenkins), if you use e.g. a method/class not in Java 6. See also https://issues.apache.org/jira/browse/LUCENE-4725
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de <http://www.thetaphi.de/>
eMail: uwe@thetaphi.de
From: Jack Krupansky [mailto:jack@basetechnology.com]
Sent: Saturday, February 02, 2013 5:39 PM
To: Lucene/Solr Dev
Subject: Outdated message - Must my Eclipse project "use a Java 6 JRE"?
I just did an svn co of the 4x branch and then ant eclipse and it says:
eclipse:
...
[echo]
[echo] SUCCESS: You must right-click your project and choose Refresh.
[echo] Your project must use a Java 6 JRE.
Is Java 6 required? No Java 7? Or does this message simply need to restate the requirement from SYSTEM_REQUIREMENTS.txt: “Java 6 or greater. When using Java 7, be sure to install at least Update 1!”?
Maybe the build should say “Your project must use either a Java 6 JRE or a Java 7 JRE of at least Update 1”
I didn’t check to see what the other releases/trunks say.
-- Jack Krupansky