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
-1
votes
0answers
20 views

How can I install (upgrade from Java 7) Java 8 onto Ubuntu 12.04? [closed]

I have followed the installation instructions (which seem to just unpack jre-8u301-linux-i586.tar.gz into /usr/java/jre1.8.0_301 via sudo tar zxvf jre-8u301-linux-i586.tar.gz). java -version gives ...
0
votes
0answers
56 views

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Container

I am pretty new to Ubuntu and also new to this forum. Looking for some help. I've been trying to install Impro-Visor by downloading the Impro-Visor_unix_10_2.sh file and running that in a terminal. I ...
0
votes
2answers
57 views

CLI: How to browse contents in a jar file? [duplicate]

Inside a Ubuntu OS, how can I browse contents in a jar file by terminal?
0
votes
0answers
31 views

Java taking too much memory in Ubuntu 20.04 after using Android Studio

My desktop is too laggy (although I closed Android studio) to move, so I used top to see the reason. RAM is 12G, and the desktop environment is gnome this is the result of top PID USER PR VIRT RES ...
0
votes
1answer
43 views

Set JAVA_HOME in Ubuntu without "install" the JDK

I've just downloaded and extracted the JDK archive, next moving it to my /opt directory. Inside IntelliJ, everything is working properly. I just point the path to the JDK in the settings. But I cannot ...
0
votes
1answer
37 views

Minecraft server not loading server.properties when it's loaded as a service

