Results 1 to 4 of 4

Thread: confused about JAR files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    confused about JAR files

    I created a JAR file with some classes on it. My question is...how do i use it? How do I use or import the classes in the JAR file to the application i'm writing? Do i use the JAR file as is or am I always suppose to extract ?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    Re: confused about JAR files

    also...will i need to do something about the set paths and stuff

  3. #3
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: confused about JAR files

    Believe this is it, but not sure:


    javac.exe -classpath <pathtofile><jarname>.jar;. <program>.java

  4. #4
    New Member
    Join Date
    Sep 2005
    Posts
    10

    Re: confused about JAR files

    Well, First you have to set classpath from the files, class can be access nad ya you need to import it as well.

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