2 Replies Latest reply: Jan 21, 2011 4:06 AM by 831242 RSS

    Creating a Jar file with 2 folders in it

    831242
      Hi Experts,

      I have a root folder in which I have 2 folders with all my classes.

      My Root foder is Login

      and my 2 folders are JXL and SPM as shown below

      Login
      |
      ----- JXL
      |
      ----- SPM

      When I go to command prompt and execute the following command my program works

      c:\Login>java SPM.SPM

      How do I put both these folders in a jar file, so that I have only one Jar file in
      Login folder and I will be able to execute with command prompt

      c:\Login>java -jar SPM.jar

      As I'am a newbie to Java, can you please give me a detailed instruction.

      Thanks

      KR