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
0answers
1k 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 ...
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 ...
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
1k 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
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
6answers
15k 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
2answers
67 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
2k 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
16k 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
2answers
3k 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
2answers
11k 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
2answers
21k views

Why can't I run Java Web Start Applications?

I have Ubuntu 12.10 for x86-64 on my PC and I'm trying to run a .jnlp file. I've installed Java 7 and the Java plugin for Mozilla Firefox manually (Because there is no .deb package for Java 7 for ...
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: ...
3
votes
4answers
887 views

Eclipse on Ubuntu 10 java-6-openjdk has missing jar's

Out of the blue, my eclipse is reporting missing jars in my Java Build Path. netx.jar gnome-java-bridge.jar plugin.jar I wonder what I did wrong ? Was it a upgrade that messed it up ? I am unable ...
3
votes
1answer
14k views

Cannot Update Java plugin for Google Chrome

I keep getting the "Java plugin out of date" box whenever I open a page with embedded Java. I use the link provided, which has no auto-install. I've unzipped the tarball into /usr/lib/jvm/. I've used ...
3
votes
2answers
20k views

Oracle Java 7 Removing Error!

fellow Linuxeers! So, I've had this problem recently when I tried to remove Oracle's Java 7 after it didn't want to work correctly. So, when I tried to: sudo apt-get purge oracle-java7-install I ...
3
votes
3answers
11k 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 ...
3
votes
2answers
1k views

How to read OpenJDK 7 documentation (or other -doc) packages?

I have installed openjdk-7-doc but I cannot find where to read the documentations of the APIs? E.g.: How to find/read "String class" API documentation I prefer GUI-based over command-line but I also ...
3
votes
2answers
8k views

Cannot load SWT library “UnsatisfiedLinkError: no swt-gtk-4233”

I'm a Java newbie who just a made a simple Java program using SWT for GUI via eclipse Juno. The code was working and the program was able to run inside eclipse, so I compiled it and made it a runnable ...
3
votes
2answers
2k views

How to get rid of buggy IntelliJ IDEA dialog that won't go away?

This is a bug I run into every couple of days, with IntelliJ IDEA's "Go to Class..." (or "Go to File...") dialog. Usually it closes normally (when a class is selected or Esc pressed), but sometimes ...
3
votes
2answers
55 views

Automatically doubling the value of numbers in a string in multiple files

I'm trying to modify Java source code in numerous .java files that contain strings similar to this: private static final Height biomeHeight = new Height(0.1F, 0.2F); There are over 75 and I'd like ...
3
votes
3answers
1k 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 ...
3
votes
3answers
12k views

upgraded to 13.04 now getting JREDetection "Your security settings have blocked an untrusted application from running

I upgraded Ubuntu 12.10 to 13.04 upgraded java to 1.8.0-ea-b118 and still cannot run my application to connect to my office. I have checked all the options and spent all day looking for hits on this ...
3
votes
3answers
20k views

Error: JAVA_HOME is not defined correctly - after maven installation

I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc: export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH This looks a little bit strange but it's really my path. After ...
3
votes
1answer
7k views

Desktop link to Eclipse

I was tring to install eclipse on ubuntu. What I did: I unzipped the tar archive of eclipse. I tried to start eclipse from the command line - like this - ./eclipse. It works. But then I tried to ...
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
1answer
6k views

java_home directory is not correct though it exists in my environment file

I'm using Java jdk with Maven and I have the following /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" # Maven Settings ...
3
votes
2answers
1k views

How do I install a 32-bit Java runtime on an amd64 server with multiarch?

I'm a long time Ubuntu user, but I haven't been following the community for the last several versions. I just did fresh default minimal amd64 install of Oneiric and I need a 32-bit JRE for a ...
3
votes
2answers
4k views

How to install gcj? [closed]

It seems I need to install gcc but:
3
votes
1answer
11k views

How To Install JAVA EE in Ubuntu 11.04 properly?

I am totally new to Ubuntu and just installed it for the first time. I am trying to install JAVA EE in my ubuntu. I downloaded it from oracle website and its an .sh file. I followed instructions from ...
3
votes
1answer
823 views

How to run java 1.5 applets inside my web browser?

I need to run an applet that requires java 1.5. It does not matter if I should uninstall java 6. Even doesn't matter if it applies for firefox or chrome. I am using Ubuntu 10.04
3
votes
1answer
574 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 ??
3
votes
1answer
625 views

Java not working in Google Chrome Lubuntu 14.04 (32-bit)

I have Java 1.7.0_55 installed I have gotten it to work on firefox. My installed chrome version is Version 35.0.1916.114. I have already created the plugins folder in the chrome directory and made a ...
3
votes
2answers
6k 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
3
votes
1answer
503 views

How to raise user notifications in Ubuntu using java code?

How to raise user notifications in Ubuntu using Java code?
3
votes
1answer
11k views

How to install latest OpenJdk on Ubuntu? [duplicate]

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?
3
votes
1answer
13k views

How to run a Java program in Ubuntu in the following situations

sachin@sachin-Lenovo-G550:~$ java -version java version “1.7.0_21″ OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1) OpenJDK Server VM (build 23.7-b01, mixed mode) When I ran the ...
3
votes
1answer
1k views

How do I upgrade to the latest Java 7 while not losing my existing Java dependencies and add-ons?

$ uname -a Linux X51 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux $ java -version java version "1.6.0_23" OpenJDK Runtime Environment (IcedTea6 1.11pre) ...
3
votes
1answer
13k views

How to downgrade Oracle Java 7 to Java 6?

I recently changed my Wubi install into a full install, which runs a lot smoother than Wubi. I had to re-install all my stuff, because I did it the lazy-man's way, and after reinstalling Java, I ...
3
votes
1answer
949 views

Is it necessary to have openjdk 6 installed in Ubuntu 12.04?

Is it necessary to have openjdk 6 installed in Ubuntu 12.04 or will openjdk 7 provide all the support I will need for Java functionality (generally speaking)?
3
votes
3answers
2k views

How to run .jar files with Sun Java 6?

I cannot seem to open Minecraft.jar from the file browser. Everytime I try, I select open with, then Sun Java and nothing happens. I've tried the terminal too, but that fails and just reports a load ...
3
votes
1answer
5k views

Installing tomcat from repo with Java from Oracle

Since Java 6 from Oracle is not supported with Ubuntu repositories anymore, I installed it by downloading the package from java.oracle.com, unpacking it in /opt and adding symlinks in /usr/bin. Now I ...
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: ...
3
votes
1answer
271 views

How to confirm sun java 6's license agreement automatically?

When I install this: sudo apt-get install -y sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-plugin I am still forced to select OK and YES during the install. The -y switch doesn't work for ...
3
votes
2answers
2k views

Davmail Java terminates with SIGSEGV after 11.10 Upgrade

One of my favorite programs, davmail, crashes now after upgrading to 11.10. Just checking if there is a quick fix before I submit a bug report. Thanks. $ davmail # # A fatal error has been detected ...
3
votes
1answer
956 views

How do I uninstall all instances of Java and blacklist it from being installed again?

For security reasons I want to remove/uninstall all instances of Java from my computer and prevent it from being installed again. On Windows computers I would simply just not install the software ...
3
votes
1answer
10k 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? ...