Error Could Not Find Libjava.so Freebsd
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 libjava.so not found About Us Learn more about Stack Overflow the company Business Learn more about error: could not find java se runtime environment linux hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Error: Could Not Find Libjava.so Ubuntu
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 How to setup java
Error: Could Not Find Java 2 Runtime Environment
on freebsd? up vote 3 down vote favorite I have both Java JRE and Java JDK on a FreeBSD 7.2 box (running PFSense) from http://www.freebsdfoundation.org/downloads/java.shtml find / -name gives me output like: /usr/local/diablo-jre1.6.0/bin/java /usr/local/diablo-jdk1.6.0/bin/java /usr/local/diablo-jdk1.6.0/jre/bin/java so I make a link to /usr/local/bin like so: ln /usr/local/diablo-jre1.6.0/bin/java /usr/local/bin/java and now I get # rehash # java Error: could not find libjava.so Error: could not find Java 2 jdk Runtime Environment. SOOOOOO, I'm wondering if there is some tool I can use to turn on a particular java vm similar to Ubuntus' /etc/jvm? java freebsd ports share|improve this question edited Jan 25 '11 at 1:42 Yasir Arsanukaev 7,48222450 asked Jan 25 '11 at 1:17 boatcoder 6,535854105 You'll get more help on superuser.com –Vivin Paliath Jan 25 '11 at 1:23 2 This question belongs on unix.stackexchange.com –Yasir Arsanukaev Jan 25 '11 at 1:24 @Yasir I need to keep up on the new stackexchange sites! –Vivin Paliath Jan 25 '11 at 1:26 1 Yea, I didn't even know there was a unix.stackexchange.com site.... I decided stackoverflow vs superuser because I figured developers would know how to change out the jvm better than the admins. –boatcoder Jan 25 '11 at 1:30 @Mark0978: Chances are it'll turn out JVM doesn't need to be changed. –Yasir Arsanukaev Jan 25 '11 at 1:42 | show 1 more comment 3 Answers 3 active oldest votes up vote 3 down vote accepted The /usr/local/diablo-jre1.6.0/bin/java application probably locates libjava.so relative to the location of the java application itself. By creating a hard link to
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 About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions 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. Join them; it only takes a minute: Sign up Java libjava.so file error up vote 3 down vote favorite It's been a day since I am trying to get "java" command run on a server, that has java5 jre installed. Problem is I always get Error: could not find http://stackoverflow.com/questions/4789070/how-to-setup-java-on-freebsd libjava.so Error: could not find Java 2 Runtime Environment. even if I run it from the installation directory, /usr/lib/java1.5/jre/bin. I can see libjava.so is in ../jre/lib/amd64 directory but not sure why wouldn't it get picked up. Any hints would be greatly appreciated. -Thanks java share|improve this question edited Mar 1 '14 at 11:07 Lee Duhem 12.4k21539 asked Mar 14 '12 at 11:47 Abidi 1,82382744 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Very weird error. I noticed http://stackoverflow.com/questions/9701348/java-libjava-so-file-error you're using a 64-bit OS. Found this link that talks of a problem between older versions of java and 64-bit OSes. Java 1.5 was released 2004 and 64-bit processors were only introduced to mainstream computer market in 2003. Meaning this could be a likely culprit. For posterity (in case the page gets deleted): This problem refer to the installation of old JDKs on 64bit Linux systems. When java command is executed at shell, generally, you will receive this error message: Error: can't find libjava.so. To solve this problem just edit 3 files located at JDK installation dir and be happy $JAVA_HOME/bin/.java_wrapper $JAVA_HOME/jre/bin/.java_wrapper $JAVA_HOME/jre/bin/realpath All these 3 files have similar code snippet as bellow: case "`uname -m`" in i[3-6]86 | ia32 | ia64 | i?86) proc=i386 ;; sparc*) proc=sparc ;; *) proc=unknown ;; esac Edit each file and include the architecture x86_64 in the first case-statement and the problem will be fixed: i[3-6]86 | ia32 | ia64 | i?86 | x86_64) share|improve this answer edited Mar 14 '12 at 16:37 answered Mar 14 '12 at 12:00 Dunes 16.3k22648 I used both "locate" and "find" but din't find libjli.so file anywhere on my machine. –Abidi Mar 14 '12 at 12:13 @Abidi I found a forum post that may be of interest to you. Let me know if it works. –Dunes Mar 14 '12 at 16:38 Thank you for your research Dunes, but I don't have any of these files even I downloaded and ins
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software Java Programming: Java Runtime Environment not found when trying to compile User Name Remember Me? http://www.linuxquestions.org/questions/linux-software-2/java-programming-java-runtime-environment-not-found-when-trying-to-compile-207287/ Password Linux - Software This forum is for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, http://www.atm.tut.fi/list-archive/freebsd-stable-2005/msg00867.html 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 could not 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. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click could not find here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 07-20-2004, 02:09 AM #1 murbz LQ Newbie Registered: Jul 2004 Distribution: Red Hat Linux Shrike Posts: 11 Rep: Java Programming: Java Runtime Environment not found when trying to compile Hey Guys! Yeah im back with another little problem. I previously had the problem with Java Virtual Machine. I got some advice and help from you guys and changed my .bash_profile with PATHS and stuff. Now i encoutered another problem. I just downlaopded a 90mb file
Wed, 02 Feb 2005 08:34:03 -0500 Delivered-to: freebsd-stable@freebsd.org Delivery-date: Wed, 02 Feb 2005 15:33:50 +0200 Envelope-to: archive@lists.atm.tut.fi In-reply-to: <200502020143.j121hWuk032353@condor.inside.clapper.org> List-archive: