473,382 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Java Applets in IE

I just read something that spooked me. I'm a newbie working my way through
"SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's
Visual Cafe for Java about 3 years ago, but those brain cells are now
gone...

This book seems to imply that applets built with Java 2 (SDK 1.4) won't run
in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim is to
build an applet for sharing from my personal web page, I'm wondering if I
should be using Java 2...

So, what's the scoop?
-- Dave
Jul 17 '05 #1
8 5742
In article <6A*******************@rwcrnsc52.ops.asp.att.net >,
dd@ddnet.com says...
I just read something that spooked me. I'm a newbie working my way through
"SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's
Visual Cafe for Java about 3 years ago, but those brain cells are now
gone...

This book seems to imply that applets built with Java 2 (SDK 1.4) won't run
in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim is to
build an applet for sharing from my personal web page, I'm wondering if I
should be using Java 2...

So, what's the scoop?
-- Dave


Windows does not ship with the Java VM. The MS VM with which it ships is
1.2 compliant. To use a 1.4 applet your user will need the Java VM which
ships with Netscape and is available as a free download (from Sun) for
any other use including IE.
Jul 17 '05 #2
> > Windows does not ship with the Java VM. The MS VM with which it ships is
1.2 compliant. To use a 1.4 applet your user will need the Java VM which
ships with Netscape and is available as a free download (from Sun) for
any other use including IE.



Can you point me to a page with a 1.4 applet on it?

-- Dave
Jul 17 '05 #3
In article <rAfXa.40943$Oz4.12001@rwcrnsc54>, dd@ddnet.com says...
Windows does not ship with the Java VM. The MS VM with which it ships is
1.2 compliant. To use a 1.4 applet your user will need the Java VM which
ships with Netscape and is available as a free download (from Sun) for
any other use including IE.



Can you point me to a page with a 1.4 applet on it?

-- Dave


If the browser can not deploy the applet you will get a blank gray box.
(If you go to the sun site and look at the swing tutorial, I'm sure that
you will fing a 1.4 applet example).

Shipped with the 1.4 SDK is an executable called HtmlConverter.exe. It
will convert <applet>...</applet> html code to a call to check for 1.4
and direct the user to the Sun site for the Java VM if the users VM !=
1.4. You will find the converter in your SDK/bin - it has a GUI
interface and is easy to use.

Regards,

DM
Jul 17 '05 #4
On Sun, 03 Aug 2003 21:20:43 GMT, "Dave D" <dd@ddnet.com> two-finger typed:
> I just read something that spooked me. I'm a newbie working my waythrough > "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit inSymantec's > Visual Cafe for Java about 3 years ago, but those brain cells are now
> gone...
>
> This book seems to imply that applets built with Java 2 (SDK 1.4) won'trun > in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim isto > build an applet for sharing from my personal web page, I'm wonderingifI > should be using Java 2...
>
> So, what's the scoop?
>
>
> -- Dave
Windows does not ship with the Java VM. The MS VM with which it ships is
1.2 compliant. To use a 1.4 applet your user will need the Java VM which
ships with Netscape and is available as a free download (from Sun) for
any other use including IE.


Since the MS JVM does not come with Swing, it is definetly not 1.2
compliant. Also, I created an Applet that mixes two images with Alpha
channels, and that one shows that the Alpha channel does not work the way
it's supposed to in IE 5.0/5.5/6.0: instead of truly mixing the pixel's
color, it uses pixel patterns to choose between using a pixel from the one
image or the other. This was a typical JDK 1.1 'fault'. It was fixed in
Java2/JDK1.2.
http://www.continuum.demon.nl/javadev/

(Ahem, I may have to move the site to a different provider, since it looks
like Demon is capping the access due to 'heavy traffic' on the site - it's
rather slow currently).

Also, Sun prohibited Microsoft from continuing with Java after JDK 1.1,
because Microsoft was botching the official implementation with a
non-compatible native interface and MS specific OS access classes, making
it possible to create Java Applets and Applications that would be platform
dependent. This was against the contract between MS and Sun/Javasoft.

IE 5.0, 5.5 and 6.0 manage to run JDK 1.1.x code fine, though.
IE 4.0 has problems when using JAR files for the code library, it only
supports loose class files properly.
IE 3.0 only supports JDK 1.02, just like earlier Netscape 4.x
implementations, which got fixed in Navigator 4.06, and Communicator 4.6
(or was it 4.5 ?).
JDK 1.02 was already supported by Netscape 2.0, by the way.

Since IE 5.x/6 is used in 95% to 98% of the browsing users (depending on
the site that is visited), and Netscape 4.08/4.7x/4.8 is still in use due
to its footprint and familiarity, sticking to JDK 1.1 for Applets is not a
bad idea, especially if your programming is good enough to create your own
components based on JDK 1.1.

At least you have the new event system, and not much has been deprecated
since JDK 1.1 that you may be coming up against.
What will happen if you try to run a 1.4 applet? Will you get prompted to
download the Java VM?
It will throw errors about non-existing classes in the Java Console and
basically only show a grey rectangle.

-- Dave


Cheers.
Jul 17 '05 #5
I think the point is that you need to
stay with 1.1 if you want visitors to
see your stuff. Nobody is going to be
that interested that they are willing
to spend a couple hours to install 1.4
just to see your applet.

"Neomorph" <ne******@nospam.demon.co.uk> wrote in message news:9e********************************@4ax.com...
On Sun, 03 Aug 2003 21:20:43 GMT, "Dave D" <dd@ddnet.com> two-finger typed:
> I just read something that spooked me. I'm a newbie working my waythrough > "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit inSymantec's > Visual Cafe for Java about 3 years ago, but those brain cells are now
> gone...
>
> This book seems to imply that applets built with Java 2 (SDK 1.4) won'trun > in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim isto > build an applet for sharing from my personal web page, I'm wondering ifI > should be using Java 2...
>
> So, what's the scoop?
>
>
> -- Dave
Windows does not ship with the Java VM. The MS VM with which it ships is
1.2 compliant. To use a 1.4 applet your user will need the Java VM which
ships with Netscape and is available as a free download (from Sun) for
any other use including IE.


Since the MS JVM does not come with Swing, it is definetly not 1.2
compliant. Also, I created an Applet that mixes two images with Alpha
channels, and that one shows that the Alpha channel does not work the way
it's supposed to in IE 5.0/5.5/6.0: instead of truly mixing the pixel's
color, it uses pixel patterns to choose between using a pixel from the one
image or the other. This was a typical JDK 1.1 'fault'. It was fixed in
Java2/JDK1.2.
http://www.continuum.demon.nl/javadev/

(Ahem, I may have to move the site to a different provider, since it looks
like Demon is capping the access due to 'heavy traffic' on the site - it's
rather slow currently).

Also, Sun prohibited Microsoft from continuing with Java after JDK 1.1,
because Microsoft was botching the official implementation with a
non-compatible native interface and MS specific OS access classes, making
it possible to create Java Applets and Applications that would be platform
dependent. This was against the contract between MS and Sun/Javasoft.

IE 5.0, 5.5 and 6.0 manage to run JDK 1.1.x code fine, though.
IE 4.0 has problems when using JAR files for the code library, it only
supports loose class files properly.
IE 3.0 only supports JDK 1.02, just like earlier Netscape 4.x
implementations, which got fixed in Navigator 4.06, and Communicator 4.6
(or was it 4.5 ?).
JDK 1.02 was already supported by Netscape 2.0, by the way.

Since IE 5.x/6 is used in 95% to 98% of the browsing users (depending on
the site that is visited), and Netscape 4.08/4.7x/4.8 is still in use due
to its footprint and familiarity, sticking to JDK 1.1 for Applets is not a
bad idea, especially if your programming is good enough to create your own
components based on JDK 1.1.

At least you have the new event system, and not much has been deprecated
since JDK 1.1 that you may be coming up against.
What will happen if you try to run a 1.4 applet? Will you get prompted to
download the Java VM?
It will throw errors about non-existing classes in the Java Console and
basically only show a grey rectangle.

-- Dave


Cheers.
Jul 17 '05 #6
On Mon, 04 Aug 2003 21:18:37 GMT, "Phil" <ry***@ieee.org> two-finger typed:
I think the point is that you need to
stay with 1.1 if you want visitors to
see your stuff. Nobody is going to be
that interested that they are willing
to spend a couple hours to install 1.4
just to see your applet.


Yep.

Especially since after installing JRE 1.4.2, Java in IE 6.0 doesn't work
(message about installing Java support comes up) until I switched OFF the
Plugin for IE on my Win2000 SP3 System, so the IE 6.0 JVM kicked back in.

Cheers.
Jul 17 '05 #7
>
Shipped with the 1.4 SDK is an executable called HtmlConverter.exe. It
will convert <applet>...</applet> html code to a call to check for 1.4
and direct the user to the Sun site for the Java VM if the users VM !=
1.4. You will find the converter in your SDK/bin - it has a GUI
interface and is easy to use.

Regards,

DM


