The Artima Developer Community
Sponsored Link

Java Answers Forum
how to import a jar file

1 reply on 1 page. Most recent reply: Oct 13, 2002 6:10 AM by Don Hill

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Felipe Solanet

Posts: 1
Nickname: felipe
Registered: Oct, 2002

how to import a jar file Posted: Oct 13, 2002 4:43 AM
Reply to this message Reply
Advertisement
I hava class A that imports class B.
If class B is in the form of jar file, how would I call it from class A?


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: how to import a jar file Posted: Oct 13, 2002 6:10 AM
Reply to this message Reply
The jar should be in your classpath when you execute Class A, the jvm will find the import as long as you have the import statement in Class A, the jar also needs to be in the classpath for compiling.

HTH

> I hava class A that imports class B.
> If class B is in the form of jar file, how would I
> call it from class A?

Flat View: This topic has 1 reply on 1 page
Topic: Validation NT username and password Previous Topic   Next Topic Topic: fairly general question on java pgm distribution

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use