Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2007, 09:39 PM
Member
 
Join Date: Nov 2007
Posts: 2
jwzumwalt is on a distinguished road
How to view applet from html page.
I am a school teacher trying to have students run applets from a web page. The simple tutorials I have tried do not work. If I click on the jar file with IE browser it works fine.

Thanks for the help! JZ

An example of an applet is located at

Directory Listing

This is what I have tried but it does not work...

<Html><Head><Title>Java Example</Title></Head>
<Body>
Below is an applet<br><br>
<Applet Code="ohm-1d.class" width=600 Height=600>
</Applet></Body></Html>

Last edited by jwzumwalt : 11-23-2007 at 09:46 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-23-2007, 10:43 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,029
hardwired is on a distinguished road
Code:
<Applet Code="ohm-1d.class" archive="ohm-1d.jar" width=600 Height=600> </Applet>
See the first section, "Applets Packaged in JAR Files", in Running JAR-Packaged Software.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-24-2007, 05:21 AM
Member
 
Join Date: Nov 2007
Posts: 2
jwzumwalt is on a distinguished road
Thank you for your quick reply...

I used the following code and it does not work. As before, I can click on the jar file with a browser and it will work.

<Html><Head><Title>Java Example</Title></Head>
<Body>
The applet is below<br>
<Applet Code="ohm-1d.class"
archive="ohm-1d.jar"
width=600 Height=600>
</Applet>
</Body>
</Html>

The files can be viewed at Directory Listing v1.1

Last edited by jwzumwalt : 11-24-2007 at 05:24 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet - enter URL and view the page Java Tip Java Tips 0 03-10-2008 03:38 PM
Applet - Displaying an HTML page with a selected resolution Java Tip Java Tips 0 03-10-2008 03:36 PM
Unable to view japanese in java applet rogermakrm Java Applets 5 01-16-2008 07:07 AM
HTML page bbq New To Java 1 07-05-2007 04:46 AM
Create a Applet in the page HTML Daniel Java Applets 2 07-04-2007 08:52 AM


All times are GMT +3. The time now is 05:53 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org