Netscape V3.0 Java SOLVED(i think)

Netscape V3.0 Java SOLVED(i think)

Post by Tony Sarathchand » Tue, 20 Aug 1996 04:00:00



Okay I seen the number of people that have been having problems just
like myself with  Netscape V3.0 and Java applets.   So I thought I would do
a little experimenting to see if I could get it to work and was quite
surprised when I did.  This is what I found on my installation.  I
apologize if this is old news.

Just rename /usr/local/lib/netscape/plugins/java_30 to
                /usr/local/lib/netscape/plugins/java_30.zip !!!!        
                                                        ^^^

Here is my setup:  Linux Joshua 2.0.7 Netscape V3.0b6

ldd /usr/X11R6/bin/netscape

        libXt.so.6 => /usr/X11R6/lib/libXt.so.6.0
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6.0
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6.0
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6.0
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4.3
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6.0
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6.0
        libdl.so.1 => /lib/libdl.so.1.7.14
        libc.so.5 => /lib/libc.so.5.2.18

gzip -dc netscape-v30b6-export.x86-unknown-linux-elf.tar.gz|tar tvf -

-r--r--r-- briano/wheel  10279 Aug  1 15:30 1996 README
-r--r--r-- briano/wheel   7306 Aug  1 15:30 1996 LICENSE
-r-xr-xr-x briano/wheel 4904680 Aug  1 15:31 1996 netscape
-r--r--r-- briano/wheel  219491 Aug  1 15:28 1996 Netscape.ad
-r--r--r-- briano/wheel    4674 Oct 18 16:54 1994 XKeysymDB
-r-xr-xr-x briano/wheel    5464 Aug  1 15:21 1996 movemail
drwxr-xr-x briano/wheel       0 Aug  1 15:30 1996 movemail-src/
-r--r--r-- briano/wheel   18415 Dec 14 14:50 1995 movemail-src/movemail.c
-r--r--r-- briano/wheel   17976 Dec 14 14:50 1995 movemail-src/COPYING
-r--r--r-- briano/wheel     919 Dec 14 14:50 1995 movemail-src/README
-r--r--r-- briano/wheel  723019 Aug  1 15:30 1996 java_30    

so it seems it's a bug in the distibution archive.

What gave it away was when I tried to run netscape from a shell(I usually
run it from a toolbar) I got the following error:

Joshua:/lib# netscape &
[1] 3038
Joshua:/lib# Netscape: Ignoring invalid mailcap entry: -r
netscape: '/root/.netscape/plugins/java_30' is not an ELF file
ERROR: Not an ELF file
Cant load plugin /root/.netscape/plugins/java_30. Ignored.

Of course java_30 is a zip archive.
Here I was running as root to eliminate possible permission problems.
Exact same error occurs at /usr/local/lib/netscape/plugins.
My perms are
-rwxr-xr-x   1 root     root       723019 Aug 19 09:41 java_30.zip

Let me know if this works for you, I am just explaining what worked for me.

Cheers

Tony

--

  / /  (_)__  __ ____  __  
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\       Where you want to be today.

 
 
 

Netscape V3.0 Java SOLVED(i think)

Post by Tony Sarathchandr » Wed, 21 Aug 1996 04:00:00




> > Just rename /usr/local/lib/netscape/plugins/java_30 to
> >               /usr/local/lib/netscape/plugins/java_30.zip !!!!        
> >                                                       ^^^

> (a) You didn't read the instructions (the README file). It was *VERY VERY*
> specific about where you had to put java_30:

>           java_30.  This file is included in the distribution, but must
>           be moved to any of these directories:

>                 The current directory
>                 /usr/local/netscape/java/classes
>                 /usr/local/lib/netscape
>                 $HOME/.netscape

I did read the README file, several times in fact, and tried copying
java_30 to each of the directories in turn to see if it would work.  I
even tried having links from these directories to the one java_30 file,
and when that didn't work I had multiple java_30 files in ALL of these
directories, with still no luck.

Quote:> Notice it doesn't say "/usr/local/lib/netscape/plugins". The "plugins"
> directory is for plugins, not for java stuff.

