Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java2python #36

Open
suresh40 opened this issue May 21, 2015 · 12 comments
Open

java2python #36

suresh40 opened this issue May 21, 2015 · 12 comments

Comments

@suresh40
Copy link

after execution of "python setup.py install" , i tried to execute j2py -- version

I am getting j2py is not recognised as internal or external command

@bcarroll
Copy link

bcarroll commented Nov 2, 2015

Make sure the python scripts directory is in your PATH environment variable. If you are on Windows, you might need to add .py to the j2py script for the OS to know it is a Python script.
.. or to be safe, make a copy of the j2py script.

Here is my setup on Windows 7:

set PATH=%PATH%;C:\Python27\Scripts

copy c:\Python27\Scripts\j2py c:\Python27\Scripts\j2py.py

@tusharsinghalrocks
Copy link

even after doing this still getting error

image

@samarth-29
Copy link

i am also getting the same error even after I copied j2py.py

@lion9
Copy link

lion9 commented Feb 23, 2018

File "C:\java2python\bin\j2py.py", line 113
except (IOError, ), exc:

what may be the error?

@maifeeulasad
Copy link

Maybe the problem is , we have installed python and libraries at different PATH
So,
In the command prompt type "where python" first :
so
It will tell you , where your python is . Now instead of C:\Python27\Scripts , you can just write python_path_without_exe and followed by Scripts
See these for better understanding :
so1
so2

This worked for me.
ধন্যবাদ ।

@phs-sakshi
Copy link

even after this I am getting the same error. j2py is not recognized as an internal or external command. Can you please help me out?

@maifeeulasad
Copy link

@B417037 we need more details, is python declared in path? How many version are you using at once ? etc.

@MinaTahaei
Copy link

@B417037 we need more details, is python declared in path? How many versions are you using at once? etc.

I get the same error too. python is in my path, I only have 1 version but I still get this error

@phs-sakshi
Copy link

@B417037 we need more details, is python declared in path? How many version are you using at once ? etc.

Yes, python is declared in the path. I am only using 1 version of python (python 2 as it does not work for python 3).

@me0wstic
Copy link

i'm getting the same error as well. python is declared in my path.

C:\Python27\Scripts>j2py --version
'j2py' is not recognized as an internal or external command,
operable program or batch file.

@raul-parada
Copy link

raul-parada commented Feb 9, 2021

Did you solve this?

@maifeeulasad
Copy link

I don't have a Windows machine right now else I would make a video.

But you guys should follow this : https://www.computerhope.com/issues/ch000549.htm

In Windows you have to set the path variable. Then it'll work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants