-1

This is my java code. with the script quest.py i want that file.txt to execute from java. but not working. pleaseee help. i am stuck here

String command = "python C:/KDU/genquest-master/quest.py file.txt";
Process p = Runtime.getRuntime().exec(command );

1 Answers1

1

your problem in python input file.txt you should add complete path of file for python input

String command = "python C:/KDU/genquest-master/quest.py C:/KDU/genquest-master/file.txt";
Process p = Runtime.getRuntime().exec(command );
amin saffar
  • 1,953
  • 3
  • 22
  • 34