I’m a newbie with Renjin. I’m trying to use Renjin in a Java application. I’m trying to develop the example showed here. I’m compiling with gradle, as recommended in the renjin’s web page. So, with gradle build all is ok when I run gradle build. But, when I want run the applicati…
Tag: java
Issue with HH date time format
Need help to identify where is the issue, whether it is a java issue or linux box or something else. My app is running on linux weblogic, app is generating some kind of .tar files on linux with datetimestamp in filename. I am using below snippet to get current time to prepare filename: File format: SA_PART_YY…
How to fix Gradle not recognizing Java 10 on Linux?
When working with the latest Gradle version with Java 10 on Linux, it fails to identify version number of Java as 10 as valid Java version. How to fix this problem on Linux machines ? Log details of the error here And here is the complete error report (N.B. Running gradle –version or gradle -v also give…
Pcap4j Library: Exception in thread “main” java.io.IOException: No NIF to capture
When I capture packets, I get the following error: Exception in thread “main” java.io.IOException: No NIF to capture. The code is: But I run this code with sudo command, it is running. Why don’t I run this code without sudo? I should run this code without sudo. How can I run this code? Answe…
How to load native library (.dlls) from a java application running on linux?
I have a java application in ubuntu, java application uses a jar. This jar uses some native libraries(.dll). System.loadLibrary(“my_native_library”) is used in the jar to load required libraries. In linux it tries to load an .so file means here my_native_library.so, but I have my_native_library.dl…
error JAVA_HOME is not defined correctly
When Ii run command mvn spring-boot:run, I got error: when I check above path java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64 is not exist. My java version is: I check JAVA_HOME in /etc/environment Is it because of different version in JAVA_HOME I got the error? I try to change the JAVA_HOME path to other ver…
Exception while running Selenium on Linux – ‘Driver version unknown’ error
I am new to Selenium and have written a code to run a test case in firefox’s headless mode. It is working on Windows 7 but when I tried to do the same on Centos 7.3 OS using RemoteWebDriver running into this exception. I even specified the driver version in the DesiredCapabilities but no luck. I have ev…
Java – AttachNotSupportedException: Unable to open socket file: HotSpot VM not loaded
When attempting to attach an agent jar file onto another process running in java, I have came across the exception: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded I was running linux, with java Oracle JDK 8_101, however afte…
In Java 8, how do I get my hostname without hard-coding it in my environment?
We just upgraded to Java 8 on Amazon Linux. We are using Spring 4.3.8.RELEASE. It used to be that we could get our machine hostname by setting up beans in our application context file like so … But with Java 8, the bean “hostname” now contains the string Before Java 8, it used to contain the…
ClassNotFoundException: Didn’t find class “com.xxx.xxx.Application” on path: DexPathList on Linux
I’ve moved from Mac to a linux machine (ubuntu) and and can’t get the previous project running. The project has about 10 modules, and it still works fine on my macbook, but when building on ubuntu (tried clean install on 17.10 2 times, and 16.04 2 times as well) will crash the app on start with th…