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
1 answer
750 views

systemctl service starts executable but shuts down right after it

The launch-service.sh file should be executed by the phantombot.service file. I looked in systemctl service phantombot if the service actually started. The service starts and gets closed after about ...
code1x1.de'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
0 votes
1 answer
7k views

JAVA_HOME variable shows a blank line on the terminal

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
2 votes
0 answers
675 views

Ubuntu 17.04 - JDK 9 with IntelliJ IDEA 2017.2.3 issue

To make it simple, When I tried OpenJDK 9, IntelliJ IDEA won't startup, just showing an error dialog saying something like com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang....
Triết Nguyễn's user avatar
0 votes
1 answer
493 views

Preferred method for installing Oracle Sun JAVA in 16.04.3 LTS?

Based on Google searches I've found two methods: I successfully used the method described via http://www.duinsoft.nl/packages.php?t=en previously in Ubuntu 14.04.1 LTS: Add the duinsoft repository: $...
Daniel's user avatar
  • 251
2 votes
1 answer
1k views

How to fix broken package manager - java oracle

Whenever I try to install anything, it fails with this the following: Fetched 2,203 kB in 6s (352 kB/s) ...
Magick's user avatar
  • 174
0 votes
1 answer
637 views

How to remove JDK and keep JRE in ubuntu 16.04

I've installed JDK-8 on my VPS with the command: sudo apt-get install openjdk-8-jdk But I just realized I don't really need JDK and JRE is enough for me since I develope my projects on my laptop in ...
yukashima huksay's user avatar
0 votes
1 answer
808 views

Sun Java install download hangs.. how to diagnose this? [duplicate]

I'm looking for suggestions on how to troubleshoot this. I am running VMWare 6.5 on a Supermicro blade server about 2000 miles away, with Ubuntu 16.04.3 LTS installed as a VM. I know that the ...
Dale Mahalko's user avatar
0 votes
1 answer
2k views

error when using `sudo update alternatives` [duplicate]

$ sudo update-alternatives --install "usr/bin/java" "java" "usr/lib/java/jdk1.8.0_144/bin/java" 1 update-alternatives: error: alternative link is not absolute as it should be: usr/bin/java Help me ...
Wasil Khan's user avatar
0 votes
1 answer
103 views

What is the required IntelliJ environment for Ubuntu? [closed]

I asked this here in hopes that someone well-versed in both IntelliJ and Ubuntu can shed some light on this. I went through hell trying to make a Java program run on Eclipse/IntelliJ because of one ...
Mack's user avatar
  • 51
2 votes
0 answers
447 views

Netbeans 8.1 randomly crashes on Ubuntu 17.04 GNOME (Wayland)

I have OpenJDK 8 and Netbeans 8.1 installed on Ubuntu GNOME 17.04, Wayland. (everything installed from apt, No PPA). The crash is not observable on GNOME Legacy session. Only on Wayland. More ...
Himanshu Shekhar's user avatar
0 votes
0 answers
128 views

Completely new to Ubuntu - need MATLAB installed

I found that you can install MATLAB, a MathWorks software, to Chromebooks if the Chromebook has an Intel (non-ARM) processor and you install Linux. I've installed Ubuntu. NetSurf didn't have Java ...
OedipusOctopus's user avatar
2 votes
0 answers
138 views

memory problem Ubuntu 14.04.4 server

I've a problem with Ubuntu 14.04.4 Server. On this server it's running java (7 process that have set -Xms32M -Xmx512M) and corosync, every 4 months (more or less) fills the memory (up to 100%) and ...
FabioG's user avatar
  • 21
0 votes
1 answer
2k views

Require help installing a .jar file. (14.04)

I need help installing a .jar file, http://chunky.llbit.se/download.html, which is causing problems for me. I have Openjdk 7 and 6 and I got 8 from another, non official place. When I double click the ...
Random Human's user avatar
2 votes
1 answer
2k views

netbeans won't display projects window

$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.04 DISTRIB_CODENAME=zesty DISTRIB_DESCRIPTION="Ubuntu 17.04" $ java -version java version "9" Java(TM) SE Runtime Environment (build 9+181)...
Thufir's user avatar
  • 4,551
-1 votes
3 answers
2k views

Unable to set JAVA_HOMEin Ubuntu with space in path in /etc/environment

I am annoyed trying this but all I am trying to do is set JAVA_HOME in /etc/environment file in Bash shell on Windows which is being offered now with Windows. My local Java is at C:\Program Files\Java\...
user3044240's user avatar
0 votes
0 answers
378 views

Run Java Applet

I would like to use a JNLP file but it seems like I can't get Firefox (or Chrome) to use the Java Plugin (symbolic links to the libnpjp2.so file don't work). So how can I use JNLP files? Update Java ...
TheFlamer's user avatar
3 votes
3 answers
40k views

Java JRE 8 install

I am trying to install Java JRE 8 on my Linux machine (Ubuntu 14.04 (Trusty Tahr)). I've done two things: The first was follow Java's help page. I downloaded the tarball and installed it using the ...
John Lexus's user avatar
0 votes
2 answers
2k views

High CPU load on server with no processes running

I'm working on one of my university's servers, where I've been given space on the server and allocated 40 cores. Currently, according to top, I have no processes running except the root processes. ...
JSneathThompson's user avatar
0 votes
0 answers
73 views

Trouble installing openjdk8 after accepting license agreement

Trying to download openjdk8, I ran the command sudo apt install openjdk-8-jre-headless The package configuration told me to agree to the license agreement on oracle.com, which I believe I did. Then ...
Aurora's user avatar
  • 21
1 vote
1 answer
941 views

How to install openJDK 8 on 17.04 LTS? [duplicate]

When I ran this command: sudo apt install openjdk-8-jre-headless I keep getting this: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the ...
Aurora's user avatar
  • 21
0 votes
0 answers
5k views

java.net.NoRouteToHostException: No route to host (Sqoop)

I am new to sqoop. I am trying to import the data from mysql(installed in windows)using sqoop but i am getting below error. 7/08/11 22:55:49 ERROR manager.SqlManager: Error executing statement: com....
DevPerson's user avatar
4 votes
1 answer
9k views

Netbeans crashes and won't start

Netbeans, javac and Java were all working fine until I installed Java 9. Now: thufir@doge:~$ thufir@doge:~$ sudo update-java-alternatives --list java-1.8.0-openjdk-amd64 1081 /usr/lib/...
Thufir's user avatar
  • 4,551
0 votes
0 answers
415 views

Various errors while installing java 8 on Ubuntu 16.04 (64 bit) in VM [duplicate]

I am using Oracle VM Virtual Box (Version 5.1.18) to run Ubuntu 16.04. I am using proxy server . I have configured proxy settings in apt.conf and apt.config.In both these files my http proxy is set ...
Ash's user avatar
  • 1
4 votes
2 answers
729 views

16.04 - openJDK 7 - Minecraft Won't Launch

Its used to work. However, when I press the play button on its launcher, it's keeps popping up with this output shown here
thunderboltwolf7's user avatar
12 votes
2 answers
67k views

JVM errors when running minecraft

This is the output I am getting when I am playing minecraft. Java HotSpot(TM) Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future ...
Reddit Is Fun's user avatar
0 votes
1 answer
409 views

Installing JDK on Ubuntu?

i want to install jdk but it get this error : download failed Oracle JDK 8 is NOT installed. dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-...
MerAt's user avatar
  • 1
0 votes
0 answers
433 views

Unable to install Java on Ubuntu 17.04

prakash@prakash-Lenovo-B40-80:~$ sudo add-apt-repository -y ppa:webupd8team/javaTraceback (most recent call last): File "/usr/bin/add-apt-repository", line 95, in <module> sp = ...
Sai Prakash Konda's user avatar
3 votes
1 answer
1k views

ClamAV detects Malware : Java.Malware.Agent-6203119-0 FOUND

My ClamAV daily scan is detecting Malware from apache-maven library location. So now I want to know if this is a false positive or a real alert. Can some one help me how to figure it out this? How ...
cinny's user avatar
  • 113
0 votes
1 answer
66 views

Err executing Eclipse Cpp in Ubuntu 14.04

I'm trying to install Eclipse cpp oxygen into Ubuntu 14.04. After extracting the file and executed [eclipse] executable file, i'm met with the following errors. Greatly appreciate any advice fr the ...
rainfrost's user avatar
-1 votes
1 answer
3k views

How to make jar file run automatically on system start [duplicate]

I am fololowing this link but this did not work for me . My start up script is: #!/bin/bash java -jar AppDemo.jar My stop script is: #!/bin/bash #Grabs and kill a process from the pidlist that ...
Sheetaldx's user avatar
-2 votes
1 answer
75 views

Java compiles but not Executes [closed]

I tried many ways to execute but it is showing the same error Error: Could not find or load main class corePKI_Pkg.AppKeyUtil
Anoop's user avatar
  • 11
0 votes
1 answer
895 views

Making "java -jar OSBuddy.jar" an icon I can execute on my desktop? [duplicate]

Title says it all. I'm really really new with Linux stuff. Using Xfce/Crouton/Ubuntu etc. If you can be as specific as possible, or linking me to a guide that breaks everything down step by step that ...
Cassidy's user avatar
  • 21
0 votes
1 answer
4k views

Java class runs fine in IntelliJ but not from command line

