Tagged Questions
0
votes
2answers
33 views
setting JAVA_HOME in linux
i set java_home:
#echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk
but when i have this error in running hadoop:
localhost: Error: JAVA_HOME is not set and could not be found.
EDIT
I set export ...
-1
votes
1answer
19 views
How to Install NetBeans in Linux?
On Linux machines, the binary installer is the preferred method for installing NetBeans IDE.
Using the Linux Installer
To install NetBeans IDE:
Navigate to the directory that contains the installer.
...
1
vote
0answers
37 views
Does JVM on Linux will consume more heap than Solaris?
We've two server migration projects recently from Solaris to RedHat Enterprise on VM. They are both J2EE applications running on OC4J 10.1.3.5
One interesting phenomenon we found was that the OC4J ...
0
votes
3answers
39 views
Listing files in project directory in Linux environment using File.listFiles() in java
String path = ".";
String files="";
File folder = new File(path);
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++)
{
if (listOfFiles[i].isFile())
{
...
1
vote
4answers
29 views
Setting the java path to a latest version in linux permenently
i have compiled some java files in windows which contains java 1.6.x, moved the compiled java files to linux and tried to run them. But i got version mismatch error as the path in linux is pointing to ...
0
votes
2answers
56 views
How to fix annoying white splash in this code?
The problem is when I run the code below, I see a white splash on my screen for about maybe 100ms which is extremely annoying:
import java.awt.*;
import javax.swing.*;
public class MyPanel extends ...
0
votes
0answers
16 views
SSL communication with mounted drive in Unix [on hold]
I've mounted a drive on a machine. The mounted directory is nothing but Hadoop HDFS.
Now, I need to provide a secure communication with it i.e via SSL/HTTPS.
Is there any way to achieve it ?
If not ...
1
vote
3answers
62 views
How to get list of running processes with Java
I want to get a list with all running processes using Java code?. Can you tell me from which file I can get this information? I would like to get his data from /proc filesystem.
0
votes
0answers
22 views
Java webstart requires window to use translucency-compatible graphics configuration
I'm trying to start a Java Webstart application under Java 6u45 (also have tried 7u17 & 7u15) under Linux (Lubuntu 13.10) and I'm getting this error:
ERROR ...
0
votes
1answer
31 views
Running Java Eclipse SWT (64 Bit Linux)
i have a eclipse project that uses eclipse SWT which runs smoothly on my windows eclipse. i share the project (via SVN) and try to run it on my 64 Bit Linux system. i downloaded a stable swt version ...
1
vote
1answer
31 views
Script Not Running
I have a script file that I would like to run whenever my computer starts up. What the script file does is run a .jar file that I have on my desktop.
I first created a .jar file called Hello.jar that ...
0
votes
1answer
40 views
Error: Could not find or load main class org.codehaus.classworlds.Launcher while building Maven 3.0.4
I have used apt-get install maven2 to install maven2.2.1. In order to compile hadoop 2.1.0 source program, I need to upgrade the maven version, but it is not able to use apt-get again, because ...
1
vote
0answers
28 views
Eclipse won't start after new Java
I have installed java on my linux machine (Ubuntu 12.04). (I don't know much about linux by the way). I tried to start Eclipse (Indigo), I have this error message:
"An error has occurred. See the ...
0
votes
0answers
23 views
Cannot connect to GlassFish server on Linux with Java web start Swing client using ORB
I have java web start swing client and i want to remotely connect to a server-side Enterprise Java Bean via ORB. The client runs on my laptop (windows 8) while the server is on application server 3.1 ...
0
votes
0answers
32 views
Java ain't working on ubuntu [on hold]
I'm trying to install Java Netbeans under Ubuntu operative system but I'm not getting it.
This is what happens
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) ...
0
votes
1answer
30 views
Linux Write File Exception In Java Code
Here is My WriteFile
WriteFile.writeFile(str, "./test/my.html");
And writeFile() method code
public static void writeFile(String content, String fileName)
{
try
{
File file = new ...
0
votes
0answers
14 views
Error when compiling for Android (Native) Cocos2d-x
Hi guys I am using linux operating system and when I try to compile the code for android ndk I get the below error.
What could be the reason?
...
0
votes
1answer
46 views
Run batch file using Runtime.exec without using cmd.exe
I am running a Java application that executes a script. The relevant code is
String command [] = new String [2];
command[0] = "customSearch";
command[1] = query;
Process ...
0
votes
1answer
23 views
Insight required on a JAVA log file error
Am running a java image batch processing utility known as SIET under Linux & its not running after an initial loading icon. My Java environment is all setup as displayed below.
java version ...
0
votes
1answer
28 views
java <defunct> still present even after killing all java processes
Executed below command to kill java process on linux system.
ps -ef | grep java | grep -v grep | awk '{print $2}'| xargs kill -9
After this when I checked for running java processes, I could find ...
1
vote
0answers
28 views
Install4j Linux application
I'm developing an install4j application for multiple platforms. At the moment I want the application to run at start up of the computer in linux. I have already set it to run at startup on Windows ...
0
votes
2answers
36 views
Java Timer vs. Linux Cronjob [closed]
I'm doing automation on data fetching using Java , which approach is better for task automation? Linux cronjob or Java Timer?
for example the tasks to execute hourly, first day of week, first day of ...
0
votes
1answer
29 views
Compilation of JNI program on linux- Fedora core? [closed]
I was trying to explore the JNI part in Linux. I am from the C background. I was trying to use JNI so that I can make the UI in Java easily. I believe the UI can be made in Javascript/html. This can ...
-1
votes
0answers
17 views
Linux detect usb port on usb hub
I'm trying to achieve a java software that needs to detect the location of certain devices that are plugged in a usb hub.
Basically, what I want to do is to detect if, for instance, on the port 3 ...
-2
votes
0answers
40 views
How to convert .jar file to .exe file? [duplicate]
I had created executable jar file which is run on windows as well as linux.
But Now I want to create .exe file which is run on windows as well as linux os.
I just want to know how to convert .jar file ...
0
votes
0answers
16 views
Android: compile APK with ANT, common libraries from outside the project folder
I'm running a web service that allows users to create simple android apps. I'm using ANT to automate the building of the APKs:
Create the project folder (eclipse-style)
Copy libs (ad sdks) to the ...
0
votes
2answers
67 views
What actually is “java.lang.OutOfMemoryError: Java heap space” and how can i increase the Memory for Java?
Actually i am running Wowza Media Server on CentOS v6.3 64-bit Linux. Then it used to be suddenly stopped in some days and whenever i check the logs, i always see:
java.lang.OutOfMemoryError: Java ...
0
votes
0answers
31 views
StackOverflowError error on running Grails 2.3.2 or above
After installing Grails 2.3.2 or 2.3.3 and setting up the environment path on linux server, it shows the following error when running command grails -version
java.lang.StackOverflowError thrown from ...
0
votes
2answers
43 views
Linux Script does not work properly when execute from Java
I have this Script that simply mount the attached External drive and write their mounted path in a text file. Though when I run this script from terminal in tinyCOre it works fine.
Following is the ...
0
votes
0answers
19 views
Java move operation between two NTFS virtual machines on linux [closed]
I have an app sitting on linux machine, on the machine there are two virtual NTFS machines. The app should move a file from one virtual machine to another but it is failing. I am using Java 7s' move ...
0
votes
1answer
23 views
gksu on Mac Osx
im new toward linux command..
Im using Mac Osx Mountain Lion as my operating system and eclipse to compile my java program..
The problem is that im trying to run/compile/debug my java application as ...
0
votes
1answer
41 views
hadoop suggestions on how to process logs
I need some suggestions on how I should process infrastructure logs using hadoop in Java instead of Pig as I think Pig does not support regex filters while reading log files.
As an example, i have ...
0
votes
0answers
28 views
ifconfig setting in android app without root
I have an Android board, and I connect the board to mobile phone by USB using rndis module.
To set ip for the board, I need to use the command
ifconfig usb0 x.x.x.x in minicom, and reset the ip every ...
1
vote
1answer
45 views
Raspberry pi how to install java in debian wheezy
I am trying to install JDK 1.8.0 in my debian Raspberry Pi. I downloaded the tar ball and extracted the file in /opt/java. I then included the path in /etc/profile. After that installed Netbeans 7.4 ...
0
votes
0answers
7 views
Robcomm for Windows
Robcomm
when a communication channel is opened with the robot, it is not closed and the computed should be initiated, in that way the other process could comunicates with the robot.
I'm working ...
-1
votes
0answers
16 views
java library for linux user management [closed]
I'm writing a web application in Java that controls the appliance/OS it runs on. Part of this involves creating, modifying, and deleting OS users as well as managing their permissions to OS-level ...
0
votes
0answers
33 views
How do I rebuild a .jar file after removing classes in linux command line?
After removing a couple of classes from a .jar file I get this error when attempting to run it:
Exception in thread "main" java.lang.NoClassDefFoundError
I was told that I had to rebuild the .jar ...
-1
votes
2answers
21 views
Can I run an application using Window Builder on Java in the Linux environment? [closed]
I have an application written with Java and eclipse in windows 7. I need to know that can I run it on Linux? If not, what should I do to run it in Linux. It's a windows application built with Window ...
0
votes
1answer
46 views
My custom “paste from clipboard” action
I want to find a way to do kind of a custom "paste from clipboard" action. Let's assume the content of clipboard is text for simplicity (not a file). Whenever you press Ctrl+V, it inserts that content ...
-4
votes
2answers
31 views
How to count characters line-by-line in Unix [closed]
I need a unix command to count character in each line of file:
378100026298001286030000 Mr RUSH UNIVERSITY MEDICAL CENTER
378100026298001286030000 Mr RUSH ...
0
votes
0answers
45 views
java.lang.ExceptionInInitializerError when trying to run Play Application
I am currently trying to set up a scala + play framework development environment.
I am working on a Ubuntu LTS 12.04, with Open JDK and Java Versions:
$ javac -version
javac 1.7.0_25
$ java -version
...
0
votes
1answer
41 views
Runtime.getRuntime().exec(cmd, vars) is not working in Linux
When using
final Map<String, String> env = new HashMap<String, String>(System.getenv());
env.put("ECLIPSE_PROJ_PATH", fileSelectedPath);
final String[] envVars = ...
0
votes
0answers
13 views
How to run specjbb2005?
I'm trying to run specjbb2005 benchmark in a machine, which OS is Ubuntu 12.04. But I don't know how to make it work. According to the README file I use the command line
java -jar setup.jar
But I ...
0
votes
1answer
39 views
Open Outgoing Port (CENTOS)
When doing a remote MySQl Connection from a linux node to a webserver (in a Java program), it cannot be accessed. I receive the error shown below. I can do MySQL Connections fine from my local ...
0
votes
1answer
33 views
Centos Java Application Killed Automatically
On my centos node, after starting the application in terminal with a command (sh run.sh), a few things are loaded and printed out to, and then I receive this line of text:
run.sh: line 1: 32366 ...
2
votes
2answers
27 views
No sound under in IDE on Linux (OK in Jar)
I use openjdk-1.6 on Linux platform (that's a requirement)
I need to play stream audio. Based on this example http://www.java2s.com/Code/Java/Development-Class/PlayingStreamingSampledAudio.htm
I ...
0
votes
1answer
62 views
What can kill a Java process on Linux other than OOM?
I have two virtual servers for hosting my web app. They are identical, running Debian 6 with 1.5GB of RAM. I configure the OS and Tomcat using a script from a fresh install, so I know they are ...
2
votes
1answer
49 views
SOS - Berlin scheduler cannot continue next job
I'm now migrating SOS scheduler from sun solaris to Oracle linux ,
SOS Berlin scheduler is latest version from 1.5.3253 - Linux X64 with
Java JDK 1.7.0.45 - 64 bits
Last time was using JavaScript ...
0
votes
0answers
35 views
Java on Linux: getDisplayMode() fails in multi screen
I have a desktop java application (java 1.4.2), that needs to determine the information regarding two screens on linux environment:
# cat /etc/redhat-release
Red Hat Enterprise Linux WS release 4 ...
0
votes
1answer
75 views
How to know if I am using Java EE?
Today I installed Java EE by downloading the .sh file from the official Oracle source and running it using the sudo sh filename.sh command.
However, I have several versions of Java in my Linux Mint ...