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
-3 votes
0 answers
18 views

Unable to remove OpenJDK. KDE Neon [closed]

If I do sudo apt-get remove openjdk-11-jdk or sudo apt purge, either or gives me this error. I've tried moving a openjdk11.0.16 file to /var/cache/oracle-jdk11-installer-local, but I got the same ...
2 votes
1 answer
210 views

I can't execute ./bin/elasticsearch on ubuntu 20.04

When I run ./bin/elasticsearch command, I get the following error: ./bin/elasticsearch-cli: line 14: /home/samira/elasticsearch-8.4.2/jdk/bin/java: cannot execute binary file: Exec format error ./bin/...
0 votes
1 answer
33 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 something is missing here because when I run the following ...
  • 123
0 votes
0 answers
24 views

tried installing mysql jdbc driver... seemed to install and yet.. when I run HIVE schematool it is not found

I downloaded the ubuntu 22.04 mysql-jdbc driver from this site https://dev.mysql.com/downloads/connector/j/8.0.html sudo dpkg -i mysql-connector-java_8.0.30-1ubuntu22.04_all.deb (Reading database ......
  • 250
2 votes
1 answer
453 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/
  • 191
0 votes
1 answer
22 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 ...
  • 1,161
0 votes
2 answers
29 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 ...
0 votes
0 answers
97 views

-su: /usr/bin/java: No such file or directory Please Help

Please help me how to resolve the below issue in ubuntu 18.04LTS, When I run "update-alternatives --config java", I am getting below below result but when I run geoserver ubuntu asked me to ...
0 votes
0 answers
21 views

Jenkins builds instantly aborts whenever I try to build it. Ubuntu 22.04

I am having an issue with my jenkins server where some projects just don't build at all. When I click build now nothing happens, I tried refreshing and still nothing about a new build. It was working ...
0 votes
0 answers
69 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 ...
  • 19
0 votes
0 answers
22 views

Systemd doesn't find executable

I want to run a Minecraft Server on my Ubuntu Server. I have therefore created a new user and group called "minecraft" on my server to sandbox it. In its home directory I got a JAVA folder ...
0 votes
0 answers
52 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 ...
  • 1
0 votes
0 answers
52 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,...
0 votes
0 answers
33 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 ...
0 votes
0 answers
96 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
  • 2,514
0 votes
0 answers
49 views

22.04 comes with libreoffice that does not recognize JAVA

Trying to use libreoffice that came with 22.04, I could not configure JAVA: oracle jdk, oracle jre, open jdk all ignored, it di not show in Show Applications, and it had a strange gray icon of a gear. ...
0 votes
1 answer
33 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.
0 votes
0 answers
52 views

Burai program does not show atoms in amd pc

The java program Burai, a GUI for Quantum espresso, needs openjfx and openjdk-8-jdk to work. As it was a deprecated program, it had the following error when it was run on an ubuntu above 17.10: Error:...
0 votes
1 answer
414 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 ...
0 votes
0 answers
88 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 ...
  • 311
0 votes
0 answers
60 views

changes to Wayland and/or Gnome virtualization in 22.04 LTS?

When using a 21.10 VMware workstation 12 VM (with Gnome 40.4 and the Wayland windowing system), my Java-based apps have stable icons. Once I upgraded to 22.04 LTS (with Gnome 42.2), many of the icons ...
0 votes
0 answers
46 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)&...
  • 1
1 vote
0 answers
89 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 ...
1 vote
1 answer
515 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 ...
0 votes
0 answers
309 views

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

i have been trying to play minecraft with some mods but when i start it it crashes with error code 6, when i look into the crash dump i see a specific line Failed to write core dump. Core dumps have ...
0 votes
1 answer
504 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."); ...
0 votes
1 answer
1k 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 ...
0 votes
0 answers
274 views

Unable to get console output for minecraft server service (and other issues)

