Questions tagged [java]

Java is a programming language originally developed by Sun Microsystems. Questions here should be about the installation, configuration and troubleshooting a JVM (Java Virtual Machine) or a JRE (Java Runtime Environment). Programming questions (unless directly related to Ubuntu) should be asked on StackOverflow.com.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Libreoffice update can't find JRE

I just updated snaps (sudo snap refresh) and now have Libreoffice 24.2. Normally, after an update, Libreoffice Base can't find my Java Runtime Environment. This is usually easily remedied by going ...
Rosalyn's user avatar
  • 11
-1 votes
0 answers
17 views

I'm trying to run a .jnlp file on ubuntu 22.04.4 LTS [duplicate]

This is a part of the .jnlp script that I'm trying to run in Ubuntu. <resources> <!-- Application Resources --> <j2se version="1.7+" href="http://java.sun....
Isaias Luna's user avatar
0 votes
1 answer
45 views

Running Java code in Ubuntu 22.04 distributive

I'm new in this field, and trying to do some tests using java in Ubuntu I wrote a code in Java to connect my localhost mssql server and create a new database. the code is tested on windows and it's ...
Stanbo's user avatar
  • 11
-1 votes
0 answers
32 views

Java printing error Xubuntu CUPS [closed]

How can I fix the Java printing error in a webapp connected to a version of Java in Xubuntu. I get an error saying there was a problem while processing the Java printing document. I have a thermal ...
seguridad linux's user avatar
0 votes
1 answer
60 views

Connection timed out while trying to connect through Java Socket

I have tried to connect to my ubuntu server from Google Cloud using Java's sockets. I runned my server and client both on localhost, and it worked. But when I ran it on the server, I couldn't create ...
Drownek's user avatar
  • 11
1 vote
0 answers
38 views

How to fix Java Environment on Ubuntu 22.04 for Zotero?

I have installed the program Zotero on /opt. I have problems with the Java environment (JRE). On this post, it is said that one needs to run sudo apt install default-jre and sudo apt install ...
Gigiux's user avatar
  • 767
-5 votes
1 answer
46 views

How to get rid of error [closed]

I am using m2 macbook with UTM virtualization (ubuntu linux OS) i am installing hadoop But there's only one error ERROR: JAVA_HOME /usr/lib/jvm/java-11-openjak-amd64 does not exist.
Syed Safi Ullah's user avatar
0 votes
0 answers
67 views

I can't open jnlp file in UBUNTU 22.04.3 LTS

*****************:~/Downloads$ javaws jaligner.jnlp Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type. Unable to use Firefox's proxy settings. Using "DIRECT" as ...
Ralph D. Spencer's user avatar
0 votes
0 answers
49 views

How to autostart a jar file with swing GUI when booting Ubuntu

I'm trying to autostart a jar file with an .sh script: #!/bin/bash export DISPLAY=:0 java -jar /home/username/Desktop/jarfile.jar The jar file is a Swing GUI application. When i manually start the ...
Daniel Tscherkaschin's user avatar
0 votes
1 answer
96 views

Suddenly docker run can't find libz.so.1

I was using docker build and docker run just fine for weeks. The executable I want to put in a container runs fine also. Suddenly I get this error I don't understand: root@DESKTOP-EVLULFV:/home/...
wparkman's user avatar
0 votes
0 answers
38 views

Issue with abe.jar

When using the following commands in the Ubuntu 22.04 terminal, I get an error message saying the abe command isn’t found and should be installed. chmod +x abe.jar java -jar abe.jar abe unpack color....
Nyx's user avatar
  • 21
0 votes
1 answer
117 views

JAVA_HOME for the current java alternative

I have 2 jdk installed from downloaded deb packages from oracle: jdk-17_linux-x64_bin.deb and jdk-21_linux-x64_bin.deb I can switch between the two versions by using sudo update-alternatives --config ...
prout's user avatar
  • 101
0 votes
0 answers
86 views

Ubuntu-20.04 [ end Kernel panic = not syncing: Attempted to kill init! exitcode=0x00000100 ]

First, I will upload a picture right after the kernel panic appears. This symptom occurred after upgrading to Java 1.10 while using Java 1.8 and rebooting. Is there a way to access it somehow and ...
IDK_WTD's user avatar
0 votes
2 answers
702 views

