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

learn more… | top users | synonyms

25
votes
2answers
134k views

How to install the Java plugin for Firefox? [duplicate]

I am trying to install Java and plugins for Firefox. I installed both the JDK and JRE. When I try with the sudo update-alternatives --config java command it shows only one choice available. Plugins ...
18
votes
3answers
27k views

Open-source, free Java Decompiler

Is there any open source Java Decompilers for Ubuntu, preferably in the repositories and/or GPL'ed? Both JAD and JD, the most popular decompilers I've found after a bit of googling, seems to be ...
11
votes
2answers
30k views

Java on Ubuntu server 12.04? [duplicate]

I'm a little confused at the moment. My back story in short, is that I'm trying to set up a Minecraft server on an Ubuntu server I've recently set up, obviously to do this I needed Java, but after ...
8
votes
3answers
16k views

How to remove a half-installed package? (Sun JDK - Java)

I've tried installing Sun JDK from sudo add-apt-repository ppa:eugenesan/java, it failed with the following: Downloading... --2012-05-05 15:50:09-- ...
8
votes
1answer
10k views

How to associate jnlp file with javaws

My actual version of java is $ java -version java version "1.6.0_38" Java(TM) SE Runtime Environment (build 1.6.0_38-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode) and it ...
7
votes
7answers
29k views

Java will not run in Chromium, Google Chrome and Firefox

I am having major issues with Ubuntu and Kubuntu with regards to Java on websites using Chromium, Google Chrome or Firefox. I have tried everything to install Java, but it's not happening. Ubuntu ...
19
votes
6answers
5k views

Java application launcher not staying in Unity launcher

I'm using IntelliJ IDEA, which is a Java application. When it runs (invoked through Dash) it shows a launcher icon with no name. I've tried several times to right-click and select "keep in ...
14
votes
1answer
20k views

OpenJDK - Oracle is better? [closed]

From http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux Type/Copy/Paste: java -version . If you're having OpenJDK Runtime Environment (IcedTea6 1.10pre) (7b15~pre1-0lucid1) OpenJDK 64-Bit ...
5
votes
5answers
13k views

How do I bypass the license page to download Oracle/Sun Java on a server with wget?

I'm trying to install Liferay on Ubuntu Server 12.04, which requires JRE and recommends version 6. I can't find JRE6 in an authoritative repository, and I can't work out how to get past the licence ...
3
votes
9answers
22k views

Matlab install - Java permission denied

Matlab version 2012. I know there are many threads about this, suggesting to chmod +x the following files (if you are in installation directory): sys/java/jre/glnx86/jre/bin/java ...
10
votes
2answers
54k views

How do I change Java Runtime Parameters?

On Windows, I could change how much RAM Java could use by typing something like -Xincgc -Xmx2048M in the Java Runtime Parameters. How can I do that in Ubuntu?
5
votes
5answers
3k views

Does the global application menu support Java applications?

I am a heavy user of Java applications such as Matlab and Maple. Will the global menu support these very important packages? If not, are there plans to do this?
4
votes
1answer
417 views

Pointer position way off in Java Application menu's when using gnome-shell

When using any java application in gnome-shell if the window is maximised the pointer position is way off; but only on the menu's, in the editor, or the side panel, the pointer is fine. This only ...
1
vote
1answer
6k views

How to install an older version of Java

I updated my installation of the sun-java6-jdk package today to version 6.24-1build0.10.10.1 after being prompted by the update manager. However this now causes some compilation failures so I'd like ...
9
votes
2answers
8k views

ca-certificates-java fails when trying to install openjdk-6-jre

I use a VPS with Ubuntu Server 10.10 x64. I want to use Java and run the command sudo apt-get install openjdk-6-jre but it fails because the installation encounted errors while processing ...
4
votes
1answer
6k views

Good way to run Java and Eclipse from a ramdisk

It is often suggested to me that to improve the performance of the Eclipse development environment, that I should move the Java JDK/JVM (and possibly Eclipse) to a Ramdisk. I know that the Ubuntu has ...
4
votes
0answers
4k views

Installing 32 bit java now that ia32-sun-java6-bin is not available [duplicate]

Possible Duplicate: How can I install Sun/Oracle's proprietary Java 6/7 JRE or JDK? Prior to 11.10, I could install a 32 bit java side by side with the 64 bit versions using the package ...
3
votes
2answers
31k views

