1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Java (Applet) project upload help.

Discussion in 'JavaScript' started by shaun.php1208, Jul 23, 2011.

  1. #1
    Hello Guys,

    I have developed some basic application in java (Applet) with MSAccess database.
    Now I want to upload that Applet application on Internet just like website.
    How to do this..?
    Thanks,
    shaun.php1208@gmail.com
     
    shaun.php1208, Jul 23, 2011 IP
  2. dthoai

    dthoai Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #2
    You package your application in jar files, eg. myapp1.jar, myapp2.jar. You upload jar files to your host. In web page that is same location of jar files, use following tags:

    
    <applet archive='myapp1.jar, myapp2.jar' code='myapp.LoaderClass' width=220 height=100> 
      <param name='param1' value='hello world!'> 
    </applet> 
    
    Code (markup):
     
    dthoai, Jul 23, 2011 IP
  3. shaun.php1208

    shaun.php1208 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Thanks for replying.
    But still I didn't get how to do that..could you explain?
    Actually I have developed that application in notepad and save as application.java
     
    shaun.php1208, Jul 24, 2011 IP
  4. dthoai

    dthoai Member

    Messages:
    106
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #4
    1. Create jar file
      Copy all files (*.class, *.gif, ...) you want to package into to one folder, eg. MyApp. In Command Line, change current directory to MyApp. Execute following line:

      
      jar cvf MyApp.jar *
      
      Code (markup):
    2. Copy MyApp.jar to your web server
    3. In the web page which is same folder of MyApp.jar, add following code:
      
      <applet archive='MyApp.jar' code='Loader' width=220 height=100> 
      </applet>
      
      Code (markup):
      'Loader' is class containing main() method.
     
    dthoai, Jul 24, 2011 IP