Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Installing Library  RSS feed

 
Glen Scheel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have searched the message archive and not found an answer.
I have downloaded a class library that I need to make use of but I cannot seem to find any documentation on how to install it. I tried putting it into the 'include' folder but I am not able to access anything from the new library.
Any help will be greatly appreciated.
Glen
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add it to your CLASSPATH.
 
Glen Scheel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not to sound completely lost, but how do I add something to my classpath. What I've found online makes it seem like I can do it in the system applet of the control panel but slasspath is not one of the environment variables listed.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IF it's not there then you need to create a new entry. (Are you using Windows? I've never heard it called the system "applet" before....)
Just add a new entry to the Environment, call it CLASSPATH, and point it to your root class directory or directories. Also include the .jar files. So, it should look like:
C:\user\java\sources;c:\user\java\libs\mylibrary.jar;C:\user\java\libs\someOtherLib.jar
See this article in the FAQ for more information.
 
Glen Scheel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's working now, Thanks!
Glen
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!