• 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

_Blue
0
eeBlueShadow
Asked:
eeBlueShadow
  • 2
2 Solutions
 
sudhakar_koundinyaCommented:
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
0
 
ashok3sepCommented:
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

regards,

Freedom
0
 
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

_Blue
0
 
ashok3sepCommented:
thanks for accepting.
:-)

ou can post your problem  we are here to answer
0

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