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 vote
0 answers
179 views

Java 11 for Ubuntu 18.04 LTS [duplicate]

This refers to Phoenicis issue I need to install Java 11, so I run this command sudo apt install openjdk-11-jre-headless But it installed Java 10 according to: tomsk@tomsk-Ntb:/opt/Build/Phoenicis/...
tomsk's user avatar
  • 1,325
1 vote
0 answers
1k views

copy files instead of compiling when building debian package

The goal I have been trying to make a very simple debian package for two days now. There is a java application called fits. In ~40 lines, it can be packaged for osx. https://github.com/Homebrew/...
ConorSheehan1's user avatar
1 vote
0 answers
1k views

System JDK versus SDKMAN

More than once I've had to go into apt to remove JDK > 8 because, at least for the moment, umake installs Netbeans 8 which only runs on JDK 8. I only need JDK 8 for Netbeans, and that temporarily ...
Thufir's user avatar
  • 4,551
1 vote
0 answers
340 views

How to run sikuli? Where is path?

I installed sikuli from repositories. Now, when I run sikuli-ide from terminal it says: command not found. Where is the path. There is no icon to run it from Show Application. Ubuntu 18.04
Q Max's user avatar
  • 11
1 vote
0 answers
724 views

Can't install NetBeans 9.0 "Error occurred during initialization of boot layer" [duplicate]

~/netbeans/bin$ sh ./netbeans Error occurred during initialization of boot layer java.lang.module.FindException: Module java.xml.bind not found I've installed jdk-11.
Adi Tiwari's user avatar
1 vote
0 answers
781 views

Minecraft doesn't work on Ubuntu 18.04

I recently updated to Ubuntu 18.04 and can't get Minecraft to work. The launcher works fine using both Java 8 and Java 11 runtime, but when I click Play, one of two things happens: either the ...
Daniel Howell's user avatar
1 vote
2 answers
2k views

Openjfx 11 after 18.10 upgrade

I'm developing an application that needs JavaFX. This week I upgraded to Ubuntu 18.10 and saw that the default version of OpenJDK is 11 and therefore the OpenJFX version is also 11. The "cosmic" ...
shz's user avatar
  • 11
1 vote
2 answers
301 views

Trying to update Java on Linux (Linux installed by Crouton)

I wanted to download Minecraft on Linux so I downloaded Java 7, because anything over Java 7 says Could not find so I installed Java 7, but when I try to update Java by entering: sudo add-apt-...
Chillthuggin1's user avatar
1 vote
0 answers
190 views

Two programs written in Java won't install or run on 18.04

I have two programs that I've used successfully on Ubuntu for some years - Moneydance and PDF Studio Neither of these programs will install or run under Ubuntu 18.04 on my computer. All I get from ...
Invention1's user avatar
1 vote
1 answer
2k views

NetBeans isn't opening on Ubuntu 18.04

I'm a new Ubuntu Linux user and I thought to start learning java with this new environment. I started to install java and NetBeans by searching google, java installed but not NetBeans. I searched more ...
Loknath Dhar's user avatar
1 vote
1 answer
2k views

OutOfMemoryError: unable to create new native thread with no obvious reason

When starting my modded Minecraft Server using java, I get the following error: java.lang.OutOfMemoryError: unable to create new native thread So my first guess was, that maybe something is creating ...
iComputerfreak's user avatar
1 vote
0 answers
455 views

How to I configure the home.java variable for vscode in ubuntu 16.04?

In Eclipse, java development is seamless and works just fine. However, Visual Studio Code doesn't seem to recognize the java installation and demands that you manually input its whereabouts. I've had ...
user875328's user avatar
1 vote
0 answers
612 views

Java not opening programes ubuntu 18.04

I recently upgraded my ubuntu sony vaio laptop from 16.04 to 18.04 and now that this has been completed I can't seem to open an important marking programme that I use to mark and return student work. ...
chris sailor's user avatar
1 vote
0 answers
869 views

Java error on Ubuntu 18.04 [duplicate]

I upgraded to Ubuntu 18.04. I have Dbvis (DbVisualizer - database editortu) installed, but now it will not work. I get the following when I run dbvis from the command-line: java.awt.AWTError: ...
John Cowan's user avatar
1 vote
0 answers
783 views

Minecraft crashes on 18.04 & can't connect to servers

Just updated to ubuntu 18.04 LTS, and as usual, checked what is working and what is not. Tried to launch Minecraft with the easy Minecraft.jar - method, but it just didn't open anything. So I decided ...
juhaszi's user avatar
  • 11
1 vote
0 answers
311 views

Error while installing netbeans 8.2 in Ubuntu 18.04  [duplicate]

Can anyone explain how to install it? This is the error I get while trying to install netbeans:
Sanju Sk's user avatar
1 vote
0 answers
21 views

Running Windows Java on Ubuntu 12.04 does not seem to work for 18.04 [duplicate]

