LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-24-2017, 08:32 AM   #1
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Rep: Reputation: Disabled
Error: could not find or load .jre file


Hello Friends, if you can please help,

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...

if someone can please comment,


Thank you in advance...
 
Old 01-24-2017, 12:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by woolawson123 View Post
Hello Friends, if you can please help,

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.
 
Old 01-25-2017, 09:49 AM   #3
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
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


JAVA_HOME : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib64/microsoft-r/8.0/lib64/R
Done.
 
Old 01-25-2017, 01:57 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by woolawson123 View Post
Error: Could not find or load main class .usr.lib.jvm.java-1.8.0-ibm-1.8.0.3.10.x86_64.jre
this tickles something at the back of my head, about different java versions and sometimes needing to change the default via environment variables.
i know you use redhat, but archwiki has an article about that, maybe you can get something out of it:
https://wiki.archlinux.org/index.php...ng_between_JVM
it's all about the archlinux-java script it seems, which is here:
https://git.archlinux.org/svntogit/p...es/java-common
 
1 members found this post helpful.
Old 01-26-2017, 08:42 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by woolawson123 View Post
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


JAVA_HOME : /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.10.x86_64/jre
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /usr/lib64/microsoft-r/8.0/lib64/R
Done.
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install wont find JRE- $JAVA_HOME SG86- Linux - Software 7 04-30-2011 10:36 AM
how to rectify this error: RCC: Error in 'appchooser.qrc': Cannot find file 'akregato divya s Programming 3 04-13-2011 01:03 AM
Find command with standard error output and mail error file montblanc Programming 2 11-11-2010 09:06 PM
Trying to load a driver - gcc can't find a file tilaat Linux - Newbie 2 02-14-2005 04:35 AM
Java jre-1.3.1_02 can't find libjava.so after install rhammack Linux - Software 0 01-17-2002 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration