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.
877
questions
0
votes
2
answers
129
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
763
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/...
0
votes
1
answer
3k
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 ...
1
vote
1
answer
1k
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
113
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
3k
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
385
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
62
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 ...
0
votes
0
answers
2k
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:
...
1
vote
0
answers
1k
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
259
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
203
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:
13
votes
3
answers
46k
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. ...
0
votes
1
answer
683
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
202
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
204
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:
...
0
votes
1
answer
10k
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
550
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
357
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 ...
1
vote
1
answer
993
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
477
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 ...
-1
votes
4
answers
2k
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 ...
1
vote
2
answers
15k
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-...
1
vote
2
answers
2k
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 ...
1
vote
0
answers
799
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. ...
0
votes
0
answers
231
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
171
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
413
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
34
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 ...
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
1k
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
3k
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
2
answers
4k
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
1k
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
...
1
vote
2
answers
4k
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 ...
0
votes
1
answer
440
views
Why can't remove the java version?
Remove the openjdk-17-jre and jdk :
sudo apt remove openjdk-17-jre openjdk-17-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following ...
0
votes
1
answer
120
views
OpenJFX instead OpenJDK
System: Debian 11, 5.10.0-8-amd64
I have installed OpenJFX package in purpose to use it instead of OpenJDK.
Typing "java --version":
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment (...
0
votes
0
answers
41
views
Making web servlets on Debian 10 with Java EE
Doesn't seem like Java EE exists in the repository. It's non-free right...? Well I found a download link on oracle's website but it's 135MB and I'm on a slow connection now and I don't think I need ...
0
votes
1
answer
88
views
Accessing RaspberryPi (Linux) from Android phone device
With using Spring, I've made an app on my RaspberryPi that always when I type in my browser "rspi_ip/light", it switches on the LED. It works perfectly but I want to turn this LED on from my ...
0
votes
1
answer
191
views
RFC: ssh -X to run a java app on login via SHELL variable, security and other issues?
I have a java application (not applet) which I run via a script which contains just this:
#!/bin/sh
/usr/bin/java -classpath /A/B.jar:/X/Y.jar MyApp.Go -p 1 -p 2 -p 3
This app, during initialisation, ...
0
votes
1
answer
554
views
Bash script to restart java application after Jenkins compiling
I'm noob in linux! I have my server and installed jenkins. I need to create bash script, which should run application(or will restart if it has already been started) after jenkins compile it. I tried ...
0
votes
1
answer
130
views
How to monitor a quietly dying Java server app?
We run a cluster of Java Spring server apps on AWS EC2 instances running Centos 7. We have health monitors on them, and occasionally an alarm will go off and we'll find that the Java process has ...
0
votes
1
answer
400
views
Ubuntu 18.04 How do I specify jar files for a java program?
I have a java application I copied over from Windows to Ubuntu 18.04. The two important directories are ./bin and ./lib. In ./bin the tree is:
bin
└── com
├── google
│ └── protobuf
├── ...
0
votes
1
answer
193
views
RHEL7 - very long start times on JRE
I'm using RHEL7, and I've ran into problems with Pycharm where it takes a very long time to start, a few minutes. According to the logs, it's mostly waiting for the JRE/JVM to start. So I tried to ...
1
vote
0
answers
40
views
How to play a Game with Commands Environment?
So now i have a very old laptops. Only having 2 GB ram. And i really wanted to play Minecraft (Java). But whenever i play it, its always dropping to 20-30 fps somehow (In Bodhi, and Q4OS Trinity. And ...
2
votes
2
answers
4k
views
is it possible install jdk from local using sdkman
Now I am using sdkman to install jdk from internet failed, because of the network access problem, I could not install jdk. Now I want to using sdkman instal sdk from local. I think the procedure would ...
0
votes
2
answers
751
views
Can't run an exe file on Ubuntu using Wine - JRE error
I am trying to run an "exe" file on Linux using Ubunto through Wine. When I run it through the terminal I get this error:
This application requires a Java Runtime Environment 1.8.0(32 bit).
...
0
votes
1
answer
1k
views
Is there alternative to avant browser in linux to open java applet?
I have an oracle forms website and is based on java and I used to open the web page in windows with Avant browser but I didn't find an alternative for in Linux , I can't open the java applet with ...
4
votes
2
answers
1k
views
can't paste into Jshell Version 11.0.11 reproduced on two machines
I have a rather strange problem on two of my notebooks one running Manjaro Linux (Arch for children) and the other Ubuntu 20.10. When I use Jshell the read-eval-print loop tool for Java 11, I can't ...
0
votes
2
answers
3k
views
Unable to locate an executable at "/Library/Java/JavaVirtualMachines
Whenever I try to run any apt command on my Mac I get
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home/bin/apt" (-1)
error.
My .bash_profile ...