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

0
votes
2answers
247 views

What are the disadvantages of adding the repositories from 11.04 to 11.10?

The reason I'm doing this is to have Sun's java 6 installed (getting updates, etc.) In 11.10 Sun's Java was removed from the partner repository. What do you think are the potential disadvantages?
0
votes
1answer
2k views

Why can I not see Java applets in Firefox 8 on Ubuntu 10.04?

Examples are the Java "Play Against The Computer" applet on a chess website; there is also the Java chat room on another website that just shows a white area where the chat room was supposed to be. I ...
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 ...
74
votes
9answers
245k views

How to completely uninstall Java?

How can I completely remove all traces of Java on my system? I already know how to install it in case I need it again.
1
vote
2answers
2k views

sudo apt-get install returns a 404 error but ping returns packets. Is it a problem with my network configurations?

I'm trying to install openjdk on an Ubuntu 11.04 VM in a Mac. However, I'm running into 404 errors on the command line which I can't diagnose why. sudo apt-get install openjdk-6-jre-headless ... Err ...
2
votes
4answers
21k views

Netbeans 7.0.1 installed but won't run

I installed Netbeans 7.0.1, and I've made sure to install all the JDKs and JREs I could find. It installed without errors. I also saw this question and made sure I followed all the instructions there ...
6
votes
4answers
32k views

How to get icedtea7-plugin?

On Ubuntu 11.10 (oneiric), I installed openjdk-7-jre openjdk-7-jdk but could not find icedtea7-plugin. How to get the plugin? $ java -version java version "1.7.0_147-icedtea" OpenJDK Runtime ...
2
votes
2answers
3k views

Problem installing the latest eclipse IDE

I'm running ubuntu 11.04. I'm trying to install the latest "eclipse for java developers" IDE (version Indigo 3.7.1). I have downloaded and extracted it. I attempt to run it by changing to the ...
5
votes
3answers
41k views

Install Eclipse IDE for java ee dev via apt-get. Is it Possible?

I try install Eclipse IDE for Java EE Developers. I run in terminal this command: sudo apt-get install eclipse This ends successfully. But when I see it, is installed the Eclipse Classic Version ...
3
votes
2answers
16k 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
1answer
675 views

Icon for java is low resolution on launcher

On Ubuntu Oneiric, I am mildly annoyed by the icon that apparently Java programs give themselves by default. It is too low a resolution. I have 'emblem' set as the overlay icon for Compiz's scale ...
2
votes
1answer
343 views

Error trying to install the Java SDK

I need to install the Java 6 SDK, but after running this: sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source I end up with this: Reading package lists... Done Building dependency ...
2
votes
2answers
2k views

How to run a script at startup?

i want to start a java application at start up. I added the script file in init.d and the process got started . But the owner of the process is root. So when the java process is trying to write a ...
7
votes
4answers
12k views

Cannot update Eclipse due to conflicting dependencies

