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

4
votes
4answers
10k views

Not all TTF fonts visible from the (Sun) JDK

I wanted to use Monaco.ttf with IntelliJ. Unfortunately it doesn't show up. I also noticed that the Monaco font doesn't appear in the list of fonts got from awt: ...
4
votes
1answer
3k views

Set .JAR default action to run with Java?

Currently, with my install of Ubuntu 10.10, Java JARs by default open with file-roller. How can I set it so that when I double-click a JAR in Nautilus, it opens with Sun Java 6?
4
votes
1answer
148 views

Switiching Java version per session

I have a combination of Java7 and Java8 installed on my 14.04 machine. When I want to switch between them I do a sudo update-alternatives --config java. However, changing it this way changes the ...
4
votes
1answer
960 views

jre not installed on firefox when using Citrix Access Gateway

I'm trying to get to my vpn / citrix access gateway using Firefox 38.0 for Ubuntu Canonical 1.0 Ubuntu 14.04 and when I try to log in I get this error: JRE is not installed on your machine. Install ...
4
votes
1answer
507 views

How to set Chrome as default browser for Java installation

When going into the Java Control Panel by executing the following command in Terminal: ControlPanel And going to the Advanced tab, I see that at the bottom it says: But I have set my default ...
4
votes
2answers
3k views

Iced Tea plugin keeps asking for permission to run Java applets

Every time the browser wants to load a Java applet a dialog asking me for permission to run the java applet appears. No matter if I check the option "remember this option" or not, the dialog appears, ...
4
votes
2answers
7k views

How to uninstall Java 7 binaries installed from Oracle?

I installed Java 7 using the instructions here: http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux I want to know how to revert this i.e. uninstall Java 7. I am on Ubuntu 13.10 64 bit
4
votes
2answers
12k views

Replacing the OpenJDK with the Oracle JDK

I've had the archive file for Oracle's JDK for some time and have been running java applications through ~/Downloads/jdk1.7.0/bin/java -jar <jarfile> for some time, but I'm wondering if there's ...
4
votes
3answers
936 views

Getting the PID of the process showing a particular window

I want to know the process ID of a particular window. I have seen and used the Force close panel applet, and I'd like something similar that would report me the process ID of the window I select. If ...
4
votes
2answers
630 views

Ubuntu Jeos like minimal image for server with JRE

I need to create minimalistic server appliance for running on amazon ec2 (ami). I tried debootstrap. its coming upto 200+ MB , its same with vmbuilder also. Are there any ways of getting it down to ...
4
votes
1answer
749 views

OpenJDK not working

I have run sudo apt-get install openjdk-7-jre It says Reading package lists... Done Building dependency tree Reading state information... Done openjdk-7-jre is already the newest ...
4
votes
1answer
4k views

Error running Java web application with OpenJDK Java7 runtime in Ubuntu 14.04

I have fresh Ubuntu 14.04 install on my HP Pavilion g6 laptop. I have installed OpenJDK and IcedTea plugin in order to run Java applications as explained here. But when I am going to chess.com ...
4
votes
1answer
3k views

Multiple JDK is not working properly in Ubuntu 14.04

JDK versions (jdk1.7.0_21 and jdk1.7.0_55) Installed and Configured like below. jdk1.7.0_21 update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" 1 ...
4
votes
1answer
2k views

How can I improve Eclipse's user Interface to get rid of the excessive padding and spacing?

Eclipse Juno (historical versions too) has too much padding applied to the tabs and borders. This makes it hard to work with multiple project folders, especially ones containing multiple packages and ...
4
votes
4answers
19k views

How to update Oracle Java plugin for Google-chrome?

To begin with, I have already read the following solutions: Cannot Update Java plugin for Google Chrome How do I get Java plugin for Chrome? Installing Chrome Java Plugin How to install Oracle ...
4
votes
1answer
13k views

First time using Java Web Start in Ubuntu - Fatal Launch Exception

I've been using Ubuntu for a while and Java Web Start applications have never "just worked" in the current or any prior version, so I ignored them until now. However, now I have a need to get them ...
4
votes
2answers
4k views

How to make Minecraft run smoothly?

I have noticed that on Windows, Minecraft runs a lot smoother than on Ubuntu 11.10. What can I do to make it run smoother on here? I have a ATI Mobility Radeon HD 4250 Graphics card. I don't know ...
4
votes
2answers
1k views

What is the application of JRE in LibreOffice?

Initially when I installed Natty, JRE was not installed for libreoffice. Later I came to know installing JRE i.e., libreoffice-java-common will lead to performance improvements. So installed it and in ...
4
votes
2answers
5k views

OpenJDK vs. Oracle JDK for Android Studio

When I run Android Studio with OpenJDK installed I get a warning recommending the use of Oracle JDK. Is Oracle JDK actually better or is it fine to just stick with OpenJDK? Installing Oracle JDK seems ...
4
votes
2answers
680 views

Cannot sudo apt-get -f install because of jdk problem

I am completely stumped. The problem is as follows. user@mycomputer:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done ...
4
votes
1answer
242 views

Minecraft: right click shows cursor

I play Java progammed game Minecraft. When I place an block by using right click, it shows the cursor position over the Java application as long I hold it down. It is annoying because on Windows ...
4
votes
0answers
127 views

OpenJDK, IcedTea security settings

I am a beginner Linux user. From my knowledge the system uses OpenJDK and IcedTea only when I connect to a SAP IDES server through SAP GUI JAVA adding a string in it to connect to that server. I use ...
4
votes
0answers
48 views

Window Transparency with Java

