Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM).

learn more… | top users | synonyms

1
vote
0answers
16 views

Is it possible to create aliases that affect services starting?

Currently I have a custom service that executes java in multiple places. I want to be able to add an option to any executions of java this service will spawn (I'm specifying the error log location, ...
-1
votes
0answers
7 views

jInput cannot detect input

I have recently started porting a Java game from Swing to Slick + LWJGL. However, upon adding Input support, I seem to be having a problem detecting the keyboard. Every single time i compile and run ...
1
vote
1answer
21 views

Open Java programs of a linux machine on Windows with SSH?

I usually use laptop (which has Windows) to ssh to my Linux server and run stuff on it (e.g. Intellij, MATLAB). I wonder if there anyway to open Java programs (again, like Intellij) of a remote ...
-1
votes
1answer
16 views

Debian Packaging with JavaSwing?

On my Ubuntu 14.04 machine I am developing a java swing application and I'm compiling it with oracle java version "1.7.0_80" In the myapp-1.0.0/DEBIAN/control file I put the following information: ...
1
vote
0answers
14 views

Help with java on Fedora

I have installed java on my fedora, because when I execute java -version I get: openjdk version "1.8.0_25" OpenJDK Runtime Environment (build 1.8.0_25-b18) OpenJDK 64-Bit Server VM (build 25.25-b02, ...
0
votes
1answer
21 views

How to know if I correctly installed Java?

I am very new to Linux as I just installed it on my HP Chromebook (Xfce). I am trying to get OpenJDK 7 on it. When I use the Software Center to install it, it looks like it installed correctly, but ...
0
votes
1answer
19 views

JRE failed even after open jdk as well as oracle … using ubuntu14.04

$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status 0 ...
0
votes
0answers
11 views

Centos 7 - where is jfx library for openjdk8?

I have centos 7.1. And I installed openjdk8 and openjdk-devel8. However, when I tried to compile in netbeans my jfx application I get package javafx.* does not exist. After some investigation I see ...
0
votes
0answers
4 views

unable to initialize libusb -99 error [op_init] could not find usbfs [migrated]

Currently working on a driver for USB thermal printer (CUSTOM VKP80II) that should print reports (jasper reports).The driver should work under linux mint 17 and should be written in the Java.I install ...
1
vote
1answer
118 views

Writing a systemd unit file with a environment-set executable path

I am writing a systemd unit file for a Java application and I'd like to control the version of Java used to start it up. My (simplified) service file is [Service] Type=simple ...
1
vote
0answers
21 views

after reboot server, service start without special chars

I write simple Java server. This service (java server) connect with mySQL database. I am connecting with this service by socket connection. Everything work well when i start my service by line ...
1
vote
1answer
40 views

Can't push git updates & run Unix commands when connecting via SSH

I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions . In order to add directories to PATH variable I have added ...
1
vote
0answers
16 views

Is it Possible to globally set the java hs_err log Location?

I know when executing a jar using the command line option -XX:ErrorFile=[location] allows you to change where the hs_err log files are placed. I am wondering: is there is a place I can globally ...
0
votes
2answers
60 views

/usr/java/jre1.8.0_31/bin/java.exe: No such file or directory

I've been trying to run a plugin inside a I have hired, and I've constantly been getting this error: [04:13:41] /bin/sh: /usr/java/jre1.8.0_31/bin/java.exe: No such file or directory Not too sure ...
1
vote
0answers
14 views

Java programs steal focus in X11

I run IntelliJ IDEA & some other Java GUI apps on my linux box. Every one of them tends to steal focus when launching up, and doing it in stealthy way. E.g.: I run IDEA, it starts up in ...
0
votes
1answer
36 views

sqldeveloper can't start

When starting sqldeveloper it crashes without any warning. It just shows a window for a fraction of second. By debuging : $ bash -vx /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper it gives this ...
0
votes
1answer
17 views

What happens to TCP when a write fails to enqueue with the device tx ring?

Lets say the device tx ring is full and you do a normal C non blocking write(fd, buff) to enqueue data in the TCP SND buffer. What happens when this fails? In UDP - the packet would be dropped but ...
1
vote
1answer
86 views

How to setup DISPLAY to run a Java JAR Swing Executable from Init.d

I need to run a Java JAR Swing GUI executable in a Raspbian Wheezy Debian distribution inside an ARM device during boot time. I am following this as reference with myapp,myapp-start.sh and ...
0
votes
0answers
18 views

What font settings would Java Applications Use without Fontconfig?

I have a java application that looks fine without fontconfig installed, however, I need fontconfig as a dependency for a package, and when I install it my java app's fonts change drastically. My goal ...
3
votes
1answer
44 views

Question on environmental variable

I have Oracle jdk7 installed on my centos6. I noticed that the /etc/profile has the lines below: #below lines are added for Java export JAVA_HOME="/usr/java/latest" ## export JAVA_HOME JDK ## export ...
0
votes
0answers
20 views

Java JRE 6 installation

I installed Java 6 (jre-6u45-linux-x64.bin) on a Ubuntu 12.04 machine following the procedure from this link: http://ubuntuforums.org/showthread.php?t=1904467. When I later installed Java 7 and ...
0
votes
3answers
92 views

crontab is launching multiple java process every 5 minutes?

I have a java runnable jar which I need to run it if it not running or got killed for some reason so I decided to use crontab for this - I need to run the crontab as "poppetapp" user so I am logged ...
0
votes
0answers
22 views

Start a ssh when I click on a JSP button

I have a JSP page, which has a button. I want to start a ssh to the linux server whenever someone clicks that button. Will I be able to see the terminal inside the browser? How can I do this?
2
votes
0answers
22 views

JVM low-memory tuning

What command-line options would provide the lowest memory-footprint JVM, in OpenJDK, or possibly other JVMs (Linux/Debian)? I'm willing to disable JIT, live with slow or choppy garbage collection, ...
1
vote
1answer
41 views

JRE version on solaris + Invalid argument when runing JRE java

I located the Jre1.6 in my Solaris machine under /tmp in order to use the Jre version pwd /tmp ls -ltr jre1.6 total 512 -r--r--r-- 1 root root 917 Oct 3 2011 Welcome.html ...
0
votes
1answer
139 views

Cannot start Tomcat 7 as Apache Commons Daemon

I've been following the install process as recommended here. I'm trying to run Tomcat as a Unix daemon as described in the docs. However, when I run $CATALINA_HOME/bin/jsvc like this (note, I added ...
0
votes
0answers
17 views

Why does gstreamer-ffmpeg change the fonts for java applications?

I recently installed gstreamer-ffmpeg-0.10.i686 on RHEL 7. As a result of this text in my java program has become slightly larger (maybe 2 or 3 font sizes), which is enough to mess with some of the UI ...
1
vote
1answer
49 views

Limit max thread use for multithreaded java app

I have downloaded a .jar file and am using java with it, and it seems multithreaded, which is great ... unless I don't want it to be multithreaded, or unless I want to use only N threads with it. Is ...
0
votes
0answers
38 views

File not read by Java until touched

We had a freak incident on Solaris. Our java program couldn't read a file until we touched the file. It was reading other files just fine, it just seemed to be completely blind to this one particular ...
0
votes
2answers
223 views

Java does not run with error “No such file or directory”, despite it exists and is x86_64

The file exists but bash complains it doesn't when asked to execute it. $ ./Libs/openjdk-1.8.0_60-eap/bin/java bash: ./Libs/openjdk-1.8.0_60-eap/bin/java: No such file or directory $ ls -l ...
1
vote
1answer
35 views

How do I synchronize 2 xml files?

I have 2 xml files named 1k.xml and 1n.xml. The file 1k.xml contains some additional elements and data which are not there in 1n.xml. I want to copy whatever is absent in 1n.xml to it, so that both ...
0
votes
1answer
250 views

Increasing `ulimit -u` settings temporarily in OSX Yosemite

I'm trying to temporarily (without restarting the machine, just for test that starts a JVM) increase the number of processes to 2048 in OSX Yosemite but I'm unable to do so. First, I tried calling ...
0
votes
1answer
27 views

Which way is safer to read data from /sys

I am attempting to write a program that will monitor the temperature of various hardware components. The language I chose for it is Java. Now there are two ways I could read the temperatures: a) Do ...
0
votes
0answers
35 views

Syntastic, Vim & Android: get them play well together

I've got a problem configuring my development environment for android. I'm migrating away from Android Studio due to continious issues that I have no desire to solve anymore. I'm a long-time VIM ...
-1
votes
2answers
143 views

Run GUI Java jar on system boot Lubuntu

I have a PC which runs Lubuntu 14.10 without a monitor. The user is autologged in. I have created a Sysvinit script and installed it on /etc/init.d. My script amongst other things, starts a jar file ...
0
votes
0answers
22 views

when idle tomcat runs on 3.9% CPU

I would like to know if it is normal that tomcat7 runs on 3.9% CPU when idle? I saw all other processes are at 0%, only tomcat7 is always at least 3.9%. Thanks
0
votes
1answer
30 views

Java in Gnu/linux servers

What is the use of installing java in linux server. I have seen initialising java paths in .bashrc and using them in different scripts. What does this all mean.please help. Dont have much knowledge ...
0
votes
1answer
131 views

Can't install JPCAP library

I can't install JPCAP on my ubuntu machine. It tells that depends on sun-java6-jdk & libpcap0.8. However I do have them installed in my system as you can see. kujim@kujim:~/Downloads$ ldconfig ...
0
votes
1answer
128 views

Installing Java JDK in busybox in an LXC container - java/lang/NoClassDefFoundError: java/lang/Object

In a web application I'm developing, users will be able to upload java code and I will need to compile and run that. For security reasons, I'd like to that inside an LXC container, and for footprint ...
0
votes
1answer
33 views

How to use Linux Kernel [duplicate]

I would like to build a very small and simple operating system that runs java application on top of Linux kernel just like android, just to improve my knowledge and to build some hands on experience ...
2
votes
1answer
81 views

calling javac from CentOS 7

I want to be able to use the javac command on the CentOS 7 terminal. How do I set the PATH variable in order to accomplish this? The following explains relevant aspects of my current environment. ...
0
votes
1answer
1k views

Running Java classes in a package --> Error: Could not find or load main class

I'm learning how to compile and run java classes in terminal using the commands javac and java. I have no problem compiling and running an individual class, however, when I put that class into a ...
-1
votes
1answer
72 views

How can I set an environment path of Java (jdk) in Linux-KDE?

I´ve installed Linux-KDE on my Chromebook and I managed to install the jdk8 of JAVA, too, however, I don´t know how to set an environment path in this kind of linux-distribution. How can I do set ...
0
votes
1answer
41 views

What is the meaning of local[4] in this example

I am looking at this example from the apache spark documentation. It seems to pass a variable called local[4] into the --master variable. I have not seen that before. What does it mean? I am using ...
1
vote
1answer
33 views

Removing jre7 installs jre6

I am working under Mint 16 and I want to remove jre7 packages (openjdk-7-jre, openjdk-7-jre-lib and openjdk-7-jre-headless) since I don't need them anymore. Using synaptic or apt-get I can easily get ...
1
vote
1answer
247 views

Java Client Connection Refused by Linux Server

I have a Java server and client, which is a simple server that prints a message when the client communicates with it. It works perfectly fine when the client and server are on the same machine. When I ...
1
vote
1answer
62 views

Jar on Raspberry Pi not responding after a long time

Hello I made a java program with friend that is designed to run 24/7 as a personal assistant on a headless Raspberry Pi. It basically can be used as an alarm and to tell us the weather or news etc. So ...
1
vote
0answers
107 views

Java process gets killed frequently by OOM - Killer on upgraded hardware

I am running solr on an Ubuntu server along with 4 other java processes. Current index size is 30 GB. My solr process gets killed frequently in few hours. It clearly mentions that its an OOM killer. I ...
1
vote
0answers
62 views

java version not found in redhat

My OS is redhat linux. It's having the default java 1.4.2, but I need java 1.7.45, for that I am trying as follows: /usr/sbin/alternatives --install /usr/bin/java java /u01/java7/bin/java 5 ...
0
votes
1answer
637 views

Trying to install rpm package in Fedora 21, but dependency on OpenJDK 7 results in errors

I am running Fedora 21 32bit workstation version. Trying to install iris-4.22.0-1.noarch.rpm: [itse@localhost Downloads]$ sudo yum install iris-4.22.0-1.noarch.rpm [sudo] password for itse: Loaded ...