java2python icon indicating copy to clipboard operation
java2python copied to clipboard

java2python

Open suresh40 opened this issue 10 years ago • 12 comments

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

suresh40 avatar May 21 '15 08:05 suresh40

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

bcarroll avatar Nov 02 '15 16:11 bcarroll

even after doing this still getting error

image

tusharsinghalrocks avatar Feb 09 '17 13:02 tusharsinghalrocks

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

samarth-29 avatar Jan 20 '18 08:01 samarth-29

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

what may be the error?

lion9 avatar Feb 23 '18 07:02 lion9

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. ধন্যবাদ ।

maifeeulasad avatar Feb 01 '19 03:02 maifeeulasad

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?

phs-sakshi avatar Jul 26 '20 15:07 phs-sakshi

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

maifeeulasad avatar Aug 13 '20 14:08 maifeeulasad

@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

MinaTahaei avatar Nov 03 '20 15:11 MinaTahaei

@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).

phs-sakshi avatar Nov 03 '20 15:11 phs-sakshi

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.

me0wstic avatar Dec 16 '20 06:12 me0wstic

Did you solve this?

raul-parada avatar Feb 09 '21 10:02 raul-parada

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.

maifeeulasad avatar Feb 10 '21 06:02 maifeeulasad