Skip to content
Advertisement

Tag: java

Some terminal commands run via Java don’t display output in Linux

I’m trying to write a Java program to run terminal command. Googling and SO got me to here: So far, so good. The problem is if I try to run a command like “python -V” via String[] cmd = {“python”, “-V”}; The program will run, but no output is actually printed out. Any ideas? Answer The output you see on

How can I run command line FFMPEG and accept multiple pipes (video and audio) without blocking on the first input?

I’m trying to mux h264 and aac created with MediaCodec using FFMPEG, and also use FFMPEG’s RTMP support to send to youtube. I’ve created two pipes, and am writing from java (android) through WriteableByteChannels. I can send to one pipe just fine (accepting null audio) like this: YouTube streaming works perfectly (but I have no audio). Using two pipes this

Running Java from terminal : cannot find text files

I am using Java in Eclipse for file manipulation like editing, searching, etc. For instance I have two text files. One is “sales.txt” and the other is “employees.txt”. The user is supposed to input a beginning date and ending date as arguments. Then the program finds the dates that match and all between. From there it computes the commission for

can’t connect to ec2 tomcat localhost

I’ve followed a lot of tutorials and questions which been asked before, but still no good (I’m total beginner in ec2) I’ve did the following: lunched Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type. I’ve added this rule to my security group inbound: but when I try to browse to: Public DNS:8080 I get: This webpage is not available: ERR_CONNECTION_TIMED_OUT

Jar doesn’t execute on linux

I exported an executable Jar file from Eclipse. On Windows when I double-click the file, it executes properly. When I run it from command line with java -jar MyJar.jar it also works. But when I upload that file on my linux VPS and try to run it there, I just get the error Error: Could not find or load main

Websphere jdk upgrade

I have installed ibm jdk(1.8) in my linux system. I have installed WebSphere ND 8.5.5.7 in the same system. Now I want the WebSphere jdk to be upgraded to 1.8. For that I need to run managesdk command. So , I checked this link https://www-01.ibm.com/support/knowledgecenter/SSWSR9_11.5.0/com.ibm.swg.im.mdmhs.release.install.doc/Topics/InstallingJava.html In this link it is stated that I need to have java_ folder inside my

Advertisement