Questions tagged [java]

Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM). Use this tag when you are dealing with a java program, installing java, or configuring a java installation.

Filter by
Sorted by
Tagged with
3
votes
1answer
36 views

How do I invoke a process with a certain java binary, and all processes called by that process?

I need to be able to call a certain process with a certain java binary. Call that process "foo". However, foo also invokes several other processes via java, but foo is a black box to me. When foo ...
5
votes
3answers
4k views

Install Java JDK and JRE on Debian 8

I installed Debian 8, I would like to install Java JRE and JDK. I use this method and it works. But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn'...
1
vote
1answer
2k views

Cron job to execute jar file weekdays local time 8am-5pm, no weekends

Okay so say I have a java program compiled as a jar file. I want to run four instances of this cron job to execute this jar file every Monday-Friday local time from 8am to 5pm, but at intervals of 30 ...
1
vote
1answer
355 views

Maven Compilation error while building Lumify web-base project

I am trying to build lumify project with the following command mvn package -e -P web-war -pl web/war -am -DskipTests -Dsource.skip=true I am getting following compilation errors [INFO] Lumify .........
2
votes
1answer
463 views

Bad performance with Java

I have a computer that was running Windows with a lot of big programas (like Adobe Fireworks, and many other stuff) and the computer performance was really good. I decided to format my computer (I ...
1
vote
1answer
156 views

Lumify with Docker Installation

I am trying to run lumify with docker as follows 1. go to the lumify directory path 2. docker/build-dev.sh after the command this starts installing packges while calling installation/java.sh I am ...
0
votes
1answer
68 views

Secure Java code on Linux

We developed an application which is running on a micro computer with a Debian distribution of Linux. The application is written in Java so it is not compiled as an executable file. (means java files ...
1
vote
2answers
91 views

How can I check how much RAM my application needs, and whether less RAM would be sufficient?

Right now my application is hosted on a server with 12GB of RAM. I want to change my host and the new hosting service doesn't offer servers with 12GB of RAM. I can pick from 8GB then the next plan ...
1
vote
1answer
2k views

How to install jboss7.1 on centos7?

I have used following commands to install java. wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://...
3
votes
1answer
650 views

Installed Oracle Java but when installing software I get `Your version of Java is not supported.` [closed]

I am trying to install the following software on my debian jessie machine root@www:~$ sudo update-alternatives --config java [sudo] password for root: There are 3 choices for the alternative java (...
0
votes
1answer
66 views

Lumify installation with error in vagrant as The box 'nrel/CentOS-6.6-x86_64' could not be found

I am trying to install lumify in my vmware workstation as follows. $ cd lumify $ git clone https://github.com/lumifyio/lumify.git $ cd lumify/lumify $ vagrant up demo after running last step vagrant ...
3
votes
1answer
1k views

How to install Apache Tomcat 8 on centos 7?

I am configuring CentOS 7 system for a Java developer. So firstly I have installed Java using command wget java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64.rpm after that installed the downloaded ...
2
votes
1answer
2k views

Unable to start Java GUI X11 session from docker container

I am having trouble running a Java GUI app from within a docker container so that it appears on my desktop, as xeyes does. Here are the steps I'm taking: I am logged into my physical machine in a ...
0
votes
1answer
65 views

Java Server Application takes more RAM than allocated maximum!

I'm hosting a java server application on a Linux Root-Server. My problem is, that sometimes the server takes more RAM than the allocated maximum, which leads to an automatic process kill (crash). ...
0
votes
2answers
1k views

Cron tab to run a java file

I'm having issues getting a cron tab to run a java file every 5 minutes. I have tried to create an executable script to see if that is what's needed: My script and java file are both stored in /usr/...
1
vote
1answer
1k views

Is it this Tomcat server correctly running? Why it seems that it is not listening on the 8080 port? [closed]

I am not so into system engineer (I am a Java developer) and I am finding some difficulties trying to understand if a Tomcat server (on a remote server) on which I have to deploy an application is ...
43
votes
5answers
31k views

openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed

Can't install Java8 apt-get install openjdk-8-jre-headless Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean ...
1
vote
2answers
3k views

Permission denied to cacerts file - SSL

I have installed a Red Hat 6.8 machine, on which I have installed a certificate on the default keystore 'cacerts' successfully. When trying to invoke a software which is using SSL and is trying to ...
1
vote
1answer
120 views

How can I run ANY java class file graphically? (Linux Mint/Dolphin)

When trying to run a .class file, Dolphin will ask me to choose an application to open/run it. However, using the java command doesn't remove the .class extension from the file, so it can't run. Is ...
-8
votes
2answers
3k views

How does the Conditional (ternary) Operator get evaluated? [closed]

in all of the examples I've seen how this works condition?value = true:value = false I have yet to find how it actually works. taking this mode of operation it is almost plainly explained. Short-...
4
votes
2answers
8k views

Java 8 JDK install on OpenSUSE - Update Alternatives

I have searched many OpenSUSE forums for an answer to this, but so far I have not found one. Long story short, when installing the RPM for the JDK from Oracle, I receive the following: > sudo ...
0
votes
2answers
588 views

How can I get correct sub-pixel rendering in Java applications?

I used to use infinality for good-looking fonts, but it hasn't been updated for ages, and it's now broken. I've since reverted to vanilla freetype and vanilla fonts. I followed instructions to get ...
1
vote
2answers
946 views

Need to install Java to use android studio?

new Linux user here, I am using chaletOS. I'm trying to install and run android-studio. After I try to run studio.sh, an error window pops up that reads: Unsupported Java Version: Cannot start under ...
0
votes
1answer
931 views

What is the meaning of update-alternatives --config java command

The + was my selection, what does * mean? [root ~]$ update-alternatives --config javac There are 2 programs which provide 'javac'. Selection Command --------------------------------------------...
2
votes
0answers
51 views

GNU screen freeze session if SSH is not connected

I have a dedicated server (Inmotion) running a Java XMPP server through a screen session to keep it alive. Sometimes, after a long period, the execution of this Java XMPP server freeze and then when I ...
1
vote
1answer
579 views

Is it possible write linux kernel in Java Programming Language? [closed]

When linux kernel written in C so is it possible to write in java programming language, microkernel and monolithic kernel ? Concern developing java os.
0
votes
2answers
1k views

how to switch to another user with password in shell script

I have logged into UNIX environment with user1, in this environment i have a shell script which containing some task need to be done at different path with different user say user2 because user1 do ...
0
votes
1answer
207 views

Trying to run Java 8 on ChromeOS but keep running into error message

I read from multiple websites that it's possible to download Java 8 on a Chromebook without having to use crouton. I do already have crouton but for matters of convenience, I wanted to be able to use ...
1
vote
0answers
138 views

Best way to start a service as a different user?

I'm running RHEL 6.8 for this task. My goal is to create a service that is supposed to kick off a process (it's a Java app) that runs as a different user. The problem that I'm encountering is that ...
0
votes
0answers
369 views

<pidof> Command not showing all Java processes

I noticed that the command in my case, is not listing all Java processes. If I run pidof java I get one single pid as a response. On the other hand, if I run ps aux | grep [j]ava I get a three ...
1
vote
3answers
4k views

Install JDK 8 on Debian [duplicate]

I am trying to install JDK 8 on Debian. I found a lot of similar topics but none of them solved my problem. In most topics the solution was this commands sudo apt-get install software-properties-...
1
vote
0answers
135 views

Java installation on OpenSuse

I have been trying to install a newer version of JRE (version 8 update 111) on my openSUSE 13.1 (x86_64) platform. I extracted the contents of the tar file in the /opt/java/64 folder and then executed ...
1
vote
1answer
493 views

Problems with Java and Meow

I installed the program Meow on Ubuntu 14.4, Gnome Shell 3.10.4 (it's a GNOME menu editor). The system updated to Java 8. When I run the program from the command line I get this: meow Exception in ...
10
votes
1answer
13k views

configure java daemon with systemd

I'm using this definition for a systemd job: [Unit] Description=Some job [Service] ExecStart=/usr/local/sbin/somejob User=dlt Type=forking [Install] WantedBy=multi-user.target The script ...
1
vote
1answer
638 views

How do I use daemonize to always keep my tomcat process running?

I was researching how to keep a background process running and I came across daemonize. This answer says that I can use daemonize to ensure a process is always running: "Ensure a process is always ...
2
votes
1answer
1k views

Java equivalent of strace

When I have an issue with a C application, one of the first tools I reach for is strace, I can easily see e.g. if it is blocking on a read from a socket, or for some file I/O or whatever else. But ...
2
votes
2answers
4k views

Problem with libx11.so.6: undefined symbol: xcb_wait_for_reply64

I have a problem with a one-day-old arch system. I accidentally moved /usr/lib/libX11.so.6 out of /usr/lib and then put it back. But now, I cannot launch Android Studio because of this: /usr/lib/jvm/...
1
vote
1answer
1k views

How to install the latest R when this Java problem in Debian?

My proposal su apt-get purge r-base r-base-dev exit wget https://cran.r-project.org/src/base/R-3/R-3.3.1.tar.gz tar -zxvf R-3.3.1.tar.gz su apt-get install libcurl4-openssl-dev # otherwise, ...
1
vote
1answer
339 views

Where is “an appropriate place” for jar files on Debian, e.g. for a MariaDB JDBC connector?

I'm trying to install a JDBC Connector for MariaDB in the form of a JAR archive. The instructions say to put the jar file in "an appropriate place". Where should I put the jar file on Debian?
2
votes
0answers
784 views

task java:14736 blocked for more than 120 seconds

I have a Java EE application running in Red Hat 6 with Java 7 and Wildfly 9. The application has been running well sometimes, suddenly the response time makes the application unusable and I have to ...
1
vote
2answers
609 views

What user does a Linux script/app run as?

CentOS here, but I don't think that matters because this should be a core Linux question (methinks). While trying to install & run Apache Kafka (a Java executable) on a CentOS box, I thought of a ...
2
votes
2answers
69 views

On Debian, how do I make a script that will rerun a Java program after it has stopped or crashed?

I'm running a Java server program that needs to be started with a shell script. The script needs to start the Java program again if it happens to crash or be stopped manually. I found this script ...
2
votes
1answer
3k views

How to update-java-alternatives successfully to Oracle's one in Debian?

The command update-java-alternatives -s jre-8-oracle-x64 is completely valid (found in documentation also here) but I get errors. The package is also seen in the list of Java packages root@masi:/...
1
vote
2answers
2k views

How to start SPSS-statistics 23 in Debian?

I installed the university licence in Debian 8.5 but did not configure any paths and forgot what is the default location. I cannot see in anything in $PATH about the program by searching SPSS. ...
-1
votes
1answer
713 views

How to create own application installer for Linux? [closed]

I would like to develop a sefl-made application graphical installer in Java. But I not found is quite a good tutorial for this. I saw izPack installer creator, but for this documentation is quite ...
2
votes
1answer
1k views

Are all open files displayed in lsof output?

In all the cases, I have found any file which is open for reading or writing is displayed in lsof output. But today, I am trying to found a logfile that is opened for writing by a java process in lsof ...
2
votes
1answer
452 views

How to stop the process if it's responding or not responding after certain time

I am running a Java application on an remote server by making a connection with remote server through java secure channel. My application executes a shell script on an remote server and get's the ...
1
vote
2answers
182 views

How to stop my program to be as daemon when running?

I am running a java script which is running as daemon. I am seeing the process running as when type jps. I don't want to run that program as daemon. As I am thinking it to be run it automatically by ...
2
votes
1answer
331 views

Install Oracle Java from a mirror in terminal

I can't access Oracle servers for some reason. Is there any way to install Java from a mirror? I'm using Fedora 24 and I need to install Oracle Java on it.
4
votes
1answer
2k views

Fedora24, trying to install java (JDK)

I've installed openjdk Installed Packages java-1.8.0-openjdk.x86_64 1:1.8.0.101-1.b14.fc24 @updates java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-1.b14.fc24 @updates javapackages-...