Linked Questions

-2 votes
1 answer
2k views

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). ...
siva's user avatar
  • 15
0 votes
1 answer
772 views

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 ...
user2598911's user avatar
1 vote
1 answer
373 views

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() ...
user3146008's user avatar
2 votes
1 answer
98 views

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/...
Iurii's user avatar
  • 1,795
-2 votes
1 answer
101 views

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 ...
Андрей Стариненко's user avatar
0 votes
0 answers
37 views

now my main function looks like this: public static void main(String[] args) { ExecutorService executor = Executors.newSingleThreadExecutor(); executor.submit(() -> { new ...
NewJavaProgrammer's user avatar
0 votes
0 answers
29 views

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 ...
Aravind Kumar's user avatar
5 votes
4 answers
23k views

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 ...
Francisco Romero's user avatar
0 votes
5 answers
5k views

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 ...
Robert Almeida's user avatar
1 vote
1 answer
2k views

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 ...
Spans's user avatar
  • 364
2 votes
1 answer
658 views

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 ...
Sebastián Cueva's user avatar
-3 votes
1 answer
1k views

Is there any way to import CSV file to oracle table using JAVA?
Jigar Prajapati's user avatar
1 vote
1 answer
936 views

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 ...
sherif's user avatar
  • 2,342
0 votes
1 answer
660 views

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 ...
OpenSource's user avatar
4 votes
3 answers
311 views

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"; ...
kyngs's user avatar
  • 85

15 30 50 per page