LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 04-08-2008, 03:17 AM   #1
jkmreyes
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Rep: Reputation: 0
Question Java VM not loading on FreeBSD 7.0 + firefox 2.0


Greetings;

I've tried to install java jre on freebsd 7 but there seem to be no support for freebsd 7.0. I've downloaded from: http://www.freebsdfoundation.org/cgi....5.0.07.01.tbz
and installed it using pkg_add. I've been using it for the version 6.x and everything seem to be working fine.

I also tried to install it on different FreeBSD 7.0 machines but I am not successful in making it work. It can be installed and seen on the "aboutlugins" page of firefox but when I start to load java enabled pages I do not see the plugin loaded on the page.

Please feel free to contact me for any concerns or inquiries.
 
Old 04-08-2008, 06:35 AM   #2
curioso
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
Try diablo-jdk ( /usr/ports/java/diablo-jdk15 ).
 
Old 04-08-2008, 07:27 PM   #3
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
Once you install the port you have to configure firefox to use it.

cd over to the firefox plugin directory.

then copy over the firefox plugin from the diablo-jre installation.

cp /usr/local/diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so
 
Old 04-08-2008, 09:40 PM   #4
jkmreyes
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Unhappy

I appreciate your suggestions, unfortunately I've already did those. I even tried using linux-sun-jre15 and 16, but It always crash. I am getting an error with java vm. Is there any available patch or package for freeBSD 7.0?


Thanks!
 
Old 04-08-2008, 09:44 PM   #5
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by jkmreyes View Post
I appreciate your suggestions, unfortunately I've already did those. I even tried using linux-sun-jre15 and 16, but It always crash. I am getting an error with java vm. Is there any available patch or package for freeBSD 7.0?


Thanks!
If its still failing i would remove it via package delete, port snap, portupgrade -a, then cd /usr/ports/java/diablo-jdk make && make install && make clean.

I know it works in 7.0 i have it running on a 7.0 system now.

Also what error message are you getting from the JVM? What browser (32/64bit), native or linux firefox?

P.s. The linux plugin will fail on the firefox built for bsd, to get the linux jdk to work with firefox you would have to install the linux-firefox on bsd.

thanks

Last edited by Fredstar; 04-08-2008 at 09:45 PM.
 
Old 04-08-2008, 10:22 PM   #6
jkmreyes
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Fredstar View Post
If its still failing i would remove it via package delete, port snap, portupgrade -a, then cd /usr/ports/java/diablo-jdk make && make install && make clean.

I know it works in 7.0 i have it running on a 7.0 system now.

Also what error message are you getting from the JVM? What browser (32/64bit), native or linux firefox?

P.s. The linux plugin will fail on the firefox built for bsd, to get the linux jdk to work with firefox you would have to install the linux-firefox on bsd.

thanks
I'm using 32bit and I've updated my port and the error that I'm having is something like ... "ack not received from child process". Some files are also required by jre and I've used symlinks to the BSD 7.0 files to make it run. I'm also using both firefox browsers (native and linux) for testing jre on freeBSD.


Here's the Error that I have:


java_vm process: could not find Java VM symbols
Could not read ack from child process
Plugin: Java VM process has died.
plugin: java process exited with status 3
Could not start JavaVM!

VM did not start up properly
java_vm process: could not find Java VM symbols
Could not read ack from child process
Plugin: Java VM process has died.
plugin: java process exited with status 3
Could not start JavaVM!

VM did not start up properly
java_vm process: could not find Java VM symbols
Could not read ack from child process
Plugin: Java VM process has died.
plugin: java process exited with status 3
Could not start JavaVM!

VM did not start up properly
java_vm process: could not find Java VM symbols
Could not read ack from child process
Plugin: Java VM process has died.
plugin: java process exited with status 3
Could not start JavaVM!

VM did not start up properly

Thanks for you time! Really appreciate it!

Last edited by jkmreyes; 04-09-2008 at 01:55 AM. Reason: additional info
 
