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

2
votes
2answers
10k views

Error when installing oracle-java7-installer

I'm trying to install Java 7 on my Ubuntu 12.04. But everytime I try, it always shows error like below. This is when I'm trying to upgrade even when the Java 7 is not installed ...
2
votes
2answers
24k views

How to setup Java-Home and Path in Ubuntu 12.04

we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed ...
0
votes
1answer
12 views

openjdk-7 gdb list main.c sources error

I'm currently struggling with debugging openjdk in Trusty Tahr. I already installed opejdk-7-jdk openjdk-7-dbg. When I issue gdb java I see it reads the symbols properly, but when I ask to list the ...
2
votes
3answers
357 views

Unistall Eclipse installed in /opt

I need Java Eclipse, but accidentally installed the C++ one using the steps from here Installing Eclipse Kepler and Java JDK How do I actually remove the C++ one completely? I tried just removing the ...
1
vote
2answers
79 views

Installing java 8 on ubuntu

I am trying to install Java 8 on Ubuntu. Due to restrictions on download at my work place, I cannot install using apt-get. Hence, I downloaded the archive from Oracle's website, named ...
0
votes
1answer
12 views

Can't find window builder on ubuntu

I am searching for window builder in eclipse.Learning JAVA.Can anyone help me about this??
0
votes
1answer
12 views

Installing Tomcat in ubuntu

I have download apache-tomcat-x.x.x.tar.gz from apache . I have extracted it and set the CATALINA_HOME. Have given permission to all the sh file to bin. While running catalina.sh jpda start, then I am ...
0
votes
0answers
21 views

Bash question with system processes? Stopping and renicing “Java” processes

I play minecraft on linux, and I would like to make a Bash script that does two things. First, I would like it to close the minecraft launcher's process. Secondly, I would like it to renice the ...
22
votes
3answers
30k views

How to install OpenJDK 8 on 14.04?

IMPORTANT: If you need this in 14.04, vote for this bug: https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1341628 Java 8 is now available according to ...
0
votes
1answer
21 views

/usr/bin/java working only with sudo

I hope you can help me with the following problem. I have a problem with installing oracle jdk. After installing using update-alternatives: sudo update-alternatives --install "/usr/bin/java" "java" ...
0
votes
0answers
8 views

Ugly fonts in Java Swing Applications even with openjdk-fontfix

I have a problem with Java Swing applications such as Intellij Idea or Pycharm. I use Ubuntu 14.04 with openjdk-fontfix and jayatana PPAs installed. All fonts in Pycharm, for example, are rendered ...
0
votes
1answer
484 views

How can I scale Java-based applications up for a high DPI screen?

There are some applications (mainly java based) that don't follow the global 2x scale I set in the screen-settings. So these apps are really tiny on my high DPI screen with 3200x1800px. How can I get ...
0
votes
1answer
30 views

I have java web application i want to put it on web(public internet) how i can do it [closed]

I have created one java web application i have it in netbeans and iam using tomcat application server. It's got deployed on localhost but i want to put it on internet so anyone can access it. please ...
3
votes
4answers
4k views

freemind wont run despite OpenJDK JRE installed

I install freemind from USC Ubuntu 12.04, but it failed to run with the following error: " [warning] /usr/bin/freemind: No java runtime was found [error] /usr/bin/freemind: Unable to find an ...
1
vote
2answers
32 views

Open Java program from SSH into VNC display

If I have an Ubuntu 12.04 system that has LXDE and TightVNCserver installed and run a session on port :1 (not tunneled through SSH) and an active SSH connection, then how can I use SSH to start a ...
2
votes
3answers
7k views

Java Oracle Installation /usr/bin/java: cannot execute binary file

Hi I've been trying for 1 day to get Oracle Java running on Ubuntu. I have a powermac g5 with Ubuntu 12.04 ppc64. uname -a : Linux LK37 3.2.0-53-powerpc64-smp #81-Ubuntu SMP Thu Aug 22 21:17:14 UTC ...
0
votes
1answer
29 views

Java installation error using apt-cacher

I'm getting this output when I trey to update/install oracle-java7 or from webupd8 ppa: Downloading Oracle Java 7... --2014-11-19 16:35:02-- ...
0
votes
2answers
909 views

kubuntu 12.10 - problem with netbeans 7.3 and java

I have kubuntu 12.10 and I have installed netbeans from official site (https://netbeans.org/downloads/). Before I had already installed java from java ppa repository ppa:webupd8team/java ...
-1
votes
0answers
13 views

Hadoop gives Error localhost: Error: JAVA_HOME is not set.?

I'm using Ubuntu. I have installed Java Hadoop configured it as single Node. i have also added environmental variable named HADOOP_HOME,JAVA_HOME in .bashrc file. When i was trying to run Hadoop using ...
0
votes
1answer
25 views

I can't install openJDK 7 in ubuntu 12.10 (32-bit)

Using Ubuntu Software Center I tried to install OpenJDK 7 but got the following notification. **Package dependencies cannot be resolved** This error could be caused by required additional software ...
0
votes
2answers
177 views

How to have one browser with Flash and Java?

I can't run Java web apps in Chrome/Chromeium and I can't run Flash in Firefox (Both sites shown in images works in opposite browser) Is it possible for me, running Ubuntu 14.10 to use one ...
0
votes
1answer
44 views

Oracle Java 8 “This plug-in is not supported”

I had Java 7 working nicely on Ubuntu 14.04. Now I have Java 8 (and not Java 7) on a new installation of Ubuntu 14.04. I tried to use Java 8 for the first time today, including adding the URLs to the ...
0
votes
1answer
48 views

IcedTea Doesn't Run Properly in Firefox

I have Java 7 installed for Ubuntu 12.04 and I have IcedTea installed in Firefox (33.0). Some Java plugins are not working correctly. For example: starting from the IcedTea-Web-Tests (see the IcedTea ...
1
vote
0answers
20 views

The installed java is version 7u65, yet the ubuntu package is 7u71, why the discrepancy?

I'm running Ubuntu 14.04 and need to use Java 7 update 71. It seems like openjdk has been updated in the Trusty repos to update 71, yet even if I install the update java seems to still be at version ...
0
votes
1answer
279 views

Oracle 12c Installation Error: “Exception … Could not initialize class sun.awt.X11.XToolkit”

I have been trying to install oracle 12 c on Ubuntu 14.10 but facing the below mentioned error.Could some one please check this and advise me how to fix this error? Checking Temp space: must be ...
8
votes
1answer
25k views

update-java-alternatives vs update-alternatives --config java

On Ubuntu 12.04 LTS I have installed Sun's JDK7, Eclipse, and the Arduino IDE. I want the Arduino to use OpenJDK 6 and want Eclipse to use Sun's JDK 7. From my understanding I need to manually ...
1
vote
2answers
640 views

Eclipse auto shutdowns when creating new project

When I click finish on a new project in Eclipse which I installed with this command sudo apt-get install eclipse-platform. This popup window comes and no matter if I choose Yes or No it closes the ...
-1
votes
2answers
676 views

Downgrade Java 1.7 to Java 1.5

I am now on Ubuntu 14.04, and my Java version is java version "1.7.0_55". How can I remove 1.7 and install java 1.5. I tried several tutorials, but they are old and none of them worked for me.
-1
votes
0answers
40 views

Unable to locate package oracle-java8-install [closed]

I'm trying to install java on Ubuntu 13.04, and nothing is working. $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer This produces ...
1
vote
2answers
129 views

Java game loop causing Ubuntu to freeze

I have been doing front and back end web programming for over a year now, and now I am trying to learn 2D game programming in Java. Based on various sources on the web as well as one from my friend ...
0
votes
0answers
30 views

Error: Could not find or load main class org.apache.pig.Main

When I try to move on into pig local mode, this kind of error occurs: "Error: Could not find or load main class org.apache.pig.Main" Anyone there to solve this issue?
-1
votes
1answer
54 views

Java Download for Ubuntu 14.04 [duplicate]

I needs help actually i am trying to download java and eclipse. How can i download java for Ubuntu 14.04.
-1
votes
3answers
72 views

Eclipse crashes after upgrade from Kubuntu 12 to Kubuntu 14.04 [closed]

I 'upgraded' from 12.04 to 14.04 and I'm having a problem .I can't seem to fix with eclipse. Specifically, eclipse crashes... consistently. I've looked over the web for a few days and I can't seem to ...
0
votes
0answers
140 views

ubuntu 14.04 64bit Matlab 2014b installation

i tried now for days to install matlab 2014b on ubuntu14.04. but it never worked, i am now in a situation where i dont know where to look and search for. my error messages when i want to run the ...
1
vote
1answer
21 views

SIGBUS error with JRE when using eclipse

I encountered a SIGBUS error when starting up eclipse. There was nothing wrong before this, I've just turned on the laptop and the error appears: $ eclipse # # A fatal error has been detected by the ...
0
votes
0answers
13 views

can I use same system for the implementation of multicast?

While implementing multicasting in java socket programming,,I decided to make groups based on the interfaces I have ,for eg: anupam@JAZZ:~$ netstat -g IPv6/IPv4 Group Memberships Interface ...
1
vote
1answer
35 views

How much space do i need for ubuntu dualboot?

I'm using windows 8.1 and i want to learn linux and also want to use it for java and clojure development. I'm gonna use IntelliJ IDEA or Eclipse. How much space i need to save on my localdisc for ...
0
votes
0answers
39 views

how to fix a port number statically for client request on client side?

I am on a Assignment to implement unicast multicast broadcast in java socket programming. While implementing multicast part I decided to do it on my own system itself, so for the purpose of ...
0
votes
0answers
18 views

encoding in ubuntu 14.4 [on hold]

I am learning java ( from Horton's Beginning Java). My problem is finding an editor whereby I can view in proper format java's charBuffer chars which are UTF-16. If I write say "Garbage in, Garbage ...
-1
votes
0answers
16 views

Help Please. Im new to ubuntu and need help getting bluej to work

i downloaded oracle-jdk and bluej, then realized i could just use the openjdk. i click on the bluej-314.deb file and it took me to software center to download. then I try to open and nothing happens. ...
0
votes
1answer
214 views

CrashPlan desktop app suddenly terminated after Splash Screen

CrashPlan desktop app suddenly terminated after Splash Screen This was a fresh CrashPlan install on Ubuntu 14.04 amd64 with Oracle Java 7 JDK. Most of /usr/local/crashplan/log/....log was not ...
2
votes
1answer
9k views

How to set the JDK for Android Studio?

I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6. To change it I go to File -> Project Structure and try to find the ...
0
votes
1answer
17 views

Java process exceeds allocated ram and crashes VPS

I have a vps running ubuntu Ubuntu 14.04.1 LTS with Java version 1.7.0_65. I am running a minecraft server (I have attempted to use different jars for the server). I execute that jar using the ...
0
votes
0answers
15 views

TightVNC Server not working via Java Viewer at school

When I try to connect to my computer from school, which they have Linux computers with restrictions, I get this: java -jar '/home/alumno/Escritorio/carpeta sin título/tightvnc-jviewer.jar' nov 05, ...
1
vote
2answers
4k views

Ubuntu will not allow me to add a repository, why can't it access PPA?

When I type in this command: sudo add-apt-repository ppa:webupd8team/java The system echos something along the lines of "Can't access lanchpad.net PPA, please check your internet connection" My ...
3
votes
2answers
5k 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
3answers
13k 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 ...
0
votes
0answers
41 views

how to install and configure Glassfish 4

How do I install Glassfish 4.x and run it on port 80? While it's easy enough to download Glassfish and unzip it, should it go in a particular directory? Which user should start and stop the server? ...
13
votes
5answers
56k views

How to compile a .java file

How can I compile a .java file. What programs will I need and if I need java jdk I need help installing that. I'm very new to ubuntu so any program I need to install I will need a tutorial on how to ...
0
votes
0answers
11 views

copy the MySQL Connector/J jar file to the domain-dir/lib directory

Where is the MySQL JDBC connector JAR supposed to go? To do this, copy the MySQL Connector/J jar file to the domain-dir/lib directory. For example, copy mysql-connector-java-5.1.30-bin.jar to ...