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
4 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
22 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
19 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
37 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
0answers
3 views

java.lang.NoClassDefFoundError while executing in spring [migrated]

getting error of "java.lang.NoClassDefFoundError" while executing the submit button, the compilation was really successfull and the build/class/ Error INFO: Pre-instantiating singletons in ...
0
votes
2answers
22 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
33 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
53 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
35 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
31 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/. ...
0
votes
1answer
60 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
1answer
30 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
1answer
39 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; ...
0
votes
0answers
28 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
8 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 ...
0
votes
2answers
43 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 ...
1
vote
1answer
26 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
31 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
34 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
19 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
0answers
32 views

can't start tomcat6(yum) org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0)

i installed tomcat6 on centos6 through yum, when i start tomcat6 (service tomcat6 start), it shows [OK] but, when i stop tomcat6 (service tomcat6 stop), it shows [failed], and i found exception in ...
0
votes
1answer
111 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
50 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 ...
0
votes
1answer
43 views

Block outgoing connection from running process

I have an java application that I have been developing. I use a external db server that I can't control. I want to simulate connection error to it, but I'm unable to do it. I have tried to use ...
1
vote
1answer
51 views

What makes a program Linux compatible/incompatible?

I understand that Linux does not support .exe's, but is adding Linux support as simple as providing a .jar version? This summer I'm going to try to really start programming and contributing to... well ...
0
votes
0answers
21 views

Remove or decrease JAVA Security openjdk AWS centos instance

How to decrease or remove java security level in CentOS openjdk? I tried removing the java security level but I didn't find any option, my OS is in an ec2 aws machine.
1
vote
0answers
27 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
vote
1answer
99 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
21 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
22 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
40 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
64 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
38 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 ...
2
votes
1answer
548 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
31 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
90 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
28 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
124 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
26 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
61 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
30 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
230 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
45 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
68 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
28 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
166 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
47 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
39 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
88 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
243 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 ...