Linked Questions
28 questions linked to/from Starting a process in Java?
-2
votes
1
answer
2k
views
Java Code to open to RUN (windows + R) and execute a command [duplicate]
My scenario is to open RUN window (Windows + R) and execute it programatically using java.
Please provide me the java code for it or suggest me how to proceed with it.
Steps:
open RUN(WINDOWS + R).
...
0
votes
1
answer
772
views
How to execute some action in an external program through java code [duplicate]
I have a java code, and I want with an actionlistener when a menuitem is clicked to automatically open a file and click "run" (which executes and compiles a code in the external program). It is the ...
1
vote
1
answer
373
views
Java - How to execute a process [duplicate]
I'm looking for all the different functions available in JAVA to execute a process/os command.
For example, I familiar with exec('command').
In PHP I familiar with the following functions:
exec()
...
2
votes
1
answer
98
views
How to run python in java code on unix [duplicate]
We have python application for work with WebSphere queue. This application consists of two files (queue-tools, queue-tools.py) and few libs. queue-tools file is looking like this:
#!/bin/sh
$HOME/sh/...
-2
votes
1
answer
101
views
How to create another process in java with java code? [duplicate]
I want to run another process written in java. But I don't know how to do it. I searched the internet but only found how to start notepad.
I have a class main, in it I want to start a new process ...
0
votes
0
answers
37
views
Create process with method called in Java [duplicate]
now my main function looks like this:
public static void main(String[] args) {
ExecutorService executor = Executors.newSingleThreadExecutor();
executor.submit(() -> {
new ...
0
votes
0
answers
29
views
Execution of programs in another Java program [duplicate]
Is there any way to run a program (maybe C, C++, Java or Python) inside another Java program and get output.
I am developing a kind of Code-Editor and a kind of HackerRank clone with Java and I want ...
5
votes
4
answers
23k
views
How to check if a process is running on Windows?
What I am trying to do it is a program to know if a process it is active on Windows to work with it in Java. I looked on the Internet and found two different solutions:
Option 1
Option 2
But it is not ...
0
votes
5
answers
5k
views
How to run Hadoop HDFS command from java code
I'm new in Hadoop! How can I run some hdfs commands from Java code? I've been testing successfully mapreduce with java code and hdfs commands directly from cloudera vm's terminal but now I'd like to ...
1
vote
1
answer
2k
views
How can I open an external Java console application with arguments, capture output and execute commands on it?
I have a Java .jar application that is ran from a .bat file to have arguments passed to the Java application. The application opens a console (cmd.exe to be exact), writes things to it regularly and ...
2
votes
1
answer
658
views
How to compile a LaTex file from Java program in Mac
i'm trying to use a terminal command latex file.tex to compile a .tex file. My program extracts the absolute path of the .tex file on a String:
public void generateLatex(String path)
{
String ...
-3
votes
1
answer
1k
views
import data from file csv to Oracle without sql
Is there any way to import CSV file to oracle table using JAVA?
1
vote
1
answer
936
views
Gradle run multiple jars at once
This code executes each run task one at a the time
...
task run1 (type: JavaExec, dependsOn: classes) {
main="com.package.Main1"
classpath sourceSets.main.output.classesDir
classpath ...
0
votes
1
answer
660
views
Check if Linux "Screen" package is installed
I'd need a way to check if the Linux Screen package is installed but through Java code. I would like to know if there's a built-in function for that? Also, the solution must be compatible with all ...
4
votes
3
answers
311
views
Start another jar and provide input to it
I need to start jar and provide input to it.
I've found how to start jar, which works without problems, using Runtime#getRuntime#exec, and I've also found that
String command = "stop";
...