Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM).

learn more… | top users | synonyms

0
votes
1answer
386 views

Java/malloc memory corruption error when running SDK Android Manager

I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through ...
1
vote
1answer
506 views

Error while loading shared libraries: libdl.so.2 (and others), no such file. Libraries exist

Attempting to install a Java application from a .bin file. When opening the installer from command line, I see these errors: [boxen]# ./ZendStudio-5_2_0.bin Preparing to install... Extracting the ...
1
vote
0answers
16 views

How to make aptitude recognize Oracle Java as a valid java dependancy

I have Oracle Java 7 on my Debian. I want to install tomcat server using aptitude, but it keeps trying to install icedtea, and unnecessary java related packages, is it possible for aptitude to know ...
3
votes
1answer
457 views

freebsd make install openjdk6

I am having problem installing openjdk6 using ports using the make install clean commands. The error I got is: /usr/ports/java/openjdk6/work/build/bsd-i586-debug-fastdebug/j2sdk-image: No such ...
2
votes
5answers
6k views

installing Oracle 11g r2 on linux 6.1

I am trying To Install the Oracle 11g r2 on Linux 6.1 but i am Not Successful since a couple of days.When I have done all prerequisites for oracle 11 g .But When I run The Installer I got this Error ...
1
vote
0answers
38 views

Tomcat unable to create file in dir owned by same group

I have a server running Tomcat, and I need Tomcat to create a file in a particular folder. Tomcat (technically a Java app) runs as the user 'tomcat', as evidenced by top: #top 1251 tomcat 20 0 ...
0
votes
1answer
60 views

Is possible to change the value of '.' without actually change the current directory? [closed]

Can I make the value of . to be a different directory from the current directory? Background I'm learning Java. In the directory of my program, I have two sub-directories, src and bin. Every time I ...
1
vote
1answer
50 views

How to use both 32 bits and 64 bits Java on Debian?

I am running Linux Mint LMDE on a 64 bits machine. I have installed OpenJDK 64bits: 7u21-2.3.9-5 which is used by some applications. IceWeasel has Iced-Tea 1.3.2 plugin installed (64bits). Now I want ...
2
votes
3answers
798 views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
1
vote
3answers
64k views

How to find path where jdk installed?

I'm a newbie to Linux so please forgive me for asking such stupid question! I'd installed jdk1.7.0.rpm package in RHEL6. Where I do find the path and to execute my first java program?
1
vote
1answer
38 views

Interactive Shell Session from Java

I want to run a series of commands from Java. I came across few forums that explain how to execute multiple commands using getRuntime().exec(command) and defining command as String[]. But I want to ...
0
votes
1answer
58 views

NetBeans : Can't build Java project

I installed today on my old developer PC NetBeans (the newest) and I cloned my repo from BitBucket (I began coding with NetBeans on Windows 7). I tried to make a clean build, but the compiler has ...
5
votes
1answer
559 views

Dead keys not working in Java Swing applications

I'm currently using Ubuntu 10.10 and Netbeans 7.0 and I can't type accented letters with dead keys any more. It's not a version specific problem seems it's related with Swing since I've got the same ...
0
votes
3answers
132 views

Solaris jdk 7 installation error java -version No such file or directory

Am trying to follow this website for instruction on how to install jdk for Solaris 10 with the following information: $ isainfo -v 64-bit amd64 applications ssse3 tscp sse3 sse2 sse fxsr mmx ...
0
votes
0answers
26 views

How to modify ENV in Solaris 10 [duplicate]

I wanted to edit the contents of environment when entering this "ENV" in terminal. I googled this but so far none of the solution offered works in my end. The closes solution that i got was to edit ...
0
votes
0answers
13 views

Why is my application being cut off?

I'm running a Java based application on Ubuntu 12.04 LTS, and for some reason it keeps getting cut off in the top left portion of the screen. I'm running this in VSphere, with VMWare Tools installed. ...
1
vote
1answer
98 views

Where can I set global Java Options?

I have horrible, improperly-rendered fonts in Java programs such as jabref and rubymine. This can be fixed by running _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' jabref I understand that I ...
2
votes
2answers
111 views

How to find where is $JAVA_HOME set? [duplicate]

I'm a beginner with linux. I'm trying to change the value of $JAVA_HOME & I just can't seem to find in which file is it being set currently. I can't remember where did I set it the last time. ...
0
votes
1answer
26 views

Sending a tab key event using applet to a unix machine?

i have an applet , that interacts with a remote unix machine . Everything works fine . I'm following the ganymede-ssh code . below is the code excerpt . session = CLIUtil.createTerminal(); if ...
0
votes
1answer
1k views

Can't load IA 32-bit .so on a IA 32-bit platform

I'm trying to install an 32_bit_application on CentOS (64-bit), while running the setup.bin file it return the following error Invocation of this Java Application has caused an ...
1
vote
2answers
100 views

How to increase the memory used by Java in linux?

I have a program Vuze that is written in Java, which I use to download very large files, and I'm having a problem with it. I need to increase the amount of memory it uses. I've followed the directions ...
3
votes
4answers
9k views

Java “Could not reserve enough space for object heap” even though there is enough RAM

I am currently having some issues running Java. It won't start because of heap issues. But I have more than 9 GB Ram free (or even 16 GB if you assumed the cache would be empty). This is the error I ...
8
votes
1answer
356 views

How to fix Java applications mouse pointer offset in Awesome WM?

How to reproduce in Awesome WM v3.5.2 through 3.5.5 (so far): Install OpenJDK or Oracle Java 7. This bug has been observed with both. Start a new Awesome WM session with the default configuration. ...
1
vote
2answers
3k views

Java code to copy files from one linux machine to another linux machine

I'm looking for java code to copy files to a remote linux system. I have tried Runtime.getRuntime().exec() function by passing an scp command, but each time I run the program it is asking for the ...
0
votes
3answers
76 views

Lots of free memory, but Java won't start (SunOS 5.10)

vmstat gives: swap free 37489684 110178592 Still I have issues, while trying to run Java process with 10g heap: > java -Xmx10g -Xms10g -d64 HelloWorldApp Error occurred during ...
1
vote
1answer
51 views

OpenJDK update in RHEL 6

We need to apply the JDK updates to one of the RHEL 6 servers. How do I apply the patch if I have the RPM package available, which I have downloaded from the internet. Searched a lot on the internet ...
0
votes
0answers
20 views

Fluxbox, bbkeys and java

I have installed bbkeys so I could choose a window when ALT-TABed, but the java applications are not amoung the selectable. Is there anything special that needs to be done for a java app to be amoung ...
0
votes
0answers
39 views

Fluxbox: is there a problem with java modal dialogs and fluxbox?

I have got a java application that opens a modal dialog. The modal dialog is shown behind the main window and there is no way I can bring the modal dialog to front. If I switch to Cinnamon everything ...
0
votes
1answer
2k views

Alternatives not working well for Java installation on Centos 6.4

I am trying to installing on Centos java from Oracle. Following are my steps. yum install /usr/local/jdk-7u3-linux-x64.rpm alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java ...
8
votes
2answers
396 views

Java location from /usr/bin/java

I'm trying to find my java location within my Linux system and got this [980@b449 ~]$ which java /usr/bin/java [980@b449 ~]$ readlink -f $(which java) ...
0
votes
1answer
337 views

Trying to install 32-bit java plugin on Centos 6.5 64-bit mozilla firefox

Long story short, my employer's webstart VPN requires 32-bit java to launch. I managed to get this working on a 64-bit CentOS 5.6 vm, but I cannot remember what I did or it's not working on 6.5... ...
0
votes
0answers
118 views

sudo service errors out with JAVA_HOME not found

I've used visudoer to set the keep_env for JAVA_HOME: $ sudo printenv | grep -i JAVA_HOME JAVA_HOME=/opt/java $ ls $JAVA_HOME bin db jre LICENSE README.html src.zip ...
0
votes
1answer
57 views

Error initializing server: OC4J administrator account is not configured

I am getting the following error message when trying to bring up ./oc4j service (oc4j_extended_101350.zip). [oracle@sc-ifactory01p bin]$ ./oc4j -start Starting OC4J from ...
5
votes
3answers
13k views

