View Single Post
  #1 (permalink)  
Old 12-05-2007, 03:17 AM
splinter64uk splinter64uk is offline
Member
 
Join Date: Nov 2007
Posts: 4
splinter64uk is on a distinguished road
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.
Reply With Quote
Sponsored Links