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

Copying Binary Data

I'm attempting to read a video file, and write it to another file but for some reason when i do an md5sum comparison they differ and the new file is unreadable by VLC. Thoughts? md5sum of original ...
0
votes
0answers
14 views

Java NativeLibrary: Interface of library does not extend Library

What I'm trying: To load libvlc to interact with it via the vlcj bindings and I'm on Debian and using Intellij. I installed VLCJ via the 'install from Maven' feature of Intellij but I am not using ...
0
votes
2answers
35 views

How to install Java 8 on Kali Nethunter

Guys I need to install jdk 8 for my programs to work better, many programs do not support the version higher than Java 8 so I want to install Java 8 to run better, I tried to install via apt-get, but ...
0
votes
0answers
19 views

How to pretend as if a package is installed apt dpkg [duplicate]

I'm asking a solution for general case, but specific one may work either. I have installed oracle jdk, used update-java-alternative to make that default and uninstalled openjdk that came with my ...
1
vote
1answer
18 views

How to kill an orphan Terminal process

I have a java program that executes several shell files (one by each iteration). The shell file only has one command, start cross-gdb with a path to a gdbinit file. The program works fine, but (from ...
0
votes
2answers
18 views

kubernetes replicaSet shutdown policy

Kubernetes use TERM signal on count down replicaSet . this is so dangerous for my application . I use Tomcat application server and this application server has own shutdown mechanism for terminating ...
2
votes
0answers
34 views

JVM only uses 4 cores

I have a processor-intensive Java program and I want it to use all 8 available cores on the machine. I've run taskset and it reports the mask to be: pid 5897's current affinity mask: ff But in top (...
0
votes
0answers
35 views

javac -version command not found error in rhel 7.3

I followed this documentation to install java-1.8.0-openjdk-1.8.0.272.b10-1.portable.jdk.el.x86_64.tar.xz into RHEL 7.3. In section 2.4. Installing OpenJDK on RHEL using an archive, at the last step, ...
2
votes
1answer
2k views

Intellij IDEA: Unrecognized VM option 'UseConcMarkSweepGC'

I installed Intellij IDEA from on my arch using yay. I worked fine but recently it started doing this: john@arch-thinkpad ~ [1]> intellij-idea-ultimate-edition Unrecognized VM option '...
1
vote
1answer
16 views

Fedora 33 | VS Code can't read / open JDK

I'm running Fedora 33 and I'm trying to use Java 11 with VS Code. I've installed VS Code via the terminal, and it's working fine. I've installed the VS Code Java extension pack, the only thing that ...
0
votes
1answer
33 views

How to tune the linux Scheduler for parallel computation?

I have a linux machine dedicated to running some parallel computation, and I'm trying to understand how to choose / tune the scheduler, and perhaps other parameters, to extract the most performance (...
2
votes
1answer
49 views

Force use Swap over Memory

I have a Debian server that I'm really cheaping out on, but for some reason the Java processes use all the memory then throw a "OutOfMemoryError" rather than using the swap space. I've got ...
-1
votes
2answers
52 views

How to get all the contents of df -h command as string

I want to have a CRON job which calls a Java program to send a mail if disk space is more than 80%. Along with it, I want to send the contents of the df -h command also. What I did was create a ...
-1
votes
1answer
49 views

How the graphical part is implemented in Linux on Automotive head unit [closed]

I have the Automotive head unit on Linux (ext2 filesystem), and I'm wondering how the graphical part is implemented in Linux.  For example, the background pictures, the buttons, text boxes, text on ...
0
votes
0answers
18 views

Execute a script from a .jar

I have a script to launch from my Java Project. It works well in Eclipse. Then I've created a .jar (I use java -jar test.jar to launch it). It hasn't worked even if I use String[] cmd = {"...
0
votes
1answer
16 views

Linux patching ORacle Java SE 7

So one of our servers was reported as vulnerable becuase it is running an EOL Oracle Java SE Version ( Oracle Java SE/JRE/JDK J7 / 1.7 ). Oracle Java SE Product Releases The vulnerbaility scanner ...
2
votes
0answers
702 views

IntelliJ IDEA — Please consider switching to the bundled Java runtime that is better suited for IDE

IntelliJ IDEA shows this message on every startup. How can I correct this warning on IntelliJ IDEA? Edit: I installed IntelliJ IDEA ultimate edition by yay on arch linux.
0
votes
1answer
15 views

Kill only one Java process by grep

I want to kill this process: root 11870 30.1 21.9 2358848 220980 pts/0 Tl 07:51 0:24 java -jar /opt/bonansa/bonansa.jar If I do : root@localhost:/usr/local/bin# ps -A |grep java 11870 ...
1
vote
0answers
142 views

How to fix Can't find bundle for base name ncs_rest_sim, locale en_us when running devspace simulator

I Am trying to install devspace simulator on ubuntu 20.10 with java version "1.8.0_271" and I get the following error when I run it: HTTP ERROR 500 Problem accessing /. Reason: Can't find ...
0
votes
0answers
67 views

Debian: ES2 Prism: Error - GLX extension is not supported

I get the following error when I'm trying to start a Java application: ES2 Prism: Error - GLX extension is not supported GLX version 1.3 or higher is required After this error message the ...
0
votes
0answers
30 views

Can I open java.Jframe object in vscode running on a remote linux server that has no display?

I want to run some java files which use JFrame and JPanel on a remote Linux server. Since it is a remote ssh server it does not have a display to open JFrame/JPanel. I use Visual Studio Code and was ...
1
vote
1answer
91 views

“Too small initial heap” when running Java

I'm trying to run the Java program trimmomatic.jar and I'm getting an error related to "initial heap". Any idea what this is? java -Xmx500 -jar trimmomatic.jar PE -threads 20 -phred33 ../...
0
votes
0answers
60 views

Connecting to PostgreSQL with JDBC through a SSH tunnel, I get data for a while and stops, but SSH connection is still alive

Im getting data from a PostgreSQL DB through an SSH tunnel: autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -L 9999:localhost:5432 root@mypostgresip The data ...
0
votes
0answers
187 views

ftp connection refused in docker container

After deploying a jar to a remote server and containerizing it; the application fails with the following error: Connected to ************.com. java.net.ConnectException: Connection refused (...
0
votes
0answers
27 views

Install required packages help from a github repo

Would anyone have any tips for how to install the required packages from this git repo? on ubuntu 16.04 LTS? Build dependencies Backend build dependencies: Java 8 / Maven 3 Frontend build ...
0
votes
1answer
22 views

Couldn't load JVM and says cannot open shared object file

created a brand new Linux VM on azure cloud. Installed JDK 1.8 and setup the JAVA_HOME path also. When running a vendor provided command it says Error 58000: Couldn't load JVM: /usr/lib/jvm/java-11-...
0
votes
0answers
38 views

Xpra proxy: How Can I forwading a server which inside work and without xpra to html5 client?

I'm trying to forwarding a X application ,but the server having this X application can't install xpra. xpra start --bind-tcp=0.0.0.0:12345 --html=on --start=xlogo it works,and i can visit web page ...
0
votes
1answer
34 views

CLASSPATH error while configuring JAVA Environment (Java Development Kit)

After installing JAVA(JDK) whenever I reboot the system or switch to normal user a message is displayed: bash: ${AUTO_CLASSPATH_DIR}: invalid variable name bash: ${AUTO_CLASSPATH_DIR}: invalid ...
0
votes
0answers
34 views

User permission problem for biblatex and jabref

I installed Linux Mint 20 (Kernel version: Linux 5.4.0-52-generic) and texlive with sudo apt install texlive-full The version is: pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) I opened an ...
0
votes
0answers
29 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
36 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
16 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
120 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
470 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
410 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
44 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
24 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
35 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
487 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
37 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
392 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 ...
4
votes
2answers
543 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
34 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
20 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
1answer
35 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
53 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
44 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
437 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 ...
1
vote
0answers
318 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
428 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
2 3 4 5
16