Failed to load JavaHL Library.- linux/eclipse - linux

While trying to install the Subversion plugin I get this error when Eclipse starts:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
/usr/lib/jni/libsvnjavahl-1.so.0.0.0: /usr/lib/jni/libsvnjavahl-1.so.0.0.0: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
no svnjavahl in java.library.path
java.library.path = /usr/lib/jni
environment:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
Linux debian 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux
I tried changing my java.library.path to a 64-bit lib but it doesn't help - I still go=et the same error (only last line changes - to a 64-bit path)
Also, I have no idea why it's looking in /usr/lib/jni/ even after I change the java.library.path.

I was annoyed by that message so I did this and it disappeared!

To solved just install the package with this command:
sudo apt-get install libsvn-java
and you must config eclipse.inito add path /jni
example :
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
https://danangindrak.wordpress.com/2012/02/23/solved-memperbaiki-subclipse-error-default-svn-client-not-found-pada-eclipse/

OK I just ran into the same problem. I installed the javaHL lib but that didn't fix it alone. I was able to fix it by double checking which version of subversion I had installed in synaptic. I actually had 1.6.x while I installed the subclipse for version 1.8.x. so I started over, deleted my eclipse folder, extracted it and installed subclipse from the following eclipse update site: http://subclipse.tigris.org/update_1.6.x
more on the incompatibility:
http://subclipse.tigris.org/wiki/JavaHL
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA
(get the one that says Links for 1.6.x Release:)

The problem is that you don't have libsvn-java installed. To solved just install the package with this command:
sudo apt-get install libsvn-java
and you are read use subclipse.

problem solved - the reason was that 64b Subversive SVN Connectors that were installed couldn't work with 32b JDK; I've re-installed eclipse to 32b version and everything is ok

Related

cygwin x86_64 __x86_64__ definition issues

I was using Cygwin 32bit.
I recently had a problem with my PC and I'm trying to reinstall Cygwin 32bit.
"cygwin is not supported on 32-bit windows"
Couldn't install with message.
So, I installed Cygwin 64bit and built my project.
However, an error occurred at line 102 of the usr/include/cygwin/signal.h file.
It looks like the problem is that x86_64 is not defined, how can I fix it?
Answers I'll wait.
hello!
I was using Cygwin 32bit.
I recently had a problem with my PC and I'm trying to reinstall Cygwin 32bit.
"cygwin is not supported on 32-bit windows"
Couldn't install with message.
So, I installed Cygwin 64bit and built my project.
However, an error occurred at line 102 of the usr/include/cygwin/signal.h file.
It looks like the problem is that x86_64 is not defined, how can I fix it?
Answers I'll wait.

Android studio crashes

I am using android-studio in Arch linux 32bit from AUR.Recenty after latest pacman system upgrade , android-studio is refusing to start.Throws this error:
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x64056842, pid=645, tid=1686977344<br>
JRE version: Java(TM) SE Runtime Environment (7.0_72-b14) (build 1.7.0_72-b14)<br>
Java VM: Java HotSpot(TM) Server VM (24.72-b04 mixed mode linux-x86 )<br>
Problematic frame:<br>
C 0x64056842<br>
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
An error report file with more information is saved as:
/home/joshua/java_error_in_STUDIO_645.log<br>
/usr/bin/android-studio: line 188: 645 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 "$#"
can anybody please suggest me how to fix this issue.Otherwise which package should I rollback so that it could work again?
Same here. I found this thread to be useful.
LD_PRELOAD=/lib/libglib-2.0.so studio.sh
However it seems like a workaround not a real solution.
EDIT:
Arch users:
wget http://pkgbuild.com/~heftig/glib2-2.46.0-2-x86_64.pkg.tar.xz
sudo pacman -U glib2-2.46.0-2-x86_64.pkg.tar.xz
Same error here!
Android studio 1.4.0.10-2
Arch linux
with jdk 8u60-1
EDIT:
Solved, after I changed the default java environments from java-8-jdk to java-8-openjdk.
A little late to respond to this post.I have similar problem with Android Studio 2.1.0 on linux OS (64 bit), studio crashing frequently . I tried to increase the size of JVM’s Heap by adding to gradle.properties file but it didn't help at all. I have updated java 1.8.0_77 to 1.8.0_92 now Android Studio works fine.

