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

95
votes
10answers
240k 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 ...
10
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
22k 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
39k 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
433 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 ...
7
votes
2answers
14k views

What's the difference between OpenJDK and Sun Java for the end user?

For users running Java application or applets in the browser, what difference does it make running either Sun Java or OpenJDK? EDIT Oracle will be retiring the DLJ, and basing the proprietary ...
2
votes
4answers
594 views

How to start and kill the procedure?

I have some runnable-jar files. I want to run them at regular intervals and also kill those processes after some time. I am a newbie when it comes to Ubuntu or linux in general. Can anybody suggest me ...
3
votes
1answer
981 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 ...
2
votes
1answer
6k views

Can I run a Java 32-bit application on a 64bit system

Natty 64-bit is installed. iMindmap 5 a Java 32 program will not run correctly. Is installing 32-bit Java a possible solution?
1
vote
2answers
9k views

How configure Java applet to work behind proxy?

I'm running Ubuntu 11.04 and have installed sun-java6-* packages. My workstation is running behind an authenticated proxy, I've set the gnome proxy settings system wide and almost everything works ...
5
votes
2answers
820 views

Why does Minecraft crash on Lubuntu but not Ubuntu? [closed]

I have Lubuntu and Ubuntu partitions on my drive. I've been having an interesting time with the new lubuntu partition. I've encountered strange things with the game Minecraft, Java and graphics ...
2
votes
1answer
1k views

How do I install Java 5?

I followed the approach for Ubuntu 9.10, to install java 5 but it is saying after executing the command update, E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily ...
3
votes
4answers
3k views

How do I remove OpenJDK?

I had removed OpenJDK installed by default from Ubuntu Software Center. Eclipse had been showing that Installed JRE is OpenJDK. I wanted eclipse should be configured to jdk I already installed and ...
1
vote
1answer
250 views

can't purge java bin installation

I tried doing this: sudo dpkg -P package_name sun-java6-bin and it gives me this dpkg: warning: there's no installed package matching package_name dpkg: dependency problems prevent removal of ...
420
votes
25answers
678k views

How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle? Before release Java ...
0
votes
1answer
2k views

cannot run java application from a shell script

after download and unzip the zip package, I copy the modelsphere.bat file to modelsphere.sh, and change the content to: java -ms64m -mx512m -ss16m -classpath ...
251
votes
0answers
338k views

How do I install Oracle Java JDK 7? [duplicate]

If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?
2
votes
1answer
564 views

Eclipse PDT plugin gives me trouble

Editor of PDT plugin jumbles the code and doesn't take responses in. I tried many things but didn't help at all. I was wondering what you guys are using to develop PHP applications for I am new to ...
0
votes
3answers
851 views

“HtmlConverter doesn't exist.” error when installing Sun Java 6 [closed]

I'm new to Ubuntu and Java. How do I correct this? freestyler@freestyler-HP-ProBook-4420s:~$ sudo apt-get install sun-java6-jdk Reading package lists... Done Building dependency tree Reading ...
0
votes
1answer
789 views

Java process hangs after exiting Eclipse

On my machine whenever I work with Eclipse (on Suns JDK), the java process does not terminate after I exit Eclipse. Therefore after working on several projects over the day, I sometimes need to kill ...
1
vote
1answer
373 views

Java Application + Subpixel Rendering

How i can enable subpixel rendering in java applications like NetBeans?
14
votes
2answers
2k views

Horizontal scrolling treated as right click in Java applications

I've enabled horizontal scrolling for my touchpad in Ubuntu 11.04, but when using it in Java applications (NetBeans in my case) it is instead as a right click. Horizontal scrolling works perfectly in ...
0
votes
1answer
456 views

Lua or Ruby (or something else?) for scripting?

I'm making a program in Java and I'm choosing a language for scripting. I'm aiming for speed and for being easy to learn/code for a java program. (So what I mean by Ruby and Lua is JRuby or LuaJ or ...
2
votes
2answers
4k views

Webex “Share Application” feature doesn't work

Since upgrading to 11.04, when I use WebEx in either Chrome OR Firefox, and select "Share Application" I can click on applications running on my desktop, but they aren't shared. No errors are ...
8
votes
4answers
2k views

Java is not working on some websites

I have icedtea6-plugin installed on my Ubuntu box. The weird thing is, when I am browsing the internet, certain websites are able to use Java and some websites don't. For instance, I am able to log in ...
2
votes
2answers
667 views

JNI Deleted Accidentally

I am using Ubuntu 10.04. I've accidentally deleted the jni folder in /usr/lib/ by using the root terminal. Is there any way that I can reinstall these files?, or should I reload Ubuntu?. I've tried ...
2
votes
2answers
5k views

How do I (manually) install the Java plugin in Firefox 4

I'm trying to manually install the Java plugin for Firefox 4 on Mac OS X v10.9 (Mavericks) (I got Firefox 4 from the PPA), but it seems the usual instructions don't work. I've tried doing ...
7
votes
4answers
6k views

Sweet Home 3D doesn't start

I've recently installed Ubuntu 11.04 and downloaded the "Sweet Home 3D" program from the Software Center. It installed and it shows up as one of the applications when I search for it, but I cannot get ...
123
votes
13answers
268k views

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
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 ...
16
votes
4answers
63k views

How can I enable Java in Chromium?

I've got Java working on Firefox in Ubuntu 11.04 (Natty Narwhal), but using the same page on Chromium tells me Java cannot be found. How can I enable Java on Chromium in my Ubuntu 11.04?
0
votes
1answer
524 views

I have a problem while trying to execute a command with params via Java runtime

I'm working on a Java desktop aplication to manage iptables and i want to execute iptables commands via Java, this is what i am doing: i execute from terminal gksu "iptables -L" and it worked but ...
0
votes
3answers
325 views

I cannot install Java. It locks

Here is where it locks-up: Setting up openjdk-6-jre-headless (6b20-1.9.7-0ubuntu1) ... Even control-c does not stop it. I have to close the ssh session by closing the terminal. I have tried two ...
2
votes
2answers
1k views

How can I fix the ugly fonts in java applications?

In Natty, and maybe since Ubuntu is using the ambiance theme by default, it seems java applications have a problem with fonts. This screen is easily reproducible by starting this webstart application ...
5
votes
0answers
104 views

RubyMine popups and window events die after successful system resume [closed]

After I resume from sleep, RubyMine must be restarted in order to be functional. Things like opening files, search dialog, panes, etc are all non-responsive. This may be related to java not rubymine, ...
1
vote
2answers
2k views

Issues with Java's JDBC (MySQL) for linux - Crontab job causes connection failure in java program, but when run manually is fine

So as the title states, Ive got an issue with Crontab and my Java program connecting to a remote MySQL database. The program itself is quite simple: it connects to the database, grabs two tables ...