Categories
Apple User Help

How to fix JRELoadError on macOS 10.15.4 Catalina?

When I download or brew-cask-install JOSM, jEdit (and propably any other java app) and run it, I get JRELoadError. I have: $ java -version openjdk version “14” 2020-03-17 OpenJDK Runtime Environment (build 14+36-1461) OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing) How to fix that error?

Categories
Linux Mastering Development Ubuntu

Error installing earlier librxtx-java version (rxtx-2.2pre2) ” bin/javac: No such file or directory “

OS: Ubuntu 18.04.4 LTS java -version gives: openjdk version “11.0.6” 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing) A program i want to run, it needs rxtx-2.2pre2 version (an earlier librxtx-java version), so i downloaded the rxtx 2.2pre2 (prerelease) from http://rxtx.qbang.org/wiki/index.php/Download and downloaded it in my downloads folder, […]

Categories
Mastering Development

VCRUNTIME140.dll error calling memcpy() inside JNI library doing USB i/o

I am writing a Java application that executes USB I/O on Windows 10 with Java 10 JDK. My i/o library is the libusb api. The app loads a JNI library .dll compiled/built in Visual Studio 2017 with both Microsoft Visual 2013 C++ and Microsoft Visual C++ 2015-2019 installed. This application generates the following crash warning […]

Categories
Development Linux Ubuntu

Change OpenJDK 64-Bit to Client VM

I want to change OpenJDK to use Client VM instead of Server VM. I installed java by using sudo apt install default-jre, sudo apt install openjdk-11-jre-headless and sudo apt install default-jdk. java –version result: openjdk 11.0.6 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing) Then I edited the […]

Categories
Development

Patch Java 9 module with test-code to work with reflections

How do I add my tests to my production code at test-runtime so that both are in the same Java 9 module and can access each other using reflections? I have tried so far: Remove the Java 9 modularity (actually the module-info.java) → it worked perfectly, but is not what I’m looking for. Move my […]

Categories
Development Linux

Is this output from dpkg-query -L openjfx what is 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 guidance but it’s all conflicting and complicated. Each error message I get features in tons of low-scoring questions […]

Categories
Development Linux

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 component called ‘main’) sudo apt install openjdk-11-jdk-headless (You will have to enable component called ‘main’) sudo apt install ecj (You […]

Categories
Development Linux

How to fix Picked up _JAVA_OPTIONS: ……. in kali linux 2020.1

hkg@kali:~$ java -version Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true openjdk version “11.0.6” 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-1, mixed mode, sharing) but when i used sudo it’s result is perfect hkg@kali:~$ sudo java -version [sudo] password for hkg: openjdk version “11.0.6” 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1) OpenJDK 64-Bit Server […]

Categories
Development Linux Ubuntu

Eclipse not opening in Ubuntu 19.10

When i tried to run Eclipse Helios or luna-R it is not launching and gives error on Terminal : I used following method to install eclipse : https://www.ntu.edu.sg/home/ehchua/programming/howto/EclipseJava_HowTo.html cd /usr/local sudo tar xzvf ~/Downloads/Eclipse/eclipse-jee-helios-linux-gtk-x86_64.tar.gz cd /usr/local sudo chown -R parth:parth eclipse cd /usr/bin sudo ln -s /usr/local/eclipse/eclipse It gives error : failed to create symbolic […]

Categories
Development Linux Ubuntu

Eclipse not opening in Ubuntu 19.10

When i tried to run Eclipse Helios or luna-R it is not launching and gives error on Terminal : I used following method to install eclipse : https://www.ntu.edu.sg/home/ehchua/programming/howto/EclipseJava_HowTo.html cd /usr/local sudo tar xzvf ~/Downloads/Eclipse/eclipse-jee-helios-linux-gtk-x86_64.tar.gz cd /usr/local sudo chown -R parth:parth eclipse cd /usr/bin sudo ln -s /usr/local/eclipse/eclipse It gives error : failed to create symbolic […]