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

Thread: java

  1. #1
    Guest

    java

    I'm having problems trying to create a jar file programmatically, not from the dos prompt.
    the problem is I don't know if that can be possible by using any of the classes in the
    java.util.jar . Could anybody please help me


  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: java


    Try like this , ( Not tested )



    Runtime.getRuntime().exec( "d:/jdk/bin/jar -cvf myjar.jar 1.class,2.class" );





    And there is an undocumented package in sun.tools package ( sun.tools.jar ) which
    contains a class called Main. If you figure out how to use it , you can create your
    jar file programmatically. But it's very hard. Search for this package in the net.

    Poochi..


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