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
7 views

Syntastic, Vim & Android: get them play well together

I've got a problem configuring my development environment for android. I'm migrating away from Android Studio due to continious issues that I have no desire to solve anymore. I'm a long-time VIM ...
-1
votes
2answers
46 views

Run GUI Java jar on system boot Lubuntu

I have a PC which runs Lubuntu 14.10 without a monitor. The user is autologged in. I have created a Sysvinit script and installed it on /etc/init.d. My script amongst other things, starts a jar file ...
0
votes
0answers
10 views

when idle tomcat runs on 3.9% CPU

I would like to know if it is normal that tomcat7 runs on 3.9% CPU when idle? I saw all other processes are at 0%, only tomcat7 is always at least 3.9%. Thanks
0
votes
1answer
25 views

Java in Gnu/linux servers

What is the use of installing java in linux server. I have seen initialising java paths in .bashrc and using them in different scripts. What does this all mean.please help. Dont have much knowledge ...
0
votes
1answer
20 views

Can't install JPCAP library

I can't install JPCAP on my ubuntu machine. It tells that depends on sun-java6-jdk & libpcap0.8. However I do have them installed in my system as you can see. kujim@kujim:~/Downloads$ ldconfig ...
0
votes
1answer
34 views

Installing Java JDK in busybox in an LXC container - java/lang/NoClassDefFoundError: java/lang/Object

In a web application I'm developing, users will be able to upload java code and I will need to compile and run that. For security reasons, I'd like to that inside an LXC container, and for footprint ...
0
votes
1answer
26 views

How to use Linux Kernel [duplicate]

I would like to build a very small and simple operating system that runs java application on top of Linux kernel just like android, just to improve my knowledge and to build some hands on experience ...
2
votes
1answer
23 views

calling javac from CentOS 7

I want to be able to use the javac command on the CentOS 7 terminal. How do I set the PATH variable in order to accomplish this? The following explains relevant aspects of my current environment. ...
0
votes
1answer
64 views

Running Java classes in a package --> Error: Could not find or load main class

I'm learning how to compile and run java classes in terminal using the commands javac and java. I have no problem compiling and running an individual class, however, when I put that class into a ...
-1
votes
1answer
28 views

How can I set an environment path of Java (jdk) in Linux-KDE?

I´ve installed Linux-KDE on my Chromebook and I managed to install the jdk8 of JAVA, too, however, I don´t know how to set an environment path in this kind of linux-distribution. How can I do set ...
0
votes
1answer
32 views

What is the meaning of local[4] in this example

I am looking at this example from the apache spark documentation. It seems to pass a variable called local[4] into the --master variable. I have not seen that before. What does it mean? I am using ...
1
vote
1answer
21 views

Removing jre7 installs jre6

I am working under Mint 16 and I want to remove jre7 packages (openjdk-7-jre, openjdk-7-jre-lib and openjdk-7-jre-headless) since I don't need them anymore. Using synaptic or apt-get I can easily get ...
1
vote
1answer
30 views

Java Client Connection Refused by Linux Server

I have a Java server and client, which is a simple server that prints a message when the client communicates with it. It works perfectly fine when the client and server are on the same machine. When I ...
1
vote
1answer
41 views

Jar on Raspberry Pi not responding after a long time

Hello I made a java program with friend that is designed to run 24/7 as a personal assistant on a headless Raspberry Pi. It basically can be used as an alarm and to tell us the weather or news etc. So ...
1
vote
0answers
37 views

Java process gets killed frequently by OOM - Killer on upgraded hardware

I am running solr on an Ubuntu server along with 4 other java processes. Current index size is 30 GB. My solr process gets killed frequently in few hours. It clearly mentions that its an OOM killer. I ...
1
vote
0answers
19 views

java version not found in redhat

My OS is redhat linux. It's having the default java 1.4.2, but I need java 1.7.45, for that I am trying as follows: /usr/sbin/alternatives --install /usr/bin/java java /u01/java7/bin/java 5 ...
0
votes
1answer
171 views

Trying to install rpm package in Fedora 21, but dependency on OpenJDK 7 results in errors

I am running Fedora 21 32bit workstation version. Trying to install iris-4.22.0-1.noarch.rpm: [itse@localhost Downloads]$ sudo yum install iris-4.22.0-1.noarch.rpm [sudo] password for itse: Loaded ...
2
votes
0answers
38 views

