As a pre-requisite for installing JBoss EAP 7.2, I installed the Developer Studio 12.0.0.GA successfully.
However it fails to launch with the following error:
See the error message below:
*jboss#rhebsr12 $> ./devstudio
***WARNING: Gtk+ version too old (micro mismatch)
***WARNING: SWT requires GTK 2.24.0
***WARNING: Detected: 2.18.9
***WARNING: SWT requires Cairo 1.9.4 or newer
***WARNING: Detected: 1.8.8
/usr/java/jdk1.8.0_221/bin/java: symbol lookup error: /projects/home/jboss7/devstudio/studio/configuration/org.eclipse.osgi/653/0/.cp/libswt-pi-gtk-4880.so: undefined symbol: g_bus_own_name
Devstudio:
JVM terminated. Exit code=127
/usr/java/jdk1.8.0_221/bin/java
-Xms512m
-Xmx1024m
-Dosgi.instance.area.default=#user.home/workspace
-jar /projects/home/jboss7/devstudio/studio//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /projects/home/jboss7/devstudio/studio/devstudio
-name Devstudio
--launcher.library /projects/home/jboss7/devstudio/studio//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200/eclipse_1705.so
-startup /projects/home/jboss7/devstudio/studio//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.overrideVmargs
-exitdata 4121001d
-product com.jboss.devstudio.core.product
-vm /usr/java/jdk1.8.0_221/bin/java
-vmargs
-Xms512m
-Xmx1024m
-Dosgi.instance.area.default=#user.home/workspace
-jar /projects/home/jboss7/devstudio/studio//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
/projects/home/jboss7/devstudio*
Any suggestions to resolve?
Thanks,
Syed
DevStudio needs a newer version of cairo. I don't know which operating system you're running, but try to upgrade this package.
There is a similar issue reported here: https://issues.jboss.org/browse/JBDS-4707
Related
When I tried to build gem5 with command scons build/X86/gem5.opt -j12, I received an error message saying
lto1: fatal error: bytecode stream in file '/home/beihai/anaconda3/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a' generated with LTO version 6.0 instead of the expected 8.1
I think it might be the problem of wrong gcc version. But I do not know how to fix it.
My system is Kubuntu 20.04
By running gcc -v, I got the global gcc version gcc version 9.3.0
By running /home/beihai/anaconda/envs/gem5build/bin/x86_64-conda_cos6-linux-gnu-gcc -v, I got the anaconda gcc version gcc version 7.3.0 (crosstoll-NG 1.23.0.449-a04d0)
Please tell me how to fix this problem.
I came across almost the same issue, except that mine said "LTO version 6.0 instead of the expected 6.2".
I searched for general solution for LTO compatibility issue and got some inspiration from this link: https://github.com/rust-lang/rust/issues/57176
Quick take from the above link: "I've looked into how this is related to python and found that the error only happens with python installed through anaconda."
So I removed my entire anaconda software package, and removed the build directory inside Gem5, and rerun the scon commands with an additional "--force-lto" arguments, now the installation is successful. Hope it can solve your issue as well.
The command I used: "scons --force-lto build/X86/gem5.opt -j6"
My setups is:
Ubuntu 18 withe kernel 4.15.0-134-generic
g++ --version = g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
When I try to load library("rJava") in RStudio on OsX High Sierra, I get the error already mentioned about the image not being present:
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Users/ognjenmilicevic/RPlay/Methylation_Mayo_Vesna_Garovic/libs/rJava/libs/rJava.so':
dlopen(/Users/ognjenmilicevic/RPlay/Methylation_Mayo_Vesna_Garovic/libs/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
Referenced from: /Users/ognjenmilicevic/RPlay/Methylation_Mayo_Vesna_Garovic/libs/rJava/libs/rJava.so
Reason: image not found
I tried reconfiguring Java but the error persists:
$ R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 10.0.1
Java home path : /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
trying to compile and link a JNI program
detected JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin
detected JNI linker flags : -L$(JAVA_HOME)/lib/server -ljvm
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/include/darwin -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c conftest.c -o conftest.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o conftest.so conftest.o -L/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib/server -ljvm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
JAVA_HOME : /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
Java library path: $(JAVA_HOME)/lib/server
JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin
JNI linker flags : -L$(JAVA_HOME)/lib/server -ljvm
Updating Java configuration in /Library/Frameworks/R.framework/Resources
Done.
Removing and reinstalling the package doesn't help. I tried pointing to my version by using:
dyn.load('/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib/server/libjvm.dylib')
The error persists. All the while it works in R when ran as a command. Where is the path "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib" coming from and how can I change it to point to my installation?
It looks like you have sort of a messy installation or rJava.
You can always check which version of Java was used (while building rJava) by calling:
> otool -L /Library/Frameworks/R.framework/Resources/library/rJava/libs/rJava.so
/Library/Frameworks/R.framework/Resources/library/rJava/libs/rJava.so:
rJava.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libR.dylib (compatibility version 3.6.0, current version 3.6.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1259.11.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
in your case you have to call
> otool -L /Users/ognjenmilicevic/RPlay/Methylation_Mayo_Vesna_Garovic/libs/rJava/libs/rJava.so
Make sure you have this Java version installed: jdk-11.0.1.jdk. If you don't have it, and you want to install rJava with your current release of JDK - e.g.: jdk-10.0.1.jdk, follow the steps here: http://www.owsiak.org/r-java-11-and-making-sure-you-can-load-rjava/
Also, remember that in macOS, the default Java is the newest one. It means that RStudio will pick the version with highest number - one that is enabled.
You can disable given version of Java by calling
> cd /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents
> mv Info.plist Info.plist~
Above commands will make this Java version "invisible" for macOS.
Once you follow the steps (as described in linked article) you will be able to run Java from both: R and RStudio
> R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(rJava)
> .jinit()
> J("java.lang.System","getProperty","java.version")
[1] "11.0.3"
>
I'm compiling Rust on Windows using mingw_64 and GCC. I get the following error:
error: couldn't load codegen backend "E:\rust_git\rust\build\x86_64-pc-windows-gnu\stage1\lib\rustlib\x86_64-pc-windows-gnu\codegen-backends\rustc_codegen_llvm-llvm.dll": "The specified procedure could not be found. (os error 127)"
Unlike How do I fix the error "couldn't load codegen backend" on macOS?, the file rustc_codegen_llvm-llvm.dll does live in the correct directory.
found the reason, latest mingw gcc 9.1.0 cause some missing dll problem. (although, compile rust source was fine).
if you have old version msys2, this will works for you:
pacman -R mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake
pacman -R mingw-w64-x86_64-gcc-libs
pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-gcc-libs-8.3.0-2-any.pkg.tar.xz
pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-gcc-8.3.0-2-any.pkg.tar.xz
pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-cmake-3.14.4-1-any.pkg.tar.xz
./x.py install
rustc -vV
rustc 1.37.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-pc-windows-gnu
release: 1.37.0-dev
LLVM version: 8.0
I'm trying to build the example code for JNI, Java Native Interface, as shown by the tutorial here: https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html. The problem arises when I attempt to compile. With gcc-3 in Cygwin it was possible to use the -mno-cygwin flag to compile a stand-alone dll that did not rely on Cygwin's dlls. However, that has been depreciated in gcc-4 which is the compile that I have.
So when I add the flag to my Makefile:
gcc: error: unrecognized command line option ‘-mno-cygwin’
And when I take it out, the project compiles but returns this error when attempting to run the program:
$ java HelloJNI
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180103bd9, pid=8604, tid=11116
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [cygwin1.dll+0xc3bd9]
This output just tells me that it can't find the cygwin dll's. Is there a way with Cygwin and gcc-4 to compile without dependency on the Cygwin dlls? I'm thinking I might revert back to gcc-3 if there's no solution here.
JAVA_HOME has been set in .bashrc to java-7-openjdk where jni.h is located.
The output JAVA_HOME is overridden when reconfigured
lab#lab-Inspiron-N5010:~$ locate jni.h
/usr/lib/jvm/java-7-openjdk-i386/include/jni.h
lab#lab-Inspiron-N5010:~$ echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-i386/jre
lab#lab-Inspiron-N5010:~$ sudo R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.6.0_30
Java home path : /usr/lib/jvm/java-6-openjdk-i386/jre
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
trying to compile and link a JNI progam
detected JNI cpp flags :
detected JNI linker flags : -L$(JAVA_HOME)/lib/i386/server -ljvm
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe -g -c conftest.c -o conftest.o
conftest.c:1:17: fatal error: jni.h: No such file or directory
compilation terminated.
make: *** [conftest.o] Error 1
Unable to compile a JNI program
JAVA_HOME : /usr/lib/jvm/java-6-openjdk-i386/jre
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib/R
Done.
R version 3.1.0 beta (2014-03-28 r65330)
Tried all solutions suggested st R: rJava package install failing
Java version details
java version "1.6.0_30"
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)
OpenJDK Server VM (build 23.25-b01, mixed mode)
Kindly help
[SOLVED] Downloading the packages from ubuntu cran solved the issue.
ubuntu cran
I have similar error and the reason for this error that some of the Java JDK settings are not done, so in my case I run the following commands and the installation completed successfully
update-alternatives --display jar
sudo update-alternatives --install "/usr/bin/jar" "jar" "/app/java/jdk1.7.0_51/bin/jar" 1
sudo update-alternatives --set jar /app/java/jdk1.7.0_51/bin/jar
update-alternatives --display javah
sudo update-alternatives --install "/usr/bin/javah" "javah" "/app/java/jdk1.7.0_51/bin/javah" 1
sudo update-alternatives --set javah /app/java/jdk1.7.0_51/bin/javah
also you can find the list of all Java variables and how to expose them using the below link:
http://programmaticponderings.wordpress.com/2013/12/16/updating-oracles-pre-built-enterprise-java-vm-for-development/