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

learn more… | top users | synonyms

0
votes
0answers
3 views

Interrupted OpenCV building

I was following a tutorial on building opencv for java, but accidentally I interrupted it. Now everytime i want to run the same command to build it, it throws this error: CMake Error at ...
0
votes
1answer
641 views

Cannot Initialize RXTX drivers, in 64bit linux for Java SunSpot, gnu.io.RXTXCommDriver failed, although library binaries are present

I have some Java SunSpots (www.sunspotworld.com), The sunspots come with an SDK, which has a copy of all the needed libraries. I am able to build java application which use the RXTX driver to ...
0
votes
0answers
17 views

Linux capabilities for java to resolve symbolic links

I run a java program by a non-root user. The program has to resolve a symlink to the real file name, but the link is owned by a different non-root user. I used setcap to set capabilities to open ...
1
vote
1answer
3k views

Alternatives not working well for Java installation on Centos 6.4

I am trying to installing on Centos java from Oracle. Following are my steps. yum install /usr/local/jdk-7u3-linux-x64.rpm alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java ...
0
votes
1answer
11 views

How do I find where the Java Development Kit is installed?

I installed the JDK on Scientific Linux 7. How can I find the location of the JDK where it was installed?
-1
votes
0answers
57 views

How to read/interpret a hexdump file?

I have a file which has an extention of .tax2014, it's a turbo tax file. When I go to open it in a text editor like sublime text I see a hexideciaml dump of data. Example: 9540 4525 6051 095c 5402 ...
0
votes
0answers
12 views

Java Swing or AWT repaint frequency [migrated]

I tried to make a simple game in Java and ended up with this code @Override public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g; ...
1
vote
1answer
1k views

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running spoon.sh in ubuntu

When I am running spoon.sh file in Ubuntu I am getting the following error: [santosh@sbx data-integration]$ ./spoon.sh /home/decathlon/Pentaho-5.0.1/data-integration org.eclipse.swt.SWTError: No more ...
0
votes
0answers
17 views

Too many “ESTABLISHED” connection

I have a setup where my client talks to the server via CORBA connection. Both client and server runs on different machines. When I start my client a connection is "ESTABLISHED" with the server. Once ...
0
votes
0answers
16 views

Focus stealing under Xfce in Matlab (Java programs?)

I'm using Matlab R2015a under Debian Linux. I recently switched to Xfce 4.12 as my desktop environment, and since then I am experiencing weird focus behavior: When I try to interact with the ...
1
vote
1answer
45 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 ...
1
vote
0answers
542 views

Java application freezes until I use 100% CPU

The issue I encounter When working on Android-Studio or even Eclipse, the software often freezes (even though usually it is after I update my system). If I move to another desktop and come back, then ...
-1
votes
0answers
12 views

How to change java binary path for a new running application

In my linux node ,how do i know the path of java binary or JRE used by particular running Java application and how can i change it?
0
votes
1answer
695 views

Java/malloc memory corruption error when running SDK Android Manager

I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through ...
1
vote
1answer
25 views

JMagick Unable to Locate Java Directories

I am new to Linux and am working on a VM. I am trying to configure my JMagick installation, however when I run ./configure I receive an error saying that it is 'Unable to locate Java directories:' ...
12
votes
8answers
36k views

Problem to launch java at Debian: “error while loading shared libraries: libjli.so”

I'm trying to launch java: $ java -version java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory $ ldd ...
2
votes
3answers
1k views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
1
vote
1answer
84 views

Bash script (with a java command) does not exit (script 2)

I start a bash script (synchronously from java as glassfish user) which triggers another bash script: Script 1 executed from java: #!/bin/bash #Start script2 as myUser on myUser desktop echo ...
0
votes
1answer
32 views

How to install openjfx in kali linux?

Can anyone tell me how to install openjfx in kali linux to use javafx in my applications? I tried apt-get install openjfx but the package is unknown in the repo. Or maybe there is another option ...
0
votes
1answer
51 views

Executing command in a script as other user takes 10-15 seconds before execution

