Questions tagged [java]

Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM). Use this tag when you are dealing with a java program, installing java, or configuring a java installation.

214 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
64 views

Why does my bash terminal startup run the same set of commands twice?

I'm on a Mac and whenever I start up my terminal app the initial startup prints the following: Picked up _JAVA_OPTIONS: -XX:MaxPermSize=4G -Xmx4G Java HotSpot(TM) 64-Bit Server VM warning: ignoring ...
1
vote
0answers
20 views

How to make redirect go to alternate web page if Shift key is being held?

I am trying to make a secret alternate redirect on a web page that redirects to an alternate page when holding down the key, otherwise it redirects to the regular redirect page. Example/Clarification:...
1
vote
0answers
31 views

weblogic cluster between two different server

I have two server (for example 1.1.1.1 , 1.1.1.2). I want to have one administrator tools and two managed servers (one on 1.1.1.1 and another on 1.1.1.2) and cluster these two nodes. Is the base of ...
1
vote
1answer
146 views

MySQL Java connector still using old java version?

Installing mysql-connector-java-8.0.15-1.el6.noarch.rpm (available here ) shows libgcj package as a dependency. Installing libgcj creates below file: /usr/bin/gij $/usr/bin/gij -version java version ...
1
vote
2answers
290 views

How do I run Jenkins with a specific working directory and a specific user account?

I am executing below jenkins.war with below command jenkins -jar jenkins.war But I want to specify to use below path while executing the war `/data/jenkins` and it should run as jenkins user . ...
1
vote
0answers
592 views

Add openjfx class path in debian for Java11

Distribution is Kali Linux Java11 is installed: java -version openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment (build 11.0.2+9-Debian-3) OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-...
1
vote
0answers
582 views

The JNLP application is not fully signed

I am trying to run a .jnlp file using javaws. It produces this error: Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: The JNLP application is not fully signed by a single ...
1
vote
0answers
129 views

Unable to SSH to OSGI Runtime - Getting Connection Closed By 127.0.0.1 Error

I have a java application, where I'm trying to SSH to OSGI runtime environment. The application is running inside docker. I have verified that the port assigned to listen to SSH requests is open. I ...
1
vote
0answers
153 views

Spring Service not starting Ubuntu

I have installed many backend services on Ubuntu system, but since today it does not work anymore. In my spring application, I have written that the application should be executable (pom.xml) <...
1
vote
1answer
202 views

Tomcat Crashes By throwing Fatal Error In JRE

I am running Tomcat 9 with jdk 1.8.0_162-b12 on Ubuntu 16.04 64-bit Server. Development is done in Java. The error in catalina.out shows this- A fatal error has been detected by the Java Runtime ...
1
vote
0answers
156 views

Applications using JRE and graphics crashing

We recently updated our computers to Fedora 27 and one of our applications (COMSOL) has stopped working. When I attempt to run COMSOL, I get the following error: A fatal error has been detected by ...
1
vote
0answers
947 views

cannot change Debian 9 alternatives to point to openjdk 9

I have been trying to install openjdk 9 on Debian 9 and get everything to point to that install. However, something is off and does not want to update where the default java command in the terminal ...
1
vote
0answers
405 views

how to get dark theme or look for netbeans?

Not quite sure how to get dark themes for Netbeans: would like something similar to this look: just without the "side" window.
1
vote
0answers
251 views

How to find evidence of performance issues caused by too many threads on linux

We have a RHEL 5 server, with 16 CPU cores, that runs a number of Java processes that get batch jobs submitted to them. Each java process has about 80 threads that are used to process these jobs. ...
1
vote
0answers
2k views

Why is Oracle Java 8 installation failing in AWS Ubuntu 16.04 AMI?

I am using AWS EC2 with ubuntu 16.04 LTS. Suddenly, I am facing an error when I am trying to install Oracle java 8. add-apt-repository ppa:webupd8team/java -y aptitude update -y echo oracle-java8-...
1
vote
0answers
183 views