So far the solution given here worked perfectly until I upgraded to 18.04, where I had to install other elements to make the icon appear. In the beginning it worked quite well, but now I am getting ...
Roman Herrle's user avatar
1 vote
0 answers
12 views

Java-based program will not load anymore [duplicate]

I'm in a class that requires us to use the Alice 3 program. I was running the program just fine earlier today and now it will not make it past the splash screen. I go into the system monitor and it ...
JJ Michaels's user avatar
1 vote
2 answers
1k views

Why wont JRE run my .Jar file [duplicate]

Before you mark this as the same thing as the others, You need to know I have done this before hundreds of times with no problem, I just reinstalled Ubuntu 18.04 2 days ago, and I was trying something ...
Jeffrey Kratka's user avatar
1 vote
0 answers
229 views

Glassfish - MongoDB - Too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
Chinaedu Onwukwe's user avatar
1 vote
0 answers
2k views

Eclipse installer error, looks like it is trying to use Java 1.8

I just followed the Eclipse websites links to download the latest version, and after running from the terminal $ ./eclipse-inst It goes through the installation process but returns JVM terminated....
Addem's user avatar
  • 2,313
1 vote
0 answers
51 views

Deiconify an application does not update its content with Mutter and X11

I have a java graphic application using Swing library. If the application is minimized and the graphic content changes (color or whatever), I should see the modification when restoring the window. ...
Skartt's user avatar
  • 111
1 vote
0 answers
249 views

minecraft client gets timeout when cpu-usage hits 100%

I installed Minecraft on XUbuntu 18.04. I play on a server of a friend to which I connected directly via ip-adress. I am there for a few seconds, then I get an error and lose connection; usually it'...
Asqiir's user avatar
  • 427
1 vote
0 answers
704 views

JavaFX missing in KUbuntu 18.04

I have have Kubuntu 18.04 installed and I use the default jdk which says version 11 in the repositories but 10 when using java -version command. However, I cannot run JavaFX application because it's ...
Ossama Nasser's user avatar
1 vote
0 answers
326 views

install 32bit eclipse parallel to 64bit eclipse in 64bit ubuntu

My preferred java IDE is eclipse. Since I own a lego robot (NXJ) I want to use Java For Lego Mindstorms. I found out I have to use all 32bit architecture since the usb drives won't work otherwise. ("...
Asqiir's user avatar
  • 427
1 vote
0 answers
87 views

How to detect why my ubuntu 18.04 is crashing multiple times [duplicate]

I have been work around a new desktop (with 3 months of use) which has been freezng and crashing multiple times. In the first 2 months I used the Ubuntu 16.04, and multiple times I have crash with ...
Iron Banker Of Braavos's user avatar
1 vote
1 answer
2k views

Could not find Java jdk in a directory that has been renamed

I am trying to built a React Native app using Ubuntu 16.04. When I try to run npm run android in the terminal I get this error ERROR: JAVA_HOME is set to an invalid directory: /home/duong/git/Java/...
streamville92's user avatar
1 vote
1 answer
1k views

JAVA_HOME keeps being deleted despite i set it

â caner@vegan ~ echo $JAVA_HOME â caner@vegan ~ echo $PATH /home/caner/bin:/home/caner/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/...
CursedChico's user avatar
1 vote
0 answers
40 views

Run WAR with special user?

I have a Java WAR file that I run over JBoss Wildfly Application Server on Ubuntu. Now, this WAR accesses the file system and I'd like to only let it do that over a certain user. Is that possible? I ...
Socrates's user avatar
  • 2,493
1 vote
0 answers
870 views

Eclipse | Permission denied when trying to open sh file under Ubuntu

I develop plug-in that works under Ubuntu. The plug-in is required to install a third party software with which it works. Installation directory is "user home" [System.getProperty("user.home")] After ...
MBaev's user avatar
  • 135
1 vote
1 answer
3k views

Not able to install rJava in R

I am not able to install the rJava package in R. If I run sudo R CMD javareconf: *** JAVA_HOME is not a valid path, ignoring Java interpreter : /usr/bin/java Java version : 1.8.0_161 Java home ...
marc's user avatar
  • 121
1 vote
0 answers
166 views

Top / Bottom Windows position on Full Screen

I have a problem while running Firefox on Full Screen Mode only. (While on Maximize and Half screen work as expected) I have Firefox Full Screen and I would like to have a Java Window or around 1/4 ...
Jose Siu's user avatar
1 vote
1 answer
250 views

Java crashed with signal 5 on 17.10

I have such frequent crashes while working with Eclipse Oxygen. This is my JDK version: noob@zimus:~$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) ...
Suncatcher's user avatar
1 vote
0 answers
1k views

Scilab 5.5.2 cannot create Java Main Class on Ubuntu 14.04. How to fix?

On March 5, after months of working regularly, Scilab 5.5.2 stopped working altogether if launched from GUI. Trying to launch from terminal, it still did not work but at least informed me that it ...
Fabio Capezzuoli's user avatar
1 vote
0 answers
935 views

