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
2 answers
15 views

How to use early jdk with archlinux-java?

I'm using archlinux-java set java-xx-openjdk to switch between regularly installed jdk versions, and that works, but I want to use the latest or the early version from https://jdk.java.net/ that I ...
  • 341
0 votes
0 answers
11 views

Tomcat start up expands JAVA symlink path to real absolute path

For setting up a path for binaries symlinks are the best way to go, however I encountered issues when the overlaying application uses this symlink sometimes goes for the exact absolute path. For eg: ...
1 vote
0 answers
17 views

Installing Jboss tools in ubunto is aborted

When installing "Jboss tools 4.24.0 Final" in Eclipse, the following error message appears: Warning: You are installing software that contains unsigned content. The authenticity or validity ...
1 vote
0 answers
14 views

DNS and long running process (resolver)

I've come across an issue where a Java (1.8) application is continuing to use the DNS servers configured when the process started rather than the current configuration. This persisted for a week ...
  • 4,374
0 votes
1 answer
21 views

eclipse window builder work abnormaly in zorin os

I am using zorin os 16 pro. I am using eclipse in windows machine for few months. It works fine in windows. But problem in zorin os. I download eclipse from this site. All things are fine except ...
0 votes
1 answer
9 views

Failing to tweak runtime options for Tomcat

(I tried Google first and got a million articles which were simply rehashes of the installation readme from tomcat). I am trying to change the Java command line used for running Tomcat9 on Ubuntu 20....
  • 4,374
0 votes
0 answers
17 views

Run Selenium on linux server

We have a unix server that hosts a Java web based application (Struts1/JSP). I would like to set up automated integration test using Selenium that run every night. In order to do so, I need somewhere ...
  • 101
0 votes
0 answers
45 views

Linux server has high ping on some clients