I installed Eclipse via the Ubuntu repos (I'm on Ubuntu 11.10). Then I added the Indigo repo (http://download.eclipse.org/releases/indigo/) as only Helios repos were listed as part of the default ...
0
votes
2answers
291 views

Eclipse Execute from Home - Eclipse.org Version

Due to a lot of minor errors with the eclipse from the repository( cannot install mylyn or pydev due to unmet dependencies) I manually downloaded from eclipse.org. I have not had this problem before ...
1
vote
2answers
484 views

Killing Subprocess in Ubuntu NOT the Parent?

I want to kill a process in Ubuntu. I have Java installed and Running JBOSS & Tomcat at background. I need to kill Tomcat after deployment but when I kill it JBOSS is going too. I had to use ...
1
vote
1answer
19k views

Java - Could not find the main class

When I try to run a simple Hello World program using I keep getting a message saying Could not find the main class. I found this thread: http://ubuntuforums.org/showthread.php?t=1163850 but it was no ...
3
votes
2answers
2k 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 ...
0
votes
4answers
14k views

How do I install Java (from tar.gz)? [closed]

I'm trying to install Java. Please help.
0
votes
1answer
1k views

Skillsoft player problem in Firefox 7.0.1

I have got an online course to learn. It is implemented using SkillSoft player. But, when I lauch it using Firefox 7.0.1, it is showing me an error: Any fix?
2
votes
1answer
364 views

Problem installing Java

I have not used the Ubuntu software center or the apt-get for java installation. Learning from a Ubuntu discussion thread that a manual download and install would give me the capability to place java ...
0
votes
2answers
838 views

Cannot play Blocks That Matter indie bundle game

I have installed latest JDK 1.7.0_u1 using the method provided at this page WebUpd8. I have also extracted the deb setup I got and edited the control file so as not to install java6. I'm getting the ...
0
votes
1answer
223 views

Help getting TED working and having it integrated with dash/menu

I have installed latest JDK 1.7.0_u1 using the method provided at this page WebUpd8 Now i need help to get Torrent Episode Download Running .. I'm noob in these matters please help me and guide me ...
3
votes
1answer
277 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 ...
1
vote
0answers
295 views

How do I install non-free Java? [duplicate]

Possible Duplicate: How do I install Oracle Java JDK 7? How do I install non-free Java in 11.10? I have read https://help.ubuntu.com/community/Java, however, it seems rather outdated. For ...
1
vote
1answer
1k views

X Window System error on Ubuntu - BadWindow > (invalid Window parameter) when using IntelliJ

I am having trouble running a java program on Ubuntu 10.04 desktop with jdk1.6.0_24. The application works fine on windows platform and starts up fine in Linux, it just crashes with the following ...
0
votes
2answers
194 views

Any package is not installing in my machine after downloading java. Give solution for my Problem

I tried to install java. Immediately after download i just quite the terminal. Happening that i'm unable to install any thing. My machine giving the following information. What i've to do? sudo ...
2
votes
0answers
257 views

How do you get window management (window titles etc) working properly for java applications? [closed]

I use several Java applications in my Ubuntu workstation, but they are grouped as one application in the window manager and don't have their application titles. It's frustrating not to be able to Alt ...
1
vote
1answer
1k views

Minecraft crashes when creating a new game

So, just upgraded to Oneiric and I find there are quite a lot of bugs... One of them is when I try to launch Minecraft and create a new game, it crashes. I get this error code.
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 ...
2
votes
2answers
2k views

My Java install is broken

I have recently upgraded to Ubuntu 11.10 and was noticing that Java was not working on a few websites and ran a check: keith@KD-PB:~$ java -version java version "1.5.0" gij (GNU libgcj) ...
95
votes
10answers
242k views

How do I install Oracle JDK 6? [duplicate]

Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10. Could someone please provide me the instructions for the same?
2
votes
2answers
5k views

Which java packages do i need to run when installing Aptana?

I download the latest Aptana 3.0.5 after reinstalling ubuntu 11.10. I place aptana in the /opt/ folder. Upon trying to launch the application it warns me with: A Java Runtime Environment (JRE) or ...
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 ...
5
votes
2answers
37k views

How to show java plugin console

In windows, when I open a web page containing applet, icon of java plugin console is displayed in systray. But in Ubuntu, I don't find any way to show java plugin console. How can I open java plugin ...
2
votes
0answers
1k views

Any way of changing NetBeans application font? [duplicate]

Possible Duplicate: Ugly fonts in Netbeans - How can i make it use the system font? I'm running Ubuntu and Netbeans 7.0.1 and default fonts look like ... Why, oh why it looks so hideous ...
2
votes
1answer
1k views

Sun-Java-6 Incorrect classpath/java.home problems in finding tools.jar

I installed sun-java6-jdk and sun-java6-jre (and likely other related java6 packages such as fonts) for a project running on a Ubuntu 11.04 server distribution. Our project programmatically calls ...
11
votes
5answers
2k views

Why do most GNOME developers prefer Python over Java for GTK+ programming? [closed]

I only know C and Java. And I really don't want to learn another language when I can work with what I already know. I haven't ever written a GTK+ application, but I am planning to start with an ...
3
votes
2answers
5k views

How to install gcj? [closed]

It seems I need to install gcc but:
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 ...
14
votes
5answers
11k views

Will Sun's Java be available from Canonical's partner repository?

I just discovered that Oracle's (Sun's) Java6 has vanished from the Canonical's partner repository. Before Java was taken from all repositories I had purchased Minecraft for play in Ubuntu. After ...
2
votes
0answers
1k views

Java class not found error when opening Citrix [closed]

When I try to open Citrix,I am getting below error. Please advise. Ubuntu : 11.04 Firefox : 7.0.1 Sun Java Version :1.6.0_26 load: class com.citrix.ConnectionCenter not found. ...
34
votes
4answers
71k views

How to replace OpenJDK 6 with OpenJDK 7?

Surprisingly (as OpenJDK 7 was released to general availability about 4 months ago) Ubuntu 11.10 still uses OpenJDK 6 instead of 7 by default. How do I best fix this? I'd prefer to remove OpenJDK 6 ...
7
votes
2answers
23k views

How to install/use JUnit?

I have installed JUnit on my Ubuntu 11.04 sudo apt-get install junit Then created a test file like: import org.junit.*; public class TestBasicLinkedList { @Test public void testCanAdd(String[] ...
2
votes
3answers
2k views

Where are Java JDK Sources?

I installed Java JDK but where can I find the sources? For one my homework, I'm asked to refer to one of the files ... check the source code of java.util.LinkedList. The Java source code of ...
0
votes
2answers
293 views

Forced-quit Sun JDK installation through terminal [duplicate]

I downloaded the package and went through the installation process. I was first prompted with the license. There was an unclickable button which, as the tutorial said, I had to click. So I closed the ...
6
votes
4answers
40k 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 ...
1
vote
1answer
3k views

Where is the openJDK console window?

I am used to java-sun JDK on windows and its console: It is very convenient to debug an applet. Is there such console with open-jdk on ubuntu?
1
vote
1answer
442 views

How to downgrade user permissions on a java app after opening port 80/443

I'm a Java developer writing a web app (Jetty server). Are there any guides out there are how I might downgrade user permissions using Java? Most native Linux apps will start as root, open ...
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 ...