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

Bash script class path issue with java

jvm.script.sh /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 & init.script.sh ...
0
votes
0answers
6 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
26 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
23 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
28 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
0answers
34 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
31 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
21 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
4 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
13 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
51 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
41 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
24 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
28 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
34 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
32 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
1answer
63 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
35 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
63 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
113 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 ...
0
votes
1answer
142 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 ...
1
vote
1answer
87 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
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
3answers
278 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
15 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. ...
2
votes
2answers
265 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
54 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 ...
1
vote
1answer
2k 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
1answer
331 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 ...
0
votes
3answers
97 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
99 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
25 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 ...
8
votes
2answers
941 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
435 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
152 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
0answers
50 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
92 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 ...
0
votes
0answers
108 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
153 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
114 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
138 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
105 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 ...
1
vote
2answers
122 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 ...
0
votes
1answer
294 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
94 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
54 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 ...
4
votes
1answer
216 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
401 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 ...