SpencerPark / IJava

A Jupyter kernel for executing Java code.
MIT License
1.07k stars 211 forks source link

How to add files to Google Colab after switching to Java? #135

Open TAsUjxnMIL opened 2 years ago

TAsUjxnMIL commented 2 years ago

Hello SpencerPark,

I am currently trying to execute my Java code on a Google Colab notebook. I have finally achieved to upload all my necessary files. Now I am trying to import some classes from the uploaded files. But this does not work. Within Google Colab it looks like this:

2022-07-13_16h33_13

I am trying to import a class using this code snippet:

import br.usp.icmc.lapad.ireos.IREOS;

But this does not work for me. I tried to execute the command:

%classpath /content/src

This does neither work but this does not fix the problem. Do you have a solution to fix this problem?

I look forward to hearing from you. Thank you very much!