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

learn more… | top users | synonyms

1
vote
1answer
269 views

Unsure about java JDK for Centos 6.4

I have done a yum search java before installing anything to see if may have already. It comes back with the following: libreadline-java-javadoc.i686 : Javadoc for libreadline-java ...
1
vote
2answers
346 views

Installing OpenJDK 7 (JRE) but only policytools found in ./jre/bin

I'm trying to install Java 7 onto my Ubuntu machine through apt-get. I'm issuing the to install using apt-get: sudo apt-get openjdk-7-jre apt-get claims a successful install, but I cannot appear to ...
2
votes
3answers
102 views

How do I disable and re-enable Java whenever I want?

For me Java is just a security threat. Not many legitimate Linux apps use Java. However there is an abundance in Java malware and malicious remote administration tools like Jrat among others. But one ...
1
vote
0answers
133 views

Aptitude installing jre

I am trying to install jre on my debian 7 kali box, but I keep getting these faulty errors. I tried installing it through aptitude and it fails at the end. The result is: dpkg: error processing ...
1
vote
0answers
186 views

JVM memory limit on Linux (Debian)

When running my java program, I get following error: Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit I am wondering how I can increase the limits on my ...
0
votes
1answer
103 views

How to to login to my emailbox using shell or java code [closed]

I want to write a program/script that can send emails on my behalf using Unix Shell or Java. I think Unix Shell would be the best option as I need to do set specific time to send emails from my ...
0
votes
1answer
40 views

install oracle java sdk in ubntu - configuration problem - runs only with sudo priviledge

I am trying to to configure java sdk on ubuntu 12.04. I ha/ve copied the jdk folder to /usr/lib/java and made a link as "sudo ln -s -b /usr/lib/java/jdk1.7.0_45/bin/javac /etc/alternatives/javac" and ...
2
votes
2answers
2k views

Cannot install java after apt-get upgrade

When I execute java -version, I get this: bash: /usr/bin/java: No such file or directory I followed multiple online guides towards installing java. I followed all the steps but I still get that ...
2
votes
1answer
1k views

Search for a String inside all files inside a war

Where I work someone had Java project and used Eclipse to export that project into a .war package. Now I need to search for a string inside all the files that make that .war package. I know that a ...
1
vote
0answers
40 views

How can I specify an executable path that will work from any working directory? [closed]

I have a java process that runs in this directory: /home/zookeeper/zookeeper-3.4.5/org/zookeeper/Process.class That Java process will in turn launch another Java process that lives here ...
2
votes
1answer
107 views

What is the meaning of the .: in this linux statement?

Somebody helped me run a java program with the following (working) line of code. The zookeeper-3.4.5.jar exists in the working directory. What it is the meaning of the .: syntax here? Does that just ...
1
vote
2answers
331 views

I deleted /etc/alternatives/java [closed]

I'm on Ubuntu 12.04 on a 32-bits Dell machine. I was trying to install java JDK for 32-bits linux platform and I accidentally deleted the file /etc/alternatives/java. I would love to recreate my ...
1
vote
1answer
187 views

Running Apache with Tomcat

I was wondering if it's possible to run a Tomcat server within Apache whilst also running PHP servers under other virtual host instances? And if so, how is this done? Basically, I'm trying to run an ...
0
votes
1answer
130 views

best programming language for I/O intensive tasks [closed]

I need to process "big data" (nearly 1TB which can be partitioned into smaller chunks). Consider several programming languages (Java, Python, C++, Perl) and other scripting options (Perl, awk, sed, ...
0
votes
0answers
103 views

how to enable java support to buildroot

I'm using buildroot 2012.08 version for building embedded linux. I'm looking for best solution to add java support. Is it possible to do trough buildroot?
0
votes
2answers
239 views

how to run .dump command in linux? [closed]

I want to create dump file of sqlite database from java but I can't run the below command from linux. I got the help of windows and I tried with linux but it appears one terminal nothing more than ...
1
vote
2answers
600 views

Cannot change JAVA_HOME

When I run java -version in my terminal I get: user@ubuntu:~$ java -version java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2) OpenJDK 64-Bit Server ...
1
vote
1answer
131 views

