Just a mention that might be of use to other users.
I had some problems with installation.
My first try was using the quick 'pip install java2python'
When doing this with python 2.7.9, the following error occurred:
Collecting java2python
Using cached java2python-0.5.0.tar.gz
Collecting antlr-python-runtime==3.1.3 (from java2python)
←[31m Could not find a version that satisfies the requirement antlr-python-runt
ime==3.1.3 (from java2python) (from versions: )←[0m
←[33m Some externally hosted files were ignored as access to them may be unreli
able (use --allow-external antlr-python-runtime to allow).←[0m
←[33m Some insecure and unverifiable files were ignored (use --allow-unverified
antlr-python-runtime to allow).←[0m
←[31m No matching distribution found for antlr-python-runtime==3.1.3 (from java
2python)←[0m
When doing the 'long install' method, things worked (though some of the links to antler in the java2python
docs are old). Here are steps that worked (I did this in a 'GitBash shell' under Windows OS):
The above method does not get the tests, but they may be obtained by downloading a zip of this
Github repository.
Two minor nitpicks on the action of j2py:
Empty If-then-else clauses need a 'pass' action, or Python complains
Many of the comments are moved from their original location in the Java file. Would be better if they
were left in at least approximate original locations.
Thanks for making this available. It will save a lot of time in converting a 2000 line Java program.
Just a mention that might be of use to other users.
I had some problems with installation.
My first try was using the quick 'pip install java2python'
Two minor nitpicks on the action of j2py:
Thanks for making this available. It will save a lot of time in converting a 2000 line Java program.