Jenkins deploy doesn't pass variable to java

Problem that I ran into is that when we deploy our Java application via Jenkins hostname variable is not passed to it. Inside the script somewhere we define HOSTNAME=$(hostname -f) variable, which we ...
1
vote
0answers
141 views

Generating a jks file and then verifying it

I have generated a keystore file from a remote server using the following command :: openssl s_client -showcerts -connect esesslx0833.se:9443 > /tmp/test.cer keytool -importcert -file /tmp/test....
1
vote
2answers
72 views

Environment variable not getting retained for JRE_HOME with sudoers

OS: Linux (Debian 8) Environment details: We use LXDE and uxterm. Virtual console form till ctrl +Alt + F6 is disabled. Total users available user1, user2, user3 the default system is set with ...
1
vote
1answer
131 views

How can I run ANY java class file graphically? (Linux Mint/Dolphin)

When trying to run a .class file, Dolphin will ask me to choose an application to open/run it. However, using the java command doesn't remove the .class extension from the file, so it can't run. Is ...
1
vote
0answers
153 views

Best way to start a service as a different user?

I'm running RHEL 6.8 for this task. My goal is to create a service that is supposed to kick off a process (it's a Java app) that runs as a different user. The problem that I'm encountering is that ...
1
vote
0answers
146 views

Java installation on OpenSuse

I have been trying to install a newer version of JRE (version 8 update 111) on my openSUSE 13.1 (x86_64) platform. I extracted the contents of the tar file in the /opt/java/64 folder and then executed ...
1
vote
1answer
555 views

Problems with Java and Meow

