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

learn more… | top users | synonyms

-1
votes
0answers
27 views

Best version of Linux for Java developer [closed]

I'm a Java developer and want to choose the best flavour of Linux for my developing purpose. I've grown tired of Windows and I know Linux is the best alternative platform. I'm familiar with Java SE ...
0
votes
0answers
37 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
22 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
26 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
25 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
46 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
78 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
103 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
39 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
35 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
34 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
57 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
43 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
38 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
6 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
22 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
147 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
55 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
33 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
63 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
42 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
170 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
38 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
21 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
111 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
175 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
254 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
135 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
363 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
16 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
639 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
73 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
574 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
109 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
128 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
30 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
1k 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
486 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
166 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
56 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
123 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
113 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
164 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
127 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
147 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 ...
3
votes
1answer
121 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 ...