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
2 votes
1 answer
10k views

javac: command not found - after installing Java

I just followed the mentioned steps of installing java on Ubuntu 20.04.5 LTS from article How do I install Java on Ubuntu . But it looks like some software is missing here because when I run the ...
Ayush's user avatar
  • 282
14 votes
1 answer
34k views

How to install JDK 19 on Ubuntu 22.04 LTS?

Today, oracle release JDK 19. How to install JDK 19 on Ubuntu 22.04 LTS? https://www.oracle.com/java/technologies/downloads/
Vy Do's user avatar
  • 509
0 votes
1 answer
67 views

Cannot type backtick (`) in PHPStorm and Android Studio (snap)

On a fresh Ubuntu 22.04 installation with German keyboard selected in the installation process, I cannot type the backtick (`) in files in Android Studio or PHPStorm. Both applications were installed ...
Alex's user avatar
  • 1,042
-1 votes
1 answer
657 views

trouble installing java 8

I am trying to install java 8 on my Ubuntu 18.0.4 system. I currently have java 1.7. I tried running: sudo apt install openjdk-8-jdk. It worked fine for a while until I got these errors: . . . Setting ...
richard's user avatar
  • 171
0 votes
1 answer
908 views

After updating to 22.04 Eclipse PDT crashes during use

As per the title, ever since updating from 20.04 to 22.04.1 Eclipse has started crashing randomly after a period of use. This is happening on two different machines - a laptop and a desktop. Sometimes ...
RogerCO's user avatar
  • 129
0 votes
0 answers
410 views

Memory leak while playing minecraft on Kubuntu 22.04

So I recently switched from Windows 11 to Kubuntu in order to, ironically attempt to fix a bizarre graphical glitch in a specific minecraft modpack (GT:NH) I was playing that made it unplayable. That ...
Arelus's user avatar
  • 1
0 votes
0 answers
1k views

How do I install openjdk 17?

Firstly I have tried to get it from snap via sudo snap find openjdk and after finding a snap for version 18 I have to proceed by sudo snap install.... Then I tried to start my program which needs java,...
Juandev's user avatar
  • 101
0 votes
0 answers
181 views

Installing Oracle Developer Studio on Ubuntu, but Java installation was not found on this computer

I am on Ubuntu 22.03.1. I want to use Oracle Developer Studio as Fortran IDE. I downloaded OracleDeveloperStudio12.6-linux-x86-rpm.tar.bz2 from here, unzipped it, and trying to execute it's ...
Tony's user avatar
  • 1
1 vote
0 answers
800 views

Warning: failed to read path from javaldx

This used to work. lowriter 'macro:///Standard.Module1.OpenFileWithPW("/home/andy/Documents/New_Journal.odt","password")' Now I get this: Warning: failed to read path from javaldx
fixit7's user avatar
  • 3,117
0 votes
1 answer
264 views

Cannot create a new project in NetBeans

I installed OpenJDK, Maven and NetBeans, but when I try to create a new Java project with Maven I get an error that says that cannot enable Spring Beans. This is the full error message.
Charly Leyewho's user avatar
2 votes
1 answer
8k views

Installation Java on Ubuntu 22.04 update-alternatives: warning:

Yesterday I have erased Windows and install Ubuntu 22.04 on Acer 8 yers old. With success. I need JDK Java 11 for development like Android Studio and others software. Here is the steps I produced to ...
Pamento's user avatar
  • 31
0 votes
0 answers
1k views

Why is openjdk-17 in openjdk-17-jdk package empty?

I just installed openjdk-17-jdk package on fresh Ubuntu 22.04. It created two directories in /usr/lib/jvm: java-17-openjdk-amd64 (which contains JDK) openjdk-17 (which is empty) At least that's what ...
Line's user avatar
  • 349
0 votes
0 answers
225 views

PostgreSQL - Export data with copy command uses huge memory resources

