• Post Reply Bookmark Topic Watch Topic
  • New Topic

Run a Java Program Using an API  RSS feed

 
Ajay Njallacattu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the input.


Regards

Ajay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!