openlca-python-tutorial icon indicating copy to clipboard operation
openlca-python-tutorial copied to clipboard

generating $py.class file

Open Brotrand opened this issue 7 years ago • 1 comments

Hello, I´m trying to work through the example.py with jython. As far as I understand it, I will need a $py.class file coming with the util.py file, right? As I have never worked with java I am wondering, how I can generate or how I get this file? I appreciate any help you can give me on this one. Thank you

Brotrand avatar Jan 15 '18 09:01 Brotrand

The .class files are automatically generated by the Jython compiler. When you execute the example.py file which imports the util.py file, the compiler would generated somethong like a util.class file.

Here you can find information about setting up an IDE, which makes it easier to work with these files: https://github.com/GreenDelta/openlca-python-tutorial/blob/master/ide_setup.md

Note that we created the example.py file in a developer training and still did not had the time to clean this up... so it is quite messy.

msrocka avatar Jan 15 '18 15:01 msrocka