?
Solved

applet not running in IE 6.0

Posted on 2003-03-11
7
Medium Priority
?
309 Views
Last Modified: 2008-03-06
I am getting back to developing in Java.
I have a couple of applets that ran fine (in brower IE 6.0).
However, when I recompiled them (with no code changes) with
the new j2sdk1.4.1 they're no longer working.  All I get is
a blank grey area on the browser when trying to view.  When
I run the applets in appletviewer they work fine.  What do I
need to do to have it work in the browser?  Thanks.
0
Comment
Question by:ocean9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 28

Expert Comment

by:rrz
ID: 8115128
I think you should get the Java plug-in.
In fact in IE 6 , I check the box in  Internet Options (Advanced tab) to "use Java2 for <applet> tag "
Thus always using the plug-in.
0
 
LVL 2

Expert Comment

by:antonsigur
ID: 8115252
If you are using Swing applets, you might need to use new html files..
Something like that should always use the pluggin, and ask for install if not awailable:
<!DOCTYPE HTML><HTML><HEAD></HEAD><BODY>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

WIDTH = 600 HEIGHT = 200  codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">

<PARAM NAME = CODE VALUE = "is.hi.anton.Bensin.class" >
<PARAM NAME = CODEBASE VALUE = "." >


<PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">

<COMMENT>

<EMBED type="application/x-java-applet;version=1.1" java_CODE = "is.hi.anton.Bensin.class" java_CODEBASE = "." WIDTH = 600 HEIGHT = 200   pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><NOEMBED></COMMENT>



</NOEMBED></EMBED>

</OBJECT>



<!--

<APPLET  CODE = "is.hi.anton.Bensin.class" CODEBASE = "." WIDTH = 600 HEIGHT = 200 >


</APPLET>

-->

<!--"END_CONVERTED_APPLET"-->

</BODY></HTML>
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8115443
NO, NO, NO!

Sorry, but this got updated at JDK1.3, ytou don't need that anymore...

The problem is that the Microsoft VM doesn't run anything over 1.3

You'll have to download the JRE
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 35

Accepted Solution

by:
TimYates earned 150 total points
ID: 8115445
0
 
LVL 9

Expert Comment

by:yongsing
ID: 8115979
If you compile the applet in 1.4, you won't be able to run it in the browser which has a VM of 1.1. In order to run it in the browser, you need to recompile your applet with the -target tag:

javac -target 1.1 YourApplet.java

However, if you are using Swing, then you would need the plug-in, as suggested by the others.
0
 

Author Comment

by:ocean9
ID: 8116070
All I needed to do was check the IE option in the Browser tab of the Plug-In (read this on Sun's website).  

Since TimYates' link got me to the area where I found this info, I will give the points to him.  

Thanks for all the feedback.
0
 

Author Comment

by:ocean9
ID: 8116073
Thanks all.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question