Re: libjava.so not found
On Wed, Feb 09, 2005 at 12:03:25AM +, Darryl Woodford wrote: > In reply to a post I found online re: not being able to run java from > command line, I found removing the /usr/bin links and recreating them > solved my problem... > > vladdy:/usr/bin# rm javac > vladdy:/usr/bin# ln -s /opt/j2sdk1.4.2_04/bin/javac javac > > and javac works fine thereafter... repeat as neccesary for java etc.. AFAIK, javac doesn't install symlinks in /usr/bin. Also, since you seem to want the package in a nonstandard prefix you should make sure to specify PREFIX as such when compiling the port. Kris pgpq7RLgDLDsP.pgp Description: PGP signature
libjava.so not found
In reply to a post I found online re: not being able to run java from command line, I found removing the /usr/bin links and recreating them solved my problem... vladdy:/usr/bin# rm javac vladdy:/usr/bin# ln -s /opt/j2sdk1.4.2_04/bin/javac javac and javac works fine thereafter... repeat as neccesary for java etc.. Just a thought -- --- Darryl Woodford ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: libjava.so not found
Brian Clapper wrote: On 1 February, 2005, at 18:49 (-0500) Paul Horechuk [1]<[EMAIL PROTECTED]> wrote: During make of openoffice-1.1 make -DWITHOUT_MOZILLA = Building project sandbox = /usr2/ports/editors/openoffice-1.1/work/sandbox/com/sun/star/lib/sandbox mkout -- version: 1.3 Making dpj... -- Making: ../../../../../unxfbsd.pro/misc/lib_sandbox.dpc dmake subdmake=true -f makefile.mk product="full" depend=t ALLDPC -- No Dependencies javac -classpath ".:../../../../../unxfbsd.pro/class:/usr/local/jdk1.5.0/jre/lib/rt.jar:." -d ../../../../../unxfbsd.pro/class AudioProxy.java Cachable.java ClassContext.java ClassContextImpl.java ClassContextProxy.java CodeSource.java Disposable.java ExecutionContext.java Holder.javaImageProducerProxy.java JarEntry.java JarInputStream.java Permission.java PermissionCollection.java ProtectionDomain.java Resource.java ResourceImpl.java ResourceProxy.java ResourceViewer.java SandboxMessageHandler.java SandboxThreadGroup.java SandboxSecurity.javaSandboxSecurityException.java WeakRef.java WeakTable.java WeakEntry.java XImage.java Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. [ ... ] Paul, My guess is that it's happening when the OpenOffice build is attempting to invoke the Java compiler. I suggest posting this to the freebsd-java mailing list. It's an open issue with the 1.5.0 JDK, which is what you appear to be invoking. Basically, if you've installed the 1.5 JDK port, you can't invoke java without using its full path. That is, $ /usr/local/jdk1.5.0/bin/java works fine. But $ java fails, producing exactly the errors you saw: $ java Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. In my case, $ java -version does work, and it properly reports the version info. I did try to back out the 1.5.0 version and install 1.4.2, but ran into too many problems with the bootstrapping issue. It couldn't find a previous version of the required SDK. I do have the linux-java SDK installed. I was just hoping a symlink where oo was looking would be sufficient. Someone reported this error on the freebsd-java list, and I noted that I can reproduce it here, as well. No one has responded, so I imagine it doesn't affect everyone. But one more voice doesn't hurt. Note that this problem, whatever it is (and I haven't had time to dig) does NOT affect the 1.4.2 JDK. A workaround for your immediate problem might be to install the 1.4.2 JDK port. -Brian Brian Clapper, [2]http://www.clapper.org/bmc/ "A witty saying proves nothing." -- Voltaire Thanks for the help. I'll repost in freebsd-java. References 1. mailto:[EMAIL PROTECTED] 2. http://www.clapper.org/bmc/ ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
libjava.so not found
During make of openoffice-1.1 make -DWITHOUT_MOZILLA = Building project sandbox = /usr2/ports/editors/openoffice-1.1/work/sandbox/com/sun/star/lib/sandbox mkout -- version: 1.3 Making dpj... -- Making: ../../../../../unxfbsd.pro/misc/lib_sandbox.dpc dmake subdmake=true -f makefile.mk product="full" depend=t ALLDPC -- No Dependencies javac -classpath ".:../../../../../unxfbsd.pro/class:/usr/local/jdk1.5.0/jre/lib/rt.jar:." -d ../../../../../unxfbsd.pro/class AudioProxy.java Cachable.java ClassContext.java ClassContextImpl.java ClassContextProxy.java CodeSource.java Disposable.java ExecutionContext.java Holder.javaImageProducerProxy.java JarEntry.java JarInputStream.java Permission.java PermissionCollection.java ProtectionDomain.java Resource.java ResourceImpl.java ResourceProxy.java ResourceViewer.java SandboxMessageHandler.java SandboxThreadGroup.java SandboxSecurity.javaSandboxSecurityException.java WeakRef.java WeakTable.java WeakEntry.java XImage.java Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. dmake: Error code 2, while making '../../../../../unxfbsd.pro/misc/lib_sandbox_dummy.java' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /usr2/ports/editors/openoffice-1.1/work/sandbox/com/sun/star/lib/sandbox dmake: Error code 1, while making 'instsetoo/prj/build_all' *** Error code 255 Stop in /usr2/ports/editors/openoffice-1.1. ---* TG_SLO.MK *--- friar# locate libjava.so /usr2/local/jdk1.5.0/jre/lib/i386/libjava.so /usr2/local/jre1.1.8/lib/i386/green_threads/libjava.so /usr2/local/jre1.1.8/lib/i386/green_threads/libjava.so.1.1.8 friar# uname -a FreeBSD friar.horechuk.csolve.net 5.3-STABLE FreeBSD 5.3-STABLE #6: Sat Jan 15 21:36:01 EST 2005 Can I symlink one of the libjava.so files to where openoffice is looking? ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"