Old 04-09-2008, 07:53 AM   #7
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
Looking through the FreeBSD this is a bug that should have been merged into the RELENG_7 branch.

You need to bring your system up2date.

Code:
step #1
pkg_add -r cvsup_without_gui

//If you use csh
rehash

cd /usr/share/examples/cvsup

edit standard-supfile

change 

*default host=CHANGE_THIS.FreeBSD.org

to

*default host=cvsup13.usa.FreeBSD.org

or any cvsup mirror you like
list

after that run:
cvsup -g -L2 /usr/share/examples/cvsup/standard-supfile

After your tree is updated you will need to rebuild, follow this guid.

FreeBSD Handbook
It looks like the fix did not make it into the release cd. Bring your system to RELENG_7 will fix the problem
 
Old 04-09-2008, 11:58 PM   #8
jkmreyes
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Ive updated my cvsup file but I've got an error Unknown host "cvsup13.usa.FreeBSD.org". After running the command cvsup -g -L2 /usr/share/examples/cvsup/standard-supfile

can help me with this?
 
Old 04-10-2008, 09:26 PM   #9
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by jkmreyes View Post
Ive updated my cvsup file but I've got an error Unknown host "cvsup13.usa.FreeBSD.org". After running the command cvsup -g -L2 /usr/share/examples/cvsup/standard-supfile

can help me with this?
Ya, Change it to another mirror. That one maybe down.

Code:
Primary Mirror Sites

        *

          cvsup1.FreeBSD.org
        *

          cvsup2.FreeBSD.org
        *

          cvsup3.FreeBSD.org
        *

          cvsup4.FreeBSD.org
        *

          cvsup5.FreeBSD.org
        *

          cvsup6.FreeBSD.org
        *

          cvsup7.FreeBSD.org
        *

          cvsup8.FreeBSD.org
        *

          cvsup9.FreeBSD.org
        *

          cvsup10.FreeBSD.org
        *

          cvsup11.FreeBSD.org
        *

          cvsup12.FreeBSD.org
        *

          cvsup13.FreeBSD.org
        *

          cvsup14.FreeBSD.org
        *

          cvsup15.FreeBSD.org
        *

          cvsup16.FreeBSD.org
        *

          cvsup18.FreeBSD.org
 
Old 04-11-2008, 07:45 PM   #10
jkmreyes
LQ Newbie
 
Registered: Feb 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Ok! the rebuild worked now... I just changed the mirror site... but I'm still having problems with java and firefox... I tried using the plugin in konqueror and everything went well... There's probably something wrong with firefox. The error that I have is "INTERNAL ERROR on Browser End: Pipe closed during read? State may be corrupt" the build world was successful but that didn't solve the problem.

Really appreciate your help!

Last edited by jkmreyes; 04-11-2008 at 07:46 PM.
 
Old 12-21-2008, 08:32 AM   #11
ibmercurial
Member
 
Registered: Sep 2004
Location: Rhode Island (not new york)
Distribution: Slackware 10.2
Posts: 50

Rep: Reputation: 15
Smile symlink

Happy to see freebsd has ironed out issues with sun, and now provides easy to use jre binaries.

cd /usr/local/diablo-jre1.6.0/plugin/amd64/ns7 ;

ln -s libjavaplugin_oji.so /usr/local/lib/firefox/plugins

I tried to copy libjavaplugin_oji.so to firefox plugins directory but it did not work.
 
Old 03-28-2009, 12:38 AM   #12
apollo29a
LQ Newbie
 
Registered: Feb 2008
Distribution: FreeBSD
Posts: 6

Rep: Reputation: 0
I just wanted to say thank you, because of this post I got java working.
 
  


Reply

Tags
firefox, freebsd, java


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Installed FreeBSD, now Windows XP HOME not loading.. tymek *BSD 1 11-02-2006 04:50 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 02:38 PM
Loading kernel modules in freebsd 666Snake666 *BSD 3 12-02-2003 07:28 PM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration