Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Gray Box Where Applet Should Be

Gray Box Where Applet Should Be

Scheduled Pinned Locked Moved Java
javahelptutoriallearning
7 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jerry0davis
    wrote on last edited by
    #1

    I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org

    L M S 3 Replies Last reply
    0
    • J jerry0davis

      I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.

      J 2 Replies Last reply
      0
      • L Lost User

        The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.

        J Offline
        J Offline
        jerry0davis
        wrote on last edited by
        #3

        Thanks, I'll look into that. :) Jeremy Davis http://www.astad.org

        1 Reply Last reply
        0
        • L Lost User

          The only reason I know for that to happen is that one of the classes used by the applet cannot be found. It might work in applet viewer because it is on the same machine and you set the correct classpath. But the browser is trying to "download" the classes as if they reside on a "remote" machine. Check the "code=" and "codebase=" values in your html page that hosts the applet. "code=" must be the path of your applet class relative to the "codebase=", and all the other classes (except those came with the java language) used by your applet have to be found under "codebase=". Hope this helps.

          J Offline
          J Offline
          jerry0davis
          wrote on last edited by
          #4

          If don't seem to have a CODEBASE parameter. All I've got is...

          Exactly what is specified in the example as supplied with VisualCafe. All that is in the deployed directory the the HTML web page with in, and customer.jar Jeremy Davis http://www.astad.org

          L 1 Reply Last reply
          0
          • J jerry0davis

            If don't seem to have a CODEBASE parameter. All I've got is...

            Exactly what is specified in the example as supplied with VisualCafe. All that is in the deployed directory the the HTML web page with in, and customer.jar Jeremy Davis http://www.astad.org

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            In that case, does the customer.jar file contain every (I mean EVERY!) class your applet need? Also, if the browser only supports a lower version of java than your applet code need, then it won't be created.

            1 Reply Last reply
            0
            • J jerry0davis

              I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org

              M Offline
              M Offline
              Malcolm McMahon
              wrote on last edited by
              #6

              Try getting the java console up on IE6. You need to enable it on the advanced options window, restart IE, and click on it on the view window. This will give you a crude java backtrace if any exceptions occur, and will tell you about any missing classes etc..

              1 Reply Last reply
              0
              • J jerry0davis

                I'm an absolute Java beginner so please forgive me :-O I've got an applet (written in VisualCafe V4.5) that works fine in an applet viewer, but when I try to view it in a web page (IE6 and NS6.1) all I get is a gray box where the applet should be. I assume the applet is correct as it's stage two of the tutorial that comes with VisualCafe Expert Edition. I'm also sure the class path name is correct. The WebGain newsgroups hardly have any posting going on at all, and I know this may be a long shot, but I thought I'd ask this here. :) Thanks ever so much to anyone that can help. Jeremy Davis http://www.astad.org

                S Offline
                S Offline
                Standoni
                wrote on last edited by
                #7

                I had the same problem in IE6 under WinXP, the new xp runtime environment from sun fixed the problem.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups