Applet run in applet viewer but produces error in browser

Dear All,
Rather new in Java developpement, this topic should be peanuts for most of you.
I am using Oracle JDevelopper 11.
I have written a very simple applet which just display a text using the following code:
*public void paint(Graphics g){ g.drawString("I am talking to you !",40,40); }*
The html code calls the applet using the following code:
*<APPLET CODE="project1.Applet1.class" HEIGHT="200" WIDTH="600" ALIGN="bottom">This browser does not support Applets.</APPLET>*
Running the hmtl file in the applet viewer, result is as expected.
But running the html file using the server instance gives an error message which translation to English looks like the following:
Error: click to get more information.
The no java supported text is not displayed.
I have set my browser to the lowest security level in order to check for security matter.
No change.
Browser is IE 8
OS is Windows XP.
Thanks a lot for helping a poor stuck beginner.
Ben

Hi Frank,
Thank you for your help.
I guess something is wrong with Jdeveloper or there is something I don't understand (most likely ;-)).
Please correct me if I am wrong.
The directory structure build by Jdeveloper is the following:
Application name
Project name
classes
project name <<< my class is stored under this folder
public_html
html file calling my applet class
Calling Project1.Applet1 (as given as default when I create a java html file) in the html file give the following error message:
open HTTP connection failed:http://127.0.0.1:7101/Application2-Project1-context-root/Project1/Applet1.class
Calling Applet1 in the html file give the following error message: wrong name for applet Projet/Applet
It does not refer to an http connection problem.
Calling Project1/Applet1 gives the following
HTTP connection failed:http://127.0.0.1:7101/Application2-Project1-context-root/Project1/Applet1.class
So I am really puzzled.
And stucked.
Any hint ?
Ben
Edited by: Big Ben on 06-sept.-2010 21:01

Similar Messages

  • Slideshow widget works in the live view but doesnt in actual browser. help!!!!

    slideshow widget works in the live view but doesnt in actual browser. help!!!!

    By "doesn't work in actual browsers" do you mean while using Preview in Browser, or have you uploaded the page and it's not working?
    If it's not working after being uploaded, make sure all of the supporting files have been uploaded (.js and .css) as well.
    If it's not working in PIB, is it with all browsers, or just certian ones?
    Can you post a link to the malfunctioning page?

  • Applet runs on local PC but not over network

    My applet runs just fine locally within an html container file but when I post it to my website, (both html file and class file in the same folder ) the applet has errors.
    Are there some classes that can't be used in downloaded files. Do I need to change some settings on Internet Explorer?
    Does the class need to be downloaded ahead of time? I thought the class was downloaded and run upon html access?
    Here's hoping for an easy answer. The website applet feature was one of my reasons for wanting to learn JAVA.
    Here's the link that doesn't work. It will provide you with the error message
    http://home.roadrunner.com/~adejaco/BALLBOUNCE4.HTM
    THanks,

    Welcome to the Sun forums.
    adejaco wrote:
    My applet runs just fine locally within an html container file but when I post it to my website, (both html file and class file ...This output suggest the class is not there.
    load: class BallBounce4 not found.
    java.lang.ClassNotFoundException: BallBounce4
    http://home.roadrunner.com/~adejaco/BallBounce4.class
    --->
    Not Found
    The requested URL /~adejaco/BallBounce4.class was not found on this server.
    Apache/2.0.52 (Red Hat) Server at home.roadrunner.com Port 80
    --------------------

  • Applet runs via JCOP shell, but not from CardReader

    Hi,
    I'm completely new to JavaCard, JCOP and Eclipse, so maybe this is a stupid question. But I just need the answer.
    I created a simple javacard applet just to get known to all this new stuff. Now I am able to debug my applet in the Eclipse environment debugger and run it in my test hardware. When I run it (on the OMNIKEY ICCD test hardware), I'm able to send commands to the card and I get back the expected responses.
    In the JCOP Shell, I only need to select the applet (/select |<application name>) and after that send a command (send 8002000009, in my case read 9 bytes starting at location 0x00). In the Shell, I correctly get back the expected data.
    When I disconnect the USB cable for communication between Shell and development hardware and put this hardware into a CardReader, the ATR is detected, just as seen in the Shell. But then, whatever commands I send, I get responses I can't explain. Below some example.
    To be clear, I did nothing but running the applet in the IDE and after that disconnected the cable. Is there some special step/command needed between a run from the Eclipse environment and run "in the real world"??
    Can anyone give me a clue for this??
    First case, Send five zero bytes after ATR
    ATR
    Received: ['0x3b', '0xfa', '0x13', '0x0', '0x0', '0x81', '0x31', '0xfe', '0x45', '0x4a', '0x43', '0x4f', '0x50', '0x34', '0x31', '0x56', '0x32', '0x32', '0x31', '0x96'] (length = 20)
    * Found header
    * TC1 = 0x81
    J C O P 4 1 V 2 2 1
    Send <0000000000>
    Received: ['0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x2', '0x6e', '0x0', '0x6c'] (length = 11)
    Send <00a40000023f00>
    Received: ['0x0', '0xa4', '0x0', '0x0', '0x2', '0x3f', '0x0', '0x0', '0x92', '0x0', '0x92'] (length = 11)
    Send <0a404000a546573744170706c65740>
    Received: ['0x0', '0xa4', '0x4', '0x0', '0xa', '0x54', '0x65', '0x73', '0x74', '0x41', '0x70', '0x70', '0x6c', '0x65', '0x74', '0x0', '0x0', '0x92', '0x0', '0x92'] (length = 20)
    Send <8002000005>
    Received: ['0x80', '0x2', '0x0', '0x0', '0x5'] (length = 5)
    Second case, without the five zero bytes send after ATR
    ATR
    Received: ['0x3b', '0xfa', '0x13', '0x0', '0x0', '0x81', '0x31', '0xfe', '0x45', '0x4a', '0x43', '0x4f', '0x50', '0x34', '0x31', '0x56', '0x32', '0x32', '0x31', '0x96'] (length = 20)
    * Found header
    * TC1 = 0x81
    J C O P 4 1 V 2 2 1
    Send <00a40000023f00>
    Received: ['0x0', '0xa4', '0x0', '0x0', '0x2', '0x3f', '0x0', '0x0', '0x82', '0x0', '0x82'] (length = 11)
    Send <0a404000a546573744170706c65740>
    Received: ['0x0', '0xa4', '0x4', '0x0', '0xa', '0x54', '0x65', '0x73', '0x74', '0x41', '0x70', '0x70', '0x6c', '0x65', '0x74', '0x0', '0x0', '0x82', '0x0', '0x82'] (length = 20)
    Send <8002000005>
    Received: ['0x80', '0x2', '0x0', '0x0', '0x5'] (length = 5)
    ErikT

    ErikT wrote:Lexdabear,
    Yes, I program the SmartMX using the USB connecter and the put the card hardware into a COMMON(!) card reader. This simply converts serial data from a PC serial port to data to the card. In our application, the controller that's communicating with the card has no 7816 interface, so we have to do that in software. To see what to do on the 7816 port, we use the PC serial port and the card reader hardware.
    At this moment, it seems it has something to do with the software implementation of the 7816 protocol. The applet is not relevant, yet, because it's not even entered.
    Thanx,
    ErikTAh, OK. Your controller does not have the ISO7816 protocol implemented. So you have a lots of work in front of you. Check out ISO7816-4, T=1 .. I assume you have an error in the block structure (e.g. NAD, EDC ..).

  • Applet runs fine in Eclipse, but when I load into a web page it does not.

    I created a simple applet in Eclipse, and it works fine in the Eclipse runas/applet window.
    However I copied the .class file to a web site folder with the following HTML:
    <applet code="Bouncy.class" width="640" height="480"/>
    And I get the following error in a Java error window:
    Java Plug-in 1.6.0_17
    Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\******
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NullPointerException
         at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException
    Incidentally, my asp.net codes throws this error:
    System.Web.HttpException: File does not exist.
    at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
    at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
    at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    >>
    The folder contains both the aspx (html) file and the .class file
    Thanks for any help.

    Thanks, That did not fix it.
    FYI - the applet will not run outside of Eclipse. If I try from a command line it also fails.
    running 'java Bouncy.class' results in:
    03/17/2010 05:15 PM <DIR> .
    03/17/2010 05:15 PM <DIR> ..
    03/17/2010 10:29 AM 226 .classpath
    03/17/2010 10:29 AM 386 .project
    03/17/2010 05:15 PM 482 Bouncy$1.class
    03/17/2010 05:15 PM 1,995 Bouncy.class
    03/17/2010 05:15 PM 2,240 Bouncy.java
    03/17/2010 10:31 AM 141 java.policy.applet
    6 File(s) 5,470 bytes
    2 Dir(s) 27,895,554,048 bytes free
    C:\Documents and Settings\******\workspace\AppletTest>java Bouncy.class
    Exception in thread "main" java.lang.NoClassDefFoundError: Bouncy/class
    Caused by: java.lang.ClassNotFoundException: Bouncy.class
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: Bouncy.class. Program will exit.

  • Applet Working in MS-DOS, but Not in my Browser

    Hello!
    The applet builds a String that is displayed in the MS-DOS
    console window; but when I use my browser, I see no Java console.
    I am using J2SDK1.4.0_02. Do I need something else for my applet
    to work properly in my browser?
    Please, help. Thanks.
    Alex

    There's 2 ways to fix this.
    Assuming you're using an up-to-date version of Internet Explorer and Sun's VM, you need to go to Start--> Settings--> Control Panel-->
    and double-click Java Plug-in 1.4.0.
    Click Browser and make sure that the Microsoft Internet Explorer box
    is checked.
    This will use Sun's Java Plug-in all the time which may not be what you
    want (as this can break other stuff).
    The other way to fix it is to add some tags to the HTML file (which may also fix the problem if you are using Microsoft's VM).
    Use "OBJECT" instead of "APPLET".
    And make sure you have the following tags defined: "CLASSID", "CODE", and "TYPE". Your value for CLASSID could be different.
    Something like:
    <HTML>
    <HEAD>
    <TITLE>Jumbo's First Class</TITLE>
    </HEAD>
    <BODY>
    <H1>Brenda Pads Her Keys</H1>
    "Drat!" exclaimed Jumbo. "This stupid machine."<BR>
    Brenda rolled her eyes, as if to say "What now?" and inquired
    in her most soothing, customer-service voice, "Problem, J.G.?"<P>
    Jumbo, perhaps a tad unresonably, bit back. "I don;t have a problem.
    It's this moronic prototype. Why does it let me type in letters if all
    it can use is numbers? Who designed this anyhow?"<BR>
    Brenda, stifling her impulse to reply, "You did," reached over Jumbo's shoulder and pressed a key on his keyboard. "I know just what you need," she said. "Look at this."
    <HR>
    <OBJECT CLASSID = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" HEIGHT=150 WIDTH=200>
    <PARAM NAME = CODE VALUE = keypad1.class>
    <PARAM NAME = TYPE VALUE = "application/x-java-applet;version=1.2;>
    </OBJECT>
    </BODY>
    </HTML>

  • Program runs at command line, but has "Error in Workspace" in Eclipse

    This code compiles and runs in Eclipse, but before it runs it show the message that I have "Errors In Workspace". The source code does not show any errors in Eclipse, so I copied the code into DOS, compiled it, and it runs fine. Any ideas why Eclipse is giving a problem?
    (I posted the code here: [http://shelbyandlesley.com/flash/import_javax.pdf] )

    kajbj wrote:
    Errors in workspace doesn't sound like errors in the java code. What happens if you create a new workspace?Thanks for pointing me in the right direction. I did not realize that "Workspace" encompassed the whole package. I had an error in another class in the same package and once I fixed that error, the program runs fine.
    Edited by: Shelby on Apr 10, 2008 3:19 PM

  • Query running ok in SQL but giving error in form trigger

    Hi guys
    here is the query
    SELECT NVL(BGM_PERAMT,0) INTO PERAMT FROM BROKERAGE_MASTER
    WHERE     BGM_BROKERAGETYPE = 'BR01' AND BGM_PERAMT <> 0
    The above query working fine in SQL but giving following error in when_button_pressed trigger
    [In a host language program, all records have been fetched. The return code from the fetch was +4 indicating that all records have been returned from the SQL query. ]
    please give me the solution for this problem.
    It is very urgent
    regards
    asha

    ok below is the code
    CURSOR RESALE_BROKERAGE IS SELECT am_brokerCd resalebrcd,'' resalesbrcd,NVL(SUM(AM_AMT),0) RESALE_AMT,COUNT(AM_RESALENO) TOTCNT,NVL(SUM(AM_UNITSAPPLD),0) RESALE_UNITS
    FROMRNT_RESALE_MASTER
    WHERE am_brokercd is not null AND AM_PROCTAG='Y' AND
    (to_date(to_char(AM_PROCDT,'DD/MON/YYYY')) BETWEEN
    to_date(to_char(:rnt_broker_date.fromdt,'DD/MON/YYYY')) AND
    to_date(to_char(:rnt_broker_date.todate,'DD/MON/YYYY')))
    GROUP BY am_brokerCd
    UNION
    SELECT AM_BROKERCD resalebrcd,     
    am_subbrokercd resalesbrcd,
    NVL(SUM(AM_AMT),0) RESALE_AMT,COUNT(AM_RESALENO) TOTCNT,
    NVL(SUM(AM_UNITSAPPLD),0) RESALE_UNITS
    FROM RNT_RESALE_MASTER
    WHERE     am_brokercd is not null AND AM_PROCTAG='Y' AND AM_BROKERCD = 'ARN-9760' AND (to_date(to_charAM_PROCDT,'DD/MON/YYYY')) BETWEEN
    to_date(to_char(:rnt_broker_date.fromdt,'DD/MON/YYYY')) AND
    to_date(to_char(:rnt_broker_date.todate,'DD/MON/YYYY')))
    GROUP BY AM_BROKERCD,am_subbrokercd;
    Asha

  • Dreamweaver Images look fine in view but messed up in BROWSER !!!

    Hello Guys
    I have been getting this weird messed up images since i started my project.
    This is giving me a headache so i thought this is best place to solve my problme.
    I'm not pro website designer just newbie.
    HELP ME !!!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Website Discovery Mongolia</title>
    <style type="text/css">
    #Question {
              position: absolute;
              width: 189px;
              height: 23px;
              z-index: 3;
              left: 1100px;
              top: 30px;
              margin: auto;
    #Container {
              position: relative;
              width: 1366px;
              height: 2532px;
              z-index: 1;
              margin: auto;
              background-color: #A22239;
    #Destinations {
              position: absolute;
              width: 162px;
              height: 23px;
              z-index: 2;
              left: 35px;
              top: 310px;
    #AboutDis {
              position: absolute;
              width: 288px;
              height: 24px;
              z-index: 2;
              top: 310px;
              left: 1045px;
    #Activities {
              position: absolute;
              width: 338px;
              height: 28px;
              z-index: 2;
              left: 35px;
              top: 640px;
    #LateAvail {
              position: absolute;
              width: 210px;
              height: 28px;
              z-index: 2;
              top: 640px;
              left: 1060px;
    #LatestNews {
              position: absolute;
              width: 161px;
              height: 28px;
              z-index: 2;
              left: 35px;
              top: 980px;
    #DisMongCom {
              position: absolute;
              width: 403px;
              height: 28px;
              z-index: 2;
              top: 979px;
              left: 328px;
              padding: 0px;
    #PopTrips {
              position: absolute;
              width: 200px;
              height: 28px;
              z-index: 2;
              top: 980px;
              left: 1060px;
              padding: 0px;
    #Read1 {
              position: absolute;
              width: 104px;
              height: 23px;
              z-index: 2;
              left: 35px;
              top: 734px;
    #R1 {
              position: absolute;
              width: 110px;
              height: 25px;
              z-index: 2;
              left: 35px;
              top: 1135px;
    #Read2 {
              position: absolute;
              width: 110px;
              height: 1px;
              z-index: 3;
              left: 35px;
              top: 1290px;
    #Read3 {
              position: absolute;
              width: 110px;
              height: 25px;
              z-index: 2;
              top: 1440px;
              left: 35px;
    #Video {
              position: absolute;
              width: 95px;
              height: 22px;
              z-index: 2;
              padding-left: 2px;
              top: 1135px;
              left: 325px;
    #Pictures {
              position: absolute;
              width: 133px;
              height: 23px;
              z-index: 3;
              left: 328px;
              top: 1280px;
    #Follow {
              position: absolute;
              width: 136px;
              height: 24px;
              z-index: 2;
              left: 329px;
              top: 1440px;
    #Copytight {
              position: absolute;
              width: 200px;
              height: 58px;
              z-index: 2;
              top: 2260px;
              left: 410px;
    #ViewTripButton1 {
              position: absolute;
              width: 160px;
              height: 40px;
              z-index: 2;
              top: 1405px;
              left: 1170px;
    #ViewTrip2 {
              position: absolute;
              width: 160px;
              height: 40px;
              z-index: 3;
              left: 1170px;
              top: 1570px;
    #ViewTrip3 {
              position: absolute;
              width: 160px;
              height: 40px;
              z-index: 2;
              left: 1170px;
              top: 1230px;
    #BannerPhoto1 {
              position: absolute;
              width: 1015px;
              height: 180px;
              z-index: 2;
              top: 108px;
              left: 15px;
    #SpryMenu {
              position: absolute;
              width: 1100px;
              height: 20px;
              z-index: 2;
              left: -1px;
              top: -25px;
    </style>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    </head>
    <body bgcolor="#A22239">
    <div id="Container">
      <div id="BannerPhoto1">
        <div id="SpryMenu">
          <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="Indexpage.html">HOME    </a>    </li>
        <li><a href="#">TOURS</a></li>
        <li><a href="#">TRANSPORT</a>    </li>
        <li><a href="#">ABOUT MONGOLIA</a></li>
        <li><a href="#">TRAVEL GUIDE</a></li>
        <li><a href="#">CONTACT</a></li>
      </ul>
    </div>
        <!-- Begin DWUser_EasyRotator -->
        <script type="text/javascript" src="http://c520866.r66.cf2.rackcdn.com/1/js/easy_rotator.min.js"></script>
        <div class="dwuserEasyRotator" style="width: 1015px; height: 180px; position:relative; text-align: left;" data-erconfig="{autoplayEnabled:true, lpp:'102-105-108-101-58-47-47-47-67-58-47-85-115-101-114-115-47-66-105-108-107-97-83-109- 105-108-101-47-77-117-115-105-99-47-68-111-99-117-109-101-110-116-115-47-69-97-115-121-82- 111-116-97-116-111-114-80-114-101-118-105-101-119-47-112-114-101-118-105-101-119-95-115-11 9-102-115-47', wv:1}" data-ername="Roator" data-ertid="{pankqfmdhc4588799372931}">
          <div data-ertype="content" style="display: none;">
            <ul data-erlabel="Main Category">
              <li> <img class="main" src="New Images/BannerSlidePhotos/Photo3.jpg" /> <img class="thumb" src="New Images/BannerSlidePhotos/Photo3.jpg" /> </li>
              <li> <img class="main" src="New Images/BannerSlidePhotos/Photo2.jpg" /> <img class="thumb" src="New Images/BannerSlidePhotos/Photo2.jpg" /> </li>
              <li> <img class="main" src="New Images/BannerSlidePhotos/Photo1.jpg" /> <img class="thumb" src="New Images/BannerSlidePhotos/Photo1.jpg" /> </li>
            </ul>
          </div>
          <div data-ertype="layout" data-ertemplatename="NONE" style="">
            <div class="erimgMain" style="position: absolute; left:0;right:0;top:0;bottom:0;" data-erconfig="{__numTiles:3, scaleMode:'scaleDown', imgType:'main', __loopNextButton:false, __arrowButtonMode:'rollover'}">
              <div class="erimgMain_slides" style="position: absolute; left:0; top:0; bottom:0; right:0;">
                <div class="erimgMain_slide">
                  <div class="erimgMain_img" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0;"></div>
                </div>
              </div>
              <div class="erimgMain_arrowLeft" style="position:absolute; left: 10px; top: 50%; margin-top: -15px;" data-erconfig="{image:'circleSmall', image2:'circleSmall'}"></div>
              <div class="erimgMain_arrowRight" style="position:absolute; right: 10px; top: 50%; margin-top: -15px;" data-erconfig="{image:'circleSmall', image2:'circleSmall'}"></div>
            </div>
            <div class="erabout erFixCSS3" style="color: #FFF; text-align: left; background: #000; background:rgba(0,0,0,0.93); border: 2px solid #FFF; padding: 20px; font: normal 11px/14px Verdana,_sans; width: 300px; border-radius: 10px; display:none;"> This <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">jQuery slider</a> was created with the free <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">EasyRotator</a> software from DWUser.com. <br />
              <br />
              Use WordPress? The free <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/wordpress/" target="_blank">EasyRotator for WordPress</a> plugin lets you create beautiful <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/wordpress/" target="_blank">WordPress sliders</a> in seconds. <br />
              <br />
              <a style="color:#FFF;" href="#" class="erabout_ok">OK</a> </div>
            <noscript>
              Rotator powered by <a href="http://www.dwuser.com/easyrotator/">EasyRotator</a>, a free and easy jQuery slider builder from DWUser.com.  Please enable JavaScript to view.
            </noscript>
            <script type="text/javascript">/*Avoid IE gzip bug*/(function(b,c,d){try{if(!b[d]){b[d]="temp";var a=c.createElement("script");a.type="text/javascript";a.src="http://easyrotator.s3.amazonaws.com/1/js/nozip/easy_rotator.min.js";c.getElementsByTagName("head")[0].appendChild(a)}}catch(e){alert("EasyRotator fail; contact support.")}})(window,document,"er_$144");</script>
          </div>
        <!-- End DWUser_EasyRotator -->
      </div>
      <img src="New Images/MainBackgroundImages/Top.jpg" width="1030" height="287" /><img src="New Images/MainBackgroundImages/Form.jpg" width="336" height="287" />
      <div id="Question"><img src="New Images/Buttons and Text/newdesign_03.jpg" width="189" height="23" /></div>
      <img src="New Images/MainBackgroundImages/_03.jpg" width="1019" height="331" />
      <div id="Destinations"><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_10.jpg" width="162" height="23" /></a></div><img src="New Images/MainBackgroundImages/About-Discovery-Mongolia.jpg" width="347" height="331" /><div id="AboutDis"><a href="www.wikipedia.com"><img src="New Images/Buttons and Text/newdesign_07.jpg" width="288" height="24" /></a></div><div id="Activities"><a href="www.google.com"><img src="New Images/Buttons and Text/newdesign_14.jpg" width="338" height="28" /></a></div>
      <img src="New Images/MainBackgroundImages/Activities-and-Experiences.jpg" width="1019" height="342" /><img src="New Images/MainBackgroundImages/_06.jpg" width="347" height="342" />
      <div id="LateAvail"><a href="www.quirky.com"><img src="New Images/Buttons and Text/newdesign_08.jpg" width="210" height="28" /></a></div>
      <div id="LatestNews"><a href="www.google.com"><img src="New Images/Buttons and Text/newdesign_17.jpg" width="161" height="28" /></a></div><div id="DisMongCom"><a href="www.yahoo.com"><img src="New Images/Buttons and Text/newdesign_19.jpg" width="403" height="28" /></a></div><div id="PopTrips"><a href="www.exodus.co.uk"><img src="New Images/Buttons and Text/newdesign_21.jpg" width="169" height="28" /></a></div>
      <img src="New Images/MainBackgroundImages/Contern2.jpg" width="297" height="669" /><div id="Read3"><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_27.jpg" width="110" height="25" /></a></div><div id="R1"><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_27.jpg" width="110" height="25" /></a></div><div id="Read2"><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_27.jpg" width="110" height="25" /></a></div><img src="New Images/MainBackgroundImages/Content1.jpg" width="722" height="669" /><div id="Follow"><img src="New Images/Buttons and Text/Bullet.jpg" width="30" height="21" /><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_43.jpg" width="103" height="20" /></a></div><div id="Pictures"><img src="New Images/Buttons and Text/Bullet.jpg" width="30" height="21" /><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_36.jpg" width="103" height="19" /></a></div><div id="Video"><img src="New Images/Buttons and Text/Bullet.jpg" width="30" height="21" /><a href="Indexpage.html"><img src="New Images/Buttons and Text/newdesign_30.jpg" width="63" height="22" /></a></div><div id="ViewTrip3"><a href="Indexpage.html"><img src="New Images/Buttons and Text/ViewTrip.jpg" width="160" height="40" /></a></div><div id="ViewTripButton1"><a href="Indexpage.html"><img src="New Images/Buttons and Text/ViewTrip.jpg" width="160" height="40" /></a></div><div id="ViewTrip2"><a href="Indexpage.html"><img src="New Images/Buttons and Text/ViewTrip.jpg" width="160" height="40" /></a></div>
      <img src="New Images/MainBackgroundImages/Content3.jpg" width="347" height="669" /><img src="New Images/MainBackgroundImages/Footer.jpg" width="1366" height="398" /><div id="Copytight"><img src="New Images/Buttons and Text/Copyright_03.jpg" width="536" height="58" /></div><img src="New Images/MainBackgroundImages/Copyright-and-Privacy.jpg" width="1366" height="515" /></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    I'm having trouble with my graphics, too, not your trouble though.
    As Murray above says,
    absolute positioning is wrong! Don't do that.  Browsers keep objects with absolute positioning on the coordinates you set, no matter what monitor size is viewing it and no matter how the rest of the page flows.
    I took off absolute positioning and it made an immediate difference - code below. The graphics are now inside their containers.
    go here to see what I did: http://mkcolling.com/morionadobe.html
    go here to see what you did: http://mkcolling.com/BADmorionadobe.html
    Two other things I noticed:
    1) Remove the height on your containers, too. Instead, use padding to add blank space around the content inside your containers and use margin to add the outside space that separates  the containers.
    2)Your spry menu is wider than your outer container. You would fix that on the Spry css.

  • Applet running in IDE's applet viewer but not within browser

    Hello,
    I have this applet which runs perfectly on JBuilder4's Applet viewer but when I access the HTML file which JBuilder generated as part of the applet creation the applet won't run.
    The parameters in the applet tag in the HTML file are correct, i.e. the code attribute of this tag has as its value the correct class that implements the applet.
    The only io operations associated with the applet are writing/reading objects to the socket's input/output stream, to communicate with a threaded server which has been started before running the applet. It all runs on the local host. So, I'm not sure it should be signed for it to run in the browser, should it?
    I have tried several browsers, and have the latest java plug-in installed.
    Any comments on this?

    Check this link which might be helpful:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=126261

  • Applet works in applet viewer but not in website.

    I am an experienced programmer, but new to java (second week). I have made working client/server chatroom in java that works when I use the applet viewer, but when trying to run the applet in an html file, I get this error.
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at client.Client.init(Client.java:34)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolvI am unsure how to fix this. My first guess is that it is a security issue. Do I need some certificate or something?

    I am trying to connect an applet to a server application run on my computer. The server application is run in the eclipse ide, but I doubt that makes a difference.
    When connecting to the server from the client run through the eclipse ide with the app viewer, everything works fine. When making an html file for the app and running it also on that computer it fails.
    I tried using localhost instead of my internal ip address, and it gave the same errors. I will try signing next, but there must be a way to get this to work without that.

  • Applet runs with jre 1.5 but not jre 1.6

    I'm working on an applet which works just fine when 1.5.0_15 is the latest JRE installed on the PC, but does not work when 1.6.0_6 is installed. In the latter case, the applet does not load due to getting a NoClassDefFoundError. Here's the Java Console error trace:
    java.lang.NoClassDefFoundError: com/hp/nonstop/hsc/core/configuration/ConfigurationMetaData
            at com.hp.nonstop.hsc.tools.configurator.ConfiguratorApplet.init(ConfiguratorApplet.java:53)
            at sun.applet.AppletPanel.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.hp.nonstop.hsc.core.configurati
    on.ConfigurationMetaData
            at sun.applet.AppletClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.applet.AppletClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            ... 3 moreThe relevant (I think) portions of the <object> generated by the JSP is:
    <object
        classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        name="ConfiguratorApplet" width="600" height="400"
        codebase="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
    <param name="java_code" value="com.hp.nonstop.hsc.tools.configurator.ConfiguratorApplet.class">
    <param name="java_codebase" value="/HSC/configurator">
    <param name="java_archive" value="configurator.jar,../lib/configapi.jar,<<other jar files listed here>>">
    <<other param tags included here>>
    </object>The class it can't seem to find (under 1.6) is actually located in the configapi.jar file, which itself is located in the ../lib folder (relative to the /HSC/configurator folder where configurator.jar is located).
    Obviously, when the browser is using JRE 1.5.15 the VM engine can find all the needed classes as the applet runs OK. But when 1.6.6 is installed, things can't be found. I suspect something different in the search paths (though I thought the "java_archive" value was supposed to specify that), in the permissions needed to read the files, or something, but I just can't track down what the difference is (and thus why things are failing with 1.6 installed).
    Any help/ideas would be greatly appreciated!

    Stephen.Thomas wrote:
    have [you] tried moving the configapi.jar into the same folder as the configurator.jarYes, I have. I've also tried re-rooting the page to the lib directory where everything exists; i.e. changing java_codebase to /HSC/lib and changing java_archive so all jars referenced no longer have ../lib/ in them. Same behavior.
    It's almost as if the search path is behaving differently between 1.5 and 1.6, possibly not even being controlled by the values of java_codebase and java_archive at all.

  • Works in applet viewer but not in internet explorer

    I origionaly posted this on devshed. I got 55 views but no replies. It seems to be a common problem to which no one knows the answer. Surprise me :O)I'm sure this is a really common but there seems to be surprisinly litttle on the web about it.
    I developed a game applet a while ago in applet viewer and am now thinking about putting it on my web site. However I have found that it doesn't work in internet explorer. I can browse other sites using Java fine. There is clearly just something about my applet that ie doesn't like.
    Does anyone have any suggestions? What sort of things upset ie?
    All help very much apreciated, you are very nice people
    Flo.

    There must be some thing that tells you it isn't working. You should tell us so we don't have to guess. Does the browser hang? Do you get an error? Did you try opening the Java Console to see if there were any messages? I am guessing that your code is using something that the security level of an Applet does not allow (but appletviewer does allow).

  • Applet works on applet viewer but not in html, why not?

    I'm using Eclipse as a development system and the Eclipse applet viewer shows my applets with no problem. They work the way I expect them to work and all is well.
    When I try to run them in Internet Explorer, I first get a security warning. OK, I trust myself, so I tell Internet Explorer to run the applet. All I get is the text "Hello Dolly", but the applet doesn't run.
    I tried refreshing it, running it again, allowing popups and opening the file, but it just won't run. What could be wrong with something so trivial?
    Any suggestions would be appreciated.
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Hello to Everyone</title>
    </head>
    <body>
    <applet CODE="Hello.class" width=300 height=100>Hello Dolly
    </applet>
    </body>
    </html>

    Sorry, I didn't think there was anything special in the applet.
    This just happens to be what I'm checking at the moment.
    It has changed depending upon where in the tutorial I find myself.
    Thanks for you help.
    It has to be something really stupid that I'm missing, but since I'm still new at this game, I can miss something obvious to everyone else.
    package hello;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.util.Date;
    public class Hello extends Applet implements Runnable {
         private static final long serialVersionUID = 1L;
         Color colors[] = new Color[50];
         Date date1 = null;
         Thread run1 = null;
         Font f1 = new Font("Ariel", Font.PLAIN, 14);
         public void run() {
              int i = 0;
              Thread currThread = Thread.currentThread();
              while (currThread == run1) {
                   setForeground(colors);
                   repaint();
                   i++;
                   if( i>= colors.length) i = 0;
                   try { Thread.sleep(50); }
                   catch (InterruptedException e) {}
         public void init() {
              int i;
              float c = 0.0f;
              for(i=0; i<colors.length; i++) {
                   colors[i] = Color.getHSBColor(c, 1.0f, 1.0f);
                   c += 0.2f;
         public void start() {
              if (run1 == null) {
                   run1 = new Thread(this);
                   run1.start();
         public void stop() {
              run1 = null;
         public void paint(Graphics g){
              date1 = new Date();
              g.setFont(f1);
              g.drawString(date1.toString(), 10, 50);

  • Error when trying to run an applet

    I downloaded J2SE 5.0 with NetBeans and every time I try to run an applet I get this error:
    I/O exception while reading: C:\Documents%20and%20Settings\John%20Doe\My%20Documents\JavaProjects\Exam\build\Exam.html (The system cannot find the path specified)
    Java Result: 1
    The applet never runs and I have no clue how to get around this error. The applet compiles but it never runs. Any help would be greatly appreciated.

    Never mind, I found that you can't store your project folder in directories with spaces in thier names.

Maybe you are looking for

  • Remote Desktop and Leopard

    Hello, I am wondering if I have to upgrade Remote Desktop software to a version higher that 2.2 if I switch from Tiger to Leopard; or can I stay with Remote Desktop 2.2?

  • IS-U: Migration- Issue with DEVICE object using EMIGALL

    Hello Friends, I need a quick help. The issue is here below. I am using the object DEVICE to create Device/Equipment. I could able to create an Equipment however I found that in EQUI table the field SERNR is not updated.  Actually this field should h

  • SRM and SRM-MDM: Error when ordering less than Price Base Quantity

    Hi! We face the following issue: We have an item without material master in the MDM-catalog. The price is scaled, and 5.00 EUR up to 100 items, and 4.80 EUR for more than 100 items If we order 90 items, the price is calculated to 5.00 EUR in MDM, BUT

  • Spry Tab as a link problem

    Hi All, this is hopefully a simple thing to fix but I've spend nearly two days messing with it and I'm stumped. I've had a fairly good look on the forums, on the net in general and even some IRC channels but to no avail. If theres a thread on the for

  • Where can I find the manual for my Mac OS?

    ver. 10.7.3: 2.4 GHz core 2 Duo with 4 GB of DRAM. I have three questions: 1. Where can I find the manual for my machine i.e. hardware manual and or consumer/connaisseur manual? 2. Does it have a zip media drive? I'm looking at the left side of the m