I start a bash script (synchronously from java as glassfish user) wich start a command as an other user (let's say myUser): #!/bin/bash echo myPassword | su -c "command" myUser & When I start ...
0
votes
0answers
221 views

Installing jre-8u51-linux-x64.rpm on SLES 11 SP3: Failed dependencies

I tried to update my Java installation on a SLES 11 SP3 system (for some reasons I want to run the original Java and not the IBM Java provided by SUSE) and I got the following error message: error: ...
0
votes
1answer
24 views

Is there any advantages of using rpm-based distro for Java development?

I'm using Arch Linux now and everything seems okay. But I'd like to try using some rpm-based linux distro like Fedora or OpenSUSE. It seems that most Java server machines use Red Hat, which is ...
0
votes
1answer
863 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
0answers
6 views

Adobe Experience Manager Author Server running maximum CPU

Adobe Experience Manager Author Server running maximum CPU I have an adobe experience manager author server which is using 100% CPU. When I check the online sources and documentation, I was asked to ...
0
votes
0answers
23 views

Sending data from rs232 [duplicate]

I'm trying to write a loopback test with pins 2 and 3 connected. I am using Ubuntu OS and java for the code. The library that I'm working with is JSSC. I am able to read and write from the serial ...
0
votes
1answer
115 views

Why is Android studio complaining about OpenJDK?

I have latest version of Manjaro 64 bit, latest version of Oracle's JDk and Latest version of Android studio. Everything is up to date on my system. Android studio is complaining about OpenJDK ...
3
votes
2answers
93 views

foolproof way to detect if java process is running

I have a java process that runs continually that sometimes, for reasons I have yet to fully debug, craps out. So, I also have a cron job that looks for the process every 5 minutes and if it finds the ...
0
votes
1answer
49 views

Java version is different in GUI and command line

On my Mac I have two different indications of the activated JAVA version $ uname -a Darwin Mr-MBP.lan 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; ...
11
votes
2answers
8k views

Java location from /usr/bin/java

I'm trying to find my java location within my Linux system and got this [980@b449 ~]$ which java /usr/bin/java [980@b449 ~]$ readlink -f $(which java) ...
0
votes
1answer
119 views

How to remove JDK 7 and install JDK 8 in Linux Mint?

JDK 7 is already installed in Linux Mint by default. I want to remove it and to install JDK 8 instead. I youtubed and i found a tutorial. I followed it. What i did was, first i downloaded JDK from ...
0
votes
2answers
33 views

update-alternatives returns error about Java directory not available

I've been trying this tutorial: How To Manually Install Oracle Java on a Debian to install Java on Debian 8, but I'm getting the following error : update-alternatives: error: alternative path ...
0
votes
1answer
57 views

Can't test Java installation as normal user

I have installed java and firefox. root@localhost:/home/debian# java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) Server VM (build 25.45-b02, ...
0
votes
3answers
102 views

How to install openjdk properly?

Something wrong in my openjdk,i purge it and reinstall it. root@localhost:/home/debian# apt-get remove --purge openjdk-7-jre Reading package lists... Done Building dependency tree Reading state ...
1
vote
1answer
41 views

Issues with Java in Linux

Firstly, I would like to apologize as I'm not quite sure whether this question is suitable to be on this site or Stackoverflow. I chose U&L eventually because the traffic here is much lower ...
0
votes
1answer
35 views

When I execute a .run file as <user> it works fine. If I sudo run it, it cannot detect Java

I am trying to execute a .run file that will install some applications. I'm installing the application in /opt/... When I run it without sudo, the installer runs correctly but cannot write to /opt/. ...
8
votes
1answer
4k views

How can i know which unistd.h file is loaded?

I have several unistd.h files in my Ubuntu Linux. I've one on /usr/include/asm/unistd.h. This file has this directives: # ifdef __i386__ # include "unistd_32.h" # else # include "unistd_64.h" # ...
0
votes
0answers
45 views

Where to store the SQL Server jdbc driver file for use by all users

I have downloaded the sqljdbc4.jar file which enables connecting to SQL Server via jdbc. I currently have this in a personal folder whilst I've been testing connectivity. I'm hoping to put this file ...
0
votes
1answer
44 views

how to make special program run with different version of java from system? [duplicate]

My system need to use java 1.7. However, I need to run some old apps which require java1.6. Can I use shell script to let the old apps use correct java version? Could the $JAVA_HOME help? I try to ...
0
votes
2answers
84 views

Java programs not running in terminal

I have java 8 installed on fedora 20. Any java program runs perfectly fine via eclipse but when I run the same program on terminal it reports an error saying 'could not load main class' . what could ...
2
votes
2answers
10k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
0answers
32 views

XFCE strange behaviour on Java applications

I recently moved to XFCE 3.12 on my laptop and everything is working great except for a strange behaviour in Eclipse and other Java applications. When expanding a line selection with Shift+Up or Down ...
0
votes
0answers
10 views

OS X Java Security Edit Site List En Masse

I'm sure, like many other systems administrators like myself who use Mac, you've come across the dreaded Java Security site list and the need to add IP's for individual blades, servers and anything ...
1
vote
1answer
33 views

How to switch java environment for specific process?

I use openjdk in my work, but sometimes I need oracle's jre or even specific version of oracle's jre. As I know, I should update JAVA_HOME value and /usr/bin/java or /etc/alternatives/java link ...
0
votes
1answer
51 views

How to change JAVA_HOME temprorary with env command

I use openjdk for my work, but sometimes I need oracle's JRE. I thought that I could use 'env' command for this, but can't figure out why it's not working. I have openjdk in ...
1
vote
1answer
38 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
41 views

How to copy a installed library to a remote Linux host

I am a newbie on Linux and trying to host my Java project on a remote linux host(CentOS). My Project depends on some native libraries that needs to be existing in the host, and since it is a shared ...
0
votes
1answer
24 views

JAR file terminates unexpectedly without error

I have a JAR file that I'm running in a screen session using java -jar <myjarfile> and for some reason it stops running at unexpected times. I'm redirecting both the StdErr and StdOut to ...
0
votes
1answer
388 views

Tomcat won't use setenv.sh

I have Tomcat installed as service. It's CATALINA_HOME and CATALINA_BASE are same: -Dcatalina.base=/usr/share/tomcat7 -Dcatalina.home=/usr/share/tomcat7 I added setenv.sh script to ...
0
votes
0answers
69 views

installing java on cent os 6.6 64 bit system

am trying to follow this link: How to Install JAVA 7 (JDK 7u79) on CentOS/RHEL 7/6/5 and Fedora So I downloaded the jdk tar and untarred it.However when I run java -version from within bin I get the ...
5
votes
4answers
34k views

Java “Could not reserve enough space for object heap” even though there is enough RAM

I am currently having some issues running Java. It won't start because of heap issues. But I have more than 9 GB Ram free (or even 16 GB if you assumed the cache would be empty). This is the error I ...