0

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

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
altair
  • 1
  • 1

0 Answers0