CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Jar files ??????????????????????????????

    Please I have some questions about jar files:
    1) How can I make a jar executable, for example if I have lot of classes in a java application and I want to create
    a jar file that I can run it with java command instead of having lots of classes in the directory,
    2) how about if it's not application, it's applet
    3) how can I see or extract classes from jar file.

    Thanks


  2. #2
    Guest

    Re: Jar files ??????????????????????????????

    Use Jar.exe thats comes with the JDK 1.2, look in "bin" directory.
    It doesnt matter if your class is application or applet.
    Use a zip-program to open and extract jar-files, eg. WinZip. Use the "show all files" option and point to your jar-file. Jar files is basicly zip files that has been added a manifest. Hope this helps !


  3. #3
    Guest

    Re: Jar files ??????????????????????????????

    hai,

    jar cfm samp.jar *.class
    in applet tag-
    <applet class=samp.class archive="samp.jar" width=500 height=500> </applet>

    while extraction give

    jar xvf samp.jar

    if any problem write to [email protected]

    regs
    bharath







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

Featured