How can the RES memory reported for a Java process be higher than the VIRT memory?

I've been monitoring a Java process (Oracle Weblogic) using TOP and have observed that sometimes the following will happen: RES will increase from it's usual stable level of 2,097,152 KB up to ...
1
vote
1answer
63 views

Equivalent of Java's String.getBytes() in Unix Shell (Cygwin)

Let's say I convert my string into byte array. byte[] byte sUserID.getBytes(“UTF-8”); //Convert User ID String to byte array Now I need to write a script on Shell that will have exactly the ...
0
votes
1answer
31 views

Convert serialized Java object to human readable

I have object of class class X { private DateTime dt; "constructor, set/get" } I have one instance of this object serialized in file.bin. I want to show content of `file.bin on the Linux ...
0
votes
0answers
7 views

Java Focres X11 Window Server to Restart

I'm using OpenSUSE 13.2 with openjdk 1.8 and GNOME 3.14 desktop environemnt. Sometimes when I'm using a java GUI application (Swing) the XServer restarts. It just restarts. I don't know why, or what ...
2
votes
1answer
210 views

How to get binary representations of strings in Shell?

I'm using openssl dgst -sha1 -binary to get hash values of my strings in binary format. (I'm using -binary flag because my version of openssl adds "stdout" before each hash value on default output, ...
0
votes
0answers
16 views

Where to store the SQL Server jdbc driver file for use by all users

I have downloaded the sqljdbc4.jar file which enables connecting to SQL Server via jdbc. I currently have this in a personal folder whilst I've been testing connectivity. I'm hoping to put this file ...
1
vote
1answer
84 views

How to restart my java program automatically if it gets killed?

I am running my runnable jar in linux machine (machineA) as shown below. In the runnable Jar, I have a java program which sends email to me every 15 mniutes. ...
1
vote
1answer
102 views

use different java version to run two programs

I installed two JAVA JREs on my new CentOS since Cassandra needs java7u25 or later while iReport needs to work with 1.6. Now how do I launch each program from command line telling each program which ...
0
votes
0answers
38 views

What is the command for finding some counters in linux?

I am developing a Java swing application to find the Linux performance counter values. Till now I got command for System - vmstat Memory - cat/proc/meminfo Disk - iostat -dxm /dev/sda Now I want to ...
1
vote
1answer
81 views

Problem running “selinux sandbox” with java

I am trying to sandbox a java application using selinux sandbox. System details: Redhat 6 | x86_64 | no x server install | jdk7 from oracle tar.gz version | cgred and cgconfig are stop The cmd ...
0
votes
1answer
88 views

archlinux cannot execute java after update

I 've updated raspberry pi b+ arch linux via pacman -Syyu and now I cannot run java anymore because of following error: [xxxx@pi ~]# java -bash: /usr/bin/java: cannot execute binary file: Exec format ...
0
votes
0answers
38 views

Multicast is not received using Java on Linux

Setup is as follows: host windows machine, 2 VMs with a Host-Only Network adapter and a NAT adapter. Java program on one VM that sends a UDP packet to the following address ...
0
votes
0answers
73 views

web container options for war file in CentOS 7

I know that Tomcat and NginX are both able to host web applications that are defined by war files. But can httpd also host a war-file-based web application on a CentOS 7 server? If so, how would you ...
0
votes
0answers
116 views

deploying a war file to a remote centos 7 server

If tomcat is installed in a remote centos 7 dedicated web server, and a war file is placed in the webapps folder, how would you set things up so that http requests originating all over the internet ...
-1
votes
2answers
63 views

How to find a file on Windows in linux using the terminal

I have a .java file in Windows that I need to access in linux because it is a requirement of a homework project of mine to submit it to the school's linux server. In the past, I've copied and pasted ...
0
votes
1answer
232 views

Bash script class path issue with java

Content of /opt/scripts/jvm/jvm.script.sh #!/bin/bash JAVA_HOME='/java' PATH="$PATH:/$JAVA_HOME/bin" java -cp ./classes:./lib com.mystuff.bar.foo.myclass & Content of /etc/init.d/init.script.sh ...
0
votes
0answers
445 views

Key-based authentication from PyCharm / JSCH to OpenBSD fails

I am trying to configure PyCharm (java-based IDE) to connect via sftp to a new OpenBSD 5.6 machine with an almost-default setup. However, it keeps returning an error "Algorithm negotiation fails". I ...
2
votes
1answer
50 views

Problem with either su username -c “./script.sh” and sudo -u username bash -c “./script.sh” and Java classpath

I am seeing some strange behavior that has led me to wonder how the environment differs when running either of these 2 commands, versus using su username and then running the commands as the user one ...
1
vote
1answer
64 views

Java appletviewer on arm ubuntu

I have an Ubuntu on arm CPU, where I would like to run a java applet standalone (i.e. not in the browser) I have the iced tea plugin installed and it works in Firefox. When I type appletviewer ...
0
votes
1answer
62 views

screen command cannot find java executable

I'm trying to execute java from screen: screen -S my-java-app -d -m 'java -jar -Xms512m -Xmx2048m my-java-app.jar' but seems that screen does not know the java command. Running java without screen ...
0
votes
1answer
162 views

Cannot Initialize RXTX drivers, in 64bit linux for Java SunSpot, gnu.io.RXTXCommDriver failed, although library binaries are present

I have some Java SunSpots (www.sunspotworld.com), The sunspots come with an SDK, which has a copy of all the needed libraries. I am able to build java application which use the RXTX driver to ...
1
vote
1answer
63 views

Installing java 1.6 when 1.7 already installed?

I have java 1.7 installed and I am trying to install java 1.6. I have updated java_home and path variable pointing to the new location, also ran these commands. sudo update-alternatives --set java ...
1
vote
1answer
77 views

java upgrade problem on centos 6.5

I want to upgrade my jdk on a centos server, after some simple searches i found some solutions. From this link, you can see that the instructions are simple: jdk 7 installation guide for centos ...
0
votes
0answers
10 views

How do I install MEKeyTool on my device running Debian 6?

I am having trouble installing MEKeyTool or finding documentation on how to install MEKeyTool. I am using a device running Debian 6. cvm -version produces the following output: Product version ...
0
votes
1answer
35 views

What is the command to check what version of Java ME I have installed?

I have Debian 6 installed on a device and want to check what version of Java ME I have installed. I tried java -version, but I get -sh: java: not found. What command should I use?
1
vote
1answer
630 views

How to get Java working in chromium or firefox

I updated Java (version 1.8.0_25) and now I can't seem to get it working in chromium or FireFox. The java plugins for Firefox and for chromium are not listed anymore. Changing back ( via ...
0
votes
2answers
81 views

Tomcat 8 doesn't start

Upgraded tomcat 6 to 8 on Centos 7. I get this error in logs: /usr/local/ctera/apache-tomcat-8.0.14/bin/catalina.sh: line 421: -Djava.endorsed.dirs=/usr/local/ctera/apache-tomcat-8.0.14/endorsed: ...
0
votes
0answers
44 views

Spring roo not finding core java classes in Arch

Arch has changed some of how it sets up Java. I'm trying to get Spring Roo working, but it seems not to finding java provided classes on the class path. I'm running ./bin/roo.sh Resolved ROO_HOME: ...
2
votes
1answer
32 views

Terminating Java Application

I have a Java application on a suseEnvironment which I start with a SH file. I use the command: startFile.sh &. If I logged in via putty, the application is still running after I've closed ...
0
votes
1answer
98 views

Starting Arduino IDE as root fails on Archlinux with KDE

I need to run the IDE as root to get access to the serial port. The command is ./arduino from inside the package folder. On Fedora this works fine, but on Archlinux the pocess chrashes with the ...
1
vote
1answer
84 views

How to find out which JRE being used?

I have a Java .jar running in my system. How can I know which JRE is being used by that .jar? I have multiple JRE's in multiple location. The which java command produces /usr/bin/java $JAVA_HOME ...
1
vote
2answers
813 views

Java JDK missing libjli.so path in dependency list, Debian

This perhaps should have been asked at unix.stackexchange.com. Feel free to move it there if you have that power. I am scripting the creation of chroot jails and part of that automation includes ...
0
votes
1answer
42 views

Updating Java on Linux

My machine currently has: [support@turndownForWhat sbin]$ java -version java version "1.5.0_10" I would like to know if there is any way possible to install/extract java 1.7 to a specific directory ...