2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Apache Solr を OpenJDK 10 で動かすときのメモ

Posted at

 現在Java11を使用していているのですが、Apache Solrを調査することになり、Solr 8.1.1を解凍後、bin\solr.cmd startとしたら、NashornがJava11で非推奨となったと何行も表示しました。

メッセージの内容は、
Warning: Nashorn engine is planned to be removed from a future JDK release
です。

OpenJDK10をダウンロード後、適当なフォルダに解凍し、%SOLR_HOME%\bin\solr.in.cmdの25行付近にあるset SOLR_JAVA_HOME=を設定し、無事エラー無く起動できるようになりました。

ちなみに、
OpenJDK 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
が表示した場合、%SOLR_HOME%\bin\solr.cmdの1174行付近の-XX:+UseLargePages-XX:-UseLargePagesに変更し解消できました。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?