|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
||||
Java installiation question
Here is my problem:
following this guide: http://www.openbsd.org/faq/faq13.html#javaplugin combined with this: http://www.softwareinreview.com/bsd_...enbsd_4.2.html I managed to build java from ports!But when i type on mozilla "about : plugins" i see no plugins installed" :O How come there is no java plugin? I'm using mozilla 3.5 & OpenBSD 4.9 my java hom is set right i think: Code:
$ env _=/usr/bin/env PATH=/home/sepuku/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/jdk-1.5.0/bin:. SHELL=/bin/ksh XTERM_VERSION=XTerm/OpenBSD(267) USER=sepuku PKG_PATH=ftp://ftp.cc.uoc.gr/mirrors/OpenBSD/4.9/packages/i386/ MAIL=/var/mail/sepuku WINDOWPATH=5 HOME=/home/sepuku DISPLAY=:0.0 TERM=xterm JAVA_HOME=/usr/local/jdk-1.5.0/ XTERM_SHELL=/bin/ksh XAUTHORITY=/home/sepuku/.Xauthority WINDOWID=23068685 XTERM_LOCALE=C LOGNAME=sepuku Last edited by sepuku; 4th July 2011 at 12:29 PM. |
|
|||
Some of the more experienced members of the forum do not strongly advocate OpenBSD as a Java platform. The java port is old and recent efforts concern OpenJDK. None-the-less, I believe that it should work.
The FAQ describes making the symbolic link to the java binary and also having Java and Javascript enabled under the preferences section of Firefox. Perhaps you could post the link code and double check your Firefox preferences |
|
||||
OK,i got it what you said.After make install,i had no messages that's why i was lost!I found the file " MESSAGE-main" in
Code:
/usr/ports/devel/jdk/1.5/pkg Code:
Use and distribution of this technology is subject to the Java Research License included herein. To use the Java plugin with Seamonkey or Firefox you must create a symbolic link (do not copy or hard link) from ${PREFIX}/${JDKHOME}/jre/plugin/${MACHINE_ARCH}/ns7/libjavaplugin_oji.so to your local Mozilla plugins directory, which is found at ~/.mozilla/plugins/ or to the shared Mozilla plugins directory, which is found at ${PREFIX}/lib/mozilla-plugins Code:
sudo ln -s ~.mozilla/plugins /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so Code:
ln: /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so: File exists Last edited by sepuku; 6th July 2011 at 11:32 PM. |
|
||||
You do not have a symbolic link, sepuku. Your ln operands were backwards. The order is source then target, or source then directory.
You might try something like this (I've not tested this, but it may work), as it uses source then directory: $ ln -s /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins Please review the ln(1) man page. |
|
||||
Well you are right jiggimi,i tried visa versa(source then directory) also the command ran.I rebooted yet i see no plugins in mozilla!
also there was no dir "plugins" to .mozilla so i created one so the command could ran. Last edited by sepuku; 5th July 2011 at 12:47 PM. |
|
|||
If all went well you should see
Code:
libjavaplugin_oji.so Code:
ls -al ~/.mozilla/plugins To accomplish the alternative symlink as root Code:
rm -rf ~/.mozilla/plugins/libjavaplugin_oji.so Code:
ln -s /usr/local/jdk-1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/lib/mozilla-plugins/ Code:
ldconfig |
|
||||
Thank you shep it worked.Just for anyone else that happens to have the same issue:
reboot was necessary! after running Code:
ldconfig |
|
||||
Where did you find instructions telling you to run ldconfig(8)???!!!???
|
|
||||
Ah, missed that he'd suggested it.
And I asked, because that has nothing to do with symlinks, and everything to do with run time libraries. And running that command, that way, will remove all local shared libraries from lookup. It will make almost every executable in /usr/local/bin unusable. If you read the man page (link provided in my prior post), you will see that it says: Quote:
Code:
if [ -f /sbin/ldconfig ]; then echo 'creating runtime link editor directory cache.' if [ -d /usr/local/lib ]; then shlib_dirs="/usr/local/lib $shlib_dirs" fi if [ -d /usr/X11R6/lib ]; then shlib_dirs="/usr/X11R6/lib $shlib_dirs" fi ldconfig $shlib_dirs fi |
|
|||
Sorry to create the confusion. In linux ldconfig also updates "trusted libaries" which usually includes /usr/lib/ directories where linux version of JDK/JRE typically install. For most linux systems ldconfig will update the java symlink. I am assuming that /usr/local/ is not a "trusted" directory in OpenBSD unless it is set by the user LD_LIBRARY_PATH.
I learned a lesson not to over extend linux experience into OpenBSD/unix. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
external drive partition question + fdisk question | gosha | OpenBSD General | 15 | 15th June 2009 02:00 PM |
java compiler | bsdnewbie999 | OpenBSD Packages and Ports | 8 | 9th August 2008 12:18 PM |
Installing java question | neurosis | FreeBSD Ports and Packages | 3 | 22nd July 2008 02:42 AM |
Java JDK | Oko | OpenBSD Packages and Ports | 10 | 13th July 2008 07:39 PM |
Java socket programming question | 18Googol2 | Programming | 3 | 3rd May 2008 11:50 AM |