Re: Setting JVM Boot paramaters for scala

50 views
Skip to first unread message

Alexey Lunacharsky

unread,
May 19, 2013, 3:10:35 AM5/19/13
to simple-b...@googlegroups.com
Hey, tsume.

I believe javaOptions will not work if you don't set java runtime forking, i.e.:

fork := true

As due to documentation:

> inspect java-options
[info] Task: scala.collection.Seq[java.lang.String]
[info] Description:
[info]  Options passed to a new JVM when forking.

Also as I see you've missed the "/p:" I think this is significant (at least ":") (see http://publib.boulder.ibm.com/infocenter/java7sdk/v7r0/index.jsp?topic=%2Fcom.ibm.java.lnx.70.doc%2Fdiag%2Fappendixes%2Fcmdline%2FXbootclasspath.html)


Pehaps you'd like to use SBT to manage your npn dependency in that case following build.sbt config could be helpful (I haven't tested it a lot so it could require some tunning):

fork := true

libraryDependencies += "org.mortbay.jetty.npn" % "npn-boot" % "1.1.1.v20121030" % "runtime"

javaOptions <++= (managedClasspath in Runtime) map { attList =>
  for {
    file <- attList.map(_.data)
    path = file.getAbsolutePath
    if path.contains("jetty.npn")
  } yield "-Xbootclasspath/p:" + path
}


воскресенье, 19 мая 2013 г., 4:41:35 UTC+7 пользователь Tsume написал:
Hi everyone.

I'm trying to use SPDY in Socko as directed here. I believe my set up is correct but I'm unable to to make contact with the web server, I believe this is due to me not setting up the NPN boot file correctly. I'm not sure if I've done it correctly. In my build.sbt file I put the following:

javaOptions += "-Xbootclasspath/home/tsume/Documents/npn-boot-1.1.1.v20121030.jar"

Is this correct?

Tsume

unread,
May 23, 2013, 11:44:50 AM5/23/13
to simple-b...@googlegroups.com
Thanks. everything is working now :)
Reply all
Reply to author
Forward
0 new messages