> (b) Renaming to .zip is silly: netscape already recognizes java_30 as a zip
> file, and manages to read the contents (I've verified this using "strace").

probably true as the error I when it was in plugins seem to
indicate that it was looking for the incorrect file format.

netscape: '/root/.netscape/plugins/java_30' is not an ELF file

as it was looking for plugins and not for the java_30 file.

Quote:

> You need to put the java_30 (not .zip) file in /usr/local/lib/netscape, or
> one of the other locations above.

> The problem that most people are running into (those who can't run java
> applets) is that some unknown java exception is occurring early in the
> process when applets are loaded, and nothing ever pops up

Perhaps this was some different problem, although mine was doing similar
things before.

Maybe I did changed something else while I was fiddling that caused it to
work, not sure what it could have been.  But my current setup works so I
am happy to leave it that way.

-rwxr-xr-x   1 root     root       723019 Aug 19 09:41
/usr/local/lib/netscape/plugins/java_30.zip*

Like I said in the original post, just explaining what worked for me.

Cheers

Tony

  / /  (_)__  __ ____  __  
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\       Where you want to be today.

 
 
 

Netscape V3.0 Java SOLVED(i think)

Post by Stas » Wed, 21 Aug 1996 04:00:00




: >
: > > Just rename /usr/local/lib/netscape/plugins/java_30 to
: > >             /usr/local/lib/netscape/plugins/java_30.zip !!!!        
: > >                                                     ^^^

This worked for me! I have java_30 in "/usr/local/lib/netscape".
I just created a pair of symbolic links (to play it safe).

Within /usr/local/lib/netscape, I did:
        "ln -s java_30 java_30.zip"

Within /usr/local/lib/netscape/plugins, I did:
        "ln -s ../java_30 java_30.zip"

: I did read the README file, several times in fact, and tried copying
: java_30 to each of the directories in turn to see if it would work.  I
: even tried having links from these directories to the one java_30 file,
: and when that didn't work I had multiple java_30 files in ALL of these
: directories, with still no luck.

Well, my luck has changed for the better.

: > Notice it doesn't say "/usr/local/lib/netscape/plugins". The "plugins"
: > directory is for plugins, not for java stuff.
: >
: > (b) Renaming to .zip is silly: netscape already recognizes java_30 as a zip
: > file, and manages to read the contents (I've verified this using "strace").

: Like I said in the original post, just explaining what worked for me.

Thanks. Java is now working for me too.

Cheers,
Edward

 
 
 

1. Fix for Netscape v3.0x java / appletclassloader problem

After fiddling with the now-familiar `couldn't create AppletClassLoader'
error issued by Netscape 3.0b* for too many hours (an strace'd Netscape
is not a pretty thing to watch), I think I've found a solution to
the problem. At least, I was able to cure it on two Linux boxes.

Previous posts to comp.infosystems.www.browsers.x, comp.os.linux.x,
and comp.unix.bsd.freebsd.misc advised that the fonts directory
(fonts.dir) in X11R6/lib/fonts/misc needed to be re-generated (via
mkfontdir). This solution did not work for me, although others indicated
it worked for them.

I did find, however, that my misc/fonts.alias file contained many entries
corresponding to fonts I do not have. Renaming the file, rehashing
the font path (xset fp rehash), and restarting Netscape resulted in
an instance of Netscape that was able to run java applets successfully.

Not wanting to lose all my misc font aliases, though, and also not wanting
to spend any more time validating each entry, i just stripped out the
`jis' fonts from fonts.alias (i have very few japanese fonts).

In short, it appears (at least for me) that making sure misc/fonts.alias
contains valid entries cures the problem. Drop me a line if this works
for you; I'm curious.

regards,
craig

2. Installing new packages

3. Netscape v3.0 Java on Slackware 96

4. ANNOUNCE: Add Graphical Chat to Your Web Site

5. Java, Java, Java, Java, Java, Java .....

6. Xfree 3.9.17 G400 and Netscape

7. Solved Netscape and Java Development Kit Problems

8. Beowulf and parallel processing nodes

9. SOLVED: Netscape 3.x/Java Errors

10. Solved: Netscape and Java works now!

11. Netscape 4.03 Java problem (Solved! Kind of...)

12. RedHat 6 and Netscape fix for Java for things like yahoo Java chat applet

13. Solved (I think) _setsigjmp error.