Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java Applet on Macintosh

Reply
Thread Tools

Java Applet on Macintosh

 
 
Johnny
Guest
Posts: n/a
 
      07-06-2007
Hi all:

I have a very simple Java applet which runs perfectly on Windows in IE, but
when I try to load it in IE on MAC OS 9, I get an error"

An Exception Occurred, ClassNotFoundException for TestApplet

Java Exception: java.lang.NullPointerException.

The Page hosting the Java Applet is being served from Apache, and the code
is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<applet code="TestApplet.class" width=450 height=600>
</applet>
</BODY>
</HTML>

Can anyone offer any advice as to what I can do?

--
John.

http://mscrmguy.blogspot.com/

 
Reply With Quote
 
 
 
 
Steve W. Jackson
Guest
Posts: n/a
 
      07-06-2007
In article <MSuji.11665$>,
"Johnny" <> wrote:

> Hi all:
>
> I have a very simple Java applet which runs perfectly on Windows in IE, but
> when I try to load it in IE on MAC OS 9, I get an error"

[ snip ]
>
> Can anyone offer any advice as to what I can do?


Mac OS 9 is officially dead, though a great number of users still stick
with it. Its Macintosh Runtime for Java (MRJ) only supported Java
1.1.8, and adding Swing support (early Swing 1.1.1, IIRC) was possible
but not pleasant.

Bottom line: don't worry about an applet working for any Mac not
running some release of Mac OS X (unless you want to use only Java 1.1.8
or earlier). The earliest releases of Mac OS X included Java 1.3. Java
1.5 (aka Java 5) is now in widespread use in Mac OS X 10.4, and Java 6
is in the works as a "developer preview" -- it's unclear whether it will
be made available as a finished product for 10.4, or only with the
release of 10.5 coming in October.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
 
 
 
Johnny
Guest
Posts: n/a
 
      07-06-2007
Hi Steve:

Thank you for the reply....My wife has a G5 with Mac OS X 10.3.9, and I
cannot get the applet running on that either. I just get a red "X" on the
page. Since she ahs 10.3.9 I cannot upgrade to the JDK 5, but I used the JDK
v1.6. to build the applet. I guess maybe that's the problem? Do I need to
use an earlier SDK?

--
John.

http://mscrmguy.blogspot.com/

"Steve W. Jackson" <> wrote in message
news:stevewjackson-...
> In article <MSuji.11665$>,
> "Johnny" <> wrote:
>
>> Hi all:
>>
>> I have a very simple Java applet which runs perfectly on Windows in IE,
>> but
>> when I try to load it in IE on MAC OS 9, I get an error"

> [ snip ]
>>
>> Can anyone offer any advice as to what I can do?

>
> Mac OS 9 is officially dead, though a great number of users still stick
> with it. Its Macintosh Runtime for Java (MRJ) only supported Java
> 1.1.8, and adding Swing support (early Swing 1.1.1, IIRC) was possible
> but not pleasant.
>
> Bottom line: don't worry about an applet working for any Mac not
> running some release of Mac OS X (unless you want to use only Java 1.1.8
> or earlier). The earliest releases of Mac OS X included Java 1.3. Java
> 1.5 (aka Java 5) is now in widespread use in Mac OS X 10.4, and Java 6
> is in the works as a "developer preview" -- it's unclear whether it will
> be made available as a finished product for 10.4, or only with the
> release of 10.5 coming in October.
>
> = Steve =
> --
> Steve W. Jackson
> Montgomery, Alabama


 
Reply With Quote
 
Steve W. Jackson
Guest
Posts: n/a
 
      07-06-2007
In article <3awji.11671$>,
"Johnny" <> wrote:

> Hi Steve:
>
> Thank you for the reply....My wife has a G5 with Mac OS X 10.3.9, and I
> cannot get the applet running on that either. I just get a red "X" on the
> page. Since she ahs 10.3.9 I cannot upgrade to the JDK 5, but I used the JDK
> v1.6. to build the applet. I guess maybe that's the problem? Do I need to
> use an earlier SDK?


Java 6 (1.6) is *only* available as a developer preview and probably not
available for 10.3.9 at all. But to get it, you'd need to join the
Apple Developer Community (ADC), which you can do for free with an
online membership.

In any event, since the Applet was done in 1.6, it won't work in any
lower release on *any* platform.
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
Johnny
Guest
Posts: n/a
 
      07-06-2007
