skip to Main Content

Centos – /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.amzn2.0.1.x86_64 doesn’t look like a JDK directory

I am trying to install java 11 on an amazon ec2 instance Linux , I followed the below steps: ====OS details===== [root@ip-172-31-44-83 java-11-openjdk-11.0.16.0.8-1.amzn2.0.1.x86_64]# cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" ===Install…

VIEW QUESTION

Task :react-native-gradle-plugin:compileKotlin FAILED, 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) – React native

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 936 file(s) to forward-jetify. Using 12 workers... info JS server already running. info Installing the app... > Task :react-native-gradle-plugin:compileKotlin FAILED 'compileJava' task (current…

VIEW QUESTION

Ubuntu – Java Process Class: Why command "java -version" does not produce outputstream while command "ls -l" does?

Below program: public class ProcessExample { public static void main(String[] args) throws IOException { Process process1 = new ProcessBuilder("/bin/ls", "-l").directory(Path.of("/home/yapkm01").toFile()).start(); System.out.println("ls command:"); try (var in = new Scanner(process1.getInputStream())) { while (in.hasNextLine()) { System.out.println(in.nextLine()); } } Process process2 = new ProcessBuilder("/bin/java",…

VIEW QUESTION

Boot springboot app even if mongodb is down

I am using SpringBoot v2.7.0 I have following springboot config spring: data: mongodb: uri: ${MONGO_DB_URL} database: ${MONGO_DB_DATABASE} There is not explicit beans configurations. I have repositories for respective documents which extends MongoRepository<ModelNameClass, IDType> This is all working fine. But now…

VIEW QUESTION

Android Studio – android project its getting some error related to ANDROID_SDK_HOME

(when i try to run the project )error is Build file 'C:UsersjupunDesktoptrid-7codecanyon-22842942-trid-city-guide-android-native-with-admin-panel-firebaseTrid-Android-PackageAndroid codeTrid-CityGuide_v7appbuild.gradle' line: 1 A problem occurred evaluating project ':app'. Failed to apply plugin 'com.android.internal.application'. ANDROID_SDK_HOME is set to the root of your SDK: C:UsersjupunAppDataLocalAndroidSdk ANDROID_SDK_HOME was meant to…

VIEW QUESTION
Back To Top
Search