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
0 answers
17 views

Bash script with create-file-user command in InteliJ

Im trying to create a bash script which creates user by command create-file-user. But this command can only be entered in asadmin console, not in Git-Bash, so here is my question: How can I create a ...
0 votes
1 answer
32 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 ...
  • 111
0 votes
0 answers
19 views

Where to find the source code of openjdk 1.4? [duplicate]

Recently I need to compile JDK source code on Linux. It requires JNI 1.4 and JAWT 1.4 so I need to get the source code of openjdk 1.4. But I find it hard to find the source code of this jdk version. ...
  • 1
0 votes
1 answer
33 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/...
0 votes
0 answers
82 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....
  • 1
0 votes
0 answers
474 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 ...
0 votes
0 answers
36 views

yum states nothing provides java >=1:11.0.0 although java 11 is installed

So I am installing a package that required java 11. When I attempt to install I get the following: yum install openfire_2023-01-12-noarch.rpm Last metadata expiration check: 0:10:34 ago on Thu 12 Jan ...
  • 342
0 votes
1 answer
411 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 # # ...
  • 1
0 votes
0 answers
72 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 '/...
  • 53
0 votes
1 answer
32 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 ...
3 votes
1 answer
202 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=...
  • 221
1 vote
2 answers
382 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....
  • 111
0 votes
0 answers
35 views

Running Build Engine GDX on newer Java (> 1.8)

When running BuildGDX with any version of Java above 1.8.0 (Tested with 11, 17 and 19), it launches fine, but upon running a game (Tested with Blood and Duke Nukem 3D), it pauses for a second and ...
0 votes
1 answer
34 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 ...
2 votes
0 answers
46 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 ...
2 votes
1 answer
252 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 ...
  • 23
0 votes
2 answers
36 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 ...
  • 381
0 votes
0 answers
52 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
32 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
20 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,683
0 votes
1 answer
52 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
21 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,683
0 votes
0 answers
87 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
274 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
52 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
432 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/...
  • 3
0 votes
1 answer
497 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
76 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
76 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
515 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
59 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 ...
  • 135
1 vote
1 answer
800 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
216 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
53 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
792 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
386 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
754 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 ...
  • 11
1 vote
1 answer
117 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
147 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
9 votes
3 answers
24k 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. ...
  • 341
0 votes
1 answer
232 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
108 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
131 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: ...
  • 299
0 votes
1 answer
4k 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
331 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
271 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
1 vote
1 answer
617 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
178 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 ...
  • 12.1k
-1 votes
4 answers
686 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
8k 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

1
2 3 4 5
18