Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

applet not running in IE 6.0

Posted on 2003-03-11
7
Medium Priority
?
314 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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

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.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

571 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