Some clients that have connected to a server of mine keep saying that they have extremely high ping and keep disconnecting from the server (yes, it's a minecraft server but it also hosts fileservers, ...
0 votes
2 answers
24 views

Are there any commands that automatically create .desktop files from .jar files?

I play a lot of Java-based games. I find the UX of typing java -jar name-of-game.jar to be cumbersome, and creating .desktop files by hand hacky. Are there any automatic .desktop generators?
0 votes
0 answers
178 views

Alpine Linux java No such file or directory

when trying to install nodejs from a tar.gz and java, maven with sdkman on an alpine linux distro and running java or maven I get a message saying for java: /root/.sdkman/candidates/java/current/bin/...
  • 1
0 votes
1 answer
75 views

JAVA OPTS Xms Xmx MetaspaceSize MaxMetaspaceSize relationship with server resources

I have just started working with jboss application servers and recently we had a problem when trying to deploy an application in a new test server (RHEL 7), it happened that, when starting the jboss ...
0 votes
0 answers
28 views

Minecraft Laucher not starting on Debian 11

Had a similar error as described here: https://archived.forum.manjaro.org/t/minecraft-launcher-not-opening/145796/22 My system is up to date and I've reinstalled both minecraft and Java. I'm using ...
0 votes
0 answers
25 views

TERMINATING: problem with native library: libopencv_java430.so while running sikuli on FreeBSD

I'm playing a little bit with sikulix. I'm trying to learn how it works because I want to automatize the daily tasks of my FreeBSD 13.1-RELEASE. So,as soon as I have implemented my first "click ...
0 votes
1 answer
102 views

Refer another Java version in a systemd service file

I have an application which requires JAVA_HOME environment to be set for a successfull running. On the RHEL server, however the current version of java points to "openjdk version "1.8.0_302&...
0 votes
1 answer
25 views

How to get the java assembly instructions

In this Link rustyx mentioned that he used a debug virtual machine and the following flag -XX:+PrintOptoAssembly to get the assembly instructions of his java bytecode I installed the debug virtual ...
1 vote
1 answer
61 views

"Too small maximum heap" Java error in Manjaro Linux running through terminal

Really don't know what to do about this one. I'm trying to start a minecraft server with more RAM but the commands in the terminal give me this error. The server works only if I go to the file manager ...
3 votes
0 answers
77 views

Linux: Is there a limit for the number of fork() calls one process goup can issue? (Not per user!)

We have a strange problem on a SuSE Linux Enterprise Server 12.5 system (kernel 4.12.14-122.60), which is the only KVM guest in a simliar KVM host: One service started by systemd starts one program -&...
0 votes
1 answer
40 views

Can a process share unused memory with others?

I want to run about 200 processes with my experiments. Every of them really needs less than a GB: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24688 rinkman 20 0 ...
  • 103
0 votes
0 answers
189 views

How to verify the enabled Ciphers through OpenSSL in RHEL 8.5

Our Java Application is functioning on RHEL 8.5 OS platform with TLSv1.2 protocol. Here, to improve the security, We want to enable only a few ciphers and need to block others. CIPHERS TO BE ENABLED: ...
  • 21
0 votes
0 answers
187 views

unsupported java runtime error while running neo4j console on parrot os

I have installed Parrot OS 5.0.1 and installed neo4j with apt. I have also updated and upgraded the OS. However, running "neo4j console" displays the following error: WARNING! You are using ...
  • 1
1 vote
0 answers
351 views

How to install Java environment (jdk) jdk1.8.0_45 on alpine linux?

When I look at package lists they suggest that all sorts of Java 1 packages exist for Alpine, but when I try to install them I always get apk add openjdk1=1.8.0_45-b14 apk add openjdk1=1.8.0_45-b14 ...
1 vote
1 answer
44 views

How to install FASTQC on home space as I do not have access to the root server

I am trying to run FASTQC on some data. I am working on a server where I do not have root access. Does anyone know a way where I can install fastqc in my home space as I don't have root on the server ...
0 votes
0 answers
68 views

Exception in thread "main" java.lang.UnsatisfiedLinkError

Context: Trying to install Oracle WebLogic Infrastructure 12.2.1.4.0 on Oracle Linux 8.5. JDK 7 & JDK 8 are installed. Issue:
  • 1
5 votes
3 answers
10k views

How can I install Java 8 on Debian 11 (Bullseye)?

This answer explains why it was removed. I'm not interested in the reason, instead, I need to install it. This VM is solely dedicated to my Java app, so I'm not really interested in using a container. ...
  • 291
0 votes
1 answer
70 views

Which shell command returns Java's home path?

I'm aware of the which command but when I run it on Java, I get the following path: $ which java /bin/java What I'm looking for, I think, is the Java path I get when I run the following Maven command:...
0 votes
2 answers
57 views

rpm can not decide if package is installed or not

Running rpm -i jdk-6u45-linux-amd64.rpm on CentOS 7.0.1406 gives me: package jdk-2000:1.6.0_45-fcs.x86_64 is already installed However running rpm -ql jdk-6u45-linux-amd64.rpm gives: package jdk-6u45-...
0 votes
1 answer
88 views

Grey box when running JetBrains Rider on Arch Linux

I am trying to get JetBrains Rider running on my Arch Linux laptop. I already have the suggested fix: ~ ❯ echo $_JAVA_AWT_WM_NONREPARENTING 1 ~ ❯ However, when I try to run Rider, I still get this: ...
  • 289
0 votes
0 answers
14 views

Why did the final command to import the cert into the java keystore work?

Yesterday I had a bit of an adventure when we found out that there is a certificate that did not get updated somewhere. Turned out that besides the certs in the application and on the load balancers, ...
0 votes
1 answer
2k views

JAVA_HOME should point to a JDK not a JRE

If anyone can help me with this, it would mean a lot as I've seen similarly answered questions for windows but not many or Linux. I am running I am running Linux mint 20.2 (Uma). I have a problem ...
0 votes
1 answer
167 views

Is there any other way to pause current running process and run it in background other than Ctrl+Z followed by bg?

I'm trying to run several mongod processes through a Java Application using ProcessBuilder, is there a way to simulate Ctrl+Z keypress to pause the current mongod process ?
0 votes
0 answers
112 views

Java Version Troubles on Raspbian (Raspberry Pi)

I'd like to use signal-cli to send some signal messages from my Pi-based cat feeder. I believe I've followed the installation steps correctly. When I try to run the command, I get the error: Error: A ...
  • 101
0 votes
0 answers
179 views

How can I change the JRE/JDE version used in VS Code?

I'm struggling to get vscode to use the latest Java environment. The output of update-alternatives --list is: jre_17 auto /usr/lib/jvm/java-17-openjdk-17.0.2.0.8-2.rolling.fc35....
  • 1,390
1 vote
1 answer
246 views

No Java Plugin? Now what?

Many systems, in particular various platforms offering a software KVM, have a Java-based UI for management. Often these provide a URL to download a "jnlp" file. These days Oracle et al have ...
0 votes
1 answer
59 views

Installing Java in /opt to avoid uninstall nightmare

I am currently going through the nightmare of trying to extricate all mentions of my old Java installation on Ubuntu. After many attempts, /usr/lib/jvm with numerous references to the old installation ...
  • 11.8k
-1 votes
3 answers
272 views

How can I change the OS version output?

My uname -r (and as is my real problem, Java system property os.version) returns a version number that has dashes in it. It looks like: 5.9.12-gentoo-blah-blah. This breaks an app I'm using which ...
  • 282
1 vote
2 answers
4k views

Why is Debian unable to locate package openjdk-16-jre-headless?

I am using Debian 10.6. $ sudo apt install openjdk-16-jre-headless Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openjdk-...
  • 113
0 votes
1 answer
342 views

How to use javap on a jar file

I'm runnig debian buster and have a realy old java game that I played native with openjdk but I can not remember the exact version. So i tried to find out with javap with which java version the jar ...
  • 174
0 votes
0 answers
54 views

In Scala Having saved the Path in Variable how to use the Variable in Dataframe HDFS Write Command

I have a .scala File-> I have my Path being Based as a Variable while calling the Scale File. val hdfspath=args(5) Now i want to Use this Variable in the DataFrame HDFS Write command which is not ...
0 votes
0 answers
264 views

how to set the value of Hive Metastore heap size

we have hadoop cluster ( based on ambari platform ) , when hive metastore installed on two machines Sometime during job running ( we runs the queries from presto ) we saw job failure due to heap size. ...
  • 11.4k
0 votes
0 answers
92 views

Minecraft Freezing On Pop!_OS

I am Using Pop!_os 20.04 on My second system (Specs at the bottom) which I mainly Use for STREAMING content and playing Minecraft when I go somewhere. I was Using Ubuntu 20.04 previously and I was ...
2 votes
0 answers
75 views

java process consuming more RAM than total RAM

I have a server with docker container containing java processes. One of process is consuming memory more than 100%(117%) visible in top command. $ top ... MiB Mem : 515396.0 total, 149379.3 free, ...
0 votes
2 answers
102 views

Tab Completion in Linux for "java" command

I wrote a java program with vim on a Linux operating system in the terminal. It is possible to tab complete the program name with vim by typing vim then the beginning of the file name vim he and then ...
0 votes
0 answers
22 views

two java sdks in one system

I installed java using the sudo apt install openjdk-17-headless-jdk but for some reason my intellij IDEA community edition couldn't find the jdk when I tried to create a maven project. Since it was an ...
's user avatar
0 votes
0 answers
48 views

Screen going black in debian after using wine or java

It all started when I switched graphics drivers for nvidia. I have never had this issue before until now lol. I use Debian 11 with an nvidia gt 1030 gpu. It all fixes when I restart my tv/monitor, ...
0 votes
0 answers
23 views

My variable seems to change when passed into a CLI [duplicate]

I am attempting to use a java based program, CRFVoter, for text mining. I called and executed the script as specified. [user]$ java -jar CRFVoter.jar usage: CRFVoter GPRO Command Line Tool for ...
0 votes
1 answer
285 views

Help understanding lsof and threads

When i use -p $PID on lsof i get only the immediate thread of the process. why and how to work with threads and lsof effectively? sudo lsof -p 5344 > lsof-p5344.log sudo lsof | grep '\<5344\>...
0 votes
2 answers
216 views

How to uninstall versions of Java openJDK

I am using Linux Mint XFCE 20. Recently I installed Java by running sudo apt-get install openjdk and it automatically installed versions 8 and 11 of both JRE and JDK, including JRE headless. It turns ...
1 vote
1 answer
920 views

-bash:: /bin/bash: bad interpreter: Operation not permitted

I recently replaced adoptopenjdk-13 with adoptopenjdk-16. I have a script file that uses the tool by name, so I changed it from 13 to 16. Its new contents: #!/bin/bash if [ -z ${JAVA_OPTS+x} ] then ...
0 votes
0 answers
355 views

WARNING: environment variable DISPLAY is not set (netbeans)

I was trying to install Netbeans in Xubuntu. I had installed Netbeans using Snapd. sudo snap install netbeans --classic I was trying to start Netbeans then I got an error which was looking like this ...
0 votes
2 answers
1k views

No trusted certificate found when using Java for making request on HTTPS

I'm a Java developer and I need to use a particular version of java 8 (1.8.0_162) can't use OpenJDK either. But, I'm getting this error when I try to connect / get / download / whatever from my java ...

1
2 3 4 5
17