Re: [SLUG] Java Runtime and Mozilla

2003-12-18 Thread Dave Airlie

please kill the HTML mail.. I wondered why it was 12k 

Anyhoo, ns4 is most certinaly the wrong directory I'm no sure with your
java runtime what is correct it could be ns600 or ns610 or
something like about:plugins in Mozilla is your friend :-)

also if you are using RH8.0 the plugin will probably need to be compiled
with gcc 3.2 so that might be in a separate dir as well..

Dave.

On Fri, 19 Dec 2003, Rowling, Jill wrote:

 Hi all,

 I've been trying to get some Java apps to display with Mozilla but it's not
 happening.

 The system is x86 (Dell), Red Hat 8 distro, fairly vanilla.
 I've loaded the Sun Java run time (j2re-1.4.2_03-fcs as an RPM) which has
 installed itself OK.
 Mozilla is Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830,
 build 2002083014
 And has java enabled in preferences.
 I've added this to my .bashrc:
 JAVAHOME=/usr/java
 NPX_PLUGIN_PATH=$JAVAHOME/j2re1.4.2_03/plugin/i386/ns4
 export JAVAHOME
 export NPX_PLUGIN_PATH

 These values are active:
 ls $NPX_PLUGIN_PATH
 libjavaplugin.so

 But when I run Mozilla to look at a java application, either on this machine
 (in the installed samples) or a remote machine's live application,
 Mozilla displays an icon like a jigsaw puzzle piece and an error popup like
 this:

 This page contains information of a type (application/x-java-vm) that can
 only be viewed with the appropriate Plug-in

 Do I have to add all the java .so's to the Mime types (if so, which ones
 would be appropriate?) or do I also have to install the Java compilers etc.?
 Or is this version of Mozilla too old?
 (The remote java app is only partially viewable in Win2k/Citrix but that's a
 different problem; I figured if the local application doesn't work at all
 then there's something I have to fix. The local (to Linux) application is
 the Sun Java dashboard that comes with the RPM. It should at least load
 something.).

 Regards,

 Jill.



-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DECstation / Linux VAX / ILUG person

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Java Runtime and Mozilla

2003-12-18 Thread Stuart
Hi Jill

HTH:

http://plugindoc.mozdev.org/faqs/java.html

Linux
On Linux, Mozilla requires JRE 1.4.2 or later.

Mozilla 1.4 and later, and Mozilla Firebird, are compiled with gcc
3.2.3. A gcc 3.x compatible version of the Java plugin must be used. JRE
1.4.2 contains a compatible plugin.

If you installed the JRE 1.4.2_02 RPM, this plugin is
/usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so -
and to install it for Mozilla (including Mozilla Firebird), do the
following:

  * Open a terminal
  * Change to your Mozilla (or Mozilla Firebird) plugins directory
  * Issue the following command: ln -s
/usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
If you are using an older Linux distribution, you may need to install
the gcc3 support libraries, as the gcc 3.2 version of the Java plugin
requires libgcc_s.so.1 to operate. You may be able to find packages
using Google.

If you are using an old or unofficial build of Mozilla (1.4a or later)
or Mozilla Firebird, you can check which compiler was used by entering
about:buildconfig in the location bar and pressing enter. You will see a
line such as gcc version 3.3 20030226 (prerelease) (SuSE Linux), which
will show the compiler that was used. If gcc2.9x was used, you need to
use the ns610 plugin, not the ns610-gcc32 plugin.


MXmas

Stuart


