Results 1 to 5 of 5

Thread: Running a Applet

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    11

    Running a Applet

    The applet im trying to run is at the botom of the post with the code.

    The code i have added to the web page is

    Code:
    <html>
      <body>
          <applet code=Game.class width=500 height=300>
          </applet>
      </body>
    </html>
    If any one can upload the correct code id would be great.

    Cheers
    Ross Clelland

    PS: If anyone can point me in direction of any examples or tutorials on sending data across a network using java it would help alot.
    Attached Files Attached Files

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    I have been doing some Java socket programming. My applets are 'talking' to C and VB6 apps. I am sending & receiving structs (or UDTs) of mixed data types so I have been using the DataOutputStream and DataInputStream classes. I could send you an example if this will meet your needs.

    BTW, if you will be doing this in an applet it will have to be signed and, to be quite honest, I have had an awful time getting a signed copy of my jar files to not throw a security exception when attempting to connect to another address. I've followed the steps and browsed through the posts in the 10 steps thread in the Sun Developers Forums several times. As far as I can see, everything looks okay, but I can't get past the security exception. Judging from the number of posts in the thread, It seems to be a problem for a lot of people. Not sure why

    If anyone has successfully signed an applet, I would love to hear from you. I have a web based project which must talk to a lot of different systems and is currently in limbo until I can resolve this problem.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    11
    Thanks for your information , i wasnt wanting to do the network stuff with an applet more of a stand alone program.

    im wanting to get the program thats posted above running first

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Originally posted by Rue
    Thanks for your information , i wasnt wanting to do the network stuff with an applet more of a stand alone program.

    im wanting to get the program thats posted above running first
    In that case, you won't have to worry about the security issues. Java applications don't have the same restrictions as applets. However, the socket coding will be the same in both. So if you are still interested in that, let me know.

    I only took a quick look at your upload so I can't add anything at the moment. I'll try to take a look at it later.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    11
    yeh if uv got any information or samples that would be great, im looking at doing it in java or Vb.NET so any info on how java works with sockets would be great.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width