|
Importing / compiling and running with .jar package
Hi,
I'm getting really confused trying to use an add-on package. I have a .jar file containing the classes and I have the import statement referencing it. However, every time I compile and run do i need to use the -cp switch and specify the path of the jar? Seems like a lot of typing when the .jar file is in the same directory.
I've also tried organising my own project into packages but the files wont compile (I get a package does not exist error even though the package is defined using the package statement). Any tips/ good tutorials on this?
Cheers.
|