Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

1
vote
0answers
12 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-...
0
votes
1answer
8 views

E/AndroidRuntime: FATAL EXCEPTION: main

Can anyone help me please? I'm beginner. LOGS : E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.ghaas.androideatit, PID: 5835 java.lang.RuntimeException: Unable to start activity ...
0
votes
0answers
38 views

java and runelite problem installing

i have a problem trying to install java and runelite on my linux ubuntu.. whatever i do i get a error message saying download failed Oracle JDK 8 is NOT installed. dpkg: fel vid hantering av ...
1
vote
1answer
32 views

Android Studio Fall 2018 which JDK for Ubuntu 16/18?

As Android seems to change all the time I put the date into the question title. I've just installed Android Studio which is current as of October 15, 2018 and burned up 2 GB of SSD space. According ...
1
vote
0answers
37 views

ubuntu java installation 404 not found [on hold]

Hello i want to install java on my ubuntu 16.04, when typing sudo apt install default-jdk all i get is a whole list of links failed to download with 404 not found at the end. What should I do to ...
1
vote
0answers
21 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 ...
-2
votes
1answer
49 views

Can't run java program with terminal in Ubuntu 18.04.2 [on hold]

I can't run any java program with terminal: openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-...
0
votes
1answer
31 views

JDK not found when installing Java ME SDK on Ubuntu 18.04

Ubuntu 18.04 user here! I'm going to use Java to program embedded systems such as the boards: Raspberry Pi STM32429I-EVAL 32F746GDISCOVERY Intel Galileo Gen. 2. They are not so many, but they are ...
0
votes
0answers
15 views

Issue with Ubuntu 18.04 and JavaFX

I think I might have noticed an issue with JavaFX and Ubuntu 18.04. I recently posted a question on Stack Overflow here. The guy who answered didn't seem to have any issues with my code. I don't have ...
0
votes
0answers
19 views

Android Studio update issue with jre/bin/java

While updating Android Studio I got the following error. The patch was downloaded and extracted, but there was some conflict with jre/bin/java Access denied. The error message is shown in the below ...
0
votes
0answers
24 views

Errors while downloading Oracle JDK on Ubuntu 16.04

I'm getting the below error message while downloading Oracle JDK on Ubuntu 16.04 HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/...
0
votes
1answer
15 views

minecraft cannot load worlds [on hold]

I tried to run Minecraft on Ubuntu 18.04, it opened without reporting any error, but I can't go into any worlds(I can create new worlds, but after that, I still can't get into the just created world). ...
0
votes
1answer
14 views

ERROR: JAVA_HOME environment variable must be defined

I installed Java using apt install default-jre apt install default-jdk whenever I tries to access an app, getting an ERROR: JAVA_HOME environment variable must be defined How I can define Java ...
1
vote
1answer
26 views

Which Version of Netbeans is more appropriate with JDK 10.0.1

I've Ubuntu 18.04 installed and I've installed JDK-10.0.1 as well. Previously I installed Netbeans-8.2 and it didn't work. After some research I realize that Netbeans-8.2 is not compatible with JDK-10....
1
vote
1answer
50 views

How to add Eclipse to Favorites?

I installed the latest version of Eclipse onto Ubuntu 18.04 with the official installer from the Eclipse website, however I can't get it to appear on my favorites bar/dock. I have tried dragging the ...
0
votes
0answers
54 views

JavaFX SDK 11 installation for new Ubuntu user

I've just succeeded installing Oracle's JDK 11 and JavaFX 11 on a machine with Windows and IntelliJ. Now I am in the midst of doing the same on an Ubuntu machine. I've already installed JDK 11, but ...
0
votes
1answer
54 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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
52 views

Unable to init server: Could not connect: Connection refused (gedit:2652): Gtk-WARNING **: 08:19:10.568: cannot open display:

Whenever I try editing a file such as test.java with gedit it always gives me this error. Unable to init server: Could not connect: Connection refused (gedit:2652): Gtk-WARNING **: 08:19:10.568: ...
1
vote
1answer
25 views

Why does x-terminal-emulator sometimes exit on launch and sometimes not?