Ubuntu 20.04 java --version Error: could not open `/usr/lib/jvm/jdk-21-oracle-x64/lib/jvm.cfg'

Trying to install jdk-21-oracle-x64 on Ubuntu 20.04 but it seems to be missing jvm.cfg. Is this a Oracle problem or Ubuntu problem?
Tom Quinn's user avatar
0 votes
0 answers
26 views

link group java is broken (can't install java in Ubuntu with WSL2) [duplicate]

I'm new to using Linux via WSL2 and I am following a tutorial to install java on Ubuntu Ubuntu is up-to-date Ubuntu 22.04.3 LTS on Windows 10 x86_64 and installing JDK 17 I am getting this error when ...
prab's user avatar
  • 1
0 votes
0 answers
2k views

Docker failed to compute cache key

I try to run docker in my spring boot, and when i add Dockerfile at the directory booting-web/ and put some code like this : FROM maven:3.6.3-openjdk-17-slim as BUILDER ARG VERSION=0.0.1-SNAPSHOT ...
Mahesta Riyadi Putranto's user avatar
0 votes
2 answers
425 views

Need help formatting disk for 23.10

Yesterday I upgraded to 23.10. Bad luck with a power failure near the end of the process. Things looked pretty good as Ubuntu came up. Just to be sure I tried the system updater. It said I was up to ...
Ilan's user avatar
  • 773
0 votes
0 answers
79 views

launch4j in ubuntu

I finished my first program in Java, and I want to convert it to an .exe file to make it runnable in Windows, so I downloaded Launch4j to convert jar files to exe files. I followed this guide, but ...
Marwan missor's user avatar
0 votes
0 answers
36 views

Orca doesn't speak in Java Swing application

How to make the Orca screen reader read Java Swing Application on java 18 and higher. As far as I understand, I need java-atk-wrapper. After installing it, I launch the application with the command ...
AlexP's user avatar
  • 1
1 vote
0 answers
136 views

SAP GUI installation

i want to install SAP GUI but It shows the installation steps as broken, buttons do not appear, help me please $ java -version openjdk version "17.0.9-ea" 2023-10-17 OpenJDK Runtime ...
Selim Hür's user avatar
0 votes
0 answers
30 views

Java: which and whereis show different locations from actual installation directory [duplicate]

I installed jdks in /usr/lib/jvm, and accordingly changed /etc/environment for JAVA_HOME. I then do: $ which java /usr/bin/java $ whereis java java: /usr/bin/java /usr/share/java /usr/share/man/man1/...
Mandroid's user avatar
  • 135
0 votes
1 answer
127 views

How to install jdk 1.5 .bin file?

I have downloaded installation file(jdk-1_5_0_06-linux-amd64.bin) from here. But this is a .bin file. So how do I install it?
Mandroid's user avatar
  • 135
0 votes
1 answer
34 views

run a java -jar but restrict it to only use the terminal window and not launch a gui like it would do if you ran it via ssh

java -jar foobar.jar has two different behaviors, when run locally it opens a GUI but when launched via ssh will run in the terminal. How can I restrict the output to the terminal when running ...
Robbie's user avatar
  • 1
1 vote
1 answer
259 views

Minecraft Performance Problem

So, i switched from Windows 11 to Ubuntu yesterday and i have installed all the programs i had before. Although Minecraft Java is running extremely bad on my new OS, any ideas why? Before i switched ...
Matthias Dörnhöfer's user avatar
0 votes
1 answer
126 views

Java System.getProperty with sudo gets root [closed]

This question is better asked here than in stack overflow since it is more related to Ubuntu than the actual programming language. Here are two different ways to get the path to a file. The first one ...
ilie alexandru's user avatar
0 votes
0 answers
30 views

What happened to the Bionic Beaver openjfx 8 libraries? [duplicate]

I'm trying to install JavaFX for Java 8 on Ubuntu 22.04.3 LTS. I saw the answer at Installing Old Package from Old Ubuntu to New version of Ubuntu modified my sources list and issued the commands, but ...
Craig Noah's user avatar
0 votes
0 answers
35 views

JAVA_HOME, JAVA and ANT inconsistency

I have Java installed correctly. pc19@-H110:~$ java -version java version "20.0.2" 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) Java HotSpot(TM) 64-Bit Server VM (build 20....
Max's user avatar
  • 163
0 votes
0 answers
51 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
  • 163
0 votes
1 answer
171 views

Pain with Maven and Java env variables

So I installed Java following this guide as I did many times, and set $JAVA_HOME in /etc/environment, java -version works fine. After that I'm following this guide as I did many times and install ...
Arzybek's user avatar
  • 307
0 votes
0 answers
10 views

Simulation stopped due to error: Event is already scheduled: DELAY

I am trying to use Cooja simulator on Contiki-ng and I have sensors such as this one: #include "contiki.h" #include <stdio.h> #include <stdlib.h> #include "sys/etimer.h"...
Noushin's user avatar
0 votes
1 answer
782 views

Java version Error

I try to install a software which is giving following error: No suitable Java Virtual Machine could be found on your system. The version of the JVM must be at least 17.0.2 and at most 17. Please ...
adeha's user avatar
  • 1
0 votes
0 answers
167 views

How to run PDFbox at terminal

I installed libpdfbox-java as this apt instructions, sudo apt install libpdfbox-java. Now, how to use it? can I run something as ShowSignature myDoc.pdf at terminal? How to run it? Notes If a ...
Peter Krauss's user avatar
2 votes
0 answers
132 views

Errors when running a swing application on Ubuntu 22.04.2

I'm trying to run a very simple "hello world" Java application with swing on my computer where I have installed Ubuntu 22.04.2. I have installed Java SDK 17 and have JAVA_HOME set on my ~/....
Rian Rebouças's user avatar
0 votes
0 answers
80 views

ctrl key not working when using certain application

my ctrl key will not work when using Minecraft. It works when I use the Minecraft launcher, but when I start the java application "Minecraft" it will not work anymore. I have tried multiple ...
Simon Fredrich's user avatar
2 votes
1 answer
1k views

Permission denied trying to start a new process from a Java application as root user (with non-installed JDK)

I try to start a new process using Java's ProcessBuilder, running as root user (during the prototyping phase). It works as expected when I run the application using a JDK installed with apt. My ...
snorbi's user avatar
  • 123
2 votes
1 answer
108 views

How to enforce a package dependency instead of an alternative?

I am developing a Debian package for Ubuntu which uses Java 17. We have historically had a runtime dependency on openjdk-17-jre. We have a part of our software that has used JavaFX on Windows and ...
chrish's user avatar
  • 161
1 vote
1 answer
60 views

java program in xscreensaver

Trying to run my Java Swing program in xscreensaver. The program runs great from command line. It uses the whole screen with JFrame frame = new JFrame(); GraphicsEnvironment ge = ...
Alex B's user avatar
  • 111
0 votes
0 answers
39 views

Problem with java

jre1.8.0-51 is about to be reinstalled, but its archive cannot be found. This error keeps showing up even after restarting the laptop. I tried to download the same jre version but it didn't pass ...
Szymonejros's user avatar
0 votes
1 answer
270 views

Ubuntu + Oracle cloud 1.16.5 minecraft forge server error. Java illegal access or something

Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x5ac154b6) cannot access class sun.security.util....
user1709767's user avatar
1 vote
0 answers
518 views

Run sudo commands in Java

I am trying to run sudo commands in Java. I have trying to create a program in Java in order to execute nmap commands in it. I am using Java 20 and I am using ubuntu 22.04 as operating system. I am ...
ilie alexandru's user avatar
0 votes
0 answers
171 views

Ignition gateway failed to start

STATUS | wrapper | 2023/06/22 10:11:41 | --> Wrapper Started as Daemon STATUS | wrapper | 2023/06/22 10:11:41 | Java Service Wrapper Standard Edition 64-bit 3.5.42 STATUS | wrapper | 2023/06/22 ...
imran mehdi's user avatar
0 votes
0 answers
76 views

Problems with setting up Java Runtime Enviroment

Fresh Ubuntu 22.04.2 LTS installation. I installed JRE from Oracle website. Added it to JAVA_HOME variable and PATH. Application fails to launch, with "No Java Runtime Environment(JRE) was found ...
X_BriX's user avatar
  • 1
0 votes
0 answers
113 views

REW (Room EQ wizard) not working?

REW (Room EQ Wizard) has stopped working. The following warning pops up. “Unable to access the selected device to AudioFire8a [plughw:0,0] does not have any line supporting PCM_SGNED 44100.0 Hz, 32 ...
Hutzpah's user avatar
0 votes
1 answer
61 views

How to install jing-trang with apt?

How is jing-trang installed with apt? Having already installed: libtagsoup-java libxml-commons-resolver1.1-java with apt, it's just this one package which is proving elusive. So far: xhtml-...
Nicholas Saunders's user avatar
0 votes
0 answers
60 views

Launching JAR executables with self healing?

I am running an Android app server using Ubuntu 20.04 and wanted to know how to make sure my server app is back up again after it has crashed? The app is created in Kotlin and the result is a .jar ...
Cool_Coder's user avatar
2 votes
1 answer
1k views

How do I install and setup OpenJDK in Ubuntu from Snapcraft?

How is OpenJDK installed from snap so that javac and java are available from the CLI? nicholas@mordor:~$ nicholas@mordor:~$ snap list Name Version Rev Tracking ...
Nicholas Saunders's user avatar
0 votes
0 answers
28 views

Java Install issue for Autopsy Program; Any advice would be appreciated

tony@tony-MacBookPro:~/Autopsy-installer$ ls autopsy-auto-installer.pl install-java java-auto-installer.pl README.md tony@tony-MacBookPro:~/Autopsy-installer$ sudo perl install-java [sudo] password ...
J D's user avatar
  • 1
0 votes
0 answers
110 views

javafx application run error Invalid or corrupt jarfile

I was trying to run a small javafx application using terminal.But i get this error. root@abc-abc2051A:~# java -jar --module-path /opt/javafx-sdk-11/lib --add-modules javafx.controls myjar-1.0.0-shaded....
Kanishka's user avatar
0 votes
0 answers
30 views

Help creating minecraft server at bootup [duplicate]

I followed this tutorial here: How to I make a program start on boot (no gui) I get the following error message once I run systemctl start minecraft: systemd[6640]: minecraft.service: Changing to the ...
ubudoge's user avatar
  • 31
1 vote
1 answer
991 views

Why update-java-alternatives -s /usr/lib/jvm/java-17-amazon-corretto does not update jexec?

Ubuntu 22.04.2: I installed java-17-amazon-corretto and did the update-java-alternatives but I got an error compiling my project. Last time I had to fix the links that were not updated, (java 11 vs ...
Martin P.'s user avatar
  • 111

1
2 3 4 5
65