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.

Filter by
Sorted by
Tagged with
0
votes
1answer
95 views

Java error running Docear on Mint

I have installed Docear on Mint following the xenial instructions given here: https://howto-ubuntunew.blogspot.com/2017/02/how-to-install-docear-12-on-ubuntu-1604.html Running $ docear gives me ...
0
votes
1answer
47 views

Changing GNU Java 1.5 to Oracle Java 1.6

Trying to move from GNU Java 1.5 to Oracle Java JDK 1.6 in my Debian Lenny. I have installed new Java into /opt/. But what I should do next? If I type java command I still have old one. I suppose I ...
0
votes
1answer
34 views

Strange dependencies when install Java 6 from Oracle to Debian Lenny [duplicate]

Trying to install Oracle Java 6 SDK to Debian Lenny. I have downloaded rpm file. After executing command rpm -ivh jdk-6u45-linux-i586.rpm sun-javadb-core-10.6.2-1.1.i386.rpm sun-javadb-demo-10.6.2-1....
0
votes
2answers
170 views

Install Java 6 from Oracle to Debian Lenny

Since Java 6 is not available in Debian 5 I decided to take it from Oracle. I have downloaded Java 6 SDK in file jdk-6u45-linux-i586-rpm.bin. But how to install it? I executed jdk-6u45-linux-i586-rpm....
0
votes
1answer
293 views

Install Java 6 to Debian Lenny

Trying to install old Java 6 to Debain Lenny: sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin Got error: Coudn't find package sun-java6-jdk Sources list: deb http://archive.debian....
1
vote
2answers
637 views

SELinux - How to avoid it preventing a process from write access on newly created files into folder

I'm hardly trying to correctly use selinux keeping it in enforced mode, but very often I encounter issues with it causing our application to work improperly. Our web application is java backend and ...
1
vote
0answers
113 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 ...
0
votes
1answer
44 views

How does editing entries in cron file work?

I have been trying to initialize a cron job programmatically with the help of JCrontab in Java. I have a cron file which i have given as the datasource to the job. At the start of my application, the ...
0
votes
1answer
2k views

CentOS 6.6; java 7: libjli.so cannot be found

Background I have written a Java program to capture network packets. The code uses a wrapper API around libpcap and works nicely - as long as I run the program via sudo. I am now trying to figure ...
0
votes
1answer
40 views

How two types of variable usage behave different [closed]

I have written a bash script which is executing a .jar file with some options. Surprisingly, I found out that using variables with different methods results in different behavior. Usage 1: JAR_FILE="...
1
vote
0answers
122 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) <...
0
votes
1answer
350 views

How to run a Java program from an Unix script?

I try to compile a Java project from a Linux script, run_nmc_engine.sh. The problem is that I get an error when launching it : Error: Could not find or load main class caos.aaai.CaosNMCEngine The ...
0
votes
1answer
82 views

how to capture the java version on linux machine