From my Java program, I launch an x-terminal. The Java waits for the x-terminal command to start. (It's a Datastore emulator for developers.) Process proc = Runtime.getRuntime().exec("/usr/bin/x-...
0
votes
1answer
20 views

Can not remove apt repository for java8

I get the following error in apt update. Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease [15.5 kB] ...
2
votes
1answer
56 views

How to install and run CPUSim 4.0.11 on Ubuntu 18.04 LTS?

I'm going according to the steps mentioned on the cs colby site : http://www.cs.colby.edu/djskrien/CPUSim/Version4InstallationInstructions.txt First, I installed java on my system by typing the ...
2
votes
1answer
60 views

Getting Java Error Message - JAVA_HOME is not valid:

I'm trying to set up OpenDaylight which is a SDN controller on Ubuntu Virtual Box. The version of Ubuntu is 18.04. OpenDaylight requires java-8-openjdk-amd64 and I have installed it successfully: See ...
0
votes
0answers
10 views

Tomcat connector in failed state while loading the jks file in linux

Can any one help me in this issue : absolutePath = ResourceUtils.getFile("src/main/resources/test.jks").getAbsolutePath(); connector.setAttribute("keystoreFile", absolutePath); this code perfectly ...
0
votes
0answers
14 views

(Ubuntu) Setting up Java using VIM editor and running programs through terminal

I am currently learning to program in Java. I use IntelliJ as and IDE but sometimes I'd prefer to use plain VIM editor in order to understand the syntax a lot better. I've already done this with ...
0
votes
0answers
14 views

Upgrade from 14.04 to 16.04 Java Printing

I upgraded from Ubuntu 14.04 to Ubuntu 16.04 with Java 1.8.0_181. I have a simple program in the code below that only lists the default printer but should be listing all printers. It listed all ...
0
votes
1answer
32 views

Install 32-bit version of java8 on ubuntu 18 64-bit by apt command

I found this solution for similar question: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer I can't comment on the original post. My ...
0
votes
0answers
6 views

To tell java it's path

I have download and extracted jdk-8u171-linux-i586.tar to /opt/ directory. When I tryenter code here to run java I have message: Error occurred during initialization of VM Unable to load ZIP library:...
4
votes
2answers
65 views

How do I get every program that connects to the internet to do so through my VPN?

I've been trying to install the Android Studio app for 5 days. But I have not succeeded so far. To install Android, you need to install Java. And when I want to install Java, this message shows: ...
0
votes
1answer
67 views

JAVAFX_HOME path on ubuntu

So my problem is openjfx and using it on Scala-sbt project. The actual problem is JAVAFX_HOME path. First of all I have java version 10.0.2 installed on my computer and openjfx (which I take as ...
1
vote
0answers
11 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 ...
0
votes
1answer
92 views

Why are a new project and a new file not opening in NetBeans 8.2?

Why can't I open a new project and a new file in NetBeans 8.2 even after setting a path?
2
votes
2answers
356 views

Problems installing Java 8 onto Ubuntu 18.04 - Errors on oracle-java8-installer and java-common

As you can see in the screenshot, i was told to apt-get install oracle-java8-install but it gave me an error that I don't have met dependencies of java-common. Okay, great. Now I try to install apt-...
4
votes
1answer
86 views

Font size in Qt Creator is too small

I am trying to install Java 9 on Ubuntu 18.04 as I heard it could work as a solution for super small font of Qt Creator. However, when I type in the terminal: sudo apt install openjdk-9-jdk I get ...
0
votes
1answer
68 views

Java problem with high CPU running Universal Media Server

I have used Universal Media Server for many years to stream family photos, home videos, music and movies to smart TV from desktop PC running Ubuntu (now on Bionic 18.04). The media library is very ...
2
votes
1answer
2k views

How do I install Netbeans 9.0?

A lot has been changed since the release of Netbeans 9.0. I want a guide for How should I install Netbeans version 9.0?.
0
votes
0answers
53 views

Eclipse not running on Xububtu 18.04 after fresh install

I installed eclipse (sudo apt install eclipse-platform). While running it doesn't open. It gives an error. "An error has occurred. See the log file /home/usr/.eclipse/org.eclipse.platform_3....
1
vote
1answer
33 views

Reduce Java heap Memory

I wrongly increased the heap size of my android studio, and when i start android studio , i am getting this error Invalid maximum heap size: -Xmx4096m # <------ increase this to most of your RAM ...
3
votes
1answer
51 views

Notetaking Software that supports Mathematics, code, and pictures?

I am a Computer Science major. I would like a note-taking program that will allow me a lot of versatility with math notation, allows me to format java code samples similarly to StackExchange and lets ...
2
votes
0answers
15 views

hodoku.jar on Ubuntu 18.04

I have used hodoku.jar successfully on Ubuntu 16.04, my prior version. Now I cannot get it to run. I have the two OpenJDF Java Runtime installed (8 & 11). I have the .jar set to execute, but it ...
3
votes
0answers
36 views

JXplore on Ubuntu 18.04 crashed [duplicate]

I see after some updates on Ubuntu 18.04 desktop and server that JXplorer doesn't want to open. I'm trying to figure out what happened as this application is necessary to my work. Code from terminal: ...
0
votes
1answer
37 views

java -version still shows old $JAVA_HOME

I unknowingly downloaded the wrong jdk onto my system (openjdk 11) and would prefer java 1.8.0_181 to be installed. I'm just looking to run an application so I believe that jre is all that is needed. ...
1
vote
0answers
43 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. ...
0
votes
0answers
19 views

Does anyone here know how to fix this error message from netbeans

after i download netbeans using cd /tmp && wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh and install using chmod +x netbeans-8.2-linux.sh sudo ./...
-2
votes
1answer
147 views

Java project in NetBeans 8.2 is not working

I am getting thus error when trying open a new Java project in NetBeans 8.2. I searched and tried this solution, but it's not working. screenshot from tools -> option ->java. everything else seems ...
0
votes
0answers
16 views

Why system monitor showing 3 high memory using java processes

When I check system monitor it is showing high memory usage is there any issue or anything I am doing wrong I am running android studio 3.0 and one emulator I am using Ubuntu 14.04 LTS Memory 7.7 gb ...
0
votes
0answers
22 views

How to setup company apps on ubuntu server having multiple users?

I have two apps one is java and one is node app. Freshly created Ubuntu 18.04 server currently has two users: admin (who is in sudo group) and tester (without sudo). I install node app in /opt/...
0
votes
0answers
162 views

Ubuntu 18.04, cannot set LD_LIBRARY_PATH

In Ubuntu 16, I had set LD_LIBRARY_PATH via the file /etc/environment and it worked (guaranteed). After the upgrade to 18.04 it does not. I read various posts and the documentation regarding ...
1
vote
0answers
131 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: ...
0
votes
0answers
37 views

How do I start screen and run a command on boot

Ubuntu 16.04.5 Headless So I want the server to start a screen and then start a Minecraft jar file then detach from the screen to keep it running in the background in a way that i can reattach and ...