You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2017/03/14 17:44:41 UTC

[jira] [Commented] (SOLR-8689) bin/solr.cmd does not start with recent Verona builds of Java 9 because of version parsing issue

    [ https://issues.apache.org/jira/browse/SOLR-8689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15924665#comment-15924665 ] 

Hoss Man commented on SOLR-8689:
--------------------------------

I don't have a windows VM to use to work on this, but whoever picks it up might want to review the corollary fixes in {{bin/solr}} over in SOLR-10184: in particular this comment...

https://issues.apache.org/jira/browse/SOLR-10184?focusedCommentId=15904091&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15904091

* fix the version parsing to look at the entire number, and compare against entire float versions like "1.8"
* fix gc log option defaults & how log file is added

bash changes that should be mimiced in windows cmd scripting...
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=09bd861

> bin/solr.cmd does not start with recent Verona builds of Java 9 because of version parsing issue
> ------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8689
>                 URL: https://issues.apache.org/jira/browse/SOLR-8689
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.5, 6.0
>         Environment: Windows 7
>            Reporter: Uwe Schindler
>              Labels: Java9
>
> At least on Windows, Solr 5.5 does not start with the shell script using a Verona-Java-9 JDK:
> {noformat}
> *****************************************************
> JAVA_HOME = C:\Program Files\Java\jdk-9
> java version "9-ea"
> Java(TM) SE Runtime Environment (build 9-ea+105-2016-02-11-003336.javare.4433.nc)
> Java HotSpot(TM) 64-Bit Server VM (build 9-ea+105-2016-02-11-003336.javare.4433.nc, mixed mode)
> *****************************************************
> C:\Users\Uwe Schindler\Desktop\solr-5.5.0\bin>solr start
> ERROR: Java 1.7 or later is required to run Solr. Current Java version is: 9-ea
> {noformat}
> I don't know if this is better with Linux, but I assume the version parsing is broken (e.g., String#startsWith, interpret as floating point number,...)
> We should fix this before Java 9 gets released! The version numbering scheme changed completely: http://openjdk.java.net/jeps/223



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org