Skip to content

Instantly share code, notes, and snippets.

@tueda
Last active January 28, 2026 20:04
Show Gist options
  • Select an option

  • Save tueda/a200b3f747d0fc864be8b4dd09be5a1e to your computer and use it in GitHub Desktop.

Select an option

Save tueda/a200b3f747d0fc864be8b4dd09be5a1e to your computer and use it in GitHub Desktop.
Java-Colab.ipynb
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tueda
Copy link
Author

tueda commented Dec 21, 2022

@tueda
Copy link
Author

tueda commented Feb 21, 2024

For reference, nowadays the easiest way to run Java on Colab would be:

  1. Copy and paste 4 lines in https://github.com/jupyter-java#installing-in-online-jupyter-notebooks, and run them.
  2. Change runtime type to java (IJava/j!).

Then the above examples work well (including %maven ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment