Error Could Not Find Libjava.so Solaris
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Error: Could Not Find Java Se Runtime Environment Linux
About Us Learn more about Stack Overflow the company Business Learn more about error: could not find libjava.so ubuntu hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join error: could not find java 2 runtime environment the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error: could not find
Jdk
libjava.so, Error: could not find Java 2 Runtime Environment up vote 1 down vote favorite I uninstalled java j2sdk1.4.2_12 java on my Linux Server and Install jdk1.6.0_21, but when I am trying to run any script I am getting following Error Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. I already set classPath and Path like : In vi ~/.bashrc export JAVA_HOME=/home/java/jdk1.6.0_21/ export PATH=$PATH:/home/java/jdk1.6.0_21/bin export set CLASSPATH=/usr/java/j2sdk1.4.2_12/lib/mysql-connector-java-5.1.6-bin.jar: /home/java/jdk1.6.0_21/jre/lib:/root/mis/mod:$CLASSPATH ulimit -c unlimited IN vi ~/.bash_profile JAVA_HOME=/home/java/jdk1.6.0_21/ PATH=$PATH:$HOME/bin:$HOME/mis/mod: PATH=/home/java/jdk1.6.0_21/bin:$PATH CLASSPATH=$CLASSPATH:/home/java/jdk1.6.0_21/lib:.: export JAVA_HOME export PATH export CLASSPATH unset USERNAME When I run following Commands which java /home/java/jdk1.6.0_21/bin/java java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode) I am not getting where is the issue. Can Any one help me ? java linux operating-system share|improve this question edited Dec 4 '14 at 10:39 prajmus 2,15931733 asked Sep 20 '14 at 23:46 Krishna Roy 83316 Same problem here but jdk1.8.0_20. –uprego Oct 1 '14 at 10:26 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote I encounter this issue before. It turns out there are 2 javac program sitting on my machine. They are in /usr/bin/javac and /bin/javac. My system used the /bin/javac one. The right path for me is /usr/bin/javac. Removing /bin/javac helped share|improve this answer answered Jan 9 '15 at 1:03 user2829759 773615 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email an
RepublicDenmarkEcuadorEgyptEstoniaFinlandFranceGermanyGreeceGuatemalaHondurasHong KongHungaryIndiaIndonesiaIraqIrelandIsraelItalyJapanJordanKazakhstanKoreaKuwaitLaosLatviaLebanonLithuaniaMalaysiaMaldivesMaltaMexicoMoldovaNepalNetherlandsNew ZealandNicaraguaNorwayOmanPakistanPanamaParaguayPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaSaudi ArabiaSerbia & MontenegroSingaporeSlovakiaSloveniaSouth AfricaSpainSri LankaSwedenSwitzerland -- FrenchSwitzerland -- GermanTaiwanThailandTurkeyUkraineUnited Arab EmiratesUnited KingdomUnited StatesUruguayVenezuelaVietnamYemen Communities Social http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4414152 Applications Oracle Mix Oracle Blogs Oracle Wiki Oracle on Facebook Oracle on Twitter Networks Oracle ACEs http://daemonforums.org/showthread.php?t=1568 Oracle PartnerNetwork Oracle Technology Network Knowledge Base Oracle User Groups Oracle Discussion Forums Support My Oracle could not Support Community I am a... Java Developer Database Admins and Developers System Admins and Developers Architect C-Level Executives Chief Financial Officer (CFO) Chief Information Officer (CIO) Other Roles Analyst Investor Job Seeker Partner could not find PeopleSoft Customer Siebel Customer Sun Customer Student Midsize Company I want to... Support Create or Update Service Request Search Support Knowledge Database Download Patches Education Find Oracle University Training Choose an Oracle Certification Path Partner Find a Partner Solution Access Software and Technical Support Attend a Partner-Only Event Attend Training Download Logos Manage Solutions Catalog Other Tasks Purchase Oracle Products Online Browse Oracle Documentation Search Oracle Documentation Check Oracle Earnings Check Oracle Price Lists Download Oracle Software Find an Oracle ACE View Oracle Benchmarks Filters: All Bugs.java.com Blogs Corporate Site Discussion Forums Documentation Training PartnerNetwork T
Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Display Modes #1 (View Single Post) 29th July 2008 incripshin New User Join Date: Jul 2008 Posts: 5 Problems running jdk-1.7 I just installed jdk-1.7, but it doesn't quite work. I have /usr/local/jdk-1.7.0/bin in my PATH. When I run java or javac, I get this: Code: $ javac Error: could not find libjava.so Error: Could not find Java SE Runtime Environment. If I give the full path to the binary, it runs fine. libjava.so is located in /usr/local/jdk-1.7.0/jre/lib/i386/libjava.so. I tried adding it to the arguments sent to ldconfig, but all that happens is this: Code: $ sudo ldconfig /usr/X11R6/lib /usr/local/lib /usr/local/jdk-1.7.0/jre/lib/i386 $ ldconfig -r | grep jdk search directories: /usr/lib:/usr/X11R6/lib:/usr/local/lib:/usr/local/jdk-1.7.0/jre/lib/i386 Anybody have better luck than me? Last edited by incripshin; 29th July 2008 at 04:46 AM. Reason: /* way better title */ incripshin View Public Profile Find all posts by incripshin #2 (View Single Post) 29th July 2008 incripshin New User Join Date: Jul 2008 Posts: 5 Also I'm running -current, and I really wish I gave this thread a better title. ... TITLE FIXED! Last edited by incripshin; 29th July 2008 at 04:49 AM. Reason: /* totally figured out how to change the title -> awesome */ incripshin View Public Profile Find all posts by incripshin #3 (View Single Post) 29th July 2008 ocicat Administrator Join Date: Apr 2008 Posts: 3,237 Quote: Originally Posted by incripshin If I give the full path to the binary, it runs fine. I don't run 1.7, but creating symlinks in 1.6 has worked for me: Code: # ln -sf /usr/local/jdk-1.6.0/bin/java /usr/local/bin/java # ln -sf /usr/local/jdk-1.6.0/bin/javac /usr/local/bin/javac ocicat View Public Profile Find all posts by ocicat #4 (View Single Post) 29th July 2008 incripshin New User Join Date: Jul 2008 Posts: 5 Quote: Originally Posted by ocicat I don't run 1.7, but creating symlinks in 1.6 has worked for me: C