Starting a .bin installer in graphical mode

I'm trying to install this software but after I run the usual commands: chmod +x gvSIG-desktop-2.0.0-2066-final-lin-x86-standard-withjre.bin ...
3
votes
1answer
2k views

How to install Sun/Oracle Java 1.6 onto centOS 6 using only textmode?

So, after a few days of struggle I have yet to be successful in installing Sun/Oracle java 1.6 onto my CentOS. The issues seem to be as follows No sun java 1.6 package available in repo due to ...
1
vote
0answers
70 views

Wine - Java-Editor's Frame Window is black [closed]

I have a strange bug with the Java-Editor on Linux using Wine. When I run a Frame Window it is completely black. The rest of the editor works quite well. My mouse recognizes the text fields (changing ...
2
votes
1answer
133 views

Using prelink on manually loaded libraries? (like Java native libraries)

As far as I can tell, prelink can only works with dynamic libraries which an executable declares it needs at compile time (the libraries that can be found with ldd). It doesn't seem to include ...
1
vote
1answer
723 views

RPM: failed jre dependency, even though that JRE version is installed

I am trying to install a package, and it fails reporting a missing dependency: # rpm -ivh * error: Failed dependencies: jre >= 1.7.0 is needed by Tomcat-7.0.37-1.noarch At the same time, ...
1
vote
1answer
98 views

Java PATH issue when installing JDK7 on centos 32 bit

I have Installed JDK 7 on CentOS 32 bit virtual machine. I also have set the path for java. In one terminal it is showing java1.7 But when I open another terminal and look for, java -version It is ...
1
vote
1answer
813 views

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
-1
votes
2answers
368 views

wheezy maven install

I have wheezy installed from a pen drive. Updated things and thought I had got maven and eclipse. But maven projects would not compile. I uninstalled all the maven programs I could find in Add/remove ...
2
votes
1answer
3k views

How to set Oracle Java's JAVA_HOME in Fedora 19

I just installed Fedora 19 and managed to get FedoraUtils installed. So I chose java oracle. after installation I could see in the FedoraUtils list that oracle java (installed) but I can't see the ...
2
votes
2answers
142 views

Change PATH in Debian 7.1.0 for JAVA

I would like to change the PATH of my Debian 7.1.0 system to link the java version I want. If I insert into the terminal: java -version I get: java version "1.6.0_27" OpenJDK Runtime Environment ...
1
vote
2answers
429 views

Hugepages in linux - how to make sure that java process will start using hugepages

I'm running java server on Red Hat Enterprise Linux Server release 5.9. Recently I started to use HugePages as it has some advantages I would like to use. System was configured correctly (as many ...
4
votes
1answer
2k views

How to get Oracle java 7 to work with setcap cap_net_bind_service+ep

I am trying to grant the java executable the right to open ports below 1024 on Linux. Here is the setup /home/test/java contains the Oracle Server JRE 7.0.25 CentOS 6.4 Here is what getcap ...
1
vote
2answers
3k views

install java sdk 6, wheezy

Followed debian Java Sun wiki, and later 1[open jsk 7 ]2 which has a note on installing 6 : link to java 7 on debian aptitude install sun-java6-jdk No candidate version found for ...
3
votes
2answers
119 views

How to make apt recognize an installed tar package?

I've installed Oracle Java. I want to be able to remove OpenJDK, but when trying to do so apt wants to install another version of Java. How can I configure apt so that it knows I already have a ...
7
votes
1answer
1k views

What is the safe way to allow Java 7 to run on SELinux

Short version: What is the most secure way to allow Java 7 to run on (with?) SELinux? Long version: Sorry in advance if I use incorrect terminology. I'm really just a Java developer with a meager ...
2
votes
1answer
126 views

Autocomplete doesn't work for file parameters to jarsigner

I'm using Lubuntu 12.10. Assume I've got a file called test.apk in my current folder. 1.) In LXTerminal/bash if I type, adb install t<TAB> the terminal autocompletes it correctly to ...
2
votes
2answers
390 views