How to set JAVA PATH in Ubuntu 12.04?

So java -version give path not found. I have tried the following: Edit: ~/.bashrc ~/.profile /etc/environment bash.bashrc files and add to them the following: ...
2
votes
3answers
41k views

How to setup Java-Home and Path in Ubuntu 12.04

we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed ...
2
votes
2answers
1k views

GWT (Google Web Toolkit) Designer not working on Ubuntu 12.10

The GWT Desinger is not working on Ubuntu 12.10. It worked on Ubuntu 12.04. I installed the Eclipse Plugin as described on the GWT Homepate If I want to open the Design-View (for an xml-GWT-File), ...
2
votes
2answers
6k views

How can I select which Java to use?

I have installed both OpenJDK 6 and 7. When I run "java somefile" from the command line, OpenJDK 6 is invoked. I do not want to change this default behavior. What command can I use to run my ...
1
vote
3answers
1k views

Juniper Crashing right after launching

I am running Ubuntu 13.10 x64 and have 64 and 32 bit versions of Java 6 installed. I have it configured that when running Network Connect it will run the 32 bit version and for anything else the 64 ...
1
vote
3answers
23k views

Installing Java on Ubuntu 64 bit

I have ubuntu 12.04 LTS version 64 bit . what is the procedure for installing and running Java for development purpose. I am new to Linux and Unix platform. Thanks in advance
0
votes
2answers
13k views

How to open jar file using open JDK?

I installed "open jdk 7" on ubuntu 13.04, but not recognized in "other application" list to set as default. I need to open a ".jar" file with "open jdk7". Please help.
9
votes
3answers
39k views

Install 32bit Java (OpenJDK) on 64bit Ubuntu 12.04 [duplicate]

I have to run Juniper VPN on the 64bit Ubuntu 12.04. I have installed openjdk-7-jre, openjdk-7-jdk and icedtea-7-plugin. After the browser prompts to install the Juniper VPN, I check it has been ...
8
votes
3answers
4k views

How to run Java application in KDE with Qt-like UI?

Continuing my question in Install Ubuntu or Kubuntu? I have tried Kubuntu (KDE), and it was very cool as cool as Ubuntu (GNOME). but there is little problem with its user interface when we start Java ...
7
votes
1answer
38k views

“Please ensure you have JAVA_HOME points to JDK rather than JRE” message

I have java installed aaa@ubuntu:~$ whereis java java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java aaa@ubuntu:~$ whereis javac javac: /usr/bin/javac /usr/bin/X11/javac and ...
5
votes
2answers
2k views

Eclipse auto shutdowns when creating new project

When I click finish on a new project in Eclipse which I installed with this command sudo apt-get install eclipse-platform. This popup window comes and no matter if I choose Yes or No it closes the ...
5
votes
3answers
8k views

Remove or disable java due to the security issue

According to the news there's java security hole that is still not fixed. How can Ubuntu users protect their PC? I've got gnome-shell installed and as far as I understand it depends on java. Which ...
5
votes
4answers
31k views

How to set environmental variable PATH?

I'm using Ubuntu 10.10 and downloaded jdk7 from java.sun.com. That jdk is a compressed file and on extraction there I got all the files and folders of jdk1.7.0. But now if I tries to compile a java ...
4
votes
1answer
37k views

JAVA_HOME is not defined correctly [closed]

I installed java jdk hotspot 1.7. When I type java -version I am getting: java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) This is correct. And I tried to install maven, ...
4
votes
2answers
801 views

Where can I find a package for “project looking Glass”? (“The Java desktop”)

I really really want to find this package. Because after I saw the youtube clip I realized it's just one of those things I must have done before I die. This tutorial would be great if the repository ...
3
votes
0answers
346 views

How to use Firefox AppArmor profile with IcedTea Java plugin on Ubuntu 14.04?

Whenever I set up Ubuntu on a new system, I active the default AppArmor profile for Firefox via sudo aa-enforce /etc/apparmor.d/usr.bin.firefox Doing this on Ubuntu 14.04, however, makes Java ...
3
votes
1answer
351 views

Where is my application installed? [duplicate]

