Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Run a Java Program Using an API
Ajay Njallacattu
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have developed a program which uses an API. I dont have access to set the API to the classpath of my machine.
What is the best way to use the API to run the program which I developed using the API? Will it help if I place the API in the same folder of program?
Can anyone suggest?
Regards
Ajay
Ulf Dittmer
Rancher
Posts: 43081
77
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The usual way to specify libraries is to use the "-classpath" switch, as in "java -classpath myLibrary.jar myClass". I recommend avoiding the CLASSPATH environment setting altogther; it's generally more hassle than it's worth.
Ajay Njallacattu
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks a lot for the input.
Regards
Ajay
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
J2EE web services, Axis, JWSDP
Statement parameter 1 is not set
How can I correct java applications that fail to run on mobile phone?
XML-RPC server deployment
Capture java stdout when running the JVM through JNI in C++
More...