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

learn more… | top users | synonyms

0
votes
0answers
5 views

Setting up apache axis client on centos

I have below codes. import java.util.*; import java.io.*; import java.net.URLConnection; import java.net.MalformedURLException; import org.apache.axis.client.Call; import ...
0
votes
0answers
32 views

Java auto updater & bin bash scripting [on hold]

I'm rather new to shell scripting, and I've created a small semi-automated Java updater script. #!/bin/bash response=$(wget --spider -S --no-check-certificate --no-cookies --header "Cookie: ...
1
vote
2answers
148 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 ...
1
vote
3answers
93 views

How to write a Java Program / Shell Script combination such that you can call the Java program as a remote command and yet supply a local file?

This is related to How to execute a remote command on a local file? I wrote a simple Java program that prints the first line of a file - import java.io.BufferedReader; import ...
4
votes
1answer
60 views

What is the difference between JAVA_HOME and update-alternatives?

I have been trying to figure out the best way to run OpenJDK Java Runtime as default Java for my Fedora box and use Oracle JDK 6 for Android development namely for running Android SDK Manager, Android ...
0
votes
0answers
12 views

UDP Packet sent not beinr read by server right [migrated]

Hi Im sending two packets from a client to server. The issue I'm having is the data being read on the server makes both strings the same length with regards to the longest string sent. For example: ...
0
votes
2answers
30 views

UDP sending two strings in a datagram

I'm wondering if its possible to send two strings within one datagram in a UDP packet. Assume I had string 1 with text: unix and string 2 with text: linux. I don't want to merge the strings but keep ...
0
votes
0answers
11 views

Moving Java sinks in PulseAudio

I want to record some gameplay on Minecraft. I created several sinks (and learned PulseAudio through trial and error). How can you tell Java/OpenAL to allow sink moving? I already edited ~/.alsoftrc ...
-2
votes
1answer
68 views

ADT bundle not installed in ubuntu 12.04

I downloaded ADT bundle from android developer site. Bundle name is :- adt-bundle-linux-x86_64-2014031.zip It contains eclipse, and sdk folder. In eclipse folder, there is one eclipse executable ...
0
votes
0answers
12 views

Java runtime.exec gives readlink:missing operand

I try to run the following with cmd = "mvn dependency:list" and workingDirectory a valid mvn project folder: Process process = getRuntime().exec(cmd, EMPTY_ENVIRONMENT_VARS, workingDirectory); ...
3
votes
1answer
35 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
0
votes
0answers
23 views

Shell script time output over java enviroment

I am running a script from java program using sshxcute API. Script contains: #!/bin/sh data=`stat -c%y filename` echo $data Script running on bash gives output: 2014-03-08 13:26:29.335545828 -0800 ...
3
votes
0answers
17 views

Flipping Control/Command in GNOME breaks Alt key in JVM

I want to switch Control and Command modifier keys in GNOME / Debian Jessie, because I use a Macintosh laptop. I have managed to get these changed via the TweakTool -> Typing panel, like this: Ctrl ...
0
votes
1answer
69 views

Run Java in a chrooted jail

I'm on a CentOS 6.5 machine with Plesk Panel which I used to create a chrooted environment for a user who can access it via ssh. I'm not a big expert but somehow I managed to let him use some basic ...
1
vote
1answer
17 views

Which kind of additional cleanup may be required after removing manually added entries from /etc/hosts?

My system is "Unable to resolve" removed entry from /etc/hosts. During development, I needed to add the custom domain entry to /etc/hosts, stating it resolves to 127.0.0.1. This mapping worked fine. ...
1
vote
0answers
29 views

Assistance applying poorly packaged patches?

I manage a handful of servers running the various roles of a Ahsay online backup solution. A few times a year the software is updated and I need to apply patches on my servers. Annoyingly the ...
0
votes
1answer
132 views

Install java, tomcat7 or tomcat6 on RHEL5 centos5

I wish to install tomcat7 on centos5 sticking on yum but I have --> Finished Dependency Resolution java-1.6.0-sun-compat-1.6.0.03-1jpp.i586 from jpackage-generic-nonfree has depsolving problems ...
2
votes
3answers
114 views

What's the easiest way of installing JRE on Debian?

What is the easiest way of installing JRE on my Debian OS (Linux)?
0
votes
1answer
22 views

How to prevent .jar files from going into /etc when installing OpenJDK from rpm?

After I found and installed OpenJDK in Fedora 20 using Apper I noticed there is a series of directories starting with jar prefix under /etc/alternatives, specifically: /etc/alternatives/jre (93,4MB) ...
2
votes
2answers
116 views

How can a normal user trigger a root cron task to execute immediately, without delay?

