Spinal-bootcamp icon indicating copy to clipboard operation
Spinal-bootcamp copied to clipboard

Broken with Java 11 on Ubuntu

Open pcesar22 opened this issue 4 years ago • 2 comments

When opening the Jupyter notebook, it gets stuck with "kernel starting... please wait".

On the Jupyter notebook log, I find the message:

scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.

And that leads me to think it is the Java version. I changed the Java version on Ubuntu by running sudo update-alternatives --config java and selection java-8. Then, I was able to run the notebook (see below)

I think it would be good to include this in the documentation. Also, please include the coursier installation command. It wasn't clear to me the first time around even though you do make note of it at the end of the README.

./coursier launch almond:0.5.0 --scala 2.12.8 -- --install

(base) ➜  ~ java -version 
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)
(base) ➜  ~ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in manual mode

pcesar22 avatar Jul 11 '20 21:07 pcesar22

@pcesar22 it's have been fixed by change JAVA8, right?

the Binder is avaliable now , you can run that online. BTW, 3.3-Spinal-lib-Regif.ipynb is a new solution for register-bank maybe what you look for .

jijingg avatar Jul 13 '20 06:07 jijingg

@jijingg Yes, changing to java8 fixed the issue.

That is really cool. The Regif.ipynb is exactly what I was looking for, and it's nice that you are putting a lot of effort into the intuition of what the API calls are doing w/ the GIFs.

pcesar22 avatar Jul 13 '20 19:07 pcesar22