I am getting errors like com.ibm.icu etc are missing from /home/jiewmeng/eclipse/plugins/*. I think it might be because I am working on the project from 2 different computers where the eclipse paths ...
3
votes
2answers
14k views

How to set `JAVA_HOME` to point to a JDK installation?

I installed sun-java6-jdk. I need to find it's home directory, JAVA_HOME must point to a JDK installation, not JRE.
3
votes
2answers
15k views

update-alternatives: error: no alternatives for

I tried to follow the excellent answer to the question How to correctly remove OpenJDK and JRE and set the system use only and only Sun JDK and JRE?, but there seem to be some side effects: ...
2
votes
0answers
394 views

Unable to start topcoder arena in Ubuntu 14.04

When I want to clear cache using javaws - viewer these error comes. I am trying to launch my topcoder arena. Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in ...
2
votes
2answers
2k views

Is actual version of Chromium browser (34.0.1847.116) compatible with Oracle Java 7 browser plugin?

I can not make it work nor find an official confirmation of compatibility. Oracle Java 7 plugin works fine with Firefox but fresh Chromium browser installation does not even list it at ...
2
votes
1answer
3k views

Install Java on Ubuntu server (Parallels Plesk)

I want to install Java to my server so I can use PHP shell_exec to compile Java online. So I'm trying to install Java on my webserver (Ubuntu - Parallels Plesk). I logged in to the server with PuTTY ...
2
votes
2answers
265 views

search command for packages in Ubuntu terminal to search updates and patches of the package specifically

Can I know what is the command to search any package using the terminal, if I only know the name of the Software like, if I want to search VLC or JDK,JRE.. etc If I do not know what is the url where ...
1
vote
2answers
6k views

How to increase memory allocated to java? java.lang.OutOfMemoryError: Java heap space

I have an Ubuntu server 12.04 using a reverse proxy so that tomcat runs on top of apache. And I have a confluence instance on that machine, and a ticket system. So nothing special. Memory is 8GB ...
1
vote
1answer
954 views

Java applets crashing in 14.04 and 14.10

PhET* simulations (java applets) crash in 14.04 (and in 14.10 [update]) after execution. Icedtea starts loading the app and gets to 100%. Then it crashes. I get an error message to use the console to ...
1
vote
1answer
4k views

Can't use Java 7 from Eclipse?

I installed openjdk-6-jre from the package manager, then I installed Eclipse, and this was the default JRE. Now I needed to install, in addition to 6, also Java 7, so I installed openjdk-7-jre from ...
1
vote
1answer
16k views

Exception on Desktop[sic!] sun.awt.X11GraphicsEnvironment

I'm trying to run different java-swing programs, which used to run before, but I can't start them from the commandline, without getting this error: java GuessGame Exception in thread "main" ...
9
votes
3answers
3k views

Does java security flaw affects ubuntu also?

There are rumors about an actual java security problem. The BSI advises people to deactivate java plugins version 7 and prior in all kind of OS, even in linux. Does this mean, I should deactivate ...
6
votes
3answers
13k views

icedtea-7-plugin non-functional in Ubuntu 13.04

I installed(sudo apt-get install) icedtea-7-plugin (and all its dependencies) and have closed firefox and reopened it; and the plugin still does not appear in http//about:plugins Is there a fix for ...
6
votes
3answers
27k views

How to fix Java problem installing Matlab 2012a (64-bit) in Ubuntu 12.04 (64 bit)?

I am trying to install Matlab 2012a (64-bit) in Ubuntu 12.04LTS (64-bit). I have installed Java 7. My Java version is: sabyasachi@sabyasachi-ubuntu:~/Downloads/R2012a_UNIX$ java -version java version ...
6
votes
2answers
35k views

How do we install Java in Wine?

I have a Windows file.exe and I need Wine and Java to open it. I don't know how to install Java in Wine. When I try to open Java setup it says Wrapper.CreateFile failed with error 32: Sharing ...
5
votes
4answers
4k views

How well does Java work on the Nexus 7?

I require Java for work purposes and standard Android would not do for me on my Nexus, hence I have decided to try to Ubuntu route. How do I successfully install Java into the Ubuntu ARM version for ...
5
votes
3answers
3k views

How to use Eclipse with the JDKs provided by 12.04?

I updated to Ubuntu 12.04 and now Eclipse does not accept OpenJDK 6 in /usr/lib/jvm anymore. I tried to install openjdk 7 and it did create two folders in /usr/lib/jvm, but neither is accepted by the ...