I have a root cron task that runs every day. But I want to allow normal users to request that it run immediately, if they so wish. It is a harmless process and it can run as often as needed and these ...
1
vote
1answer
50 views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
0
votes
1answer
40 views

Unable to override the JAVA home in opensuse 13.1

What i did : made an entry in both ~/.bash_profile ~/.profile export JAVA_HOME=/usr/java/jdk1.7.0_51 export PATH=$PATH:/usr/java/jdk1.7.0_51/bin still system points to some openJDK installed by ...
0
votes
0answers
87 views

Java NullPointer Exception for Sencha CMD

I've been trying to solve this problem for a few weeks now and it just occured to me, I might be asking the wrong question. I am learning and developing building Sencha Touch 2 applications on my ...
0
votes
0answers
10 views

Can we throw jar application to other systems display? [duplicate]

I have a jar file which I need to run from my terminal but should throw display via network. Is it possible like xclock or xterm? xclock -display 1.2.3.4:0.0 Is working fine. java -jar app.jar Can we ...
0
votes
0answers
27 views

Error in db setup Table/View 'APPUSER' does not exist

Ok I am back to where I started now red5 is working again but have since noticed the admin jar causes the service to fail on shutdown so have removed it until can find out why. I am using RC2 on ...
0
votes
0answers
35 views

Safenet Authentication Client Tools error when Reboot or restart the eTSrv- and pcscd-services

Command: sudo /etc/init.d/eTSrv start Starting eTSrv daemon eTSrv /usr/bin/eTSrv: error while loading shared libraries: libeToken.so.8: cannot ...
3
votes
1answer
86 views

How do I change the Java Security level?

We've got an ancient (internal use only) self-signed app that refuses to run now with the changes to the JRE. Working on getting a code signing certificate and rebuilding it, but that's horribly slow ...
0
votes
1answer
217 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 ...
0
votes
1answer
48 views

Shutdown Red5 failed on every attempt

I'm at my wits end. I have asked everywhere. I've uninstalled - reinstalled countless times in countless different ways and STILL Red5 fails to shutdown. Can someone please give me a clue? Not even ...
1
vote
1answer
272 views

How to restart Java with a specific argument?

While running my Minecraft server, I noticed the following message outputted in the console. 24.01 02:11:04 [Server] INFO Warning, your max perm gen size is not set or less than 128mb. It is ...
0
votes
1answer
83 views

java add to the path

I have some .jar files in a directory, /home/unix/dfernand/bin/picard/picard-tools-1.106. But when I add the directory to the PATH and CLASSPATH in my bashrc, java still does not recognize the .jar ...
1
vote
1answer
51 views

How can I build android on my debian while using eclipse ? (java dependencies problem)

I would like to compile a build for my android device (N4) with my debian (jessie). I read that I must have Java 6, but eclipse which I sometimes use seems to need java 7. For example, I uninstalled ...
2
votes
3answers
1k 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 ...
0
votes
1answer
207 views

Cannot start Glassfish server on CentOS 5: port is supposedly in use, but it really isn't

I asked our sysadmin to install CentOS 5 on a virtual server within our company, on which I plan to experiment with Glassfish. The server is up and running, I can ssh to the server, and I do have root ...
1
vote
1answer
78 views

Java is constantly generating an error log in my home directory?

I have started to notice that whenever I use a Java-based application on Fedora 20, whether it's a game or Eclipse or something else, it will always generate an error log of some sort in home ...
3
votes
0answers
99 views

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

How to reproduce in Awesome WM v3.5.2: Install OpenJDK or Oracle Java 7. This bug has been observed with both. Start a new Awesome WM session with the default configuration. Start either jEdit or ...
1
vote
1answer
174 views

Java fails with “Could not find the main class”

I want to run a jar file in Linux (CentOS, 32-bit). But the following error occurs. What is the reason? [root@server ~]# java -jar keygen.jar Exception in thread "main" ...
0
votes
1answer
80 views

Codeswarm visualization: how to quickly setup OpenGL rendering mode on Linux (Archbang x86_64)?

The Codeswarm project provides a software project repositories visualization tool in Java. The software leverages the commit information from a log generated from a repository that you clone locally. ...
6
votes
2answers
176 views

How can I install Sun JDK on a Debian based system?

I can't find any .deb packages for Sun's Java Development Kit. How can I install it on my Debian machine without causing conflicts with the already installed openjdk packages?
1
vote
2answers
518 views

How to install red5 & Java on centos 6.4

There are many tutorials out there but not so many for 6.4 and it seems people are having problems with running either Java 6 or 7 and Ant. So does anyone know where to find a definitive guide? ...
1
vote
1answer
79 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
112 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
74 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
72 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
92 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
99 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
30 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
876 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
371 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
27 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 ...