Skip to content

Tag: java

java call perl which read and write data

I have two files int the directory ‘/tmp’: test.txt ,test.pl the content of test.txt is : the content of the test.pl is: Then in java class I write : Then the content of the newtest.txt generated from the perl is : Here is the problem ,There is a difference but when I run ‘perl test.pl&#8217…

How do I kill a Python script in Java?

I am launching a Python script in Java using Runtime.getRuntime().exec(“python myWebService.py”) and I am not doing anything else with it in Java. However, now I need to terminate the process from within my Java application. I’ve tried issuing a pkill command from the terminal, outside of th…

Stopping an unknown process in linux server

I have this command in my deployment process. But I want this process to stop and then restart while deploying in linux server. I checked and found that this is simply a JAVA process, and I can’t simply kill JAVA as other nimbus and supervisors are running too. So, how can I stop this process? Answer Yo…

./gradlew run BUILD FAILED

I have my build.gradle file set up and my project is working good so far. The problem now is when i run ./gradlew run, it fails with the error : What went wrong: Execution failed for task ‘:run’. Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java” finished with non-zero…