Linked Questions

41 questions linked to/from Running Command Line in Java
55 votes
9 answers
79k views

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 = ...
Ande Turner's user avatar
  • 7,202
-2 votes
1 answer
2k views

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

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 ...
Advena's user avatar
  • 2,313
-5 votes
1 answer
435 views

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....
user1622432's user avatar
-3 votes
1 answer
242 views

Can anyone suggest me that how to trigger the commands like cd,ls by using java with code.
mahi's user avatar
  • 191
-1 votes
1 answer
222 views

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

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?
Shahab's user avatar
  • 2,087
111 votes
15 answers
248k views

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

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: ...
gal's user avatar
  • 1,171
41 votes
5 answers
30k views

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

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

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

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 ...
Tometoyou's user avatar
  • 8,526
3 votes
2 answers
10k views

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

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

15 30 50 per page
1
2 3