Skip to content
Advertisement

Tag: linux

Java has too many level symbolic links

Well,I was trying to install forge on my linux machine(Kali-Linux).While on the was I was and still am unable to access the forge file(.jar).Due to an issue in which there is a lack of a command called “java”. The current problem I am having is sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk-16.0.1/bin/java 1 while using this command I get a response

Sha256 checksum difference between Java vs Linux

Am writing a application which calculate the checksum of file before sending it to downstream. At downstream application, linux shell script are used to process the files. It is noticed that checksum calculated from Java application doesn’t matches that calculated using Linux command ‘sha256sum’. Below is code snippet in JAVA: Using java api i get checksum value as : but

Java SIGSEGV error when running from docker

I have no experience in Java and I can run my code successfully from the development. But only when I built the project and runs it from docker, I got an error like this. I have followed the error message to use ulimit -c unlimited by adding it in the docker command: docker run –ulimit core=-1 –env-file -t my_project but

Could not load FFI provider when using module-info.java

my Linux Java application uses bluetooth devices. I use this library in order to communicate with bluez stack : https://github.com/hypfvieh/bluez-dbus. It worked very well until I added module-info.java to my client code. Suddenly I got this error: Exception in thread “main” java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider at jnr.ffi@2.1.15/jnr.ffi.provider.InvalidRuntime.newLoadError(InvalidRuntime.java:101) at jnr.ffi@2.1.15/jnr.ffi.provider.InvalidRuntime.findType(InvalidRuntime.java:42) at jnr.ffi@2.1.15/jnr.ffi.Struct$NumberField.(Struct.java:872) at jnr.ffi@2.1.15/jnr.ffi.Struct$Unsigned16.(Struct.java:1240) at jnr.unixsocket@0.33/jnr.unixsocket.SockAddrUnix$DefaultSockAddrUnix.(SockAddrUnix.java:209) at jnr.unixsocket@0.33/jnr.unixsocket.SockAddrUnix.create(SockAddrUnix.java:174)

How to fix a java.lang.UnsatisfiedLinkError for JSSC? (Needs hard float?)

I have a Java application in a JAR that needs to communicate via serial using JSSC (On Ubuntu in a SOPine board). It is throwing the following java.lang.UnsatisfiedLinkError exception: TL;DR: Skip to the answer if you don’t want to read several day’s worth of troubleshooting. I exported my JAR file in Eclipse with the jssc.jar added to the project’s Java

Does the JRE support posix TZ description rather than TZ name?

Java doesn’t appear to apply DST offset when the OS uses a POSIX time zone description rather than a time zone name. Is the use of a TZ description unsupported by the JRE or is this behavior a bug? More details… I’m working on a Linux (Debian) based system where the TZ environment variable is set to a POSIX formatted

Advertisement