jimka
July 9, 2019, 11:14am
1
When I try to launch sbt on our compute cluster, I get the following version compatibility errors.
Isn’t Java version 11 new enough to satisfy the 1.6 requirement? Is there some incompatibility with the openjdk version vs what Scala expects? The version I seem to have is from july 16th 2019. It’s hard to get more up to date than that.
jnewton@node7:~/sw/regular-type-expression/cl-robdd/src/cl-robdd-scala$ sbt "runMain dimacs.dimacsParse /lrde/cluster/jnewton/SAT-benchmarks/NoLimits"
The java installation you have is not up to date
requires at least version 1.6+, you have
version 11.0 2019-07-16
Please go to http://www.java.com/getjava/ and download
a valid Java Runtime and install before running .
jnewton@node7:~/sw/regular-type-expression/cl-robdd/src/cl-robdd-scala$ java -version
openjdk version "11.0.4-ea" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4-ea+10-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.4-ea+10-post-Debian-1, mixed mode, sharing)
jnewton@node7:~/sw/regular-type-expression/cl-robdd/src/cl-robdd-scala$
tarsa
July 9, 2019, 11:21am
2
Probably some version detection logic freaks out. For a very long time internal Java versioning scheme was 1.x, but marketing names differed, i.e. Java 8 had internal version 1.8. This has changed in Java 9: https://openjdk.java.net/jeps/223 You need to figure out what component can’t cope with new Java versioning scheme and update it. Alternatively - try running under Java 8, it has the old internal versioning scheme and more compatibility with old Java programs.
1 Like
My best guess is that your sbt or sbt launcher is out of date.
1 Like
jimka
July 9, 2019, 12:08pm
4
So it is our system administrator who installed sbt for me just yesterday. How can i figure out whether he installed the wrong version?
Normally I could run “sbt sbtVersion” to find out the version of sbt. However, in this case “sbt sbtVersion” refuses to start because it thinks java is out of date.
jnewton@node7:~/sw/regular-type-expression/cl-robdd/src/cl-robdd-scala$ sbt sbtVersion
The java installation you have is not up to date
requires at least version 1.6+, you have
version 11.0 2019-07-16
Please go to http://www.java.com/getjava/ and download
a valid Java Runtime and install before running .
I’m guessing it was installed with some kind of package manager. So
apt show sbt
or somesuch might do the trick.
jimka
July 9, 2019, 12:38pm
6
Apparently he installed the latest version of sbt and java supported by Debian.
jnewton@node7:~/sw/regular-type-expression/cl-robdd/src/cl-robdd-scala$ apt show sbt
Package: sbt
Version: 0.13.13-2
Priority: optional
Section: java
Maintainer: Debian Java Maintainers <[email protected] >
Installed-Size: 1,317 kB
Depends: default-jre | java6-runtime | java7-runtime | java8-runtime | java9-runtime, libsbt-java
Homepage: http://www.scala-sbt.org
Download-Size: 1,050 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.fr.debian.org/debian sid/main amd64 Packages
Description: Scala Build Tool
Sbt is a build tool for Scala, Java, and more. While it is written in Scala
and provides many Scala conveniences, it is a general purpose build tool.
Little or no configuration required for simple projects
Scala-based build definition that can use the full flexibility of Scala code
Yes, seems to be pretty old. Unfortunately most if not all Scala-related debian packages in the official repositories are horribly outdated.
jimka
July 9, 2019, 12:54pm
8
So is the only solution that I need to install all this software in my home directory in the compute cluster? Sounds scary.
There might be other solutions. But either way, all you really have to install is a bash script that downloads and launches the appropriate sbt jar. I would recommend this one .
1 Like
jimka
July 9, 2019, 1:15pm
10
@Jasper-M I’m not sure what you mean by “either way … you have to … download … the appropriate sbt jar.” My understanding was that all I need to do is “git update” the repo, cd to the directory, and launch
sbt "runMain myClassName"
Although my approach depends on the system version of java, scala, and sbt being compatible and reasonably up to date.
jimka
July 9, 2019, 1:21pm
11
It looks like the only way to install sbt on Debian is to have the root password or via “sudo” which I am not privileged to.
jimka
July 9, 2019, 1:23pm
12
I can ask my system admin to attempt to install a newer version. What should I ask him for?
I meant that all you need for running scala programs is a JRE of version 8 or higher, and all you need for compiling scala programs is a JRE and a script such as the one linked to above. That script will detect which sbt version your project requires, download the jar of that version and run it.
You don’t need a local scala installation. And the local sbt installation is not really sbt but just a script that knows where to get and how to run the actual sbt program.
I have no idea which version fixes this issue.
jimka
July 9, 2019, 1:38pm
14
The sys admin was able to install a newer version of sbt. It seems happy now.
jnewton@node7:~/sw/regular-type-expression$ sbt sbtVersion
Copying runtime jar.
Getting org.scala-sbt sbt 1.2.8 (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.2.8/sbt-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;1.2.8!sbt.jar (47ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.7/scala-library-2.12.7.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.12.7!scala-library.jar (436ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/main_2.12/1.2.8/main_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#main_2.12;1.2.8!main_2.12.jar (138ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/logic_2.12/1.2.8/logic_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#logic_2.12;1.2.8!logic_2.12.jar (22ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/actions_2.12/1.2.8/actions_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#actions_2.12;1.2.8!actions_2.12.jar (34ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/main-settings_2.12/1.2.8/main-settings_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#main-settings_2.12;1.2.8!main-settings_2.12.jar (56ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/run_2.12/1.2.8/run_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#run_2.12;1.2.8!run_2.12.jar (25ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/command_2.12/1.2.8/command_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#command_2.12;1.2.8!command_2.12.jar (65ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/collections_2.12/1.2.8/collections_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#collections_2.12;1.2.8!collections_2.12.jar (33ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/scripted-sbt-redux_2.12/1.2.8/scripted-sbt-redux_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#scripted-sbt-redux_2.12;1.2.8!scripted-sbt-redux_2.12.jar (21ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/scripted-plugin_2.12/1.2.8/scripted-plugin_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#scripted-plugin_2.12;1.2.8!scripted-plugin_2.12.jar (18ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar ...
[SUCCESSFUL ] org.scala-lang.modules#scala-xml_2.12;1.0.6!scala-xml_2.12.jar(bundle) (45ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.0.4/launcher-interface-1.0.4.jar ...
[SUCCESSFUL ] org.scala-sbt#launcher-interface;1.0.4!launcher-interface.jar (18ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.11.1/log4j-api-2.11.1.jar ...
[SUCCESSFUL ] org.apache.logging.log4j#log4j-api;2.11.1!log4j-api.jar (31ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.11.1/log4j-core-2.11.1.jar ...
[SUCCESSFUL ] org.apache.logging.log4j#log4j-core;2.11.1!log4j-core.jar (101ms)
downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.11.1/log4j-slf4j-impl-2.11.1.jar ...
[SUCCESSFUL ] org.apache.logging.log4j#log4j-slf4j-impl;2.11.1!log4j-slf4j-impl.jar (28ms)
downloading https://repo1.maven.org/maven2/com/github/cb372/scalacache-caffeine_2.12/0.20.0/scalacache-caffeine_2.12-0.20.0.jar ...
[SUCCESSFUL ] com.github.cb372#scalacache-caffeine_2.12;0.20.0!scalacache-caffeine_2.12.jar (26ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/io_2.12/1.2.2/io_2.12-1.2.2.jar ...
[SUCCESSFUL ] org.scala-sbt#io_2.12;1.2.2!io_2.12.jar (37ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-logging_2.12/1.2.4/util-logging_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-logging_2.12;1.2.4!util-logging_2.12.jar (33ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/librarymanagement-core_2.12/1.2.4/librarymanagement-core_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#librarymanagement-core_2.12;1.2.4!librarymanagement-core_2.12.jar (58ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/librarymanagement-ivy_2.12/1.2.4/librarymanagement-ivy_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#librarymanagement-ivy_2.12;1.2.4!librarymanagement-ivy_2.12.jar (52ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.2.5/compiler-interface-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-interface;1.2.5!compiler-interface.jar (29ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-compile_2.12/1.2.5/zinc-compile_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-compile_2.12;1.2.5!zinc-compile_2.12.jar (22ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-relation_2.12/1.2.4/util-relation_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-relation_2.12;1.2.4!util-relation_2.12.jar (18ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-scalajson_2.12/0.8.2/sjson-new-scalajson_2.12-0.8.2.jar ...
[SUCCESSFUL ] com.eed3si9n#sjson-new-scalajson_2.12;0.8.2!sjson-new-scalajson_2.12.jar (19ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-position_2.12/1.2.4/util-position_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-position_2.12;1.2.4!util-position_2.12.jar (19ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-core_2.12/0.8.2/sjson-new-core_2.12-0.8.2.jar ...
[SUCCESSFUL ] com.eed3si9n#sjson-new-core_2.12;0.8.2!sjson-new-core_2.12.jar (50ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/shaded-scalajson_2.12/1.0.0-M4/shaded-scalajson_2.12-1.0.0-M4.jar ...
[SUCCESSFUL ] com.eed3si9n#shaded-scalajson_2.12;1.0.0-M4!shaded-scalajson_2.12.jar (24ms)
downloading https://repo1.maven.org/maven2/org/spire-math/jawn-parser_2.12/0.10.4/jawn-parser_2.12-0.10.4.jar ...
[SUCCESSFUL ] org.spire-math#jawn-parser_2.12;0.10.4!jawn-parser_2.12.jar (24ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.12.7/scala-reflect-2.12.7.jar ...
[SUCCESSFUL ] org.scala-lang#scala-reflect;2.12.7!scala-reflect.jar (152ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/completion_2.12/1.2.8/completion_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#completion_2.12;1.2.8!completion_2.12.jar (30ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/task-system_2.12/1.2.8/task-system_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#task-system_2.12;1.2.8!task-system_2.12.jar (26ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/tasks_2.12/1.2.8/tasks_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#tasks_2.12;1.2.8!tasks_2.12.jar (23ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/testing_2.12/1.2.8/testing_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#testing_2.12;1.2.8!testing_2.12.jar (29ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-tracking_2.12/1.2.4/util-tracking_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-tracking_2.12;1.2.4!util-tracking_2.12.jar (20ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-classpath_2.12/1.2.5/zinc-classpath_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-classpath_2.12;1.2.5!zinc-classpath_2.12.jar (22ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-apiinfo_2.12/1.2.5/zinc-apiinfo_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-apiinfo_2.12;1.2.5!zinc-apiinfo_2.12.jar (25ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-ivy-integration_2.12/1.2.5/zinc-ivy-integration_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-ivy-integration_2.12;1.2.5!zinc-ivy-integration_2.12.jar (24ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc_2.12/1.2.5/zinc_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc_2.12;1.2.5!zinc_2.12.jar (21ms)
downloading https://repo1.maven.org/maven2/jline/jline/2.14.6/jline-2.14.6.jar ...
[SUCCESSFUL ] jline#jline;2.14.6!jline.jar (28ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-control_2.12/1.2.4/util-control_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-control_2.12;1.2.4!util-control_2.12.jar (17ms)
downloading https://repo1.maven.org/maven2/com/swoval/apple-file-events/1.3.2/apple-file-events-1.3.2.jar ...
[SUCCESSFUL ] com.swoval#apple-file-events;1.3.2!apple-file-events.jar (16ms)
downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar ...
[SUCCESSFUL ] net.java.dev.jna#jna;4.5.0!jna.jar (66ms)
downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/4.5.0/jna-platform-4.5.0.jar ...
[SUCCESSFUL ] net.java.dev.jna#jna-platform;4.5.0!jna-platform.jar (120ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-interface/1.2.4/util-interface-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-interface;1.2.4!util-interface.jar (27ms)
downloading https://repo1.maven.org/maven2/com/lmax/disruptor/3.4.2/disruptor-3.4.2.jar ...
[SUCCESSFUL ] com.lmax#disruptor;3.4.2!disruptor.jar (28ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-cache_2.12/1.2.4/util-cache_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-cache_2.12;1.2.4!util-cache_2.12.jar (34ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/sjson-new-murmurhash_2.12/0.8.2/sjson-new-murmurhash_2.12-0.8.2.jar ...
[SUCCESSFUL ] com.eed3si9n#sjson-new-murmurhash_2.12;0.8.2!sjson-new-murmurhash_2.12.jar (22ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/test-agent/1.2.8/test-agent-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#test-agent;1.2.8!test-agent.jar (22ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar ...
[SUCCESSFUL ] org.scala-sbt#test-interface;1.0!test-interface.jar (19ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.2.5/compiler-bridge_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#compiler-bridge_2.12;1.2.5!compiler-bridge_2.12.jar (26ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-classfile_2.12/1.2.5/zinc-classfile_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-classfile_2.12;1.2.5!zinc-classfile_2.12.jar (19ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.7/scala-compiler-2.12.7.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.12.7!scala-compiler.jar (480ms)
downloading https://repo1.maven.org/maven2/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar ...
[SUCCESSFUL ] com.jcraft#jsch;0.1.54!jsch.jar (36ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/gigahorse-okhttp_2.12/0.3.0/gigahorse-okhttp_2.12-0.3.0.jar ...
[SUCCESSFUL ] com.eed3si9n#gigahorse-okhttp_2.12;0.3.0!gigahorse-okhttp_2.12.jar (23ms)
downloading https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp-urlconnection/3.7.0/okhttp-urlconnection-3.7.0.jar ...
[SUCCESSFUL ] com.squareup.okhttp3#okhttp-urlconnection;3.7.0!okhttp-urlconnection.jar (23ms)
downloading https://repo1.maven.org/maven2/com/eed3si9n/gigahorse-core_2.12/0.3.0/gigahorse-core_2.12-0.3.0.jar ...
[SUCCESSFUL ] com.eed3si9n#gigahorse-core_2.12;0.3.0!gigahorse-core_2.12.jar (32ms)
downloading https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.7.0/okhttp-3.7.0.jar ...
[SUCCESSFUL ] com.squareup.okhttp3#okhttp;3.7.0!okhttp.jar (43ms)
downloading https://repo1.maven.org/maven2/com/typesafe/ssl-config-core_2.12/0.2.2/ssl-config-core_2.12-0.2.2.jar ...
[SUCCESSFUL ] com.typesafe#ssl-config-core_2.12;0.2.2!ssl-config-core_2.12.jar(bundle) (28ms)
downloading https://repo1.maven.org/maven2/org/reactivestreams/reactive-streams/1.0.0/reactive-streams-1.0.0.jar ...
[SUCCESSFUL ] org.reactivestreams#reactive-streams;1.0.0!reactive-streams.jar (18ms)
downloading https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar ...
[SUCCESSFUL ] org.slf4j#slf4j-api;1.7.25!slf4j-api.jar (22ms)
downloading https://repo1.maven.org/maven2/com/typesafe/config/1.2.0/config-1.2.0.jar ...
[SUCCESSFUL ] com.typesafe#config;1.2.0!config.jar(bundle) (30ms)
downloading https://repo1.maven.org/maven2/com/squareup/okio/okio/1.12.0/okio-1.12.0.jar ...
[SUCCESSFUL ] com.squareup.okio#okio;1.12.0!okio.jar (23ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-compile-core_2.12/1.2.5/zinc-compile-core_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-compile-core_2.12;1.2.5!zinc-compile-core_2.12.jar (36ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.12/1.0.5/scala-parser-combinators_2.12-1.0.5.jar ...
[SUCCESSFUL ] org.scala-lang.modules#scala-parser-combinators_2.12;1.0.5!scala-parser-combinators_2.12.jar(bundle) (36ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-core_2.12/1.2.5/zinc-core_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-core_2.12;1.2.5!zinc-core_2.12.jar (37ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/zinc-persist_2.12/1.2.5/zinc-persist_2.12-1.2.5.jar ...
[SUCCESSFUL ] org.scala-sbt#zinc-persist_2.12;1.2.5!zinc-persist_2.12.jar (99ms)
downloading https://repo1.maven.org/maven2/com/trueaccord/scalapb/scalapb-runtime_2.12/0.6.0/scalapb-runtime_2.12-0.6.0.jar ...
[SUCCESSFUL ] com.trueaccord.scalapb#scalapb-runtime_2.12;0.6.0!scalapb-runtime_2.12.jar (110ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbinary_2.12/0.5.0/sbinary_2.12-0.5.0.jar ...
[SUCCESSFUL ] org.scala-sbt#sbinary_2.12;0.5.0!sbinary_2.12.jar (34ms)
downloading https://repo1.maven.org/maven2/com/trueaccord/lenses/lenses_2.12/0.4.12/lenses_2.12-0.4.12.jar ...
[SUCCESSFUL ] com.trueaccord.lenses#lenses_2.12;0.4.12!lenses_2.12.jar (21ms)
downloading https://repo1.maven.org/maven2/com/lihaoyi/fastparse_2.12/0.4.2/fastparse_2.12-0.4.2.jar ...
[SUCCESSFUL ] com.lihaoyi#fastparse_2.12;0.4.2!fastparse_2.12.jar (31ms)
downloading https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.3.1/protobuf-java-3.3.1.jar ...
[SUCCESSFUL ] com.google.protobuf#protobuf-java;3.3.1!protobuf-java.jar(bundle) (83ms)
downloading https://repo1.maven.org/maven2/com/lihaoyi/fastparse-utils_2.12/0.4.2/fastparse-utils_2.12-0.4.2.jar ...
[SUCCESSFUL ] com.lihaoyi#fastparse-utils_2.12;0.4.2!fastparse-utils_2.12.jar (25ms)
downloading https://repo1.maven.org/maven2/com/lihaoyi/sourcecode_2.12/0.1.3/sourcecode_2.12-0.1.3.jar ...
[SUCCESSFUL ] com.lihaoyi#sourcecode_2.12;0.1.3!sourcecode_2.12.jar (29ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/core-macros_2.12/1.2.8/core-macros_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#core-macros_2.12;1.2.8!core-macros_2.12.jar (30ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/protocol_2.12/1.2.8/protocol_2.12-1.2.8.jar ...
[SUCCESSFUL ] org.scala-sbt#protocol_2.12;1.2.8!protocol_2.12.jar (51ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar ...
[SUCCESSFUL ] org.scala-sbt#template-resolver;0.1!template-resolver.jar (21ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/ipcsocket/ipcsocket/1.0.0/ipcsocket-1.0.0.jar ...
[SUCCESSFUL ] org.scala-sbt.ipcsocket#ipcsocket;1.0.0!ipcsocket.jar (21ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/util-scripted_2.12/1.2.4/util-scripted_2.12-1.2.4.jar ...
[SUCCESSFUL ] org.scala-sbt#util-scripted_2.12;1.2.4!util-scripted_2.12.jar (23ms)
downloading https://repo1.maven.org/maven2/com/github/cb372/scalacache-core_2.12/0.20.0/scalacache-core_2.12-0.20.0.jar ...
[SUCCESSFUL ] com.github.cb372#scalacache-core_2.12;0.20.0!scalacache-core_2.12.jar (30ms)
downloading https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.5.6/caffeine-2.5.6.jar ...
[SUCCESSFUL ] com.github.ben-manes.caffeine#caffeine;2.5.6!caffeine.jar (75ms)
downloading https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-cb9cc189e9f3af519f9f102e6c5d446488ff6832/ivy-2.3.0-sbt-cb9cc189e9f3af519f9f102e6c5d446488ff6832.jar ...
[SUCCESSFUL ] org.scala-sbt.ivy#ivy;2.3.0-sbt-cb9cc189e9f3af519f9f102e6c5d446488ff6832!ivy.jar (87ms)
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
80 artifacts copied, 0 already retrieved (28561kB/960ms)
Getting Scala 2.12.7 (for sbt)...
:: retrieving :: org.scala-sbt#boot-scala
confs: [default]
5 artifacts copied, 0 already retrieved (19715kB/346ms)
[warn] No sbt.version set in project/build.properties, base directory: /lrde/home/jnewton/sw/regular-type-expression
[info] Set current project to regular-type-expression (in build file:/lrde/home/jnewton/sw/regular-type-expression/)
[info] 1.2.8
eikek
July 9, 2019, 3:01pm
15
It may also work, if you have multiple JDKs installed (where one of them
is JDK 8) and then point the sbt launcher script to a JDK8, example:
sbt -java-home /usr/lib/jdk8/
I think sbt 0.13 is simply unaware of newer java versions and its check
looks like this
(https://github.com/sbt/sbt-launcher-package/blob/v0.13.16/src/universal/bin/sbt-launch-lib.bash#L198 ):
elif [[ "$java_version" < "$required_version" ]];
I’m not a bash expert, but i think “<” compares letters, so “11.0” is
“lower” than “1.6” (due to the version name changes in the jdk as
pointed out by Piotr Tarsa). This is fixed in a newer version of the sbt
launcher script. It “works on my machine” using sbt 1.2.8 and jdk
11.0.3.
jimka via Scala Users [email protected] writes:
I’ve run into problems with sbt and running from a user account on Windows. From my experience, it needs to be installed on windows from an admin account. Then it needs to be used to build a major product or to, causing it to download more stuff. If I’ve had problems I have to scrub it completely out of the system, then reinstall it. I build the compiler and libraries to break it in. It creates lock directories/files. On windows, it took me awhile to discover I needed to make that directory r/w by all accounts.
My system (used to be) locked down pretty hard. So my experience might be unusual. So far, I’ve found all of my problems to be related to installing it or using it from non-admin accounts. I’ve been told it shouldn’t be a problem. But for me, using an admin account for a few days made my problems go away.
It could have just as well been the full moon. Still, I do switch over to a privileged account if things go bump.
nafg
July 9, 2019, 8:37pm
17
Can’t you put on a user-local JVM?
nafg
July 14, 2019, 9:15pm
18
There’s no intrinsic reason sbt would need admin rights. There might be something on your system that’s causing problems without it though, like something else having wrong access rules.
Same issue on my local.
This commit helps me to fix the problem: https://github.com/sbt/sbt-native-packager/pull/1111/files
Maybe you can try to check the java settings on your system. Try to run:
update-alternatives --display java && update-alternatives --display javac && update-alternatives --display jar && update-alternatives --display javaws && java -version
This will only if you are running a debian-based linux distro (Debian, Ubuntu, Pop…).
Also check if youhave the “libc6” package correctly installed.