Hi Steve:

Ok, thanks. I compiled using v1.3.1 and it worked on OS X.

John.

--
John.

http://mscrmguy.blogspot.com/

"Steve W. Jackson" <> wrote in message
news:stevewjackson-...
> In article <3awji.11671$>,
> "Johnny" <> wrote:
>
>> Hi Steve:
>>
>> Thank you for the reply....My wife has a G5 with Mac OS X 10.3.9, and I
>> cannot get the applet running on that either. I just get a red "X" on the
>> page. Since she ahs 10.3.9 I cannot upgrade to the JDK 5, but I used the
>> JDK
>> v1.6. to build the applet. I guess maybe that's the problem? Do I need to
>> use an earlier SDK?

>
> Java 6 (1.6) is *only* available as a developer preview and probably not
> available for 10.3.9 at all. But to get it, you'd need to join the
> Apple Developer Community (ADC), which you can do for free with an
> online membership.
>
> In any event, since the Applet was done in 1.6, it won't work in any
> lower release on *any* platform.
> --
> Steve W. Jackson
> Montgomery, Alabama


 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-07-2007
On Fri, 6 Jul 2007 13:21:44 -0400, "Johnny" <>
wrote, quoted or indirectly quoted someone who said :

>An Exception Occurred, ClassNotFoundException for TestApplet
>
>Java Exception: java.lang.NullPointerException.
>
>The Page hosting the Java Applet is being served from Apache, and the code
>is:


See if you can turn on a console so you can find out where you are
getting the exceptions.


see
http://mindprod.com/jgloss/runerrorm...FOUNDEXCEPTION

Put your class in a package and put the class files in a jar. It must
be in the same directory as the HTML page that invokes.
See http://mindprod.com/jgloss/applet.html

Make sure Applets in general are working by running
http://mindprod.com/japplets/wassup.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-07-2007
On Fri, 06 Jul 2007 14:02:55 -0500, "Steve W. Jackson"
<> wrote, quoted or indirectly quoted someone
who said :

>In any event, since the Applet was done in 1.6, it won't work in any
>lower release on *any* platform.


you need to use the -target option in compile to make it work on
earlier JVMS.

See http://mindprod.com/jgloss/javacexe.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      07-07-2007
Roedy Green wrote:
>On Fri, 06 Jul 2007 14:02:55 -0500, "Steve W. Jackson"
><> wrote, quoted or indirectly quoted someone
>who said :
>
>>In any event, since the Applet was done in 1.6, it won't work in any
>>lower release on *any* platform.

>
>you need to use the -target option in compile to make it work on
>earlier JVMS.


As well as the '-bootclasspath' option to *guarantee*
that no members of post n.n version are used. -target
is simply a directive to denote the class file format that
is recorded, as I understand it.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200707/1

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      07-07-2007
On Sat, 07 Jul 2007 05:03:26 GMT, "Andrew Thompson" <u32984@uwe>
wrote, quoted or indirectly quoted someone who said :

>As well as the '-bootclasspath' option to *guarantee*
>that no members of post n.n version are used. -target
>is simply a directive to denote the class file format that
>is recorded, as I understand it.


for more details see http://mindprod.com/projects/jdkversion.html
and http://mindprod.com/jgloss/javacexe.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      07-07-2007
Roedy Green wrote:
>>As well as the '-bootclasspath' option to *guarantee*
>>that no members of post n.n version are used. -target
>>is simply a directive to denote the class file format that
>>is recorded, as I understand it.

...
>and http://mindprod.com/jgloss/javacexe.html


Oh yeah, sorry. I suppose the idea of putting the
full information at the link (the same link you posted
before my comment) was not to have to go into the
minutae of a complex subject. Note to self -
"Read the link content".

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.applet.Applet.getParameter() blaine@worldweb.com Java 4 01-11-2007 08:04 PM
confussed about showStatus in java.applet.Applet yawnmoth Java 1 08-15-2006 05:44 AM
Java Applet loading in Applet Viewer but not in HTML page Archana Java 1 10-24-2004 11:41 PM
Java applet failed when I try to load the avi file in my java applet Krista Java 3 09-15-2004 02:53 AM
Re: play wave files using java.applet.Applet webster Java 0 07-20-2003 01:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57