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
0
votes
0answers
24 views

command is not getting executed, if started by service

I have a java programm with an update function. This function simply starts the jar and then stops itself. If i start the programm manually to test the update function, it works just fine. But if i ...
2
votes
0answers
25 views

Ubuntu 20.04 destroyed Java/Mysql app performance

I'm working on a Java / MySQL app and test runs of batch processing were taking 3-4seconds on 18.04. I made the upgrade to 20.04 and kept the same mysql conf file and now the same app is taking 1min ...
0
votes
0answers
14 views

Unable to open the /etc/environment using gedit in linux Debain distro [duplicate]

I am trying to set the path in the environment for the Java JDK, but I get this error. It would be really helpful if someone points what the mistake is.Thanks.:) xxx@debian:~/Folder$ sudo gedit /etc/...
0
votes
1answer
41 views

Can't find jar binaries

I installed jdk8 and jdk14 on Arch Linux with sudo pacman -S jre8-openjdk jre-openjdk but I can't find the jar binaries file. If I run jar it tells me command not found. I searched in both openjdk ...
0
votes
2answers
43 views

How to open Minecraft systemd service server console on CentOS 8?

I'm pretty new to Linux and because of that this might be a stupid question but anyways: I've made a CentOS 8 virtual machine on my computer to run a Minecraft server for me and my friends using this ...
0
votes
0answers
32 views

How I Replace Android With Linux (or anything less)

I have a Remix Mini with 2 GB RAM, 16GB internal storage (14.3GB actual size) and it's based on arm64 (aarch64) architecture. I'm going to replace this with Linux because I'm trying to convert this ...
1
vote
1answer
34 views

Where can i learn algorithms from zero? [closed]

I've been studying programming for like 3 years or so but my teachers never taught me algorithms. Are there any online courses for beginners? with tasks.
0
votes
1answer
21 views

Java: Why Unicode characters not support in my Distro but is in another one?

I am using Debian 10.5 with Cinnamon Desktop and am trying to display unicode icons in my Java program. Example : When I try to use this unicode character, it displays fine in Windows 10, Ubuntu 20.04 ...
0
votes
1answer
13 views

Java 8 for Minecraft Forge Error (Debian 10)

I tried to install Java 8 in addition to Java 11 on my VPS. Apparently that was only moderately successful. It is displayed under "java -version". And also with "sudo update-...
0
votes
1answer
25 views

How to do HmacSHA256 using openSSL from terminal?

I need to perform the following Java snippet using OpenSSL from the command line: private byte[] hmacSha256(byte[] key, byte[] payload) throws GeneralSecurityException { Mac mac = Mac....
0
votes
1answer
36 views

Different behaviour of regex dot?

From this wiki article: Regular expression For example, in the regex a., a is a literal character that matches just 'a', while . is a metacharacter that matches every character except a newline. ...
0
votes
1answer
56 views

-bash: ./java: Permission denied

I'm trying to run Java on my web server (that is only rented). I downloaded the JRE from java.com and unpacked it in a local folder in my home directory. I changed the permissions of the bin/java ...
2
votes
2answers
55 views

allowing user to run systemctl/systemd services without password

I have a service in linux called appSevice When I start and stop with these commands, it works: sudo systemctl start appSevice.service; sudo systemctl stop appSevice.service; But when I try to ...
0
votes
0answers
12 views

Starting visualvm on a CentOS 7.8 VM lead to a blank “VisualVM License Agreement” window

At work, when we attempt to run visualVM (a known tool that allows to measure performance of Java applications) on our VM running CentOS 7.8, it immediately ends on a blank window. What could be the ...
0
votes
0answers
16 views

GC overhead limit exceeded in jenkins

For a job ,jenkins is throwing error like GC overhead limit exceeded ...We are using linux agent to run the job . Earlier it was running fine but now it is throwing error . We have MAVEN_OPTS='-...
0
votes
0answers
6 views

How do i check applied patches for Agile?

Is there any way to check applied patches for Agile except Java Client and Web Client? And how do I check applied patches for File Manager?
0
votes
1answer
34 views

Issue with correctly running a systemd service file

I have a GUI program that I can run from a terminal with no issue using: $ /home/user1/ibg/ibg username=*** password=*** With the above command, the program GUI is displayed, get automatically logged-...
-1
votes
1answer
51 views

How do I run these .class files?

I have following files stored on my pc, but I don't know how to run any of them. I think they have something to do with java, so I tried using java filename but it didn't work. Any suggestions? EDIT: ...
0
votes
1answer
28 views

Getting an error while running a JAR as a systemd service

When I run the following part in a bash script it works: /usr/bin/java \ -Dspring.index.ignore=true \ --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \ --add-exports=java.base/sun.nio.ch=ALL-...
0
votes
2answers
125 views

Unable to build using Java OpenJDK 14. /bin/sh: javac: command not found

I've been tasked to work on updating a Java program that hasn't been touched for years and I'm running into issues building it using the latest version of Java OpenJDK 14.0.1.7-2 on Centos 7. When I ...
0
votes
0answers
56 views

GLException: Profile GL4bc is not available on X11GraphicsDevice

Recent update to LM 20 (Mate) (based on Ubuntu 20.04). A java application I use has begun to get borked - window is tearing and ghosting, menus only becoming visible if I mouse over them, etc. ...
0
votes
0answers
109 views

Error: unable to open display :99 on FFMpeg

I installed FFmpeg on a Linux Ubuntu machine using "snap". When I run FFmpeg on the remote machine using SSH it seems to work fine. When I run FFMpeg from Java on the machine (Unit tests ...
1
vote
1answer
37 views

Bash script to split logs based on file size

I'm working on a .bash script that kicks off a Java program, logs the sysouts to an 'outfile', then appends the log results for historical purposes to a 'archive' zip. My current script is like below.....
1
vote
1answer
185 views

alternatives java -OpenJDK RHEL

I have the following setup (on multiple machines with RHEL7): $ which java /usr/bin/java $ ls -ltr /usr/bin/java /usr/bin/java -> /etc/alternatives/java $ ls -ltr /etc/alternatives/java /etc/...
0
votes
1answer
43 views

How many STDINs exist in a shell session?

I am a junior java developer and I am new to UNIX system. I don't know I am asking a right question or not. So, in a IDE environment, a STDIN usually refers to IDE's console. In a UNIX shell, it seems ...
1
vote
0answers
33 views

� rendered instead of `é` in dockerized java GUI application

Whenever I type the é character, or any letter with diacritics, the � glyph is rendered instead. The actual key sequence is ´ + e. The app seems to be AWT-based (from error messages, font rendering ...
0
votes
0answers
35 views

Unsatisfied Link Error (No such file or directory) on Linux, while file is available at given path

I am loading some .so files in my Java code using System.load("home/projects/proj/my.so"). Where I have given complete path of my .so files. But in my logs I am getting below error: sys:Err: ...
0
votes
2answers
159 views

How to install Java 13 to Kali Linux?

I downloaded jdk-13.0.2_linux-x64_bin.deb from oracle and installed using dpkg. However, update-alternatives --config java doesnt show java13. How do i get the java -version to java13 now?
0
votes
1answer
51 views

How to start Jetty using start.jar from the console?

Having installed Jetty through apt how do I start the web server to get to a welcome page? Trying: java -jar /usr/share/jetty9/start.jar results in: ERROR : Nothing to start, exiting ... Usage: java ...
1
vote
1answer
28 views

why are environnement variable not resolved when doubl-clicking .desktop file?

I have a java app which is launched by a shell script. The first part of the shell script is to resolve the java location by looking at $JAVA_HOME. The shell script is working well if launched from ...
0
votes
0answers
47 views

How to search for dependencies for Java 8 yum install?

I inherited ansible playbook that installs java 1.8.0_181 via yum module on rhel server. My plan is to upgrade to java 1.8.0_221. While reviewing the playbook, I noticed it would install copy-jdk-...
0
votes
1answer
13 views

How to define the running task icon?

I'm running Gnome 3.36.1 under Ubuntu 20.04. In the Gnome desktop file I have defined an icon 'myIcon' and this appears in the menu and on the extension "TaskBar 2020" favorites list. However when ...
0
votes
1answer
48 views

How to make archlinux-java set … not require sudo?

I have to bounce between Java 8 and Java 13 for different Minecraft versions to work properly, and doing that requires me to type sudo archlinux-java set java-8-openjdk or sudo archlinux-java set java-...
0
votes
0answers
9 views

when run ycsb using Rocksdb, /proc/[pid]/exe link to java. Why exe file link to this file?

When run ycsb workload using Rocksdb(https://github.com/brianfrankcooper/YCSB/tree/master/rocksdb), /proc/[pid]/exe (thread's executable file made by Rocksdb) link(symbolic link) to java executable ...
0
votes
0answers
65 views

Trying to configure Wifi on Linux with Java

Edit: In rethinking the problem, one questions stands out: Why can I simply connect to Wifi when going through the GUI, but I require root privileges if I want to connect through the command line? I'...
0
votes
0answers
18 views

Disabling WARNING LOGS in tomcat server

When i am starting tomcat i am getting so many of WARNING MESSAGES like File not found: DerbyLocale.jar is missing like that, but i do not require those jars for my application. How can i disable ...
-2
votes
1answer
35 views

Tomcat failed to start when shut down port changed to -1

When I tried to change tomcat shut down port from 8005 to -1 and starting tomcat, it did not start and threw an "invalid port number" exception. Is there any process for changing tomcat shutdown port ...
2
votes
2answers
299 views

setting JAVA_HOME and PATH with update-alternatives

EDITED The question was more about bash script them java environment and thanks for those whom had the patience and spare the time to reply me. I am much obliged. As for the Java environment I started ...
0
votes
2answers
164 views

java -version and $JAVA_HOME display wrong information

I have a RHEL 7 server. Installed java version is jdk1.8.0_151 # ls -l /usr/java total 0 drwxr-xr-x. 8 root root 255 Apr 24 14:10 jdk1.8.0_151 I set JAVA_HOME location and added bin directory to ...
0
votes
0answers
113 views

Configure Apache Web Server with Tomcat and trying to Deploy war file

I am not getting my project on my domain name. It gives me Apache Test Page instead of my project which i have added in webapps. I have my war file FINAL_WE.war in /opt/code/apache-tomcat-8.5.54/...
1
vote
1answer
214 views

libjli.so not found. How can I install java without root access?

I would like to run java on a simple web hosting server to which I have ssh access but no root privilege. I have downloaded and unpacked the jdk linux/x64 tarball but running the java binary then ...
2
votes
0answers
72 views

Some JVM flags stop backgrounded process unexpectedly

I've been running a local Minecraft server for my kids at home, and as more have joined, lag has become a problem...and lately, actual game crashes (when a single game "tick" takes more than 60s, the ...
1
vote
1answer
32 views

How to output only required parameters in jstat command?

When running the following jstat command on a linux server, we get the following output. $ jstat -gc $(pidof java) S0C S1C S0U S1U EC EU OC OU MC MU ...
0
votes
0answers
54 views

.jar-file fails to start on fedora gnome3

form terminal, when I try to run a .jar-file I receive: $ java -jar ./RemoteDroidServer/RemoteDroidServer.jar Exception in thread "main" java.awt.HeadlessException at java.awt....
0
votes
1answer
37 views

how to get error from running shell script in java?

i'am using java to run shell script it works great . now i want to get errors from this script for example i have a script and there is an error i want to get the line and a message of that error ...
0
votes
1answer
58 views

Executing A .jar File In Deepin

I recently received a Minecraft 1.5.2.jar file and downloaded it as seen in the picture below. I used the command java -jar minecraft.jar but it returns the error Can anyone help me out with ...
0
votes
0answers
45 views

Unable to import a certificate into java keystore

I am trying to import a certificate into java keystore. This is what I have done. Created the keystore: # keytool -keystore keystore.jks -storepass password -alias tomcat -genkeypair -validity 730 -...
0
votes
1answer
36 views

Is this output from dpkg-query -L openjfx what it should be?

I am struggling to run openjfx and getting desperate. I thought I was ok troubleshooting in linux and java, but I've never been stuck for such a long time. As usual with linux, there is lots of ...
1
vote
0answers
73 views

Java Compiling on Linux

I am trying to compile a basic java file but I receive this message when I try Command 'javac' not found, but can be installed with: sudo apt install default-jdk (You will have to enable ...
2
votes
1answer
26 views

When does Fedora provide extended support releases for Java?

I'm trying to run a jar file which checks the installed version of Java explicitly: *** The version you have requested to build requires Java versions between [Java 8, Java 12], but you are using ...

1
2 3 4 5
16