how to capture the java version on linux redhat machine we tried that: java -version | head -1 | awk '{print $NF}' | sed 's/"//g' but we get openjdk version "1.8.0_65" OpenJDK Runtime Environment (...
-2
votes
1answer
570 views

How to install jdk1.8 and set its path on fedora28? [closed]

How to install jdk1.8 and set its path on fedora28?
0
votes
1answer
68 views

`cp` behaves differently after `mvn clean`

So, I am working on a build script for a Java project, and I don't to run mvn clean during local development. So I have created a flag for developers -k which sets the variable $DEV_BUILD to 1. ...
1
vote
1answer
98 views

How to change color settings in DrJava ? (error)

When I click "Apply" in settings of DrJava, it says: Could not save changes to your ".drjava" file in your home directory. java.io.IOException: Permission denied Permissions are: drwxr-xr-x 30 ...
1
vote
1answer
169 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 ...
0
votes
2answers
656 views

systemd cannot find PID file after YAJSW wrapper startup

I have a systemd startup script for a forking service (let's call it foo) based on YAJSW (Yet Another Java Service Wrapper). The relevant part of the .service file looks like this: ExecStart=/opt/foo/...
0
votes
1answer
17 views

6 JDK options when installing netbeans IDE on Linux, which one must we select?

Notes fedora 27 (KDE plasma 5). netbeans-8.2-javase-linux.sh Hello pals, I installed before on my system: java-1.8.0-openjdk-devel One known path about this is/usr/lib/jvm/java-1.8.0-openjdk. ...
0
votes
0answers
366 views

Enabling jdk-10 in firefox quantum

I've am currently fiddling with ubuquity's nanostation M2 but in order to use the airview tool I need to install java-jdk. So I found this guide online to install java. I managed to follow the guide ...
-1
votes
2answers
222 views

Problem with package libactivation-java on debian-based Linux

I have been trying to figure out how to fix a broken dependency problem that wont allow me to upgrade or install anything else until the issue is resolve. I have been trying to uninstall and removing ...
0
votes
1answer
462 views

attach to tty running a process

I have a systemd service file that runs a java program in another tty [Unit] Description=java program After=network-online.target [Service] Type=simple ExecStart=/usr/bin/java -cp "/home/user/...
1
vote
1answer
322 views

Why bash does not update Java path without running source ~/.bash_profile?

I am using Mac, and $JAVA_HOME environment path is set in ~/.bash_profile like: export JAVA_HOME=$(/usr/libexec/java_home) After I updated Java, bash kept trying to find Java from the older version. ...
0
votes
1answer
99 views

More RAM used than shown in top

I got a weird problem at top. My RAM-Usage is at ~25GB but the Resident-Memory of all my processes added together is about 15GB. top - 11:31:27 up 30 days, 21:43, 1 user, load average: 4.08, 4.11, ...
0
votes
1answer
167 views

Why does my CentOS machine think I still have Java 6 instead of 8 intalled?

So I have Java 8 installed on my CentOS 6 machine; rpm -qa yields jre1.8-1.8.0_161-fcs.x86_64 and java -version yields java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-...
1
vote
0answers
127 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
1answer
3k views

Run Java in Firefox on Linux

It is my first time using Linux. What I would like is to run an app called SiteScope that requires Java. I have already installed Java on my Linux, however when I open the browser I still get the ...
3
votes
1answer
9k views

Ubuntu: how do I install specific java update with apt-get?

I would like to install a specific update of JVM on my Ubuntu. Is that possible to do with apt-get? I am looking for version 1.8.0_151 and as of now if I run apt-get install -y oracle-java8-installer ...
0
votes
0answers
160 views

Error in Java Runtime Environment

I was getting below error in CentOS Linux release 7.4.1708 (Core) while running java application. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=...
0
votes
2answers
1k views

Pass input into Java console launched by a Bash script

Please note, I did not write any of these script, Java code, or the application and I am restricted as to what I can modify in these scripts. I have a Bash script that starts a Java console /foo/bar/...
2
votes
0answers
353 views

The command “hdfs dfsadmin -report” fails because “failed to connect to server”

I am trying to configure a multi-node cluster of open source Hadoop. I have Hadoop 3.0 installed on the namenode and the data node. Both are running Linux (SUSE and Ubuntu). None are CentOS, RedHat ...
2
votes
2answers
843 views

Unable to locate the Javac Compiler in.ZKUI

I want install zkui on centos 7.1, But I have this error. [root@server-1 zkui]# mvn clean install [INFO] Scanning for projects... [INFO] [INFO] -------------------------------------------------------...
1
vote
0answers
889 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
1answer
127 views

*.desktop file not starting java application on Slax9.3

Hi I have installed a Java program. If I put /usr/local/TheNumberRace/start.sh in the command line it starts. I created the following *.desktop file. [Desktop Entry] Icon=/usr/local/...
-1
votes
1answer
76 views

error when compiling java file script

So I am trying to compile a .java file in my vim script but it keeps giving the error "could not find or load main class name.java" while I have put a main class in my .java file`, can someane help me ...
1
vote
3answers
2k views

How to get pid number and folder where it works

How I can get PID number and folder where it works? If I run 2 same programs in different folders: /var/www/public_html/first_folder/test.jar <i>(it runs all the time)</i> /var/www/...
2
votes
0answers
289 views

Icedtea-web error while accessing KVM Console through CIMC

I want to access the KVM Console through CIMC but icedtea-web keep showing the below error. Currently I'm using Distribution: Fedora 26 icedtea-web.x86_64 1.7-6.fc26 openjdk version "1.8.0_151" ...
0
votes
1answer
214 views

WebLogic silent install JAR throws illegal argument error

I am trying to install WebLogic 10.3.6 on Oracle Linux using silent mode. When I run the below command it throws illegal argument. It does not even read the response file. Does anyone know the reason? ...
1
vote
2answers
160 views

Java refuses to listen on IPv6 on Turnkey

so i am using MineOS, a turnkey with preinstalled node.js webUI for deploying Minecraftservers. Now i want the server to be reachable via IPv6, because thats all i get from my ISP. But my server ...
0
votes
1answer
35 views

Is there any web panel available out there that can start and stop a custom script/command I use to start/stop/update processes?

I've read some other similar posts but not found exactly what I'm looking for, Webmin is a good start but can it handle actual scripts or just stop processes? I would like something that can just run ...
2
votes
0answers
18 views

Java web application fails on one instance and passes on another with the same version

I am running a java web application on tomcat on a docker container on Ubuntu on two machines. Both have the same OS version Linux version 3.19.0-77-generic (buildd@lcy01-03) (gcc version 4.8.4 (...
1
vote
1answer
284 views

How does vmstat consider about java heap?

I would like to ask question about vmstat. I run a jvm engine on top of linux kernel (RHEL 7.3) and want to know the actual memory which process can use. I use vmstat to see the amount of available ...
0
votes
1answer
2k views

linux java -version only works for root user [closed]

I have downloaded and installed jdk1.8.0_151 from oracle website. I defined JAVA_HOME and added it to the PATH variable in my /etc/environment. Problem is when I type java -version command from ...
0
votes
0answers
209 views

Eclipse won't open after installing openjfx [Deepin]

I was attempting to use JavaFX, and I found that I needed to install the openjfx package, as the regular openJDK8 didn't come with the JavaFX files. However, since I did that Eclipse no longer opens. ...
3
votes
1answer
2k views

How to install java in NixOS?

On NixOS, I am trying to install java in order to compile my code from the command line. I do not see the java compiler listed anywhere in the list of available packages, queried by running nix-env -...
3
votes
0answers
691 views

How to prevent cgroup: fork rejected

I run a Java application with OpenJDK 8 on Fedora 27, and since some time it logs this from time to time: kernel: cgroup: fork rejected by pids controller in /system.slice/my.service It then also ...
0
votes
1answer
47 views

install glassfish appclient?

I can recall using this syntax: appclient -client converterClient.jar to invoke the Glassfish appclient. How would I install Glassfish through a repository so that this command is then available?
8
votes
4answers
6k views

Set up for Android Studio gets stuck

I was setting up my freshly installed Ubuntu Mate 16.04, when it was time to set up Android Studio 3.0 I came across this: it appears that the setup tries to download from https://dl.google.com/...
0
votes
1answer
2k views

Glassfish 4.1 on OpenJDK 8? (Netbeans)

Netbeans installed Glassfish, and shows Glassfish as running: Running the create-domain subcommand Using default port 4848 for Admin. Using default port 8080 for HTTP Instance. Using default port ...
1
vote
0answers
364 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.