I'm trying to run the following code in pycharm using python 3.7
os.system("java ToPython")
however I get the following error:
Error: Could not find or load main class ToPython
I tried executing the same java file from terminal:
javac ToPython.java
java topython
and it works perfectly file
note: all the files exist in the same folder