You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pip install java2python
Collecting java2python
Downloading https://files.pythonhosted.org/packages/e4/4d/96dd48650ebe9dcdcbef4e61840e9efdf240b34cee6bdb8ea8de6749d1e5/java2python-0.5.0.tar.gz (138kB)
100% |████████████████████████████████| 143kB 23kB/s
Collecting antlr_python_runtime==3.1.3 (from java2python)
Could not find a version that satisfies the requirement antlr_python_runtime==3.1.3 (from java2python) (from versions: )
No matching distribution found for antlr_python_runtime==3.1.3 (from java2python)
@zaoqi
I ran into the same issue. My problem was that I was trying to run using Python3. I found [here] that java2Python requires Python2.7. Python2.7.9 was the first version with pip capability to I installed this Python version. Ran py -2 -m pip install java2python and it worked.
I also had run py -2 -m pip install install http://antlr3.org/download/Python/antlr_python_runtime-3.1.3.tar.gz so I am unsure if this is needed before.
Reacted by ilkeuygun, Nathan and Konstantin Diachenko
even after this when I run j2py HelloWorld.java it shows me j2py is not an internal or external command.
PS- I have my PATH variables set to ../Python27 and ../Python27/Scripts
Activity
jurentie commentedon Apr 11, 2019
@zaoqi
I ran into the same issue. My problem was that I was trying to run using Python3. I found [here] that java2Python requires Python2.7. Python2.7.9 was the first version with pip capability to I installed this Python version. Ran
py -2 -m pip install java2pythonand it worked.I also had run
py -2 -m pip install install http://antlr3.org/download/Python/antlr_python_runtime-3.1.3.tar.gzso I am unsure if this is needed before.ilkeuygun commentedon Jun 11, 2019
@jurentie Thank you for pointing Python 2.7.9 out.
Can you please fix your link in "I found [here] that" part.
Thanks,
phs-sakshi commentedon Jul 25, 2020
even after this when I run j2py HelloWorld.java it shows me j2py is not an internal or external command.
PS- I have my PATH variables set to ../Python27 and ../Python27/Scripts
MrKomodoDragon commentedon Nov 16, 2020
@jurentie I am on a Mac, and when I attempt to run
py -2 -m pip install java2python, it says command not found. Anything I can do?MrKomodoDragon commentedon Nov 16, 2020
Never mind! Ran
python2.7 -m pip install java2pythonand worked succesfully!