Skip to content
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

Broken with Java 11 on Ubuntu #3

Open
pcesar22 opened this issue Jul 11, 2020 · 2 comments
Open

Broken with Java 11 on Ubuntu #3

pcesar22 opened this issue Jul 11, 2020 · 2 comments

Comments

@pcesar22
Copy link

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
@jijingg
Copy link
Owner

jijingg commented Jul 13, 2020

@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 .

@pcesar22
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants