I am trying to install BuildTools 1.18 with Java 18 in linux, following this tutorial. When I try to compile with java -jar BuildTools.jar –rev latest as instructed, it gives me this error: Here is the full output (before the error): I have git configured and tried running git init, but that didn’t change anything. Why is this happening and
Tag: java
How to change java version within a bash script?
I have one piece of a script that needs a different java version to the rest of the script, up till now I’ve always manually changed versions with sudo update-alternatives –config java and then just select the one I need. Is there a way to do that within a bash script? I’ve tried export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/bin/java which matches the path listed
LibGDX project isn’t launching, it says Could not initialize class org.lwjgl.Sys
Whenever I try to launch a LibGDX project, the problem shown below keeps appearing: I can’t for the life of me figure out the solution. At first, I tried reinstalling my JDK, but that wasn’t the issue at all. It wasn’t an issue before I switched to PopOS. Any help? Answer I found out the issue. You need to change
Could not find or load main java class jar on AWS EC2 Linux
I need to run on Linux on AWS EC2 me jar file. I have a multi-project on Gradle. I know that there are many analogs of my problem, but I did not find anything with the multi-project. The structure of my project is as follows My build.gradle in demo. When I execute the command jar, I get jar file that
Unable to get PATH to be set for all users
Trying to get OpenJDK 17 installed for Pufferpanel. User pi can do java -version fine however Pufferpanel gets bash: java: command not found My /etc/profile and /etc/profile.d/java.sh have these lines: In addition JAVA_HOME=”/usr/lib/jvm/jdk-17.0.1+12″ is set in /etc/environment Full permissions have been given for java.sh and the JAVA_HOME folder with chmod 777. The user pufferpanel now can run the script however
How to automatically start 2 Java jars on AWS EC2?
I’m learning to deploy Spring Boot apps on AWS EC2. And I know how to automate app launch, when I start the EC2 instance, I don’t need to manually use the command java -jar java-service.jar, I just add this command in the /etc/rc.local file and that is all. But I have 2 microservice, and I want to start both of
ProcessHandle returns ambiguous results
I’ve two Java 11 methods that check whether a process for a given PID is running: When checking multiple PIDs on Linux clients, I’m getting sometimes different results for certain PIDs, where the first implementation always returns true and the second one always false. Checking some “false positives” with shell command ps -ef | grep <pid> shows that first implementation
How do i concatenate a string in between to strings at run time?
I have use case where I need to check if a file exists. But the catch is, there are diffrent file that needs to checked for and each file will have its own method. I tried the above code snippet, the debug logs this test -e && echo file exists || echo file not found. String variable fileToCheck is not
Stop Java from killing Bash script that started it
I’ve spent the past couple days working on this, and at this point I am super stuck. I have a Java program that must be run not as a service. This program must also be capable of updating itself when a new file is given for updating. As a result, I have a script that is started with Linux that
Unable to load library (libFile.so) on jboss server on redhat linux
I am getting the unsatisfied link error when I try to run the web-app. I have created the function which loads the native library stored at “/home/libraryFiles”, using JNA. I have stored all of my libXXXX.so files at “/home/libraryFiles”. I have exporting my war file from eclipse in windows and deploying it on the jboss server on redhat linux. This