I am using CopyManager from Java to export data from PostgreSQL (data size around 1GB) and there is no problem with it Running "COPY (" + sql + ") TO STDOUT WITH (FORMAT CSV, HEADER)&...
devX's user avatar
  • 1
1 vote
0 answers
546 views

Ubuntu 22.04 Wine jvm creation error

I am trying to install the UNM2000.exe software, from Fiberhome via Wine on Ubuntu 22.04, but I'm getting this wine error: JVM Creation failed. I've used this software with the same installation ...
Victor huggo Bianco's user avatar
1 vote
1 answer
7k views

Trying to set up a systemd service, keep getting "changing to the requested working directory failed: permission denied"

I've new to Linux, only switched around 4 months ago from Windows. I'm trying to install a Minecraft server using this tutorial, and I keep getting this when I try to start the server through systemd ...
BlanketThroughTime's user avatar
0 votes
1 answer
4k views

"Error: A JNI error has occurred, please check your installation and try again" when run java program on eclipse [closed]

Here is my code: package java; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello, World."); ...
Ridoy Dey's user avatar
0 votes
1 answer
20k views

Fail to start a process as a service? (code=exited, status=203/EXEC)

I'm new to this forum and to Ubuntu/Linux in general so forgive me if this question isn't up to the community standards. I need to start a Discord bot java executable process as a service. To do that ...
koi_irezumi's user avatar
3 votes
3 answers
4k views

Cannot set JAVA_HOME after installing opendjk with snap

I installed openjdk with sudo snap install openjdk, and I want to set JAVA_HOME to enable my java related commands in terminal, but it is not working. I tried the following: creating a script ...
Milan Panic's user avatar
1 vote
0 answers
212 views

Process path shown by ps -ef doesn't exist

I'm in the process of tracing a process that autostarts on my machine so that I can stop it happening. I want to stop it because it's causing port 8983 clash with something else. $ ps -ef | grep solr ...
therobyouknow's user avatar
0 votes
0 answers
6k views

Cannot install packages due the unmet dependencies

I have dual boot boot on my laptop. I've just updated Ubuntu 20.04 to 22.04. When I try to install any package with sudo apt install I get a message: Reading package lists... Done Building dependency ...
fetus-elitus's user avatar
3 votes
1 answer
17k views

Java program compiled by more recent version of JRE, but I have the most recent version

I'm trying to set up a Minecraft server for my friends and I get the following error every time I try to launch it Error: LinkageError occurred while loading main class net.minecraft.bundler.Main ...
Joseph Ngechu's user avatar
0 votes
0 answers
1k views

Eclipse not working in Ubuntu 20.04

I can't even run a simple hello world! program in Eclipse. Let's go step by step. Whenever I write a program and try to save it It shows this error: And when I try to run the program It shows this ...
Naeem Navjivan's user avatar
0 votes
0 answers
35 views

Unmet dependencies while installing RISC pre-reqs

I am installing pre-reqs to get a risc environment set up on my local ubuntu machine using a tutorial. However, I run into errors with these 2 dependencies. Can anyone guide me as to how I can fix ...
Manan Mrig's user avatar
0 votes
0 answers
363 views

Installed Ubuntu. Can't even start the UGS Platform program

I've installed Ubuntu of a new mini pc I have and want to run the UGS Platform program. But no matter how much searching for solutions I've done, I can't to get this simple program to run. Runs fine ...
SlowPaddle's user avatar
0 votes
1 answer
933 views

Not being able to run a java executable

I am currently trying to install forge (forge-1.18.2-40.0.36-installer.jar) on my new ubuntu 22.04 install. I have already installed minecraft (with the .deb), show the "secret" .minecraft ...
Mia Wagner's user avatar
0 votes
0 answers
2k views

Java not insalled after "sudo apt-get install openjdk-8-jre / sudo apt-get install openjdk-8-jdk"

