Hi, I'm starting with Java and have an issue with how to use the classpath variable and where to put certain library. This is probably pretty easy but it's got to the point of driving me crazy.
Now, I'd like to have my library, let's call it "mylib", under C:
So, I created a directory called "mylib" and inside it put all compilation units. All of them have the "package mylib;" line of code as the first non-commented line.
I've been told that if I want to use this library in a program runing from any other directory, I need to import it with "import mylib.*;" and change the classpath variable.
What do I have to write on the classpath variable?
- C:
- C:\
- C:\mylib
Any help is really welcome.