Linked Questions
41 questions linked to/from Running Command Line in Java
55
votes
9
answers
79k
views
Executing a Java application in a separate process
Can a Java application be loaded in a separate process using its name, as opposed to its location, in a platform independent manner?
I know you can execute a program via ...
Process process = ...
-2
votes
1
answer
2k
views
How to execute a jar file trough java on a different directory [duplicate]
I'm trying to get my java program to execute a jar file which is located on a USB-drive, and I got the code to find the specific file and it's path already but I can't find anything online about how ...
-5
votes
1
answer
687
views
Run external file Java [duplicate]
How can I run an external file in Java?
Like opening a batch or a PDF file?
I want to add it to a jButton with Netbeans, so if somebody pushs on it, it will launch this file from a specified directory
...
-5
votes
1
answer
435
views
Running a Command Line in Java? [duplicate]
Possible Duplicate:
Running Command Line in Java
Is there a way to run this command line within a Java application?
cd "C:\Program Files\myfolder\"&&"C:\Program Files\Java\jre6\bin\java....
-3
votes
1
answer
242
views
Triggering commands to Terminal by using java code [duplicate]
Can anyone suggest me that how to trigger the commands like cd,ls by using java with code.
-1
votes
1
answer
222
views
volatility and java [duplicate]
I'm new to both forensics and java. I just learnt java and I find it quite useful. Recently, I am learning how to integrate commands into the java coding. Is this possible?
I am currently using ...
149
votes
12
answers
252k
views
Calling Python in Java?
I am wondering if it is possible to call Python functions from Java code using Jython, or is it only for calling Java code from Python?
111
votes
15
answers
248k
views
Run a PHP file in a cron job using CPanel [closed]
I am just trying to run a PHP script using a cron job within CPanel - is this the correct syntax:
/usr/bin/php -q /home/username/public_html/cron/cron.php >/dev/null
I am not getting any email ...
Zabs's user avatar
- 14.2k
116
votes
4
answers
133k
views
Difference between ProcessBuilder and Runtime.exec()
I'm trying to execute an external command from java code, but there's a difference I've noticed between Runtime.getRuntime().exec(...) and new ProcessBuilder(...).start().
When using Runtime:
...
41
votes
5
answers
30k
views
HTML to Markdown with Java
is there an easy way to transform HTML into markdown with JAVA?
I am currently using the Java MarkdownJ library to transform markdown to html.
import com.petebevin.markdown.MarkdownProcessor;
...
...
13
votes
7
answers
22k
views
Is it possible to have persistence.xml in a location other than META-INF?
I want to have my persistence.xml in conf folder of my app. How can I tell Persistence.createEntityManagerFactory that it should read it from there?
8
votes
1
answer
17k
views
How can I merge .webm (Audio) file and a .mp4 (Video) file using java?
I have two files one is a .webm audio file and the other one is a .mp4 video file
Is there a way to combine these two files together using java?
Thanks in advance.
3
votes
6
answers
13k
views
How to get a thumbnail of an uploaded video file?
I've been trying to create a thumbnail for an uploaded file for a few days now to no avail. I've tried Xuggler, FFMpegFrameGrabber, and some other random code and none of it seems to work. It should ...
3
votes
2
answers
10k
views
Sending form data from java (image and some params) like curl
I have this to run this command which gives me right output and i want to emulate this in java using HttpUrlConnection(or any third party library)
curl http://localhost/myservice/ -v -H 'Content-...
1
vote
4
answers
4k
views
How can sent the date in a datepicker appium (Android API 19, version 1.2.4.1)
I have a problem in setting the date from a date picker in Appium. I'm trying to set the date by sending keys in the fields in this way:
List<WebElement> pick = driver.findElements(By.className(...
user avatar
user2983190