Skip to main content

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
38 views

My systemd service stopped working after updating server jarfile

I have a fabric minecraft server running on Oracle Linux, which I updated today, but now Java exits with status code 1 and says that server.jar can't be found. Please help me, I really don't ...
khanmenthe's user avatar
0 votes
1 answer
21 views

Enabling Java JNDI LDAP connection to Active Directory using SSH through remote SSH tunnelling

Firstly, I would like to validate my idea for the PoC, specifically I would like to understand whether this can be possible or not and furthermore some pointers with regards to how it can be done ...
theimpatientcoder's user avatar
0 votes
1 answer
13 views

java process keep re-starting after kill it with command: kill -9 pid

I have a screen called bung were inside i run a java process using ./start.sh (script to run the java process) but before type that command i start the screen running screen -r bung so i open the ...
Felipe Braga Comonier's user avatar
0 votes
0 answers
54 views

"Failed to load swt-pi3" error in e2studio installer

I would like to install the latest version of Renesas' e2studio on my up-to-date Fedora 39 machine but I keep getting the following error: $ ./e2studio_installer-2024-01_1_linux_host.run Mar. 31, ...
stdcerr's user avatar
  • 2,069
0 votes
0 answers
119 views

How to solve Missing X server or $DISPLAY when trying to change the loaded website in chromium

I am a newbie with using raspberry and I am using chilipie-kiosk to develop a kiosk on a raspberry pi. The idea is when the Raspberry Pi starts, the Chromium browser is launched with a page that we ...
Jorge Palacios Zaratiegui's user avatar
0 votes
0 answers
67 views

JAVA_TOOL_OPTIONS="-Dos.name=Windows 7" -> Unrecognized option 7

