-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build with sbt #24
Comments
use java 7 ? |
Using Java 7 is not a very good option when Java is installed system-wide. I have this problem and it looks like the sbt launcher juses whatever java is in the PATH. I tried setting JAVA_HOME and JDK_HOME but it still takes the default Java. This needs 2 levels of fix. Firstly, some way to tell the launcher to use an alternative JDK, secondly a patch to SBT so that it will run under Java 8. |
Old scala 2.9x does not work with Java8 So the only way to make it work with JDK8 is to use Scala 2.10 and sbt 0.13 (as sbt 0.12 uses scala 2.9x internally). |
Updating the system-wide default Java version for one application (sbt) is a bit of a drag. I ended up writing a script that pushes Java7 onto the front of my PATH before execing the real sbt script. Functional but eugh! |
I had the same problem and changed my sbt launcher script to read #!/bin/bash
test -f ~/.sbtconfig && . ~/.sbtconfig
exec $JAVACMD -Xmx1512M ${SBT_OPTS} -jar /usr/local/Cellar/sbt/0.13.0/libexec/sbt-launch.jar "$@" Now I can use another Java version for sbt with
Note that although the launcher explicitly mentions 0.13.0 the |
I had the same problem in an entirely different context, when building jOOQ-scala with Maven and Java 8:
I suspect that there is a Scala / Java 8 issue |
|
Scala 2.10.3: |
@svanschalkwyk you're right, I had to fix it in my fork. I switch to a CDN → see https://github.com/andypetrella/spark-notebook/blob/spark/server/src/main/assets/thirdparty/static/less.jsm |
Much appreciated! On Sun, Nov 2, 2014 at 2:04 PM, Andy Petrella [email protected]
Remcam LLC http://remcam.net http://linkedin.com/in/vanschalkwyk |
If you want to use URL rather than the page opened by the app, you will
Will disable the security and let you use the app in DEV mode (let's say), HTH |
Thanks! On Sun, Nov 2, 2014 at 2:17 PM, Andy Petrella [email protected]
Remcam LLC http://remcam.net http://linkedin.com/in/vanschalkwyk |
Thanks Andy. Much appreciated!
--KernelManager.kernel_cmd="$KERNEL_CMD" On Sun, Nov 2, 2014 at 2:45 PM, Steph van Schalkwyk [email protected] wrote:
Remcam LLC http://remcam.net http://linkedin.com/in/vanschalkwyk |
@svanschalkwyk actually, I dunno, this command look quite weird to me :-D. I'm using the notebook tru sbt only. |
Hi Remcam LLC http://remcam.net http://linkedin.com/in/vanschalkwykOn Nov 2, 2014 2:58 PM, "Andy Petrella" [email protected] wrote:
|
I have sbt 0.13 and jdk 1.8 . it is compiling on scalac 2.10 but I have the same error |
When I try to build with sbt I get:
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? r
error: error while loading CharSequence, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
(bad constant pool tag 15 at byte 1484)
[error] Type error in expression
The text was updated successfully, but these errors were encountered: