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
1 answer
26 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 ...
user avatar
  • 103
-7 votes
1 answer
48 views

Assignment for a university in Java [closed]

The function translates a string containing the decimal representation of an integer into a string containing its hexadecimal representation. Thanks in advance for the code)
user avatar
-2 votes
0 answers
16 views

can you use infinite loop to run a program continuesly using java [migrated]

I have a question that I have researched that I did not find any compelling answers to. If you want to run a program in a loop every 2 hours or so, and of course, I know that anyone can use windows ...
user avatar
0 votes
0 answers
27 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: ...
user avatar
  • 21
0 votes
0 answers
21 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 ...
user avatar
  • 1
1 vote
0 answers
25 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 ...
user avatar
1 vote
1 answer
18 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 ...
user avatar
0 votes
0 answers
12 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:
user avatar
  • 1
4 votes
3 answers
1k 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. ...
user avatar
  • 239
0 votes
1 answer
26 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:...
user avatar
0 votes
2 answers
35 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-...
user avatar
0 votes
1 answer
30 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: ...
user avatar
  • 275
0 votes
0 answers
11 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, ...
user avatar
0 votes
1 answer
300 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 ...
user avatar
0 votes
1 answer
43 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 ?
user avatar
0 votes
0 answers
39 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 ...
user avatar
  • 101
0 votes
0 answers
67 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....
user avatar
  • 770
1 vote
1 answer
69 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
  • 11.6k
-1 votes
3 answers
117 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 ...
user avatar
  • 282
0 votes
2 answers
1k 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-...
user avatar
  • 103
0 votes
1 answer
110 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 ...
user avatar
  • 144
0 votes
0 answers
24 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 ...
user avatar
0 votes
0 answers
88 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. ...
user avatar
  • 10.9k
0 votes
0 answers
56 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 ...
user avatar
2 votes
0 answers
47 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, ...
user avatar
0 votes
2 answers
49 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 ...
user avatar
0 votes
0 answers
20 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 ...
user avatar
0 votes
0 answers
22 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, ...
user avatar
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 ...
user avatar
0 votes
1 answer
131 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\>...
user avatar
0 votes
2 answers
154 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 ...
user avatar
0 votes
0 answers
10 views

read multiple values from file using wlst and jython

check_definitions.txt File -------------------------- Parameter Products Recommented_Value Prerequisite WeblogicPluginEnabled WLS 1 ...
user avatar
  • 55
1 vote
1 answer
431 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 ...
user avatar
0 votes
0 answers
175 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 ...
user avatar
0 votes
2 answers
711 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
  • 35
0 votes
1 answer
36 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 (...
user avatar
  • 11
0 votes
0 answers
20 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 ...
user avatar
0 votes
1 answer
34 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 ...
user avatar
0 votes
1 answer
39 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, ...
user avatar
  • 145
0 votes
1 answer
113 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 ...
user avatar
  • 3
0 votes
0 answers
52 views

Installing java 8 on debian lin

I am trying to install java version 8 on Debian Linux. The package has been deprecated. Can anyone help me install it? I cant find a way to install the deprecated package.
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 1
0 votes
1 answer
53 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 ├── ...
user avatar
0 votes
0 answers
17 views

Strange colors when using Java Swing App under Gnome (Cinnamon): scrollbar and / or selection invisible

I use a Java Swing application that seems to use the Java-Gnome-Look&Feel, i.e. the UI elements and colors. Normally you can pass the Swing Look&Feel to use via -Dswing.defaultlaf=com.sun.java....
user avatar
  • 113
0 votes
0 answers
152 views

java.lang.NoClassDefFoundError running jar, I tried loading openjfx, no success, what I am missing?

I have installed libopenjfx-java libopenjfx-jni openjfx openjdk-17-jdk openjdk 17-ea 2021-09-14 OpenJDK Runtime Environment (build 17-ea+19-Debian-1) OpenJDK 64-Bit Server VM (build 17-ea+19-Debian-1, ...
user avatar
0 votes
1 answer
95 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 ...
user avatar
  • 121
1 vote
0 answers
27 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 ...
user avatar
  • 11
0 votes
0 answers
48 views

How to install java on linux (pop os)

I am transferring Operating systems, and I am a java programmer, so I'm trying to install java on my computer, but when I tried to install it, it wouldn't recognize the javax.swing library. My ...
user avatar

1
2 3 4 5
17