I installed the program Meow on Ubuntu 14.4, Gnome Shell 3.10.4 (it's a GNOME menu editor). The system updated to Java 8. When I run the program from the command line I get this: meow Exception in ...
1
vote
1answer
727 views

How do I use daemonize to always keep my tomcat process running?

I was researching how to keep a background process running and I came across daemonize. This answer says that I can use daemonize to ensure a process is always running: "Ensure a process is always ...
1
vote
1answer
438 views

Where is “an appropriate place” for jar files on Debian, e.g. for a MariaDB JDBC connector?

I'm trying to install a JDBC Connector for MariaDB in the form of a JAR archive. The instructions say to put the jar file in "an appropriate place". Where should I put the jar file on Debian?
1
vote
1answer
764 views

Install Oracle Java 8

I'm trying to install Java 8 on a GitLab Runner like this: apt-get --quiet update --yes apt-get --quiet upgrade --yes apt-get --quiet install --yes software-properties-common python-software-...
1
vote
0answers
53 views

Calling Java programs without the .class suffix

This is a sequel to my other question, Getting Java programs start without calling with Java. I can already start Java programs from the terminal by just setting them executable and calling the X....
1
vote
0answers
36 views

Minecraft acting differently when started from terminal compared to started by cron job at start-up

So I use a CentOS Linux 7.2.1511 server, where I host a couple of things, amongst them a Minecraft server. Since from time to time server is rebooted I scheduled a cron job to run minecraft server on ...
1
vote
0answers
337 views

Running Java GUI on Raspi without a connected display

I have a Java GUI app that runs fine on my windows PC and on a Raspi running Raspian when the Raspi has a monitor connected. I want to run the java app on the Raspi without a monitor attached. I'm ...
1
vote
1answer
1k views

Font bug in Java apps on Arch Linux

What happens with fonts in my JAVA apps? SOAP UI screen as example (see toolbox)... I have no idea where is the problem. SYS: up-to-date ARCH LINUX. $ archlinux-java status Available Java ...
1
vote
2answers
853 views

How to run a jar together with faketime

I need run a certain jar file with a mock time for testing purposes. When I execute the jar in the usual way $ java -jar myjar.jar it runs perfectly. But when I try to run it together with ...
1
vote
1answer
762 views

Install Java 8 on ARM Nas (Debian Wheezy)

I need Java 8 on my NAS (Arm7, 32bits, Debian Wheezy) for fim software. uname -a Linux ReadyNAS 3.0.101.RN_ARM.3 #1 Mon Dec 15 23:39:16 PST 2014 armv7l GNU/Linux I tried the packages way : sh -c ...
1
vote
0answers
733 views

Java Process hangs with .exec and ssh

EDIT: I believe the issue is that the ssh connection is creating background connections that are still open (cf. https://superuser.com/a/617670). I would run ssh with the -f flag, but I need to be ...
1
vote
3answers
637 views

Sudden shutdown happens only when I have PhpStorm opened

I've had this reoccurring sudden shutdown issue happening recently, and it always happens when I have PhpStorm opened, I'm not sure if it's related, but it still seems random, meaning that sometimes I ...
1
vote
0answers
255 views

Java screen session starting

I am trying to launch a sh file wich starts a screen Session, but nothing happens. When I try to launch it manually it works fine. su minecraft -c "screen -S $1 -d -m sh start2.sh $2" and in the ...
1
vote
0answers
165 views

the case of the missing /usr/bin/jexec

I was upgrading a package when I came across the following - $ sudo aptitude install openjdk-9-jre=9~b87-1 openjdk-9-jre-headless=9~b87-1 -y The following packages will be upgraded: openjdk-9-jre ...
1
vote
2answers
203 views

Any way to force all java applications to use a particular java setting?

I need to add -Dsun.java2d.opengl=true to my java applications, otherwise they freeze up. Is there any way to force this system wide, so I don't have to modify the configuration file/script of each ...
1
vote
0answers
582 views

Java related error met when installing COMSOL

I would like to install a software called COMSOL on Redhat (Red Hat Enterprise Linux Server release 6.4 (Santiago)) cluster. COMSOL is designed as a Windows software, and its installation requires X ...
1
vote
1answer
427 views

JMagick Unable to Locate Java Directories

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:' ./configure checking build system type... ...
1
vote
1answer
1k 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 ...
1
vote
0answers
38 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
0answers
51 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, ...
1
vote
0answers
58 views

After rebooting server, service start without special chars

I wrote a simple Java server. This service (java server) connects with a mySQL database. I am connecting to this service with a socket connection. Everything works well when I start my service by ...
1
vote
1answer
237 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
872 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 /usr/sbin/...
1
vote
1answer
835 views

Problem running “selinux sandbox” with java

I am trying to sandbox a java application using selinux sandbox. System details: Redhat 6 | x86_64 | no x server install | jdk7 from oracle tar.gz version | cgred and cgconfig are stop The cmd ...
1
vote
1answer
694 views

Installing java 1.6 when 1.7 already installed?

I have java 1.7 installed and I am trying to install java 1.6. I have updated java_home and path variable pointing to the new location, also ran these commands. sudo update-alternatives --set java /...
1
vote
2answers
1k views

Tomcat 8 doesn't start

Upgraded tomcat 6 to 8 on Centos 7. I get this error in logs: /usr/local/ctera/apache-tomcat-8.0.14/bin/catalina.sh: line 421: -Djava.endorsed.dirs=/usr/local/ctera/apache-tomcat-8.0.14/endorsed: ...
1
vote
1answer
96 views

How to make aptitude recognize Oracle Java as a valid java dependency

I have Oracle Java 7 on my Debian. I want to install tomcat server using aptitude, but it keeps trying to install icedtea, and unnecessary java related packages. Is it possible for aptitude to know ...
1
vote
0answers
32 views

Solaris JRE Mozilla

In an thin client setup where Solaris 10 is being used on client and server side. Java based web apps are opened in Mozilla web browser 1.7. JRE version 1.4.2.6 is installed for Mozilla. On a few ...
1
vote
0answers
444 views

Aptitude installing jre

I am trying to install jre on my debian 7 kali box, but I keep getting these faulty errors. I tried installing it through aptitude and it fails at the end. The result is: dpkg: error processing ...