I've followed many tutorials, but for some reason the service for my minecraft server won't read the server.properties file. I have a basic understanding of Ubuntu (had to learn how to use it for ...
0
votes
1answer
99 views

why were openjdk 14 and 13 removed from the repos

Today, my CI/CD pipelines died because we maintain several applicatiins which depend on Java 14. Looking at the logs, I saw that their dependencies could not be fulfilled, since they depend on java 14....
0
votes
1answer
40 views

How do I run mutiple Java applications with different versions?

I am using Ubuntu 18.04 LTS and I have 2 apps which need to run with different Java versions. My 1st app (Mirth Connect) needs to run on jre1.8.0_171 and my second app (Power Assist) needs to run on ...
0
votes
0answers
32 views

oracle db driver for php connection - ubuntu 20.04

So I asked this question a few days ago but the topic was closed because I was running on ubuntu 16.04. Now I have updated to Ubuntu 20.04.3 LTS. I have a php page on apache, and my oracble db ...
0
votes
0answers
35 views

failed reallocation of scalar replaced objects

I have a file consisting of 26618 rules and when I execute it with Alpha it gave me a memory exception: “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space: failed ...
0
votes
0answers
59 views

How to start Tomcat 9 on Ubuntu 18.04 as a service in debug mode?

(looks like my question is evolving, after solving it I will edit it appropriately) As in the title. I can run Tomcat as a service, but I have no idea how to run it in debug mode. I've tried to run it ...
0
votes
0answers
46 views

Illegal instruction (core dumped) error while building Android 11

For a quiet some time I'm trying to build Android 11 for Sony Xperia XZ2 H8266. Everytime process comes to build org.apache.http.legacy package it gets an error. [ 99% 263/264] //external/apache-http:...
1
vote
1answer
53 views

Netbeans 12.4 C/C++

I need to build C/C++ projects on Netbeans 12.4 with Ubuntu 18.04. There have been a long list of failures - trying earlier versions of Netbeans and even Eclipse. I can't find a simple tutorial / ...
0
votes
0answers
43 views

Unable to create native thread, Pterodactyl Panel, Minecraft servers

Linux panel 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x ...
1
vote
0answers
12 views

how to build a snap based on a jre

I'm the developer of jape, a formal logic proof editor which uses java to provide a GUI and OCaml to provide a proof-step engine. (see rbornat/jape on github). I'm trying to package jape as a snap. ...
0
votes
1answer
30 views

use a different Java version when executing .sh script in linux

We have Java 7 installed in our linux server but for a specific shell script, want to use a different version and execute. Below is the code I have in shell script, when I execute the shell script, it ...
1
vote
2answers
30 views

Getting installation probllem in installing Discord

unable to install discord: Error while installing package: installed oracle-java11-installer-local package post-installation script subprocess returned error exit ststus 1 I have downloaded ....
1
vote
1answer
27 views

Java 11 installation complains about dependencies

I have installed Java 11 from this site - https://bell-sw.com/pages/repositories/#apt by using the following commands: wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key ...
0
votes
0answers
33 views

How to deploy a WAR file to jetty without using sudo?

deploying this specific war file to jetty is somewhat awkward: nicholas@mordor:~/NetBeansProjects/x$ nicholas@mordor:~/NetBeansProjects/x$ sudo cp build/libs/x.war /var/lib/jetty9/webapps/ -v 'build/...
1
vote
1answer
149 views

Open JDK error when I Install Android Studio Arctic Fox on Xubuntu?

I am trying to install Android Studio Arctic Fox on my Xubuntu 20.04 using the official guide from here : https://developer.android.com/studio/install#64bit-libs I downloaded the .zip file and unzip ...
0
votes
0answers
47 views

Error detected by the Java Runtime Environment-(maybe related to GraphicCard?)

Running 4 Java programs I get the following error message for all of them: ------------------ # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=...
0
votes
0answers
27 views

how to use testng directly from bash?

I'm not seeing why java cannot find App as it's explicitly added to the classpath: nicholas@mordor:~$ nicholas@mordor:~$ java -cp /usr/share/maven-repo/org/testng/testng/debian/testng-debian.jar:/...
0
votes
1answer
82 views

BioX 4.6 won't launch: "An illegal reflective access operation has occurred."

BioX won't launch when using JRE 11 on two PCs running Ubuntu 20.04.2 and Pop!_OS 21.04. The BioX program however works fine without problems in openSUSE (Leap 15.2 and 15.3) which I replaced with ...
0
votes
0answers
27 views

Systemd does not write to StandardOutput with java program

I have this service file to start my Java application [Unit] Description=StorageWebServer [Service] WorkingDirectory=/opt/StorageWebServer ExecStart=/opt/java/openjdk/jdk-16.0.2/bin/java -jar /opt/...
0
votes
0answers
17 views

Why add button for java control exception list is disabled (Gray out)?

I login using my domain account into Ubuntu 18.04. When I open Java Control Panel I found The add button for exception list is disabled (Gray out) I run the jcontrol "Java Control Panel" ...
0
votes
1answer
68 views

"Text Editor" is not responding

ubuntu 20.04 LTS shell version - GNOME Shell 3.36.9 gedit version - gedit - Version 3.36.2 When I click 'wait' nothing happened: What I did: I run gedit from termial and its not come back to my ...
1
vote
1answer
30 views

Unable To Play Minecraft Multiplayer On Any Server

Hello Guys I am Adi a New Ubuntu user currently using the latest version of Ubuntu 20.04LTS I was Playing Minecraft good till yesterday From today I am Unable to play on any minecraft server Its too ...
0
votes
0answers
29 views

How do fix problem when downloading minecraft launcher on a chrome book

The following packages have unmet dependencies: minecraft-launcher: Depends: default-jre but it is not installable Depends: libasound2 (>= 1.0.23) but it is not installable ...
0
votes
0answers
193 views

unrecognized algorithm name: PBEWithSHA1AndDESede

I am trying to use elasticsearch-certutil to generate a certificate sudo /usr/share/elasticsearch/bin/elasticsearch-certutil cert -out /usr/share/elasticsearch/config/elastic-certificates.p12 -pass &...
0
votes
0answers
78 views

how do upgrade to java 11? thinkorswim says I need it?

THinkorswim has detected an old version of Java and asking me to change to Java 11. How do I do that?
0
votes
0answers
30 views

Java Control certificates

I use Ubuntu 18.04 and log in using a domain account. When I try to insert certificates into java control (jcontrol) I get an error msg tells me that "?/.java/deployment/security/...." no ...
0
votes
0answers
105 views

Install and set Path for Oracle Java JDK 16 on Ubuntu 20.04

I have installed Oracle JDK 16 on Ubuntu 20.04. I have downloaded the tar.gz file and installed it using the ubuntu software installer and its confirmed to be installed in the ubuntu software center. ...
0
votes
0answers
27 views

sqoop won't connect to mysql

I am trying to connect Sqoop with Mysql. Before I asked this question I have tried all of the solutions I searched for, but nothing worked for me. This is what I'm typing /usr/local/hadoop/sqoop/lib$ ...
0
votes
1answer
47 views

How to fix java.lang.ClassNotFoundException: gnu.io.CommPortIdentifier with libRXTX on Ubuntu 20.04?

I have the following error: $ sudo java -jar /home/fadedbee/tc65sh-1.4.0/bin/tc65sh.jar -Djava.library.path=/usr/lib/jni/ -cp /usr/share/java/RXTXcomm.jar -p /dev/ttyUSB0 -b 115200 -f push.txt tc65sh ...
0
votes
0answers
28 views

Repairing ProjectLibre Grainy Font Issue on Ubuntu [duplicate]

On Lubuntu 20.04.1, I've installed ProjectLibre, which I assume is a Java Swing app. It's using OpenJDK Java 8. The fonts are very grainy. StackExchange, unfortunately, smooths the image out and so ...
0
votes
0answers
37 views

Where is the path for the java command defined in Ubuntu?

I am struggling to get my Ubuntu 20.04 to get to recognize the correct java version. I have set the correct environmental variable inside a shell script in /etc/profile.d/ My $JAVA_HOME output: root@...
3
votes
1answer
145 views

ca-certificates-java error on Ubuntu 20.04

I can't install anything, it gives this error on every installation Setting up ca-certificates-java (20190405ubuntu1) ... head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or ...
0
votes
1answer
106 views

Add a java application to the gnome menu

I have a .jar application and I wanna add it to the gnome menu to run it from there, it must run with root privileges. I did a file called java_application.desktop in /usr/share/applications. The ...
0
votes
0answers
59 views

Oracle VirtualBox problem

I use Ubuntu-Studio 20.04.2 LTS. I installed Oracle VirtualBox 6.1 and, inside that VM, I installed MS-Windows XP-SP3 (directly from the original installation DVD). That VM worked so fine until... I ...
0
votes
0answers
21 views

Cannot parse parameter 1

When surfing on a webpage in Internet I get the following message: Fout (error) could not parse parameter 1: Cannot deserialize instance of `irias.app.models.planner.RouteExtended` out of ...
1
vote
0answers
33 views

Measuring the running time and query answering time of GUI Jar file in Linux

I have a GUI jar file (taken from here). I need to measure the shell time of loading a file in this jar and then query-answering time of this jar. The problem is the code is not provided with this jar....
0
votes
1answer
99 views

$ sdk current java is showing Not using any version of java

I have sdkman installed in my linux ubuntu 18.04. $ sdk version SDKMAN 5.11.5+713 I installed amazon java correto 11 using the below command. $ sdk install java 11.0.11.9.1-amzn java 11.0.11.9.1-amzn ...
1
vote
4answers
333 views

Is Running Minecraft Server on Linux (Lubuntu) Possible?

I want to run Minecraft, and started with a Raspberry Pi, but now I've moved onto my dedicated file server trying to use that instead but with the same lack of success. No matter what version of Java (...
1
vote
1answer
545 views

Ubuntu 20.04 - Install a specific version of openjdk "1.8.0_201"

I have openjdk version "1.8.0_292" installed on my Ubuntu 20.04. I need to install an exact version of openjdk - 1.8.0_201 How do I do that? The reason being that an old application I am ...
0
votes
0answers
35 views

How do you use wget to install files that change urls

I run a Minecraft server, but when I am trying to make it so every time the server starts, it would look for updates for plugins etc. #!/bin/sh wget -O EssentialsX.jar -P ~/Desktop/BlizzardMC/plugins ...
0
votes
0answers
106 views

20.04.2 Java 16 perf: interrupt took to long freezes system

Recently I updated from JDK 8 to 16. When launching java applications the system stutters which often leads to a black screen and all USB peripherals lose power. I checked the kernal and syslogs and ...
0
votes
1answer
78 views

Update Maven causes JAVA_HOME problem

I broke maven... I wanted to change from 3.6.0 to 3.8.1 and nothing is working yet wget https://downloads.apache.org/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz tar xf apache-maven-*....
0
votes
0answers
85 views

Error: Could not find or load main class oracle.net.ca.NetCA

I'm getting this error message, how do I fix it?
1
vote
1answer
182 views

Why is my spring boot service not starting

I have a spring boot service that I'm trying to run on my Ubuntu 20.04 server. I have created a service file in /etc/systemd/system and here is the directory entry. -rw-r--r-- 1 root root 116 Jun 5 ...
2
votes
1answer
668 views

sdkman - cannot install java on Ubuntu - permission denied

I just installed sdkman on Ubuntu 20.04.2 LTS following the instructions here. Now, i am trying to install java, but i am getting a permission issue: Issue user@u:~$ sdk i java Downloading: java 11.0....

1
2 3 4 5
62