runtime.exec Questions
4
Solved
I am analyzing the differences between approaches for taking thread dumps. Below are the couple of them I am researching on
Defining a jmx bean which triggers jstack through Runtime.exec() on cli...
Dania asked 2/1, 2013 at 7:32
4
I've been trying to write a java program that uses the Runtime.getRuntime().exec() method to use the command-line to run an instance of the program "tesseract".
Some background, Tesseract is a fre...
Saire asked 20/11, 2012 at 5:49
4
Solved
Runtime.getRuntime.exex("abc.exe -parameters");
using .waitFor() does not help to determine the completion of process.
Chelonian asked 29/7, 2011 at 13:24
3
Solved
I´m using Mac OS Lion, with java version 1.6.0_26
I'm making a small app for Mac in Java with a main menu for the user, so he can choose several options.
One of them is install an app using a .pk...
Duax asked 2/11, 2011 at 11:0
2
Solved
I have a BroadcastReceiver that receives input from an outside source.
This receiver must then behave as a "mouse-like" program and send input events to the system. I have Root access and permissi...
Centro asked 22/12, 2015 at 19:26
1
Solved
I can use Runtime.exec() to execute shell commands like "getprop" and "ls system" and they work fine.
However, when I use "echo $BOOTCLASSPATH", "echo \\$BOOTCLASSPATH" or "echo HelloWorld", it wo...
Braxy asked 8/8, 2014 at 8:42
1
Solved
I am building an app for some set of rooted phones I have. I was wondering if there is any way that I could uninstall a system app which comes with the phone running some code from my app.
...
Barnsley asked 5/12, 2015 at 11:8
5
I've got some code that uses Runtime.exec() to run an external .jar (built as an IzPack installer).
If I run this external.jar from the command line like so:
java -jar external.jar
Then the co...
Hold asked 5/7, 2012 at 18:28
2
Solved
public static String executeCommand(String command) {
StringBuffer sb = new StringBuffer();
Process p;
try {
p = Runtime.getRuntime().exec(command);
p.waitFor();
} BufferedReader reader = ne...
Germiston asked 5/10, 2015 at 12:29
1
Solved
When I try to run Runtime.exec(String), certain commands work, while other commands are executed but fail or do different things than in my terminal. Here is a self-contained test case that demonst...
Outguess asked 2/8, 2015 at 21:0
8
Solved
Is there a way to run this command line within a Java application?
java -jar map.jar time.rel test.txt debug
I can run it with command but I couldn't do it within Java.
Tripod asked 13/12, 2011 at 21:35
6
I want to launch a browser and load a web page using Java's Runtime exec. The exact call looks like this:
String[] explorer = {"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE",
&quo...
Instil asked 9/12, 2009 at 20:8
3
I have compiled ffmpeg library on ubuntu 11.10 and ported compiled files on android.
After compiling i got libffmpeg.so successfully. It gets loaded on android successfully.
I am doing it on ubunt...
Shortwave asked 26/8, 2012 at 11:42
5
Solved
i'm trying to remove junk files by using
Process p = Runtime.getRuntime().exec();
it works fine as long as i do not use wildcards, i.e. this works:
Process p = Runtime.getRuntime().exec("/bin/r...
Withy asked 21/1, 2010 at 18:57
2
Solved
I am trying to open *.docx files programmatically from Java on Mac OS X. For Windows and Linux I already got it working with the following methods:
Windows:
Runtime.getRuntime().exec(new String[]...
Irriguous asked 6/8, 2014 at 15:14
7
I want to open Notepad in my Java program. Suppose that I have one button if I click this button the notepad will appear.
I already have a file name and a directory.
How can I implement this cas...
Gawky asked 15/8, 2010 at 11:22
3
I am tring to ping IP addresses from 192.168.1.1 to 192.168.1.254. First I was using I InetAddress class but it was bugged and some IPs where not reachable even if they are. After that I tried this...
Phillis asked 6/6, 2013 at 21:8
3
Solved
I have a Main.java and Test.java classes that I want to compile and run Main.java in Test.java code. Here is my code
Process pro1 = Runtime.getRuntime().exec("javac Main.java");
pro1.waitF...
Hypochondrium asked 30/1, 2011 at 11:41
4
I am using the below code to open the "sample.html' file.
String filename = "C:/sample.html";
String browser = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe";
Runtime rTime = Run...
Gift asked 14/3, 2014 at 19:59
4
I am trying to call an external windows application (i.e. calc.exe) when a user clicks on a button in a GWT web application. Is there a way on how to do it?
Below are what I have already tried so...
Melvamelvena asked 5/3, 2014 at 20:32
5
Solved
I'm using Runtime.getRuntime().exec(String[]) to run processes where some of the elements of the String array are defined by the user.
Is this safe? Or will it allow to inject code into the termin...
Burschenschaft asked 14/3, 2011 at 16:31
3
Solved
I have a program where I was able to successfully execute cmd commands from my code, but I want to be able to get the output from the cmd command. How can I do that?
So far my code is:
Second.jav...
Thomasinathomasine asked 27/12, 2013 at 15:58
2
Solved
I need to execute a command from a program. The command line is ok, I tried it in the terminal, but it doesn't work in the program.
I add a copy from my code:
File dir = new File("videos");
St...
Vivianaviviane asked 28/6, 2010 at 7:50
6
I have a collection of webapps that are running under tomcat. Tomcat is configured to have as much as 2 GB of memory using the -Xmx argument.
Many of the webapps need to perform a task that ends u...
Heteromorphic asked 20/5, 2010 at 19:4
2
Solved
Is there any way that I can open notepad or other application from shortcuts?
Here is my code:
import java.io.File;
import java.io.IOException;
public class acrobat {
public static void main(S...
Catalinacatalo asked 25/7, 2013 at 13:54
© 2022 - 2024 — McMap. All rights reserved.