I am trying to install the latest version of PSIM which is a windows application. I downloaded the latest version of JAVA as well as JAVA 8 (in case it doesn't like the latest) and set the variable ...
ganymede's user avatar
  • 101
2 votes
1 answer
85 views

When SIGTERM is received by a process, what happens to its children?

I am wondering what happens when a process receives SIGTERM and it has children spawned (e.g. JVM that has /bin/sh commands running). Is there some sort of automatism or does the parent simply exit ...
RokL's user avatar
  • 143
0 votes
1 answer
306 views

If I have a json string how do I calculate the number of bytes needed when stored?

I have a json string formatted displayed in a web page. What I am trying to understand is what is the size in terms of bytes that this json string requires. If I copy and pipe to wc -c I get 1000 ...
Jim's user avatar
  • 1,411
0 votes
0 answers
33 views

Kafka with KRaft - what is listening on the random high port?

I'm in the process of writing some ansible to install Kafka on RHEL and I've got the service running and am about to configure the firewall to make the service accessible on the network. When I look ...
azzid's user avatar
  • 1,000
0 votes
0 answers
50 views

Hadoop Namenode heap size tuning

NameNode process is executed in Java virtual machine, and Java object which NameNode creates is managed in Java virtual memory. As the fles or directories are created, inode objects and block objects ...
yael's user avatar
  • 13.3k
0 votes
0 answers
34 views

Why are four Jenkins build nodes suddenly having fatal problems finding things on the PATH?

In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred ...
David M. Karr's user avatar
0 votes
0 answers
47 views

Running a Java Abstract Window Toolkit application within a Docker container under Wayland

In the last years I ran a Java Swing application within a Docker container by running: docker run -u 1000:1000 --rm --name etax_zug --hostname etax-zug \ -e DISPLAY=unix:0 \ -e XAUTHORITY=/tmp/...
alexanderadam's user avatar
2 votes
2 answers
3k views

Java 21 on Raspberry Pi 5

I'm not able to install Java 21 on Raspberry Pi 5. I download ARM versions from openJDK and Oracle, but both don't work for me. When typing ./java it prints: "No such file or directory" (I'm ...
Bloodlex's user avatar
  • 121
2 votes
2 answers
5k views

Arch linux - Error during update of packages: jdk-openjdk and jre-openjdk are in conflict

When I try to update my system I get jdk-openjdk and jre-openjdk are in conflict error: This is log of the update attempt: :: Synchronizing package databases... core is up to date extra is up to ...
Jan Černý's user avatar
  • 1,393
0 votes
1 answer
2k views

Error: could not open `user_jvm_args.txt`

This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
EChumley1310's user avatar
0 votes
1 answer
41 views

shell script invoke java, keep existing on linux

we have a bash shell script which invoke java program. will it be happened that the java ends/complete but the process of still on the process list? below is the content of execute, which invoke a ...
user30430's user avatar
1 vote
2 answers
805 views

Java: what exactly does a headless install mean?

I'm installing Java and Tomcat on a headless server. The client doesn't have Java and just sees a webpage. Should I install openjdk-17, or openjdk-17-headless?
QF0's user avatar
  • 305
0 votes
0 answers
15 views

Integrate java app installed through flathub to GTK

I have installed sweethome3d via flathub(https://flathub.org/apps/com.sweethome3d.Sweethome3d). Expectedly, the look is not integrated with Adwaita or whatever GTK theme and icons I am using. Is there ...
BaRud's user avatar
  • 1,639
1 vote
0 answers
63 views

100% memory consumption when running Jetbrains IDE for 5 min

Fresh install of Arch Linux causes major memory leaks upon opening JAVA based applications, or Jet Brains applications to be exact. Memory starts off fine but within 5 minutes its up over 90%, opening ...
AAA's user avatar
  • 161
0 votes
0 answers
119 views

Mailx call in shell script suddenly sending blank messages

Similar to what was reported in posting, MAILX sends an email but with a blank subject and body text, I have an Oracle EBS 12.2 server that's using a concurrent program (java) to invoke a shell script ...
mattp's user avatar
  • 1
0 votes
0 answers
233 views

Uninstall Java 8 openjdk-8-jre-headless to upgrade to openjdk-11-jre-headless

I've tried several methods of removal of the package. apt remove openjdk-8-jre-headless, apt purge openjdk-8-jre-headless, I've tried to dpkg-l | grep openjdk to find the packages listed, Each time I ...
Susan L Nuss's user avatar
0 votes
1 answer
124 views

Installing Ant is overriding Java Installation

I am trying to install ANT after installing java. My java in Sun Java. pc19@pc19-H110:~$ java -version java version "20.0.2" 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) ...
Max's user avatar
  • 705
0 votes
1 answer
37 views

How to replace stock java with downloaded binary?

In Debian Stable the latest openjdk version available is 17. $ which -a java /usr/bin/java /bin/java $ java --version openjdk 17.0.8 2023-07-18 OpenJDK Runtime Environment (build 17.0.8+7-Debian-...
yyhh344's user avatar
2 votes
0 answers
251 views

Java process getting terminated in Redhat by SIGTERM from Systemd

I'm starting a Java process using nohup and & (running it in the background). This process gets terminated frequently. There is no pattern on when it is getting terminated. From the application (...
Raghu's user avatar
  • 121
1 vote
1 answer
628 views

How do I install Java for all users?

I need to install Java 8 on my raspberry pi. I used SDKMan to do so, following this tutorial. All works well only if I use java from my admin account (the one I used to install it). Trying to run java ...
Kuba0040's user avatar
0 votes
0 answers
115 views

Detecting a Pipewire Virtual Sink in Java

I'm trying to set up a Virtual Sink using Pipewire which I've done successfully, however, I am having trouble detecting it in Java though other applications have no problem detecting it. I can play ...
Emmy's user avatar
  • 1
0 votes
0 answers
81 views

Screen session inside of chroot does not show console output

I have a chroot jail set up for a minecraft server to be managed via SSH by someone. The chroot is setup properly with proc and lib bind mounted to the / directory for the jail, chroot/usr folder ...
dylanface's user avatar
0 votes
1 answer
84 views

How to prune Ubuntu to bare essentials

I have a Raspberry Pi running a Java application (with Swing/GUI) in a kiosk-like setup. I want to terminate (or preferably prevent from starting) all unnecessary processes that are not essential for ...
amateur99's user avatar
11 votes
3 answers
20k views

How can I install Java 8 on Debian 12 (bookworm)?

Under Debian 11, we typically use OpenJDK from adoptopenjdk.net. This organization will no longer provide new releases: https://adoptopenjdk.jfrog.io/ui/native/deb/dists/ Is there a way to install ...
realtebo's user avatar
  • 927
0 votes
1 answer
154 views

Shell script not picking up variable in if statement

I have some code that looks like this: ################### - Let's call this section 1 if [ -n "$STUFF_JAVA" ]; then __LAUNCHER="$STUFF_JAVA" else __LAUNCHER="...
Chicken Sandwich No Pickles's user avatar
-1 votes
1 answer
269 views

java8 installing issue on linux error: alternative path

i have an issue on setup the java on my kali linux using vm on macboob Pro im new on the system i have the issue that when i follow the command (a㉿kali)-[/usr/lib/jvm/jre1.8.0_371] └─$ sudo update-...
ali ali's user avatar
1 vote
0 answers
254 views

How to package a Maven Java application for Debian?

I am trying to package a Java application that is built with Maven. I created the debian/ folder with mh_make and I have been reading/watching the tutorials: https://wiki.debian.org/Java/Packaging/...
Slav's user avatar
  • 111
0 votes
0 answers
894 views

"Unable to locate an executable" when trying to install Docker compose plugin

I try to install Docker compose plugin in terminal for Mac but always that I try to do it terminal give this error: Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-20.jdk/...
Edward Guzman's user avatar
0 votes
1 answer
28 views

Apache Ignite - Automatic Cluster Snapshot Create / Restore Procedure

When trying the Apache Ignite cluster snapshot procedure (snapshot create, restore), the restore operation is not successful. Before the restore procedure, we have destroyed the cache which we want to ...
cookie_marsh's user avatar
0 votes
0 answers
21 views

Are there any Linux libraries/package that allow to profile a java application with using profiling tools like visualvm etc?

I have to find the time spent in a method or the current method being executed in java program with out connecting to profiling tools like visualvm or jconsole. Are there any such libraries in Linux ...
samshers's user avatar
  • 688
0 votes
1 answer
123 views

Confused about java -version [duplicate]

For every program/utility on Unix, I would type the name of the program followed by --version to check its version, like so program --version If I understand correctly, the double dash -- is used to ...
user avatar
1 vote
1 answer
136 views

configure: error: Could not find alsa!

I'm trying to cross compile jdk for android. I run: ./configure --with-toolchain-path=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64 --with-sysroot=$ANDROID_NDK_HOME/platforms/android-21/...
kpwn Apps's user avatar
  • 121
1 vote
0 answers
218 views

What is this Java error about for maven on Ubuntu: package org.apache.http.client does not exist import org.apache.http.client.ClientProtocolExcepti?

I am using Java and Maven Project on Ubuntu but I am getting following error upon building Java code on NetBeans IDE: package org.apache.http.client does not exist import org.apache.http.client....
P_Z's user avatar
  • 111
1 vote
1 answer
2k views

"No X11 DISPLAY variable was set [...]" when using java.swing

When I'm trying to run a Java GUI application from the command line, I get: Exception in thread "main" java.awt.HeadlessException: "No X11 DISPLAY variable was set, or no headful ...
CocoaPowder's user avatar
0 votes
1 answer
3k views

Systemd cannot exec a start command with error: No such file or directory, but the path is correct and permissions are correct aswell

So I have this modded minecraft server which has a launch script that is very simple and I wanted to control the server using systemd. Here is the launch script: #!/bin/sh # Server Launch Script # # ...
mux's user avatar
  • 1
0 votes
0 answers
234 views

how to kill java process forcefully and remove directory which is used by that process

I have one use case where I am killing a java process with pkill java, and after that, I want to remove certain directories. I have used rm -rf /pathtofolder but it gives: rm: cannot remove '/...
Samurai's user avatar
  • 55
0 votes
1 answer
98 views

Is there a way someone can read arrays of bytes which I send with java sockets while using TLS 1.2?

If anyone can answer me pls I just need an anwer. I know thus isn't maybe right place for this question I created chatting app with sockets in Java 8 and i use TLS 1.2 My question is: Is there any way ...
GM dz0ji's user avatar
4 votes
1 answer
4k views

Manually install fontconfig, without root, for Java

While installing Jenkins on a server without root access, I get the following: AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=...
Frankie's user avatar
  • 241
1 vote
2 answers
1k views

Bash script to start java spring boot application from SSH

I have a simple bash script file, which is triggered from pipeline job ( via SSH ). The deploy.sh contains more or less something like this: cd /apps && java -jar "-Dspring.profiles....
ROZZ's user avatar
  • 111
0 votes
1 answer
73 views

What is the free environment to deploy an application built with docker compose

Is there a free cloud service that allows to deploy a web application developed with JSf and Mysql. The application is built locally with docker compose using both the docker images of Wildfly and ...
Dev Learning's user avatar
2 votes
0 answers
218 views

Java threads and /proc/ directory on linux

I have a Java program that uses a pool of worker threads, that execute the work. These threads are dynamic, so the program creates and removes threads dynamically. The thread is running while a ...
Tom Eeraerts's user avatar
2 votes
1 answer
821 views

Reading Java log input from shell script execution [closed]

I have a unix shell script, and in it I start a Java application. That Java application logs a handful of information upon startup, and I wonder if it's possible for my script to "read" that ...
Liam's user avatar
  • 23
0 votes
2 answers
94 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 ...
pdem's user avatar
  • 471
0 votes
0 answers
136 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: ...
SAGAR Nair's user avatar
1 vote
0 answers
37 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 ...
Dev Learning's user avatar

1
2 3 4 5
18