I am getting the follwoing error message: Command 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.11-72, or sudo apt install openjdk-11-jre-...
dayssky's user avatar
  • 31
0 votes
1 answer
1k views

How to run java program from different directory in Linux

How to run a Java program from different directory in Ubuntu?
Ubuntuuser's user avatar
1 vote
0 answers
12k views

Ubuntu boot failed and said that x86 CPU SGX disabled by BIOS

Yesterday,I opened my server as usual.I was playing Minecraft:Java Edition on my server.I have built my house for over 3 hours.However,the connection suddenly stopped.I tried to reboot my server,but ...
Dr.Alfred's user avatar
0 votes
0 answers
2k views

MySQL Access denied for user 'xxx'@'localhost' while create connection in Java

There are user 'pawa' on my Ubuntu. When I try create Connection object with code: Properties properties = new Properties(); properties.put("user", "root"); properties.put("...
Pavlo Khomiak's user avatar
0 votes
1 answer
3k views

How to run java command inside bash script in specific directory

So, I host multiple Minecraft servers on my Ubuntu VM and I've setup a script to start all of them at once. The servers are running in screen sessions and basically what the script does is send the ...
Chickblock2's user avatar
1 vote
1 answer
981 views

No Machine: Exception in thread "main" java.lang.UnsupportedOperationException: Unable to open DISPLAY

How can I fix this error? I have installed https://github.com/qupath/qupath/releases/download/v0.3.2/QuPath-0.3.2-Linux.tar.xz from QuPath official Website. jalal@manu:~/QuPath/bin$ ls total 1524 -rw-...
Mona Jalal's user avatar
  • 4,545
0 votes
1 answer
4k views

My minecraft is giving this error [Unrecognized VM option 'UseConcMarkSweepGC']

I'm trying to enter Minecraft Forge 1.12.2 but it ends up giving this error [Unrecognized VM option 'UseConcMarkSweepGC'], I don't know what to do anymore: I already changed the java version and put ...
Jogador Imortal's user avatar
0 votes
1 answer
6k views

Trying to run a systemd service but it cannot find directory

I am trying to run a Lavalink server on startup using systemd. Here is my .service file [Unit] Description=Lavalink Server After=network.target StartLimitIntervalSec=0 [Service] Type=simple Restart=...
SELECT stupidity FROM discord's user avatar
0 votes
0 answers
4k views

IntelliJ Idea not able to detect Java JDK Path

I have openjdk 11.0.4.1 Installed In my System I'm trying to do development in java using IntellijIDEA IDE of Jetbrains. Whenever I try to start a new JAVA project I see no SDK in SDK path. So, ...
Soumalya Bhattacharya's user avatar
0 votes
0 answers
71 views

Jemboss failed to launch

I installed Jemboss with apt, aptitude, synaptic on Focal (and Impish): lsb_release -rd Description: Ubuntu 21.10 Release: 21.10 apt-cache policy jemboss jemboss: Installed: 6.6.0+dfsg-9ubuntu1 ...
Brad Thompson's user avatar
-1 votes
1 answer
273 views

need help installing java 8 on ubuntu server [duplicate]

I cannot figure out anywhere online how to download java 8 just to host a minecraft server and since there is no more sudo apt install javajdk-8-jdk i cant figure it out
Doge4life's user avatar
0 votes
0 answers
31 views

sources.list for jamvm

Trying to install jamvm in my Ubuntu: sudo apt-get install jamvm Unfortunately it can't find package jamvm I suppose I must add something to sources.list. What I should place there? How to know ...
vico's user avatar
  • 4,527
0 votes
1 answer
65 views

Ubuntu 20.10 RPI4 wont open jarfile [closed]

So a while ago I got my rpi4 to use ubuntu with the purpose of making a Minecraft server, I downloaded the jarfile and tried to open it, it would show the following error: We appear to be missing one ...
Ferwatch01's user avatar
0 votes
1 answer
425 views

Permissions for serialport communication for a program

Introduction: I'm building a Java software that performs serial communications by using jSerialComm library. I've noticed that if I run the .jar with sudo, it will act properly, but not otherwise, so ...
John's user avatar
  • 1
2 votes
3 answers
12k views

Java JDK won't install

I'm trying to install Java JDK per this YouTube tutorial:. I get to the part where I run sudo dpkg -i <FILENAME> and it gives me this: (Reading database ... 185728 files and directories ...
filthyningen's user avatar
0 votes
0 answers
33 views

Symlink to jar in /usr/bin: cannot execute binary file: Exec format error [duplicate]

I'm a bit puzzled on Ubuntu 22.04, I installed the ditaa package, which is a java program providing a jar in /usr/share/ditaa/ditaa.jar that is supposed to be run with java -jar /usr/share/ditaa/ditaa....
Cilyan's user avatar
  • 109
0 votes
1 answer
574 views

How to avoid "RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyACM0"

I'm using RXTXcomm.jar and librxtxSerial.so from the librxtx-java package on 64-Bit Ubuntu 18.04 LTS and I'm getting the following warning every time I run my application on 64-Bit 1.6.0_45 JRE: RXTX ...
Jelena's user avatar
  • 1
1 vote
1 answer
154 views

GloboNote install error

I'm a begginer of ubuntu(20.04) and gonna install GloboNote. I followed several guides in google but failed. From the start, downloaded GloboNote on globonote.info/download and unzip that. Then ...
Grey's user avatar
  • 37
1 vote
1 answer
2k views

How to run Minecraft 1.18.x in (k)ubuntu 20.04 / java 17 throwing errors

How do I get Minecraft 1.18.x to run? I have openjdk-17 installed and Minecraft 1.16.x runs fine with openjdk-8. The relevant errors in the console are: [16:37:00 ERROR]: Game ended with bad state (...
Firehammer047's user avatar
0 votes
3 answers
11k views

openjdk-11-jre-headless installation problem on ubuntu 18.4

I am trying to install openjdk-11-jre-headless or default-jre on my ubuntu machine but no mather what I do I get some error messages while doing it. " The following packages have unmet ...
Gryzto's user avatar
  • 11
2 votes
1 answer
78 views

Unable to compile 'syllable-5.0.0' (tar.gz) because node is not 12+ [duplicate]

I am on Ubuntu 20.04. I am trying to install a syllable counting program from source. Ref: https://github.com/words/syllable From readme.md This package is ESM only: Node 12+ is needed to use it and ...
brane stormer's user avatar
2 votes
2 answers
5k views

Command 'java' not found on WSL, even though 'java' command works in Powershell

This topic probably is a common one, but when looking online I didn't see much that related to my case, since I'm not running a normal ubuntu, but rather WSL (Windows Subsystem for Linux). So my ...
Thibaut B.'s user avatar
1 vote
1 answer
297 views

Can't install Java on Ubuntu Server 20.04.3 LTS

So when I go to paste in: sudo add-apt-repository ppa:linuxuprising/java It says: N: Ignorerar filen ”linuxuprising-” i katalogen ”/etc/apt/sources.list.d/” eftersom den inte har en filändelse It's ...
ItzFoil 's user avatar
6 votes
1 answer
3k views

How do I run a specific program that requires a different version of Java without changing the default system version of Java?

I am using Ubuntu Server to host multiple Minecraft servers. For the latest versions of Minecraft, I need the latest version of Java; however, I would like to run a modded server as well and some of ...
lordoftimelords's user avatar
0 votes
0 answers
2k views

Not able to uninstall Java 17. Getting error related to dependency

I am new to ubuntu and using Ubuntu 20.04.3 LTS. I had installed Java 17 recently but now I want to uninstall it but getting following dependency error. Please help me out: dpkg-query -W -f='${binary:...
Saurabh's user avatar

1 2
3
4 5
65