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

Couldn't able to launch/start a java application(BURAI1.3.2)

I facing the problem of not launching the 'burai.desktop' 'burai.sh' application in spite of following all the steps of deleting existing java and reinstalling new one java . After trying to launch ...
AKSHAY PRAKASH HEGDE's user avatar
0 votes
0 answers
33 views

Eclipse Java IDE crashing on startup after update

A couple of days ago I updated everything on my computer, and today, when I tried to open Eclipse, it crashed on startup and gave me this message: An error has occurred. See the log file /home/...
Pablo Rodríguez's user avatar
0 votes
1 answer
44 views

Keycloak on Ubuntu

I have Java version 8 installed on my Ubuntu. I just installed Keycloak version 21, and when I tried to run this script from bin directory ./kc.sh start-dev I got the following error: Unrecognized ...
Abdelrahman Ibrahim's user avatar
0 votes
1 answer
128 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
  • 21
-1 votes
0 answers
19 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
0 answers
68 views

unning a .jnlp file on Ubuntu

This is a part of the .jnlp script I'm trying to run. And the ubuntu I'm using is v. 22.04.4 I tried OpenWebStart, but for some ...
Isaias Luna's user avatar
0 votes
1 answer
52 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
0 votes
1 answer
66 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
44 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
  • 777
-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
88 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
52 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
116 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
41 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
144 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
99 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
3 answers
801 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
27 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
489 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
85 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
38 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
153 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
131 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
36 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
273 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
146 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
41 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
56 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
182 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
11 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
861 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
191 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
136 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
83 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
2k 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
115 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
2 answers
71 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
40 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
276 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
554 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
186 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
86 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
119 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
71 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
33 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

1
2 3 4 5
65