First I want to say that I'm a bit shocked to see that I should have
sticked with JDK 1.1.x for my applets to be enjoyable by everybody.
I'm learning java 2 (jdk 1.4 I think) and the reason I'm doing it is
because I though I would be able to distribute my programs and
applets. Now I realise that everybody has to download J2SE (or
something like that, the names they come up with ...), which is I
dunno how big but too big to ask anybody to go trhough that assle just
to use my little simple applet.

What if I use JDK 1.4 but without swing things and stick with JDK
1.1.x component. Will my applet work with the basic MS Java plugin?

Now, for HtmlConverter. I used it to convert an html file containing
an applet which is passed as a jar file. Well it works with IE under
XP and under Linux with Netscape, redirecting me to sun's obscure (to
me at least) pages to download the latest J2RE. This said, it doesn't
seem to work in my case with either IE or Netscape under OS X and
neither with Netscape under SGI Unix. The page doesn't redirect me
anywhere, I just see a gray box. It's a bit disapointing.

I don't know, maybe I did something wrong. It is usually the case.

Ciao!
Jul 17 '05 #8
In article <b8**************************@posting.google.com >,
bi*************@ouranos.ca says...

Shipped with the 1.4 SDK is an executable called HtmlConverter.exe. It
will convert <applet>...</applet> html code to a call to check for 1.4
and direct the user to the Sun site for the Java VM if the users VM !=
1.4. You will find the converter in your SDK/bin - it has a GUI
interface and is easy to use.

Regards,

DM
First I want to say that I'm a bit shocked to see that I should have
sticked with JDK 1.1.x for my applets to be enjoyable by everybody.
I'm learning java 2 (jdk 1.4 I think) and the reason I'm doing it is
because I though I would be able to distribute my programs and
applets. Now I realise that everybody has to download J2SE (or
something like that, the names they come up with ...), which is I
dunno how big but too big to ask anybody to go trhough that assle just
to use my little simple applet.

What if I use JDK 1.4 but without swing things and stick with JDK
1.1.x component. Will my applet work with the basic MS Java plugin?


As long as you use nothing from 1.2 or newer, the classes will run. To
check whether the class is old enough, either (a) get a copy of the 1.1
API and see if it appears, or (b) look at the bottom of the class
description on a newer API where it usually says "since 1.x".

In general, I have to disagree with those who are trying to talk you
back to 1.1. For broadband users, the JRE download is a relativly
painless 2 minute wait. For dialup users it can get painful (about 25
minutes at 56k), but many are used to long downloads. Looking forward,
both Dell and HP will be distributing the JRE with their new boxes by
the end of the year and other manufacturers are likly to follow. Having
said that, if when you say "little applet" you mean that you do not need
any functionality that was added after 1.1 just stay away from those
classes and your applet will run on the older (MS) VM
Now, for HtmlConverter. I used it to convert an html file containing
an applet which is passed as a jar file. Well it works with IE under
XP and under Linux with Netscape, redirecting me to sun's obscure (to
me at least) pages to download the latest J2RE. This said, it doesn't
seem to work in my case with either IE or Netscape under OS X and
neither with Netscape under SGI Unix. The page doesn't redirect me
anywhere, I just see a gray box. It's a bit disapointing.
You're beyond my scope on this one - I only use Linux for server, Wintel
for desktop. Check the Sun site, they are some pretty good docs on
converter - sorry, I don't remember where.

Regards,

DM I don't know, maybe I did something wrong. It is usually the case.

Ciao!

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Steven Green | last post by:
I have a java app at work I used when I had Windows 98 and never had a problem. I did a clean install of Windows XP and of course Java was not included. I went to Sun, download Java 2 Runtime...
11
by: PC | last post by:
It's obvious, that Windows XP has a Java 2 VM (including the SWING-module), because we can all run Java 2 applets in Internet Explorer. But what about the support for Java 2 Applications? I...
1
by: Justin | last post by:
Hi, We are researching options on which technologies to use for an advanced web application. We are planning on using DHTML as much as possible, but there are a few components that require more...
40
by: Eitan | last post by:
Hello, I know Java-Applet (written for JBuilder). I would like to know about dotnet technology, pros and cons in comparation to Java-Applet technololgy. Can I write a program in dotnet, like...
1
by: Bradley1234 | last post by:
For some reason, on my win2000 sp4, newly updated generic Intel Pentium system, java applets on web pages stopped working This was about the time I downloaded the Microsoft Web developer beta...
12
by: Wladimir Borsov | last post by:
On one of my web pages there is an java applets which works fine on my computer. However I noticed on some other computer that the run of java applets are disabled. I got an error message...
7
by: Mario | last post by:
I've been reading some Sun Java articles where they say Applets cannot import dlls and cannot write to disk. (This does NOT apply to applications, only to Applets.) Supposedly, this is NOT...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.