'Problem with executing a python file with few arguments in java
This is my java code that let me execute a python script.
The problem is everything is printed in the correct form but there is no creation for the file "test.txt" while executing with java.


If executing python script manually or from the cmd directly, everything works perfectly but not with java code
Solution 1:[1]
Correct your cmd /c python with your correct python path (i can't know for sure that, but it will sure end with python.exe, not just python).
You don't see errors because you are catching exceptions (generate for example by a wrong path) without handling them, rendering them silent.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | rikyeah |