I've compiled and run a simple Java file in IntelliJ. It contains a main method and one other small static method. It works perfectly every time. However, whenever I try to run the java command on ...
Case-In-Point's user avatar
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
0 votes
1 answer
57 views

Why is java -version giving me this?

i uninstalled java using the commands: sudo update-alternatives --remove "java" "/usr/lib/java/jdk1.8.0_131/bin/java" sudo update-alternatives --remove "javac" "/usr/lib/java/jdk1.8.0_131/bin/javac" ...
nrb's user avatar
  • 11
2 votes
2 answers
21k views

How to install latest version Eclipse in Ubuntu-16.04 [duplicate]

I am getting older version of Eclipse when I install it from terminal, which is fine for C/C++ code, but I want to use java, basically for spring and maven, so I want a newer version.
Rajeev Soni's user avatar
3 votes
1 answer
2k views

Which of these Paths should I use as the value of JAVA_HOME?

I am running Ubuntu 16.04. I have downloaded JDK 7.0 from Oracle website and untar'ed and put it in a folder /opt/JDK/, such that the final install directory is /opt/JDK/jdk1.7.0_80 Then I executed ...
Shy's user avatar
  • 235
0 votes
1 answer
793 views

Unable to run java file

I have created a Java program: public class Hello{ public static void main(String[] args) { System.out.println("HEllo world"); } } My /etc/environment file looks like this: PATH="/usr/local/...
nrb's user avatar
  • 11
1 vote
1 answer
788 views

How can I run simultaneously two different JVM in Ubuntu 16.04? [duplicate]

I need run two Java applications simultaneously but each one use requires different Java version. My default Java is 1.8, but I need to run one of the applications with version 1.6. Is there a way of ...
nbrandoni's user avatar
0 votes
1 answer
1k views

How do I open Minecraft.jar in Ubuntu? [duplicate]

Please do not mark as duplicate because I have been searching so long on other posts but they don't work for me. Please give me a step by step tutorial as an answer and be VERY SPECIFIC. I am not a ...
Alicia Rukaru's user avatar
-1 votes
1 answer
364 views

how do I clone the geckodriver executable with git? [closed]

This answer helped me with running Selenium. now...why is the solution to use wget? How do you know which is the latest version? Why not use git?
Thufir's user avatar
  • 4,551
1 vote
1 answer
262 views

Error while installing MySQL even after changing the environment file

I am trying to install MySql in my Ubuntu 16.04 machine. $ sudo apt-get install mysql-server I am getting the following error messages. /usr/sbin/update-info-dir: 3: export: /usr/lib/jvm/java-8-...
Ganesh Ramachandran's user avatar
1 vote
1 answer
881 views

How do I undo the changes that oracle-java8-set-default makes?

I've uninstalled java from my system using the steps listed here: https://askubuntu.com/a/185250 However there are still some left over oracle paths in my PATH variable. I think this has been caused ...
tamj0rd2's user avatar
  • 113
0 votes
0 answers
889 views

plasma desktop - Java IDE for Plasma Global Menu?

I installed KDE Plasma Desktop and I really like it. I like the global menu, but i noticed that so many apps are not compatible with it. For Java coding, I have always used Eclipse, but even with ...
Andrean's user avatar
  • 301
1 vote
2 answers
2k views

403: Forbidden error when trying to install oracle-java8-installer

I have a problem while trying to install third-party component Oracle Java 8. Every time I type: $ sudo apt-get install oracle-java8-installer I get this answer: Reading package lists... Done ...
amirmahdi 's user avatar
9 votes
4 answers
38k views

How to install JDK8 on Ubuntu 16?

I needed JDK 8 for Bazel. I ran sudo apt-get install openjdk-8* on a freshly built Ubuntu 16.04.02 machine, but after installation update-alternatives --config java show two paths: /usr/lib/jvm/java-...
Old Geezer's user avatar
0 votes
1 answer
48 views

whenever i try to install anything via ppa method,it displays this error at the end.what should i do?

whenever i try to install anything via ppa method,it displays this error at the end.what should i do? download failed > Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-...
arpit awasthi's user avatar
0 votes
1 answer
1k views

Java or Ubuntu Bug? (Problem with Minecraft)

As a lefty I wanted to change my Minecraft keybindings for walking to p, l, ö, ä so that I have the mouse in the left hand. Then I realized a bug: If I press ö or ä to walk to the right or backwards I ...
Booming's user avatar
  • 366
0 votes
3 answers
6k views

Installing Java without internet [duplicate]

I'm currently running Ubuntu GNOME 16.10 on my pc, and unfortunately, I don't have an internet connection. I really really need to be able to run java programs on it, because I've started learning ...
Caramello's user avatar
  • 280

1
19 20
21
22 23
65