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

11
votes
2answers
10k views

Changing JVM in Java

I only recently discovered the different JVM's on the wiki page and thought I'd start tinkering. Its been difficult to find documentation on how to configure Java on Ubuntu though. Lets say I wanted ...
0
votes
1answer
2k views

Java: Permission Denied

I currently only have Sun JDK7 installed on my system in regards to Java. When I try to run a program (the Unix Runescape Client), here is what comes up in my terminal: Trying to read ...
2
votes
2answers
8k 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.
0
votes
1answer
295 views

What do I install to get Java to work on Ubuntu 11.10 running on Virtualbox? [duplicate]

Possible Duplicate: How to install Java? I have tried many things and nothing works. What files do i need to download for this to work? there is no internet connection in ubuntu, so I ...
0
votes
3answers
320 views

I cannot install any packages from terminal or software centre. Please help!

Whenever i try to install software from software centre, it says package dependencies cannot be resolved. I have tried restarting, sudo apt-get update/upgrade/clean. I am very new to ubuntu, and I ...
1
vote
2answers
196 views

I can't put my java jdk7 file into my usr/lib because it says Permission denied when I click show more [duplicate]

Possible Duplicate: How to install Java? It gives me a error message saying that I need to have permission. My account is unlocked so I assumed that would fix it but that did nothing. ...
0
votes
2answers
593 views

Firewall configuration and consequences

I'm using Ubuntu 11.10. And I want to know something about firewall in Ubuntu, because I want to know if it could be the reason why my application doesn't work properly. Little background: I'have ...
0
votes
1answer
2k views

Eclipse Menu Disappeared (another one) [duplicate]

I encountered the (most likely) same strange behaviour as another user, but I'm quite certain, it has something to do with an update to Ubuntu itself within the last week or two. What have I done? - ...
2
votes
0answers
766 views

netbeans is not starting [closed]

I am using ubuntu 11.10 and installed netbeans today. The installation completed without any errors. But when I double click on the net beans icon in my desktop... the program doesn't start. What ...
2
votes
1answer
299 views

How to add fastdebug jdk build to the alternatives? [closed]

I installed fastdebug build of JDK 6 (Linux x64 version, since there is no Ubuntu specific build) in /usr/lib/jvm directory, manually set during installation process. Installation completed ...
3
votes
1answer
3k 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 ...
0
votes
2answers
3k views

How do I remove SUN Java and use OpenJDK instead?

As a programmer I use java for learning to code in Netbeans. I installed Sun java 6 long time ago over openJDK that came with my ubuntu just cause it seemed more responsive... Now that oracle left ...
2
votes
1answer
771 views

Why fixing broken packages / installation in Ubuntu 11.10 takes very long time for Java6?

Sometime back, I was installing Java JDK and JRE as: sudo apt-get install sun-java6-jdk sun-java6-jre Due to some problems, the installation stopped and it remained broken. As we know, one cannot ...
13
votes
4answers
51k views

How can I execute a .jar file from the terminal

I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a .jar file using the . and it does not work. I went into the properties and ...
1
vote
1answer
539 views

Does libpg-java support passwordless login? [closed]

The following command runs fine, that is, doesn't ask for a password, prints no warnings or errors, and simply provides a DB prompt: $ psql -U dbuser dbname psql (8.4.10) Type "help" for help. ...
0
votes
1answer
849 views

./configure not working [duplicate]

Possible Duplicate: How do I install tar bz2 and gz files? I am trying to install Java 7 via tar.gz, but when it comes to the command "./configure", it says it don't exist. I am using ...
13
votes
9answers
26k views

Minecraft in jdk 1.7.0_u2 x64

I have Ubuntu 11.10 64-bit and I installed JDK 1.7.0 update 2 x64 via webupd8 page. But currently I have problem with minecraft game. After downloading launcher from Minecraft.net and lauch the game ...
0
votes
1answer
5k views

How to get the java compiler for ubuntu?

I am in a Java class in my college right now, and we have to be able to compile java programs via the terminal. I would like to keep using my Ubuntu installation for it though. whenever I try to ...
0
votes
1answer
6k views

Java location in Ubuntu using which Java [duplicate]

Possible Duplicate: How to install Java? How to replace OpenJDK 6 with OpenJDK 7? I've installed Java in Ubuntu and generally it seems to be ok, but now I'm trying to upgrade to OpenJDk 7 ...
10
votes
3answers
16k views

How to make a jar file run on startup & and when you log out?

I have no idea where to start looking. I've been reading about daemons and didn't understand the concept. More details : I've been writing a crawler which never stops and crawlers over RSS in the ...
1
vote
1answer
876 views

How to install a specific version of java? [duplicate]

Possible Duplicate: How to install Oracle Java JDK 6? I want to install JDK 6u30 or later on ubuntu (but not java 7), how can I do so? I'm on ubuntu 11.10
1
vote
2answers
899 views

How to install Java and which version of it?

I'm on Ubuntu 11.10 and I wanna know which version (OpenJDK or Sun's one or whatever) is the best to develop applications and use it with Eclipse, and how to install it. Thank you.
9
votes
5answers
2k views

How do I make my java app compatible with the unity global menu?

I like to develop in Java but also want compatibility with the global menu? Is there a way? Please help.
3
votes
3answers
6k 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
151 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?
2
votes
1answer
205 views

Where is Netbeans? [duplicate]

Possible Duplicate: How do I install Netbeans? I did some search and it appears that Netbeans IDE should be available through the Ubuntu repositories. But it's not! I'm wondering if I'm ...
3
votes
1answer
460 views

Poor Audio in Blackboard Collaborate (Elluminate Live) on Ubuntu 11.10