I'm using a java application that relies heavily on window transparency it to work properly (windows apparently fade on top of each other to make them cross over each other). On Windows it works just ...
4
votes
2answers
2k views

How to unlock file, locked by a process

The file is locked by a process, java in my case. I only want the lock to be released. lsof | grep /home/user/workspace1 A temporary solution was to 'End Process' from 'System Monitor'. But ...
4
votes
1answer
462 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 ...
4
votes
0answers
2k views

How to compile and run Java file using Geany [closed]

I am trying to to compile and run .java file using Geany but its not working. Can anyone explain me why? Sorry for english.
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 ...
4
votes
1answer
121 views

Error while installing Oracle JDK 8 in Ubuntu 15.04

These commands both run successfully sudo add-apt-repository ppa:webupd8team/java sudo apt-get update But when I run sudo apt-get install oracle-java8-installer, it downloads the JDK but then ...
3
votes
5answers
486 views

Updating java version to 8 on ubuntu

I would like to update my java version (UPDATE, not install) on my ubuntu 12.04 computer. I currently have java 7.x, and I would like to update it to the newest version possible (8.0 at least) without ...
3
votes
2answers
4k views

How to update Eclipse 3.5.2 to 3.6.2?

I want to develop swing applications using the visual editor in Eclipse, but it need Eclipse 3.6. But it is already up-to-date using synaptic package manager. Is there a separate PPA for the version ...
3
votes
3answers
2k views

How can I write Ubuntu apps in Java?

I am new to linux. I want to develop apps for Ubuntu desktop and mobile using Java.
3
votes
1answer
384 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
4answers
14k views

How to set java home?

Can any one tell me, how to set java home in Ubuntu 12.10?
3
votes
6answers
17k views

Cannot execute Java program: UnsupportedClassVersionError

I have installed JDK 6, but I can't execute a Java program. For example, I have made test.java. I compile it with javac tes.java and there's no error when I compile it, but when I want to execute ...
3
votes
4answers
9k views

How can I get sikuli-ide to work?

I installed sikuli-ide with sudo apt-get install sikuli-ide Everything was fine until I tried to start it from the terminal. I typed sikuli-ide But the only response I got was [info] locale: ...
3
votes
2answers
68 views

How to launch Ubuntu Center from my application?

My Java application needs this library libswt-webkit-gtk-3-jni to run successfully. So if the user doesn't have this library installed, I want Ubuntu Software Center to be launched and tell the user ...
3
votes
3answers
3k views

When running Minecraft with OpenJDK, my keyboard becomes unresponsive?

I recently downloaded Minecraft with the .jar format and had it running on my computer not so long ago. Now that I'm using my desktop instead of laptop temporarily, I want it to run. On my laptop it ...
3
votes
1answer
2k views

NetBeans not working after update

I have been usigng NetBeans 2 years now and have encountered an issue. After a normal apt-get upgrade NetBeans stopped working altogether. After this I reinstall the JRE and JDK to no avail. However, ...
3
votes
1answer
3k views

install specific java version for 12.04

I updated my 12.04 server with latest packages among them was an update to java 1.8u20. Now I found out that my application is not running correctly with java 1.8u20. Now I looking for a way to ...
3
votes
2answers
17k views

Oracle Java Virtual Machine install?

I cant get it install and I need it running for a job application i need to put in online. jre-7u51-linux-i586.tar.gz that's the file and every time I try to install it wont complete, says cannot ...
3
votes
3answers
37k 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: ...
3
votes
1answer
18k views

How to install Jad?

I'm very new to Ubuntu. I need a way to install Jad in my system. Can anyone help me this out?
3
votes
4answers
3k views

How do I open .jar files without using terminal in manually installed java?

How do I open .jar files without using terminal in manually installed java? . I tried open with dialog but java is not there .so How do I manually create it? Edit I want some thing like this
3
votes
2answers
5k views

How do I get the Java plugin in Firefox 3.6 working? [duplicate]

Possible Duplicate: How can I install Oracle Java JRE 7? I have Ubuntu 10.10. I needed the Sun Java so I added Sun Oracle as supplier of packages and installed java-6. However, I haven't ...
3
votes
1answer
29 views

cannot build Java programs in Geany Editor?

Something error with Geany cannot build java programs. when i click on build i get output like :- make: *** No targets specified and no makefile found. Stop. PS: Nothing problem with JDK. Run ...
3
votes
2answers
64 views

Desktop shortcut for Java executable doesn't connect

[EDIT: Typing cd CashAdv THEN ] Running java -jar /home/bigaisdgood1/CashAdv/CashAdv.jar in a terminal would run my program correctly and has no problems. However, when I use that line of code in a ...
3
votes
2answers
6k views

Problem running jar from gui in 15.04

I updated ubunut to 15.04 today. Now when I try starting a jar file from the gui it only opens the archive manager. Checking the open with tab in Properties I can't find Openjdk. I got both Openjdk ...
3
votes
1answer
10k views

JDK 8 install in ubuntu [duplicate]

I'm tring to install jdk 8 for weeks, but it fails.Following are some outputs, sudo update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): ...
3
votes
3answers
6k views

“MOZILLA_FIVE_HOME not set” Zekr Qur'an study software java error

I installed Zekr Qur'an study software on Ubuntu 12.04 and I upgraded to 12.10. Then the Zekr app started giving me this error whenever I start it. org.eclipse.swt.SWTError: No more handles [Unknown ...
3
votes
4answers
3k views

Chrome reports Java plugin outdated

I've just installed the latest version of JRE (7u5) and Chrome still reports that it's outdated. When I go to chrome://plugins/, it shows the following line for Java: Java - Version: 1.7.0_05 ...