Wrox Programmer Forums
|
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2003, 03:32 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jwilliams2000
Default Applets

I have Java 2 Plug-In installed. It is showing in my "Control Panel".
In "Internet Options", on the "Advanced" tab there is a line just below "HTTP 1.1 Settings" that reads "Java(Sun)" with Sun's logo on the left and a checkbox that is checked with a line to the right of the checkbox that reads "Use Java 2 v1.4.1_01 for <applet> (requires restart)". But yet when I run the following html code all I get is an empty gray square in the browser (Internet Explorer 6)

<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
<APPLET CODE="MyFirstApplet.class" WIDTH=200 HEIGHT=200>
</APPLET>
</BODY>
</HTML>
 
Old August 2nd, 2003, 07:41 PM
Authorized User
 
Join Date: Aug 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to endamist Send a message via Yahoo to endamist
Default

perhaps you did not save the html or htm file in the same location as your applet class file. They have to be in the same folder. The same thing will happen if you upload the htm/html file to the internet but fail to also upload the class file and have them in the same folder, or include the path in the html markup (simpler to have them in the same file folder though)

hope this helps.

Endamist






Similar Threads
Thread Thread Starter Forum Replies Last Post
No more Java Applets for me... larry Javascript 0 January 10th, 2006 10:42 AM
How to decompress Java applets bekim JSP Basics 0 January 23rd, 2005 05:56 AM
java coding for 3dbargraph applets,,help!!!! s.vidya Java GUI 0 October 15th, 2003 05:35 AM
3d java applets,,,help!! s.vidya Java GUI 0 October 15th, 2003 04:40 AM
Beginner needs help with Applets chrscote J2EE 5 August 27th, 2003 12:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.