I already have Sun Java (not OpenJDK) installed, but I'm still having audio issues. OpenJDK didn't display the slides, which was fixed by Sun Java, but the audio was bad in both of them. Is there any ...
0
votes
2answers
440 views

How do I install javahl _without_ pulling in all the openjdk stuff?

On my linux box (oneiric, 64bit) I'm running Eclipse and java straight from the Eclipse/Oracle tarballs. I'd like to install the javaHL subversion libraries, which according to the subclipse wiki are ...
1
vote
2answers
942 views

Failed to parse Adb version -Wrong ELF Class

My PC CONFIGURATION : UBUNTU 11.10 version 64 bit , ECLIPSE 3.7 , ANDROID SDK I tried hard to remove adb error but itsms not working and showing following Errors: /platform-tools/adb:Error While ...
0
votes
0answers
3k views

How can I install OpenJDK 7 on 10.04 LTS? [duplicate]

Possible Duplicate: How do I install Java? I noticed it's available on 11.10, but is there a backport to lucid 10.04 LTS?
1
vote
0answers
233 views

Why do I get a “LiveConnectPermissionNeeded access denied” error when using Java applets that record audio? [closed]

I'm using OpenJDK and the IcedTea Plugin for Firefox. Java Applets generally work, but those trying to record audio are crashing with this error message: Error on Java side: ...
0
votes
0answers
92 views

Eclipse Menu Disappeared [duplicate]

Possible Duplicate: Global menu disappears in eclipse Somehow the eclipse menu disappeared suddenly.I don't know what the problem is. I tried reinstalling and removing the eclipse ...
0
votes
2answers
819 views

32 bit Java on 64 bit Ubuntu

Will Sun Java 6 Update 30 (32 bit version) work on Ubuntu 10.10 (64 bit version)? I should use Sun instead of OpenJDK because the support people for the API I am interfacing to referred me to Sun. I ...
7
votes
2answers
412 views

How can I submit a NetBeans project to Ubuntu App Developer?

I have made a Java application for Ubuntu in NetBeans and would like to submit it to the Ubuntu Software Center. But the problem is, when I get the upload form, they ask to choose a file. So what do I ...
5
votes
3answers
732 views

How to revert back to OpenJDK?

I had installed sun-java, but I want to revert back to OpenJDK 7. I was trying to re-install from the terminal using the command sudo apt-get install openjdk-7-jre, same from Synaptic and Software ...
3
votes
2answers
479 views

Installing mods on Minecraft 1.0 does not work for Mo' Creatures

In attempting to get the Mo' Creatures mod working on Kubuntu 11.10 with OpenJRE-6 I get the following error: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) ...
2
votes
2answers
1k views

Firefox 3.6.24 does not see Java plugin

6 Jan 2012 v.puzzled, Ubuntu 10.04 Lucid Lynx, Firefox 3.6.24, sun-java6-plugin 6.26-2lucid1: Firefox does not seem to even know that the java plugin is there (it is installed, and re-installed), ...
3
votes
1answer
10k 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 ...
2
votes
1answer
976 views

Openjdk-7-jdk some commands not recognized?

I installed openjdk-7-jdk using apt-get install. However, when I type 'javac', the terminal says, 'bash: /usr/bin/javac: No such file or directory'. I think the link is broken, but how can I fix it? ...
1
vote
2answers
2k views

How do you run a java program from a bash script?

I am trying to run a minecraft server from a "run.sh" script. So far I have this: #!/bin/sh java -Xms512M -Xmx2048M -jar minecraft_server.jar nogui I'm running the script from the same directory as ...
3
votes
1answer
4k 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 ...
2
votes
1answer
350 views

Unable to record sound from web browser (firefox / chromium ) using recordmydesktop

I have to do some screencast tutorials and i am using recordmydesktop with gtk frontend to do it. I need to record also the sound and here is where i have found the problem. It took me some time, but ...
1
vote
0answers
5k views

Sun's JDK on Ubuntu 11.10 Server Edition [duplicate]

Possible Duplicate: How to install Oracle Java JDK 6? How do I install Sun's JDK6 on Ubuntu 11.10 on command line ?
0
votes
0answers
2k views

Installing Sun Java JRE, JDK? [duplicate]

Possible Duplicate: How to install Java? The OS is returning an error upon attempting to install the Sun Java packages. I've already uninstalled the openjdk packages and added these to the ...
0
votes
2answers
516 views

I installed the OpenJDK-7 but my runtime environment wasn't upgraded to 7?

I installed openjdk-7-jdk, "javac" was version 7 but "java" was still version 1.6, any way around this? No updates are available.
1
vote
2answers
414 views

Which Java versions support global appmenu

yesterday after few updates (some of them in java) the Eclipse lose ability to move it's menu to the global-menu bar. I was try to remove/add different java from the ubuntu's repositories but it ...
2
votes
2answers
627 views

Getting Java working again in 10.10? (or force newest version of OpenJDK?)

Recently, the games on Pogo.com stopped working with Sun Java in Ubuntu 10.10. I have my dad running 64bit Ubuntu 10.10 because it works fine for him and he has had no reason for an upgrade (and didnt ...
16
votes
5answers
4k views

Java application launcher not staying in Unity launcher

I'm using IntelliJ IDEA, which is a Java application. When it runs (invoked through Dash) it shows a launcher icon with no name. I've tried several times to right-click and select "keep in ...
0
votes
1answer
2k views

Removing openjdk-6-jre without the installation of sun-java6-jre

I have alrady installed (manually, from the .bin file) the latest jre (Version 6 Update 30) from oracle and now i want to remove the openjdk-6-jre. However, apt forces me to install old (Version 6 ...
0
votes
1answer
476 views

sun java being dropped 'TBD' but when? [duplicate]

Possible Duplicate: Will Sun's Java be available from Canonical's partner repository? In this article https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/Java6Transition I read that java ...