-
-
Save tueda/a200b3f747d0fc864be8b4dd09be5a1e to your computer and use it in GitHub Desktop.
@jmmanipadam You need to open the notebook file in Colab (copy&paste code doesn't work), because you need to switch the Jupyter Kernel type to "java" (impossible from the Colab UI, saved in the .ipynb file). That is why I made this template notebook.
Does this still currently work? I've been running into the issue of a never-ending "Connecting...". I've been troubleshooting for about a day with no luck.
Oh, now the Java Kernel actually seems to stop at "Connecting"...
See the answer in https://stackoverflow.com/a/74821762 and try his notebook https://colab.research.google.com/gist/SpencerPark/447de114fcd3e6a272dc140809462e30.
For reference, nowadays the easiest way to run Java on Colab would be:
- Copy and paste 4 lines in https://github.com/jupyter-java#installing-in-online-jupyter-notebooks, and run them.
- Change runtime type to
java (IJava/j!)
.
Then the above examples work well (including %maven ...
).
followed theinstructions, the code i pasted is running but no output seen. Why?