Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2008
    Posts
    73
    Rep Power
    0

    Default how to run jar file into applet

    hello friends ,

    i have made one small game for mobile .. its running successfully in to mobiles and simulator.. now i want to make it online on web so i want that game to run in applet ..

    how can we run jar file into applet???

    any idea??


    thanks in advance..
    Rakesh Mehta

  2. #2
    Zamppa is offline Member
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    13
    Rep Power
    0

    Default

    Quote Originally Posted by rakesh_n_mehta View Post
    hello friends ,

    i have made one small game for mobile .. its running successfully in to mobiles and simulator.. now i want to make it online on web so i want that game to run in applet ..

    how can we run jar file into applet???

    any idea??


    thanks in advance..
    Assuming you have applet code already (as in, a class that extends Applet base class), you can simply define the jar file as archive parameter.

    For example:
    <applet code="yourMainClass.class" archive="yourArchive.jar" codebase="yourCodebase/">

  3. #3
    Join Date
    Oct 2008
    Posts
    73
    Rep Power
    0

    Question

    but that jar file is of mobile game means i am extending midlet.......
    so is that simle or i have to change my code for web using j2ee..??
    ??
    ??
    Rakesh Mehta

  4. #4
    Zamppa is offline Member
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    13
    Rep Power
    0

    Default

    Well, then you need to port the code from j2me to j2se. Since both codes are Java code most of the process is changing the function calls, but it can be quite tedious at times.

    Best of luck :)

  5. #5
    Join Date
    Oct 2008
    Posts
    73
    Rep Power
    0

Similar Threads

  1. Java Applet + File Uploading
    By Moncleared in forum New To Java
    Replies: 4
    Last Post: 02-02-2009, 07:33 PM
  2. Applet > servlet file transfer
    By milkman128 in forum Java Applets
    Replies: 1
    Last Post: 11-15-2008, 04:21 PM
  3. Reading a file from Applet (BufferedReader)
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 06-22-2008, 11:51 PM
  4. Applet and remote file
    By Preethi in forum Java Applets
    Replies: 0
    Last Post: 06-03-2008, 06:54 AM
  5. Applet File Upload
    By genette in forum Java Applets
    Replies: 2
    Last Post: 03-09-2008, 03:06 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
  •