• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar file

 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make a jar file which contains three files(ComplexNumber.java, Panel.java and Mandelbrot.java(applet). Therefore, the file which I want to create contains 3 files and how can I make the file to run from the command line. Also does this possible that a user take a floppy, inserts to floppy drive and runs the applet Mandelbrot.java(from the jar file).
Thanks
 
Shiva Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
make a Manifest File with the following contents and while making jar use the created manifest file.
Manifest file contents
Manifest-Version: 1.0
Main-Class: Main Class Name
Created-By: 1.3.0rc2 (Sun Microsystems Inc.)
jar cvmf < manifestfilename> < jarfilename> *.class
For applet
< applet code=AppletClassName codebase="." archive="jarfilename.jar"> < /applet>

Shiva.
(Marilyn put spaces after < s)
[This message has been edited by Marilyn deQueiroz (edited November 27, 2001).]
 
Shiva Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
make a Manifest File with the following contents and while making jar use the created manifest file.
Manifest file contents
Manifest-Version: 1.0
Main-Class: Main Class Name
Created-By: 1.3.0rc2 (Sun Microsystems Inc.)
/* jar cvmf manifestfilename jarfilename *.class */
For applet
applet code=AppletClassName codebase="." archive="jarfilename.jar"

Shiva.
 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but I have to write the html file? or not? I mean it's necessary to write the html file and insert the Appplet to it. Would you give me some example for it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic