• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Simple: Using downloaded classes

Hi guys,

I've just downloaded a couple of classes from the internet, and was wondering where I needed to put them/what settings I needed to change so that javac would find them without having to add confusing command line parameters

I'm using Windows 2000 if it makes a difference

  • 2
2 Solutions
1. put those classes in userdefined directory say C:\MyClasses
2. set the classpath to that folder;
c:\>set classpath=%classpath%;c:\MyClasses;.;
3. javac YourClass.java (may use the classes that are saved in C:\MyClasses)
4. Java YourClass
you can place your class files elsewhere in the computer

then you can do
go to System folder in control Panel and then set the Environment variable

PATH = your JDK bin Directory.....

then thats it you are done

you can place any class or java files else where in the system and then open command prompt go to the reespective class file directory or folder and compile and run..

you dont have to set the path each and every time


eeBlueShadowAuthor Commented:
Thanks guys.

I extract the jar file and set the classpath to the directory containing those extracted folders - couldn't get it to work with the jar file for some reason, oh well.

Cheers :D

thanks for accepting.

ou can post your problem  we are here to answer

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now