I'm using a dedicated server at home running Ubuntu 22.04 LTS console only, I've tried to get a service script to work for my Minecraft server but with little luck. I have managed to get the server ...
1 vote
2 answers
246 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 ...
0 votes
0 answers
49 views

How to understand/search up code for a startup script

I recently got a server and installed Ubuntu 22.04 and am now trying to start a minecraft server on it. I've gotten the minecraft server to work taking help from a couple of tutorials, In Korbins ...
0 votes
0 answers
25 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 ...
0 votes
0 answers
1k 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 ...
0 votes
1 answer
2k 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 ...
0 votes
0 answers
32 views

sudo apt-get upfate ppa get error 404 [duplicate]

how to solved this error, when i update show this error are show 404 Err:10 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release 404 Not Found [IP: 2620:2d:4000:1::3e 80]2
0 votes
0 answers
158 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 ...
0 votes
0 answers
27 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 ...
0 votes
0 answers
37 views

Is /home/user/.jdks/corretto-17.0.3 a good place to set JAVA_HOME to?

After probably inconsistently 'tidying up' my development computer due to the log4j issue in December, I have pointing the JAVA_HOME environment variable to an nonexistent directory. I recently ...
  • 31
0 votes
0 answers
101 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 ...
0 votes
0 answers
67 views

A user without a password is now asking for a password: any way to circumvent this?

I created the user 'minecraft' (i'm making a server) with this: sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft As I'm new to Linux, I followed this guide, which eventually led me to ...
0 votes
0 answers
9 views

clicker on ubuntu interface using siklui

I want to click on an icon on ubuntu the problem is that when I run the program in the cmd tells me that the click action is already done while the program does not click in the right place here is ...
0 votes
1 answer
94 views

Not beaing abel 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 ...
0 votes
0 answers
191 views

Is it possible to install Java applets support in Ubuntu 20.04 for Firefox 99 using the icedtea plugin, or in some other way?

I have Firefox 99 and OpenJDK 11 installed in ubuntu 20.04. Is there an icedtea plugin for OpenJDK 11 that supports the execution of Java applets on the client side in the browser, as, for example, it ...
0 votes
0 answers
66 views

Same Java-FX application in Ubuntu 18.04 now has stuttering/jittering issues when using scrolling text, now in Ubuntu 20.04+

In the application we have some text scrolling up the page, and we have found that in Ubuntu versions 20.04 and greater, that the text stutters and is jaggy and not as smooth as it was in Ubuntu 18.04....
0 votes
0 answers
647 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-...
  • 21
0 votes
0 answers
378 views

Modded minecraft server start on boot

OK, I am a running modded minecraft server without issues. Starts fine, runs fine, regular backups just in case things morph into not fine. But... I would like it to start on boot. And that is where I ...
  • 1
0 votes
1 answer
319 views

How to run java program from different directory in Linux

How to run a Java program from different directory in Ubuntu?
0 votes
0 answers
462 views

VLC java not found reproduce blu-ray menus

I'm trying to reproduce a blu-ray disc on vlc. I'm on Ubuntu 20.04.4 I installed java: java version "1.8.0_301" Java(TM) SE Runtime Environment (build 1.8.0_301-b09) Java HotSpot(TM) 64-Bit ...
1 vote
0 answers
6k 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 ...
0 votes
0 answers
80 views

Java & Javac version doesn't match

(Windows 10) When I run in the cmd java -version I get: java version "1.8.0_331", and for javac -version I get javac 16.0.1. This mixture causes me errors after compiling with javac and ...
  • 101
0 votes
0 answers
24 views

FAILED to install circlize" when install " java -jar vdjtools-1.2.1.jar Rinstall"

Hello, I tried to install vdjtools https://github.com/mikessh/vdjtools in my ubuntu 18.04.5. My R version is 4.1.3. It said: "FAILED to install circlize". I only find "-fstack-protector-...
  • 1

1
2 3 4 5
64