Error Could Not Find Libjava.so Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Error: Could Not Find Libjava.so Error: Could Not Find Java Se Runtime Environment.
workings and policies of this site About Us Learn more about could not find libjava.so aix Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions error: could not find java se runtime environment linux Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Error Could Not Find Libjava.so Solaris
Join them; it only takes a minute: Sign up Error: could not find 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
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
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 jdk site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: http://stackoverflow.com/questions/25954348/error-could-not-find-libjava-so-error-could-not-find-java-2-runtime-environme Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Could not find libjava.so up vote 2 down vote favorite So I'm trying to install and run the jdk/jre on linux to run app project compilation/signing/etc. actions from the command-line. To install, I used the following command: yum install java-1.8.0-openjdk-devel.x86_64 This installs java to /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64, with bin, http://unix.stackexchange.com/questions/251747/could-not-find-libjava-so lib, etc. being in the immediate directory. Even without messing with environment variables, when trying to run this: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/bin/java -version I get the following errors: Error: could not find libjava.so Error: Could not find Java SE Runtime Environment. I'm not actually finding libjava.so in any of the lib directories either. Seems kind of silly that it wouldn't be included with the package.. or maybe there's just another dependency package I'm missing? Any insight here would be very appreciated. centos java share|improve this question edited Dec 27 '15 at 10:01 Archemar 11.8k71848 asked Dec 27 '15 at 8:55 Branden 112 What is your distribution? Have you tried to run java -version? I use Mint and there java is installed in such a way that everything is found through the 'normal' environment variables. –Marco Dec 27 '15 at 9:03 I actually get '-bash: java: command not found' when trying to run java directly. I'm using CentOS 6. –Branden Dec 27 '15 at 9:39 @Branden : why install devel package? install JDk/JRE with this toturial digitalocean.com/community/tutorials/… and run java –Babyy Dec 27 '15 at 10:23 add a comment| active oldest votes Know s
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://askubuntu.com/questions/756859/14-04-cant-find-libjava-so and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody could not can ask a question Anybody can answer The best answers are voted up and rise to the top 14.04 - can't find libjava.so up vote 0 down vote favorite I am trying to run Java 2 on Ubuntu 14.04 x64 with the latest updates. The reason I am trying to do this is because I have a really old API that was could not find built java 2. And no its not compatible with the latest compiler without code changes that do break the programing logic. Now whenever I try to run javac from the bin folder I keep getting the error-: Error: can't find libjava.so. Now libjava.so is present in ~/jdk1.2.2/jre/lib/i386. I have added the following path to-: PATH env variable LD_LIBRARY_PATH env variable The ld.so.conf file which now contains include /etc/ld.so.conf.d/*.conf include /home/user/jdk1.2.2/jre/lib/i386 So what am I doing wrong ? where do I have to add tis file in order for it to work ? 14.04 java shared-library share|improve this question asked Apr 13 at 7:08 Machina333 1032 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other que