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
0answers
56 views

Cannot build with maven using docker on a ubuntu server 14.04 vm machine

I'm using Ubuntu Server 14.04 on a local virtual machine for compiling. I have issues with the docker maven plugin, when I want to compile my Java Application with mvn clean install resigning in a ...
0
votes
0answers
27 views

How do I uninstall 64 bit java jdk so I can install 32 bit?

I thought my computer is 64 bit so I downloaded the 64 bit JDK and tried to install it but it failed. Then I tried installing the 32 bit JDK but it refuses as some of the 64 bit package are still ...
1
vote
2answers
74 views

ARM - Java 6 works, Java 7 doesn't [closed]

I have a ARM Android phone, and want to use it to test Java projects on it, because it's the only "PC" that I can have close to me all the day. Right now, I installed Linux Deploy and then created a ...
0
votes
0answers
58 views

Java algorithm performance difference between Linux and Windows

We observe a very significant performance difference of an algorithm in java between Linux (ubuntu) and Windows. The difference is 3x-4x in favor of Windows. Test machine is i3770 quad core (8 logical ...
0
votes
1answer
104 views

How to convert following CSV to Hashmap using JAVA [closed]

Suppose I have CSV file like this: Name Roll No. Address PhoneNo Jhon 909 CA 1 Jeff 101 CE 2 Jhon 121 US 3 Jhon 909 US 4 I want to generate ...
1
vote
1answer
88 views

Ubuntu 14.04 Server , launch jar in screen on boot/restart

Ive been reading everywhere on how to do this, and I understand how to do it, but for some reason I cannot get it to work correctly. I simply want to run a jar file on restart or boot, the jar file ...
0
votes
0answers
34 views

Jave heap space error appearing Linux ubuntu 12.04

I'm running my program and this error appears after some time java.lang.OutOfMemoryError: Java heap space at HadoopMyapp.HistogramPair.<init>(HistogramPair.java:25) at ...
0
votes
0answers
49 views

Problem with installing Java : in home directory (not root)

Quite new to Linux. Installed java by using JAVA_HOME and PATH in bash_profile of home directory. But the problem is when I echo the JAVA_HOME path: echo $JAVA_HOME which I have exported the value ...
0
votes
0answers
37 views

java.lang.OutOfMemoryError: Java heap space

I'm using Hadoop in my application, but just before the program exits I get this error java.lang.OutOfMemoryError: Java heap space I already modified the mapred-site.xml and added this property to it ...
0
votes
1answer
17 views

Messed up javac

Im relatively new to Ubuntu and was playing around with a few notes I received from one of my lecturers. I had a file called "eg.java" which was just a small file with no relevant info that I was ...
0
votes
0answers
50 views

Unable to run Junit 4's JUnitCore

I've downloaded the junit-4 and hamcrest jars, as specified on the Junit site: https://github.com/junit-team/junit/wiki/Getting-started However, I can't figure out why the junit-4 jar doesn't seem to ...
0
votes
2answers
46 views

Beginner Programming Issue with Javac

I am reading through an introductory book for Java programming and I am facing an issue from the get-go. I am told to run in the terminal javac Example.java. From that command, javac compiler is ...
0
votes
0answers
27 views

add-apt-repository command not found [duplicate]

root@modsmy:~# add-apt-repository ppa:webupd8team/java -bash: add-apt-repository: command not found I got this error when I type the following: add-apt-repository ppa:webupd8team/java
0
votes
1answer
328 views

Java installation and Android Studio AVD problem

Android Studio doesn't open as root terex@Terminator:/android-studio/bin$ sudo ./studio.sh ERROR: Cannot start Android Studio No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME ...
0
votes
1answer
15 views

unable to sign with digital certificate on portal

Please help to resolve mention issue we are using Ubuntu 10.04 and we have our internet portal that purpose we require digital certificate.we are using mozila 24.0. that certificate show in Mozilla ...
0
votes
1answer
246 views

Missing tools.jar (Android Studio)

The command $ ~/android-studio/bin/studio.sh says 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE. I have searched for the solution ...
1
vote
1answer
146 views

Minecraft and java troubles

I like to play Minecraft. But recently I can only be able to open Minecraft versions that is lower than 1.7.2. When I launch 1.7.2 the Minecraft didn't show that I have to upgrade the card. My OpenGL ...
0
votes
0answers
312 views

libjvm.so: cannot open shared object file: No such file or directory

Trying to install the rJava package on R, on my 14.10 ubuntu, using this code if (!require(rJava)) install.packages('rJava') got few errors related to java including jni problems, after ...
0
votes
0answers
61 views

Liteloader doesn't work

I am using a 64-bit java Open JDK 8 on Ubuntu 14.10. I tried to run Liteloader and it doesn't work. I used java -jar liteloader1.7.10.jar, made it executable, and it still doesn't work.
0
votes
0answers
40 views

x2go with Unity: alt keys are not sent correctly to remote apps

I'm using x2go on ubuntu 14.04 to connect to another 14.04 machine that is running inteliJ I'm not able to use any alt keys combinations on inteliJ such as alt+1 or alt+f I configure my x2go session ...
0
votes
0answers
67 views

netx: Invalid jnlp file true

I am trying to run OpenProj 1.4, but receive the error message netx: Invalid jnlp file true I suppose this has something to do with IcedTea? I am running OpenJDK java 1.7.0_75, IcedTea 2.5.4 and ...
0
votes
1answer
101 views

How to open .jar file from shell script without losing focus? [closed]

In my script I need to open .jar file and keep focus on terminal. I tried java -jar maps.jar &, but it didn't work. What should I do?
0
votes
0answers
74 views

icedTea java web start

When I run file .jnlp this massage appear net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. at ...
0
votes
2answers
92 views

Java Script for Firefox 35

Is there anything current or installing a java and java script for the new firefox? I recently upgraded. now sites I need are not working.. There is old information about iced tea and all kinds of ...
0
votes
1answer
88 views

when a .war is deployed in Glassfish, what's the path to WEB-INF?

Where "is" WEB-INF/duke.gif? What's the path(?) to this image? thufir@doge:~$ thufir@doge:~$ jar -tf NetBeansProjects/WebApplication/dist/WebApplication.war META-INF/ META-INF/MANIFEST.MF WEB-INF/ ...
0
votes
1answer
15 views

Missing log file

I wrote a .jar file that is supposed to be run once a day that interacts with Google App Engine. When I run it from the computer, it runs just fine and creates a logfile that details some statistics. ...
1
vote
1answer
371 views

Oracle Java plugin not recognized by Firefox 35.0.1

I have added symbolic links pointing to libnpjp2.so of jdk1.8.0_25 (in jdk1.8.0_25/jre/lib/i386/) to the following locations: /usr/lib/mozilla/plugins /usr/lib/firefox-extensions/plugins ...
1
vote
1answer
27 views

Can I tell, from the browser, which Java version is installed, including whether OpenJDK, Oracle, etc

I know of java.com/verity, but it only tells me the the version number of Java, e.g. Your Java version: Version 8 Update 25 It does not tell me whether I have OpenJDK or Oracle installed. Is there ...
0
votes
1answer
73 views

Java Swing JFrame doesn't work in Ubuntu

I wrote the following program in Java: import javax.swing.*; import java.awt.*; public class Main { public static void main(String[] args) { JFrame frame = new JFrame("Test"); ...
0
votes
1answer
65 views

ubuntu java error

java --version returns java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory and while running eclipse it returns a dialogue box with ...
0
votes
2answers
248 views

Setting java path in maven

When I do mvn --v, I get: Apache Maven 3.0.5 Maven home: /usr/share/maven Java version: 1.6.0_45, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-oracle/jre Default locale: en_IN, ...
0
votes
0answers
180 views

RXTX Library Ubuntu 14.04 Soft link to see the serial port

I have installed the RXTX Java library rxtx-2.1-7-bins-r2 in Ubuntu 14.04 32 bit machine with JDK8. I would like to communicate with Arduino Micro connected to the serial port. But I am not able to ...
0
votes
1answer
62 views

No Jar files included in .deb file

I have created a debian source package for my java swing app that has .jar file and two lib/jar files. Three files (.dsc, .orig.tar.xz, debian.tar.gz) were generated as part of the debian source ...
1
vote
0answers
42 views

Cannot remove openjdk without having an older version installed, how can I do so?

I am running Ubuntu 14.04.1 64-bit with Oracle Java installed, hence I would like to uninstall openjdk, but when I try to uninstall it via the command line I get the following output: ~$ sudo apt-get ...
0
votes
0answers
92 views

IcedTea always ask for confirmation even when the security level is lowered, how to change this behaviour?

I am running Ubuntu 14.04.1 64-bit LTS with OpenJDK Java 7 Runtime, IcedTea Web Control Panel, IcedTea Java Web Start and Icedtea Java Plugin(browser plugin) installed. I am using Firefox 35.0.1 and ...
0
votes
1answer
64 views

Shift-Select in Matlab Editor lagging

I have very peculiar problem in Ubuntu 14.04 and 14.10 using Matlab (both R2014a and R2014b) I am not able to solve for almost a year (maybe even more). This problem persists on my second machine I ...
0
votes
1answer
220 views

Installing JDK 8 after removing OpenJDK 7

I just removed OpenJDK at Ubuntu Software Center, and downloaded JDK 8 at official Oracle site, and installed with alien. But when I type java -version at terminal, it keeps returning ...
0
votes
1answer
178 views

Recent Java 8 update and now +PrintAssembly crashes on 14.10

Everything was fine, but when the recent Java update happend it blew away everything in the Java directory, including things that didn't belong to it. Now I'm trying to get Hotspot assembly printouts ...
1
vote
1answer
736 views

Installation of SAP GUI 740 on Ubuntu 14.04

I need your help! I have the following version of JRE installed on my system: java version "1.7.0_75" OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1) OpenJDK 64-Bit Server VM ...
0
votes
1answer
52 views

Cannot write accented chars (ex ã) in Java apps

The title says it all: I can't write accented characters in Java applications. For now I have tried Idea IDE's and Netbeans and none accepts them. Using other applications it works as supposed. Note ...
2
votes
0answers
100 views

Run Windows Java program in Ubuntu 12.04 without Wine

If a Windows program (*.msi) was written in Java, is there a way for me to extract the contents and install it taking advantage of Java's cross-platform capabilities? I'd like to install it bypassing ...
0
votes
0answers
140 views

Matlab 2014a install on Ubuntu 14.04 Issue

I tried to install matlab 2014a on ubuntu 14.04 LTS. I used Furius ISO to mount it and then tried ./install but it gives me "/R2014a_UNIX_iso/sys/java/jre/glnx86/jre does not exist". Is there ...
1
vote
1answer
120 views

“Oracle JDK 7 is NOT installed” error even though JDK is installed

I installed Java Jdk manually by downloading jdk-7u40-linux-x64.tar.gz and following this link. When I check its version, it's OK: user@mylaptop:~$ java -version java version "1.7.0_40" Java(TM) SE ...
0
votes
0answers
40 views

How to check my GPU in NVIDIA site?

At http://www.geforce.com/drivers there is a button called Auto detect GPU. It should automatically show drivers for my GPU. It requires java but java doesn't seem to work in chromium. I installed it ...
0
votes
0answers
33 views

.JAR Files Not Running Right Ubuntu 14.04

Ive downloaded many different .jar files for Runescape private server clients, yet they will load up just fine but will turn into a black screen. Ive tried running the file with JDK 6 and 7, along ...
0
votes
1answer
42 views

JAVA ca-certificates error

I try to install some things but i keep getting this error: Error occured during initialization of VM Could not reserve enough space for object heap Could not create the JAVA virtual machine. dpkg: ...
2
votes
1answer
163 views

How to set Chrome as default browser for Java installation

When going into the Java Control Panel by executing the following command in Terminal: ControlPanel And going to the Advanced tab, I see that at the bottom it says: But I have set my default ...
0
votes
1answer
79 views

Java/Linux/Docker 101: java.lang.NoClassDefFoundError: java/time/ZoneId

I am trying to run a jar inside a docker. I took the following steps: sudo docker pull java sudo docker run -i -t java /bin/bash (In docker) curl -LO ...
0
votes
1answer
36 views

How to set the environment variabile using java

I am trying to set an environment variable using a java code. When i run this java code from the bash, I want to echo the environment variable that i set in the java program. How can this be done
1
vote
2answers
46 views

Install eclipse for java

I have eclipse kepler cdt for c++ but I want to download eclipse for java and keep eclipse cdt I mean use eclipse for both Java and c++