[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mozilla support for Java?



Hello,

Does Mozilla support Java or does it not?

>From the description:

 Mozilla is a sophisticated graphical World-Wide-Web browser, with a
 large number of various browser features like support for HTML 4.0,
 CSS 2, JavaScript and Java. Of course, besides the network option, it
 can also be used as a standalone HTML viewer.

Included in the package:

/usr/lib/mozilla/chrome/en-US.jar
/usr/lib/mozilla/chrome/comm.jar
/usr/lib/mozilla/chrome/toolkit.jar
/usr/lib/mozilla/chrome/embed.jar
/usr/lib/mozilla/chrome/US.jar
/usr/lib/mozilla/chrome/classic.jar
/usr/lib/mozilla/chrome/modern.jar
/usr/lib/mozilla/chrome/en-unix.jar
/usr/lib/mozilla/chrome/en-win.jar
/usr/lib/mozilla/chrome/en-mac.jar
/usr/lib/mozilla/chrome/content-packs.jar
/usr/lib/mozilla/chrome/help.jar

however, when I try to view a simple HTML page with
an <applet> tag, I get the following message:

"This page contains information of a type (application/x-java-vm) that
can only be viewd with the appropriate Plug-In. Click OK to download
Plugin."

and:

Java 2 Plug-in Version 1.3

Download the Java Run Time Environment (JRE) v1.3 Plug-in with Java 2
support, for your platform, either Windows or Linux. The plug-in will
take approximately 19 minutes to download with a 56K modem. After the
installation completes, restart the browser, then return to the page
to enjoy all it has to offer.

So, I am feeling a bit confused is it supported, or isn't it? Do I
need this plugin? Will it even work?

a few other issues I have recently encountered with Java on Debian:

- isn't jdk1.1 meant to contain the nonfree Java *.jar files? I
thought so... jdk doesn't seem to like the Kaffe for some unknown
reason). 

[506] [snoopy:unstable:bam] /home/photos/java >echo $CLASSPATH
/usr/share/kaffe/Klasses.jar:mm.mysql-2.0.4-bin.jar:.
[507] [snoopy:unstable:bam] /home/photos/java >java trial.java  
Can't find class java.lang.System
[508] [snoopy:unstable:bam] /home/photos/java >unset CLASSPATH
[509] [snoopy:unstable:bam] /home/photos/java >java trial.java
Can't find class java.lang.System


- as a result I have been using jikes to compile instead.

- applets that are compiled with jikes do not seem to run, with either
netscape or kaffe's applet viewer:

/usr/lib/kaffe/bin/appletviewer index.html         
java.lang.ClassFormatError: Bad magic number 0x696d706f
	at kaffe.lang.SystemClassLoader.findClass0(SystemClassLoader.java:native)
	at kaffe.lang.SystemClassLoader.findClass(SystemClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:76)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:59)
	at kaffe.applet.AppletViewer.createApplet(AppletViewer.java:301)
	at kaffe.applet.AppletViewer.<init>(AppletViewer.java:261)
	at kaffe.applet.AppletViewer.main(AppletViewer.java:418)

Netscape reports:

# Applet exception: error: java.lang.ClassFormatError: Bad magic number
java.lang.ClassFormatError: Bad magic number
  at java.lang.ClassLoader.defineClass(ClassLoader.java:250)
  at netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:620)
  at netscape.applet.AppletClassLoader.findClass(AppletClassLoader.java:805)
  at netscape.applet.AppletClassLoader.loadClass1(AppletClassLoader.java:688)
* at netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:652)
  at netscape.applet.AppletClassLoader.loadClass(AppletClassLoader.java:629)
  at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:438)
  at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)

So perhaps I should just download jdk1.2 (assuming 1.3 isn't yet
available for Linux)? Where is the best place to get this from?
-- 
Brian May <bam@debian.org>



Reply to: