Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using open source R s/w to install package that we download from internet. So we download package and then install using rstudio web client tool. Most package installed successfully but when try to install one JAVA package it error up with;
Error: Could not find or load main class .usr.lib.jvm.java-1.8.0-ibm-1.8.0.3.10.x86_64.jre
/bin/sed: -e expression #1, char 0: no previous regular expression
we have java installed
Java home path : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre
did internet search for this error but didn't help much...
Below seems OS level error, I am using open source R s/w to install package that we download from internet. So we download package and then install using rstudio web client tool. Most package installed successfully but when try to install one JAVA package it error up with;
Error: Could not find or load main class .usr.lib.jvm.java-1.8.0-ibm-1.8.0.3.10.x86_64.jre
/bin/sed: -e expression #1, char 0: no previous regular expression
we have java installed Java home path : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre did internet search for this error but didn't help much...
Read the "Question Guidelines" link in my posting signature. Your question lacks any details necessary to even BEGIN to try to help you. You don't tell us what version/distro of Linux you're using, what this "open source R s/w" is, where you got it, if you followed their installation instructions, how you're attempting this installation, etc. We can't guess.
If your system is working, then it is obviously NOT an "OS level error", since your OS is working.
I am using Linux RHEL 6.8. R is open source software that we can download and install on our computer.
we are trying to connect to one of Teradata from this open source R. I added Driver/Description/DBCName parameters in ODBC.ini file at "/opt/Teradata/client/ODBC_64". after adding that DSN entry, need to run this command "R CMD javareconf" from command line (Putty) to add Java support to R. When I run this command as root, i receive below error,
#R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.8.0
Java home path : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
Error: Could not find or load main class .usr.lib.jvm.java-1.8.0-ibm-1.8.0.3.10.x86_64.jre
/bin/sed: -e expression #1, char 0: no previous regular expression
trying to compile and link a JNI program
detected JNI cpp flags : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux
detected JNI linker flags : -ljvm
gcc -std=gnu99 -I/usr/lib64/microsoft-r/8.0/lib64/R/include -DNDEBUG -I/usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre/../include -I/usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre/../include/linux -I/usr/local/include -fpic -g -O2 -DU_STATIC_IMPLEMENTATION -c conftest.c -o conftest.o
gcc -std=gnu99 -shared -L/usr/lib64/microsoft-r/8.0/lib64/R/lib -L/usr/local/lib64 -o conftest.so conftest.o -ljvm -L/usr/lib64/microsoft-r/8.0/lib64/R/lib -lR
/usr/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status
make: *** [conftest.so] Error 1
Unable to compile a JNI program
sorry everyone,
I am using Linux RHEL 6.8. R is open source software that we can download and install on our computer.
we are trying to connect to one of Teradata from this open source R. I added Driver/Description/DBCName parameters in ODBC.ini file at "/opt/Teradata/client/ODBC_64". after adding that DSN entry, need to run this command "R CMD javareconf" from command line (Putty) to add Java support to R. When I run this command as root, i receive below error,
#R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.8.0
Java home path : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
Error: Could not find or load main class .usr.lib.jvm.java-1.8.0-ibm-1.8.0.3.10.x86_64.jre
/bin/sed: -e expression #1, char 0: no previous regular expression
trying to compile and link a JNI program
detected JNI cpp flags : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux
detected JNI linker flags : -ljvm
gcc -std=gnu99 -I/usr/lib64/microsoft-r/8.0/lib64/R/include -DNDEBUG -I/usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre/../include -I/usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre/../include/linux -I/usr/local/include -fpic -g -O2 -DU_STATIC_IMPLEMENTATION -c conftest.c -o conftest.o
gcc -std=gnu99 -shared -L/usr/lib64/microsoft-r/8.0/lib64/R/lib -L/usr/local/lib64 -o conftest.so conftest.o -ljvm -L/usr/lib64/microsoft-r/8.0/lib64/R/lib -lR
/usr/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status
make: *** [conftest.so] Error 1
Unable to compile a JNI program
Since you're using RHEL 6.8, have you contacted Red Hat support yet too? RHEL is NOT free, and since you're paying for it (RIGHT?), you are entitled to support. They might be able to assist.
That said, it's telling you the path it's looking at for that JRE file...the obvious thing to look at would be, is that file actually THERE? Try running (as root/sudo) "find / -name *ibm-1.8.0.3.10.x86_64.jre", and see what it finds.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.