Android Studio Crash on Fedora 22 - java

I'm trying to run Android Studio in my Fedora22 machine. I've followed the instructions in the site, downloaded the zip, extracted it and ran studio.sh file.
It opens the Android Studio correctly, but after the download of components starts, it just closes without showing any dialogbox with the error.
As I'm running through the terminal, I saw the following error before the program gets closed:
/home/mlima/android-studio/bin/studio.sh: line 188: 30819 Aborted
(core dumped) LD_LIBRARY_PATH="$IDE_BIN_HOME:$LD_LIBRARY_PATH"
"$JDK/bin/java" $AGENT "-Xbootclasspath/a:$IDE_HOME/lib/boot.jar"
-classpath "$CLASSPATH" $VM_OPTIONS "-Djb.vmOptionsFile=$VM_OPTIONS_FILES_USED"
"-XX:ErrorFile=$HOME/java_error_in_STUDIO_%p.log" -Djb.restart.code=88
-Didea.paths.selector=AndroidStudio1.4 $IDE_PROPERTIES_PROPERTY $IDE_JVM_ARGS $REQUIRED_JVM_ARGS $MAIN_CLASS_NAME "$#"
My javac -version: javac 1.8.0_60-debug
Thanks

Try to reinstall javac java -version is:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
And it work.
If this doesn't resolve the problem you have to find the way to set your environment HomePath variable points the current java sdk path.
Hope this can help, bye

Related

How do I properly set up java paths and other system variables to start monkeyrunner?

When I first attempted to run monekyrunner.bet I got some error about java not being found. At that moment java.exe was at C:\Program Files\Android\Android Studio\jre\bin\java.exe which came with the latest android studio installation (Android Studio Dolphin | 2021.3.1 Patch 1; Runtime version: 11.0.13+0-b1751.21-8125866 amd64). I added this path to JAVA_HOME system variable, but I kept getting the same error.
java version:
openjdk 11.0.13 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
OpenJDK 64-Bit Server VM (build 11.0.13+0-b1751.21-8125866, mixed mode)
I then downloaded jdk-19 from https://www.oracle.com/java/technologies/downloads/#jdk19-windows as recommended in the moneyrunner error text. Now I have another java.exe at C:\Program Files\Java\jdk-19\bin\java.exe and I set C:\Program Files\Java\jdk-19\ in JAVA_HOME.
java version:
java 19.0.1 2022-10-18
Java(TM) SE Runtime Environment (build 19.0.1+10-21)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
After this I started getting some error about SWT folder not existing. Reading this, I added an ANDROID_SWT system variable, which I have set to C:\Users\UserName\AppData\Local\Android\Sdk\tools\lib\x86_64\.
After this I got some error about monkeyrunner-26.0.0-dev.jar. Reading this, I modified the monkeyrunner bat file as explained in the post, but now I am getting
this error:
-Djava.ext.dirs=.;C:\Users\UserName\AppData\Local\Android\Sdk\tools\lib\x86_64"
-Dcom.android.monkeyrunner.bindir=..\framework -jar .\..\lib\monkeyrunner-26.0.0-dev.jar is not supported. Use
-classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
.
System variables:
ANDROID_SWT : C:\Users\UserName\AppData\Local\Android\Sdk\tools\lib\x86_64\
JAVA_HOME: C:\Program Files\Android\Android Studio\jre\
Is there a step by step guide on how exactly to start monkeyrunner? I want to send input events through monkeyrunner, as shown here.

Rlocation, LAUNCHER ERROR while doing bazel run command

Im getting the following error while doing bazel run command.
LAUNCHER ERROR: Rlocation failed on external\local_jdk\bin\java.exe, path doesn't exist in MANIFEST file
Bazel build seems to work fine but the run commands throws this error.
I do have java installed with version
Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)
Bazel build command returns successful message - bazel build scalaBinaryName
Appreciate any help or hint on this issue. Im searching in the dark here.
Follow the installation guide here. You need to install MSYS2 x86_64 as described in the install manual.

installation error for elasticsearch on windows7

I have been trying to setup elasticsearch in windows7 machine by following https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html
I was able to download, unzip but when running ./elasticsearch, I get the below error,
Error: Could not find or load main class
org.elasticsearch.tools.JavaVersionChecker
Elasticsearch requires at least Java 8 but your Java version from C:\Program
Files\Java\jdk1.8.0_131/bin/java does not meet this requirement
I have verified Java versions installed and they look fine,
$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
$ javac -version
javac 1.8.0_131
Can someone point out where I am wrong ?
In run Elasticsearch in Windows, you should run with elasticsearch.bat not ./elasticsearch directly:
And now we are ready to start our node and single cluster (Windows users should run the elasticsearch.bat file):
Seems like you don't have right permissions. Try to set them to 774 and check again:
sudo chmod 774 -R elasticsearch-6.3.2/

Ionic on Ubuntu get java error when run "ionic emulate android" command

I cannot run the "ionic emulate android" command.
I keep getting following error message:
I have already installed the java,
when I run "java -version", i got this
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
when I run "which java", I got this
/usr/bin/java
Is anyone, have an idea why am I getting this error?
I'm using Ubuntu 14.04.
Thanks in advance!
Ionic can't find your Java executable.
Try to make it accessible in your PATH:
export JAVA_HOME="your/path/to/jdk"
You can also try to put this line in /etc/environment and load it with:
source /etc/environment
as it is suggested in this post:
How to set JAVA_HOME for Java?

Eclipse launch error- error code 13

Eclipse returns this error message when launching:
I am pretty sure that both the java installation and Eclipse are both for my 64-bit system.
Here is my .ini file:
Your version of Eclipse looks OK, based on the filename.
To check your version of Java, run java -version in a console. On Windows 7 with 64-bit Java 6 I get:
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
Check that this is the version being used by Eclipse, as shown in your error code. If not, call that version explicitly, e.g.
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -version
I moved the
-vm
up below the first openfile, not the second.
PIC:

Categories