java plugin does not work in chromium-browser (all possible attempts exhausted)

I was using google chrome browser on Ubuntu 12.04 machine, recently I needed to switch to chromium-browser. I am using the version that is available on the Ubuntu software centre. The problem is that ...
0
votes
0answers
88 views

Changing the Java Runtime in NetBean 8 on Ubuntu 14.04

(Not sure if this is the right site for this question - if not please migrate.) I am using Netbeans for C++ on Ubuntu 14.04. Ubuntu comes with the Open JDK Runtime, which is what Netbeans is ...
0
votes
1answer
118 views

Mandatory argument for script to run java program

My script is called: report_startDate It has the following line: $JRE_ROOT/bin/java -cp /home/me/report/config/:/home/me/report/jar/reporting-1.0-SNAPSHOT.jar com.me.project.report.Main $1 $1 ...
4
votes
0answers
95 views

How do I execute in background / return early?

For reference, I'm using phpseclib to control a remote SSH server using the 'root' account. I have to start/stop a java process which is ran in the background. Stopping works fine with killall java ...
0
votes
2answers
105 views

Choose a terminal emulator from Java [duplicate]

I am writing a platform independent Java console tool and within which will have to execute some commands in separate independent terminal at runtime. However, I need to know which terminal should I ...
2
votes
1answer
74 views

Allow non-root unmodifiable sofware to bind to ports 80 & 443

The company I'm in uses the Java Secure Application Manager to "secure" non-internal connections their webmail and electronic collaboration software. Aside from using expired certificates, and ...
0
votes
1answer
133 views

How do I remove Java from Mint 17?

I got a version of Java 7 lying in /opt/java/jdk1.7.0_60/ That I don't seem to remember having installed myself. I want to replace it with OpenJDK 8, but I'm afraid I'll break something if I just rm ...
0
votes
1answer
70 views

mysql jdbc connection issues in RHEL 6

I have setup the mysql database in one of the RHEL 6 servers. I would like to connect to this server's database from any other machine using a java program. How should I do it?
-1
votes
1answer
45 views

Launching a sudo gui from desktop

Environment: CentOS 5.10 on 32 Bit. test.sh: #!/bin/bash cd /dump sudo /opt/java/jre1.7.0_60/bin/java -jar mytest.jar mytest.jar will pop a GUI app in the desktop, username is in sudoers with ...
3
votes
3answers
495 views

Messed up bash.bashrc file, commands not working anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
4
votes
1answer
148 views

Poorly performing java application vs poorly performing server

This is a very generic question, but it has been coming up more and more often for me. I would like to try and determine an appropriate course of action for this generic case, as I think it could ...
0
votes
1answer
255 views

Tomcat: no xmx/xms value set, where is the heap value being defined?

I have a Tomcat 7 install running with Java 1.7 on a Linux 2.6 server, and jinfo shows no xmx or xms values. ps output shows nothing set for xmx/xms on the command line for the java process. Tomcat ...
1
vote
2answers
2k views

How to Install Oracle Java7 in Ubuntu13.04

I am trying to install Java 7 in Ubuntu 13.04 using this tutorial. Preparing your system First you need to remove openjdk for this run the following command from your terminal sudo apt-get ...
4
votes
3answers
1k views

Mathematica makes no sound under Ubuntu 11.04

After waiting for days for my license I now got the opportunity to install Wolfram Mathematica 8 at home. However, neither the Play nor the Speak functions are doing anything as it seems that ...
3
votes
1answer
51 views

locate java source code in jdk7

I have installed Jdk7 in Ubuntu 14.04 and it is successfully configured and I can use java libraries in code. The problem is that I am trying to locate java source code, but not able to find the jar ...
1
vote
1answer
64 views

Why uninstalling openjdk automatically triggers an installation of the alternatives on zypper openSUSE?

I installed openSUSE 13.1 and I want to install Oracle jdk. What I intended was to first uninstall open_jdk/ice tea stuff as I won't be needing them anyway but it seems I cannot uninstall them without ...
1
vote
0answers
72 views

Running unsigned javaws code

For a KVM remote console I need to be able to run a jnlp file. When I run it I get: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. at ...