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

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
4k 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
9k 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
19k 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
28k 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
871 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
13k 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
10k 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
45 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
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
18k 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
6k 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
13k 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
5k 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
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
801 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
3answers
810 views

Message on each startup of Java after upgrade to 15.04

I just upgraded to 15.04 and noticed that on any Java program launched, the message Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar is printed to the console (which did not ...
3
votes
1answer
471 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
601 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
1answer
433 views

How to raise user notifications in Ubuntu using java code?

How to raise user notifications in Ubuntu using Java code?
3
votes
1answer
10k 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
11k views

how to run java program in ubuntu in following situtations

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
944 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
9k 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? ...
3
votes
1answer
3k views

How to set up Java-based services for startup?

What's the best way to set up a Java-based program to run an service and start on boot? upstart (pre-start script and post-stop script ?) plain old SysV init? (start-stop-daemon ?) In my case I am ...
3
votes
2answers
1k views

Running J2ME (Java Micro Edition) Applications

What's the easiest way to run J2ME (Java phone apps) on Ubuntu?
3
votes
1answer
2k 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
541 views

Pogo.com games won't work, says outdated java

I am trying to get my Ubuntu 12.04 laptop to be able to run games on pogo.com First none of the games on pogo would work because of outdated flash. Then I learned of google chrome with pep flash and ...
3
votes
1answer
7k views

Java memory usage ballooning to all RAM when running Minecraft Server

When I run Minecraft server, over time (a few hours to a few days) the memory usage by Java balloons to take up all available computer memory and the server performance then degrades: lags, players ...
3
votes
2answers
186 views

Ubuntu with Java Error

I have Oracle Java installed on my computer. Latest version 1.7 and path variables set properly. But most applications in Ubuntu from Software Center that require Java needs Open JDK Iced Tea etc. I ...
3
votes
1answer
1k views

Install JUnit with Oracle Java 7 already instaled

I am running Ubuntu 12.10 with Oracle Java 7 installed (as described here). I want to install JUnit 4 but if I do a simple sudo apt-get install junit, it starts to download openjdk and the like (which ...
3
votes
3answers
11k views

install red5 server on an ubuntu12.04 server

I've been struggling with this during 2 weeks without get it done. I'm building a website where the users will have to record a video and post it as there cv and for this I need a RTMP server. I ...
3
votes
2answers
4k views

Oracle Java 7 on Linux PowerPC

I give up trying to figure this one out on my own. The information on this website: http://www.yellowdog-board.com/viewtopic.php?t=2935 and on this one: ...
3
votes
2answers
9k views

Unable to understand what jdk location is

I have java installed correctly for sure. 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 ...