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
5answers
16k views

correct Installation and configuration of openJDK and R

I am relatively new to Ubuntu so I wont know a lot of commands that probably became standard to a lot of you guys. I am trying to set up R and with it the necessary java dependencies to install e.g. ...
4
votes
3answers
40k 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: ...
4
votes
1answer
163 views

What is the “path to ant” that Crosswalk speak of?

I am in the process of setting up an Ubuntu 14.04 server to experiment with Crosswalk. I have installed the Java JDK, apt-get install default-jdk and ANT, apt-get install ant. whereis java returns ...
4
votes
3answers
18k views

Cannot start Webex session. Java permission issue?

My fingers got ahead of me today and I managed to disable Java for Webex on my machine. (Install details: Ubuntu 12.04 32bit, Chrome 32.0.1700.77, Java v7, update 51, Webex working fine for a year ...
4
votes
3answers
3k views

Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04

I am not able to install LanguageTool extension for LibreOffice. Getting exception when I try to install it. p.s. Somebody says that the solution is installing openoffice.org-java-common package but ...
4
votes
1answer
5k views

Aptana studio 3 gives me a java missing error?

After downloading aptana en extracting it in my home folder I run it like so ./AptanaStudio3 After that i get a box saying A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be ...
4
votes
3answers
2k views

How to shutdown/restart/suspend … without authentication or confirmation?

I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs. As when clicking the shutdown button, why it is not asking me for ...
4
votes
2answers
875 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 ...
4
votes
2answers
1k views

Minecraft: Slow performance OUT of the game

I downloaded Minecraft yesterday to see what the fuss is about, brilliant game! When playing in Windowed mode, if I try and do anything else, i.e. use the computer, when the game is paused, the ...
4
votes
3answers
9k views

Arduino Serial Port COM1 Problem

I bought an Arduino Uno and installed Arduino IDE 1.6.5 But when i want to upload a skecht to Arduino board i take this error: avrdude: ser_open(): can't open device "COM1": No such file or directory ...
4
votes
1answer
1k views

Is there any way of adding an DSN in Ubuntu?

I am using Java-JDBC and Mysql is my database.. I want to have some Standard ODBC DSN like in windows....Is there a way of setting DSN(Data Source Name) in ubuntu for Mysql/ODBC Drivers ??
4
votes
1answer
12k views

How to install latest OpenJdk on Ubuntu?

I know that latest official openJDK is java version "1.7.0_25". But there is java version "1.7.0_40" in development. Does anyone know how to install openJDK "1.7.0_40" on an Ubuntu machine?
4
votes
2answers
1k views

Best Disk Partitioning Scheme for a Java EE Developer Machine

Are there some kind of "best disk partitioning scheme" for a linux-based Java EE developer machine, in terms of performance, organization or others? Thanks in advance.
4
votes
3answers
163 views

What happens when there are 2 versions of a terminal command installed?

For example, I have OpenJDK 6 and 7 both installed. If I run javac foo.java will is compile my program as a Java 6 program or a Java 7 program?
4
votes
1answer
11k views

Java bin file won't install manually [closed]

I downloaded a java bin file manually from here. Then I tried to install it using the following commands. But I am not able to install it. Can anybody help me to install manually? ...
4
votes
2answers
409 views

How to install Groovy?

I don't know how to install files to ubuntu. So kindly say me how to install groovy?
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
232 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
2k 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
2answers
14k views

Oracle 12c Installation Error: “Exception … Could not initialize class sun.awt.X11.XToolkit”

I have been trying to install oracle 12 c on Ubuntu 14.10 but facing the below mentioned error.Could some one please check this and advise me how to fix this error? Checking Temp space: must be ...
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
1k 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
641 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
5k 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
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
14k 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
848 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
243 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
223 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
58 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
4k views

Install JavaFX scene builder 2.0 on Ubuntu 14.10

I am beginning my work on a JavaFX application for which I am using Intellij Idea ide. I have Java 8 installed on my system and I can see JavaFXSceneBuilder 1.1 in my system installed. But as I read ...
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
489 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
220 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
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
402 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
18k 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
3answers
3k views

How can I install Openjdk on Ubuntu 16.04?

Since I upgrade to the latest version of Ubuntu, cannot install Java OpenJDK needed to compile android custom roms, when I run sudo apt-get install openjdk-7-jdk appear the following error: Reading ...
3
votes
2answers
630 views

Is the openjdk-r ppa trustworty?

I've seen a ton of blogs saying Java 8 is now available to Ubuntu 12.04 & 14.04 through the ppa openjdk-r. My question is how trustworthy is this ppa? Is it run by people from openjdk or ubuntu or ...
3
votes
1answer
9k 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, ...