Aptana Studio 3.3.0 crashes on start - Arch Linux

here's my system specs;
Arch Linux x86_64,
Kernel: 3.6.10-1-ARCH,
Gnome 3.6.2,
xf86-video-nouveau 1.0.4-1,
jdk7-openjdk 7.u9_2.3.3-1,
jre7-openjdk 7.u9_2.3.3-1,
jre7-openjdk-headless 7.u9_2.3.3-1,
lib32-libjpeg-turbo 1.2.1-1, libjpeg-turbo 1.2.1-1, libjpeg6-turbo 1.2.1-1
libpng12 1.2.50-2,
net-tools 1.60.20120804git-2,
unzip 6.0-6.
Ok, so there's the list of requirements that are installed, version numbers as well. Upon launch, the loading/splash screen won't even show, and then nothing... it just dies out. I attempted to launch it "aptana -v" and no output in the shell. I have looked for any error logs in ~/ , but nothing is there.
Other steps I've done is to delete any configuration folders/files for eclipse and aptana-secure in ~/. Also did a clean uninstall of just Aptana (not the dependencies), reinstall. Same result.
Any suggestions?
It appears that there is a mix up in the downloads. 32-bit and 64-bit got switched. If you are on 32-bit download 64-bit and vice versa. Hopefully it will be fixed soon.
See issues below:
Aptana 64 bit version crashes on startup on 64bit Linux OS with 64bit Oracle 7 java
Linux Installer Aptana_Studio_3_Setup_Linux_x86_3.3.0.zip contains x64 bit version of the project

IBM installation manager cannot be launched in fedora 17(64bit)

Here's the error msg goes when i try to run the IBM installation manager:
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/447/1/.cp/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
swt-pi-gtk (Not found in java.library.path)
/tmp/swtlib-32/libswt-pi-gtk-3659.so (libXtst.so.6: cannot open shared object file: No such file or directory)
/tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/lib/libswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
However, those files does exist. I also already have SWT lib installed. Any one have experience on this issue before?
IBM Installation Manager can only run if 32bit GTK components installed.
Here are the packages I install on Redhat 64bit in order to run IBM Installation Manager:
Install required packages for IBM Installation Manager UI on Redhat x64
Should be similar packages in Fedora.
I don't remember about Installation Manager but for WAS installation launching setup.jar itself did help:
java -jar setup.jar
I had this issue when tried to install CM on Linux Fedora 17 x86_64 bits and this command solved my issue
yum install gtk2.i686 gtk2-engines.i686 PackageKit-gtk-module.i686 PackageKit-gtk-module.x86_64 libcanberra-gtk2.x86_64 libcanberra-gtk2.i686
After execute it i can run interactive installation.
This was helpful for steering me in the right direction for solving the problem on rhel 6.5 on IBM power. i installed the equivalent packages using the .ppc instead of .ppc64 files (since the installer is PPC) and then i had to add these 2 lines at the bottom of the install.ini according to ibm support article swg21688528 as follows:
-Dorg.eclipse.swt.internal.gtk.useCairo=false
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
Parke

32-bit linux based eclipse giving error on startup in Fedora 12

I downloaded the 32-bit eclipse for my 32-bit fedora 12. I extracted the tar.gz without any error. But when i click on the eclipse executable, i am getting the error:
"Failed to load the JNI shared library "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/../lib/i386/client/libjvm.so"
"
I am not able to resolve this error. Please inform how to proceed.
Regards,
Go to your eclipse folder
Open eclipse.ini file and check if there is -vm option set properly
Else set -vm in one line followed by your jdk installed bin folder.
Hope this helps yo solve your problem.
I'd suggest avoiding OpenJDK, as Eclipse will keep complaining about it.
So, navigate to http://java.com/en/download/manual.jsp and download appropriate Sun's Java package (32 or 64 bit, depending on your current installation). As Fedora uses RPMs for package management, I advise to use that method.
Then, after installation, run java -version in terminal, you should get something like:
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

Resources