Java - jar: No protocol specified InvocationTargetException

I installed SQLWorkbench. I moved to cd /opt/SQLWorkbench and used java -jar sqlworkbench.jarto run the app. The location is correct as the files are there. I'm following this guide: http://www.sql-...
Carol's user avatar
  • 11
1 vote
0 answers
324 views

Initializing java.awt.Robot within systemd in Ubuntu 17.10

I have a service that can capture the screen of a particular user using java.awt.Robot APIs while running as root (as it does several other things than capturing user screen). The environment to ...
PC.'s user avatar
  • 199
1 vote
1 answer
2k views

How can I fix these errors during Talend Open Studio installation?

I'm trying to install Talend Open Studio on Ubuntu 16.04 Server, but I got the following errors while trying to run ./TOS_DI-linux-gtk-x86.sh: TOS_DI-linux-gtk-x86_64: Cannot open display: org.osgi....
Abeer's user avatar
  • 31
1 vote
0 answers
442 views

How to bring a background process started by a script to foreground

I have a server setup that runs some java servers but since I am not home all the time those servers are activated via a .sh script. But now I don't know how to bring the java background processes to ...
Joeri's user avatar
  • 121
1 vote
1 answer
1k views

Installing Eclipse Oxygen On Ubuntu 16.04

I downloaded Eclipse Oxygen from https://www.eclipse.org/downloads/ and went through the installation process, but after installing when I click "eclipse" at /home/rizwan/eclipse/java-oxygen/eclipse, ...
r1234n's user avatar
  • 119
1 vote
0 answers
2k views

Tomcat start error in Ubuntu 16.04

After running: service tomcat start I got: Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details. ...
Mallikarjun Dodmani's user avatar
1 vote
0 answers
708 views

Getting apt-get errors after unsuccessful Oracle Java instalation [duplicate]

I started getting errors when installing packages using apt-get after unsuccessful Oracle JDK 7 installation.These errors come up even when I'm installing packages unrelated to Java. For some reason ...
IlmarsL's user avatar
  • 63
1 vote
0 answers
460 views

Tomcat 8.5 cat Unit tomcat.service not found

I cannot run tomcat service from regular user though I can run it manually using scripts in the tomcat directory. My PC also does not have service script for tomcat int the directory /etc/init.d/...
aditya's user avatar
  • 11
1 vote
0 answers
87 views

Can't install Oracle Java 9 [duplicate]

It seems that Oracle has changed their website such that all the downloads don't work for the standard Ubuntu install method. sudo add-apt-repository ppa:webupd8team/java -y sudo apt-get update sudo ...
Ernie's user avatar
  • 1,085
1 vote
1 answer
616 views

Unable to install Java or other packages on ubuntu 14.04 server

I was trying to set up Graylog yesterday. I also installed Java, Mongodb and Elasticsearch. Couldn't get it running correctly, so I made a decision to remove those and start all over again. I used the ...
Kaspar's user avatar
  • 11
1 vote
0 answers
77 views

apt - use "provided" packages

Using Kubuntu. cat /etc/issue Ubuntu 17.04 \n \l Now let's assume we have installed the default-jdk package: apt show default-jdk Package: default-jdk Version: 2:1.8-57ubuntu1 Priority: optional ...
User1291's user avatar
  • 272
1 vote
0 answers
111 views

Minecraft launcher giving Java error "the trustAnchors parameter must be non-empty" [duplicate]

On Ubuntu 17.10, the Minecraft launcher keeps giving me "the trustAnchors parameter must be non-empty" error. The full log is here: user@hostname:~$ java -jar Downloads/Minecraft.jar Bootstrap (v5) ...
SultanofRum's user avatar
1 vote
2 answers
4k views

Tomcat installation directory for Eclipse

I have installed tomcat8 using apt-get and it was installed properly. I have to integrate tomcat with eclipse but when I provide installation directory as /usr/share/tomcat8, it says config file is ...
user7098526's user avatar
1 vote
0 answers
61 views

Error After Installing JAVA [duplicate]

I tried to insall java but it give me these error. Anything i do it return me those error. How can I solve it? sudo apt-get autoremove Reading package lists... Done Building dependency tree ...
Angga Cuacua's user avatar
1 vote
0 answers
3k views

Running WSO2 IS on Ubuntu - CARBON cannot execute Java

I'm using Ubuntu 16.04 64-bit. I'm logged in to Ubuntu as user1. I installed Oracle JDK version jdk1.8.0_144 to /usr/local/java and set symlinks as $ sudo update-alternatives --install "/usr/bin/java"...
kovac's user avatar
  • 121
1 vote
0 answers
270 views

I need help understanding my service script starts multiple processes when run

I have been trying to get a java application run as a service.I used this spring framework guide After putting couple of scripts together from different sources, I ended up with something like below: ...
black sensei's user avatar

1
32 33
34
35 36
65