Results 1 to 2 of 2
  1. #1
    confusedgirl is offline Member
    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0

    Default Can't get this to run in browser as applet - Help

    Hi guys,

    okay I have an executable jar that runs fine with the command:

    Java Code:
    java -jar myApp.jar
    I am trying to get it working in the browser as an applet. I have a .java source file as follows:

    Java Code:
    import java.net.*;
    import java.applet.Applet;
    import java.awt.*; 
    
    public class myApp extends Applet {
                        
            public static void main(String[] args) {
    
       known working code is here
    
           }
    }
    and a manifest.txt with the following in it:

    Java Code:
    Main-Class: myApp
    Can you tell me step by step EXACTLY how I can make this run as an applet in the browser. I have a feeling it's something to do with there being no init() or start() but not sure. The does not draw anything onscreen btw there's no frames or output to worry about, it simply makes a tcp connection to another server.

    Any help appreciated - ps be gentle with me I am new to Java environment.

    L

  2. #2
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: Can't get this to run in browser as applet - Help

    Don't think you needed to make a new thread for this. Anyway, here are the orcale tutorials for Applets.

Similar Threads

  1. How to run applet in a web Browser?
    By elururajesh3 in forum Java Applets
    Replies: 4
    Last Post: 11-06-2011, 09:34 AM
  2. applet working in applet viewer, not browser
    By plasticfood in forum Java Applets
    Replies: 4
    Last Post: 06-24-2011, 06:47 PM
  3. Browser not loading applet
    By jchapuran in forum Java Applets
    Replies: 0
    Last Post: 01-16-2011, 08:08 PM
  4. Loading Applet in a web browser
    By techbossmb in forum Java Applets
    Replies: 2
    Last Post: 09-30-2009, 01:57 AM
  5. applet won't run in browser...
    By shwein in forum Java Applets
    Replies: 6
    Last Post: 10-17-2008, 06:24 PM

Posting Permissions

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