私の単純なプロジェクトには、Jedis (Java Redis ライブラリ) へのライブラリ依存関係があります。
name := "fit001"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
javaJdbc,
javaEbean,
cache,
"redis.clients" % "jedis" % "2.1.0"
)
play.Project.playJavaSettings
私は両方を実行しplay update、play dependencies成功しました。
Here are the resolved dependencies of your application:
+-------------------------------------------------------------------+--------------------------------------------------------+------------------------------+
| Module | Required by | Note |
+-------------------------------------------------------------------+--------------------------------------------------------+------------------------------+
| redis.clients:jedis:2.1.0 | default:fit001_2.10:1.0-SNAPSHOT | As jedis-2.1.0.jar |
+-------------------------------------------------------------------+--------------------------------------------------------+------------------------------+
| commons-pool:commons-pool:1.5.5 | redis.clients:jedis:2.1.0 | As commons-pool-1.5.5.jar |
+-------------------------------------------------------------------+--------------------------------------------------------+------------------------------+
| com.typesafe.play:play-cache_2.10:2.2.0 | default:fit001_2.10:1.0-SNAPSHOT | As play-cache_2.10.jar |
しかし、実行するsbt compileと、次の問題が報告されます。
[error] /Users/jkwok/Personal/play/fit001/app/com/games/leaderboard/Leaderboard.java:49: cannot find symbol
[error] symbol : constructor Jedis(java.net.URI)
[error] location: class redis.clients.jedis.Jedis
[error] this(leaderboardName, pageSize, new Jedis(uri));
私は何を間違っていますか?