On Fri, 2003-12-19 at 10:07, Rowling, Jill wrote:
 Hi all,
 
 I've been trying to get some Java apps to display with Mozilla but
 it's not happening.
 
 The system is x86 (Dell), Red Hat 8 distro, fairly vanilla.
 I've loaded the Sun Java run time (j2re-1.4.2_03-fcs as an RPM) which
 has installed itself OK.
 Mozilla is Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1)
 Gecko/20020830, build 2002083014
 And has java enabled in preferences.
 I've added this to my .bashrc:
 JAVAHOME=/usr/java
 NPX_PLUGIN_PATH=$JAVAHOME/j2re1.4.2_03/plugin/i386/ns4
 export JAVAHOME
 export NPX_PLUGIN_PATH
 
 These values are active:
 ls $NPX_PLUGIN_PATH
 libjavaplugin.so
 
 But when I run Mozilla to look at a java application, either on this
 machine (in the installed samples) or a remote machine's live
 application,
 
 Mozilla displays an icon like a jigsaw puzzle piece and an error popup
 like this:
 
 This page contains information of a type (application/x-java-vm) that
 can only be viewed with the appropriate Plug-in
 
 Do I have to add all the java .so's to the Mime types (if so, which
 ones would be appropriate?) or do I also have to install the Java
 compilers etc.?
 
 Or is this version of Mozilla too old?
 (The remote java app is only partially viewable in Win2k/Citrix but
 that's a different problem; I figured if the local application doesn't
 work at all then there's something I have to fix. The local (to Linux)
 application is the Sun Java dashboard that comes with the RPM. It
 should at least load something.).
 
 Regards,
 
 Jill.
 
 --
 Jill Rowling, System Administrator
 Eng. Systems Dept, Aristocrat Technologies Australia
 Level 2, 55 Mentmore Ave Rosebery NSW 2018
 Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED]
 
 
 --
 IMPORTANT NOTICES
 This email (including any documents referred to in, or attached, to
 this email) may contain information that is personal, confidential or
 the subject of copyright or other proprietary rights in favour of
 Aristocrat, its affiliates or third parties. This email is intended
 only for the named addressee. Any privacy, confidence, copyright or
 other proprietary rights in favour of Aristocrat, its affiliates or
 third parties, is not lost because this email was sent to you by
 mistake.
 
 If you received this email by mistake you should: (i) not copy,
 disclose, distribute or otherwise use it, or its contents, without the
 consent of Aristocrat or the owner of the relevant rights; (ii) let us
 know of the mistake by reply email or by telephone (+61 2 9413 6300);
 and (iii) delete it from your system and destroy all copies.
 
 Any personal information contained in this email must be handled in
 accordance with applicable privacy laws.
 
 Electronic and internet communications can be interfered with or
 affected by viruses and other defects. As a result, such
 communications may not be successfully received or, if received, may
 cause interference with the integrity of receiving, processing or
 related systems (including hardware, software and data or information
 on, or using, that hardware or software). Aristocrat gives no
 assurances in relation to these matters.
 
 If you have any doubts about the veracity or integrity of any
 electronic communication we appear to have sent you, please call +61 2
 9413 6300 for clarification.
 
 
 
 __
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - 

RE: [SLUG] Java Runtime and Mozilla

2003-12-18 Thread Rowling, Jill
HTML? Sorry... Oops.
Context-sensitive mail client seems to default to that at times when I cut 
paste things...
I need to watch that.

OK I have changed the $NPX_PLUGIN_PATH environment to be
 /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32 to match `gcc -v`.

I've read the docs but I think I'm missing something basic about where Moz
puts its things.
There seems to be several places for plugins to be registered, for example
the Shockwave plugin (installed as an RPM) is generic for all users and is
in the about plugins list whereas user-specified plugins are not; they are
stored elsewhere.
Also I thought Plugins did not need the user to specify a MIME type, and
MIME types were not the same as filename extensions, but the Netscape
documentation (to which the Moz AboutPlugins refers) suggests otherwise.

I've put simlinks in to 
/usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32 in everywhere there is a
plugins directory
(this is just in case the env variable is not being read) but still no good.

I might give it a break for a while and will come back to it later.
And thanks, Stu for the other URL - I'll do some reading.

Server-side stuff seems a lot easier than personal desktop stuff!

Cheers,

Jill.


-Original Message-
From: Dave Airlie [mailto:[EMAIL PROTECTED] 
Sent: Friday, 19 December 2003 10:27 AM
To: Rowling, Jill
Cc: Sydney Linux User Group
Subject: Re: [SLUG] Java Runtime and Mozilla



please kill the HTML mail.. I wondered why it was 12k 

Anyhoo, ns4 is most certinaly the wrong directory I'm no sure with your java
runtime what is correct it could be ns600 or ns610 or something like
about:plugins in Mozilla is your friend :-)

also if you are using RH8.0 the plugin will probably need to be compiled
with gcc 3.2 so that might be in a separate dir as well..

Dave.


--
IMPORTANT NOTICES
This email (including any documents referred to in, or attached, to this
email) may contain information that is personal, confidential or the subject
of copyright or other proprietary rights in favour of Aristocrat, its
affiliates or third parties. This email is intended only for the named
addressee. Any privacy, confidence, copyright or other proprietary rights in
favour of Aristocrat, its affiliates or third parties, is not lost because
this email was sent to you by mistake.

If you received this email by mistake you should: (i) not copy, disclose,
distribute or otherwise use it, or its contents, without the consent of
Aristocrat or the owner of the relevant rights; (ii) let us know of the
mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete
it from your system and destroy all copies.

Any personal information contained in this email must be handled in
accordance with applicable privacy laws.

Electronic and internet communications can be interfered with or affected by
viruses and other defects. As a result, such communications may not be
successfully received or, if received, may cause interference with the
integrity of receiving, processing or related systems (including hardware,
software and data or information on, or using, that hardware or software).
Aristocrat gives no assurances in relation to these matters.

If you have any doubts about the veracity or integrity of any electronic
communication we appear to have sent you, please call +61 2 9413 6300 for
clarification.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html