I am building a Debian *.deb package for our proprietary software. The software is Java based, so I thought it would be good if the deb package checks for an installed Java package first. Problems: This fails if an Oracle JDK 7 is installed. It seems as this would only check for the OpenJDK 7 package. How can I check
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
Apache Commons Exec – sometimes a Thread can’t open a local file in Linux
WARNING — THE CAUSE IS NOT A MISSING FILE — ALL THREADS ARE CALLING THE SAME SCRIPT FILE I am starting 5-6 threads that call a local script in a Red Hat box. I’ve noticed that sometimes, I get the following error message Obviously, all processes are executing the script, so it seems to be something related to [1] OS
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
RaspBerry Pi Command Line/Application – List IP Devices
I’m trying to make a very simple Raspberry Pi application that would auto-update with all the IP addresses, Mac addresses, and their respective device names that are all on the same network. I have absolutely no idea where to start, any recommendations on how to get this done? I play to connect a LCD and mount it next to my
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
TCP/IP connection to the host localhost port 1487 has failed – Linux 32 bit
I try to connect to a mySql localhost database. I checked the port 1487 and is open for connection. Many solutions suggest to open SQL Server Configuration Manager, but there is no such thing in Ubuntu 14.04. I tried to install Microsoft ODBC Driver 11 for SQL Server on Linux, but it’s only for 64 bit systems. I use eclipse