Problem downloading Java JDK with WGET on Ubuntu

I'm attempting to install the Java JDK through the command line using WGET on ubuntu (no desktop). Here is the picture I took. The file that was downloaded was not the tar ball of the JDK: How can I ...
0
votes
0answers
205 views

Jitsi crashes sound every time

No matter which version of the software I download and install from jitsi.org, running Jitsi causes the sound on my OpenSUSE 12.3 machine to be replaced by a low hissing noise. This persists even if I ...
2
votes
2answers
3k views

Find the process id of a java application in a bash script (to see if the target application is already running)

I know there are a million questions on getting the process ID, but this one seems to be unique. Google has not given me the answer, so I hope stackexhange will help rather than close this question. ...
0
votes
1answer
163 views

Init script partially launches java app

I have a java application that I manage to execute by hand. The application normally opens several ports for local communications (7180 => 7183). Port 7182 serves as a web console and allows me to ...
0
votes
0answers
47 views

High Availability of Services

I want to monitor a couple of services in linux. In case they go down I want to restart them. I'm writing a crontab which will get the name of the services using jps command every 60 seconds, and if ...
0
votes
1answer
99 views

TCLBLEND FAILURE - Centos 6.4

I have been trying to use a home grown test tool and after doing an update to Centos 6.4, I am no longer able to run the tcl based tool. I am getting the following error and I have no internet access ...
2
votes
1answer
61 views

Can connect from RPi to laptop, but not other way around

I'm developing a server-client application (command-line based) in Java. I want to run it on my Raspberry Pi (RPi), but it turns out I can't login to my server-part from my laptop. The problem is that ...
0
votes
0answers
191 views

X high CPU when using Java applications

Only recently, my Freemind program has become extremely sluggish and unresponsive (big lag) when moving my mind map around. I use Arch Linux with xfce4. Freemind is made with Java. If I move the mind ...
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 ...
0
votes
1answer
225 views

Red5 can't find JAVA_HOME

I'm setting up a Red5 server on Cygwin I get this /usr/share/red5$ sh red5.sh Running on CYGWIN_NT-6.1-WOW64 Unable to locate Java. Please set JAVA_HOME environment variable. However, I can also ...
0
votes
1answer
1k views

Java installation having issues on Centos java and javac showing different version

I have this package of java jdk-7u3-linux-x64.rpm. So I have been doing this normally yum install jdk-7u3-linux-x64.rpm. Then immediately I will do this alternatives --install /usr/bin/java java ...
2
votes
2answers
423 views

Search class names in jars

I'm using this command to search *.jar files for java classes, and I only get the name of the jars that contain those classes: grep -ral --include=*.jar SignonEJB . How can I also get the class ...
1
vote
1answer
306 views

Java application locks up after playing sound

Our Java application plays short notification sounds periodically (in response to user actions). On some hardward, our application will lock up after the 3rd or 4th short sound. We have to pkill java ...
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 ...
-2
votes
1answer
67 views

Novice Ubuntu 12.04 user needs help! [closed]

I'm new to Unix/Linux and someone suggested I try Ubuntu. I like it but I can't figure a couple of things out and don't really have time to google up ways to solve the problem. Answers from a quick ...
2
votes
4answers
102 views

any feature on linux like Perfermance Counter on Windows servers?

I have a tomcat web application, when invoking an unstable remote API, I want to get realtime http request time at any time. On windows server, I can use Performance Counter, does centos provide ...
4
votes
3answers
993 views

Uniquely identifying java processes with same name

I have two java processes which run using the same file name, MyApp.jar (for example). /usr/java/latest/bin/java -jar MyApp.jar These jars exist in different places and use different ...