Java : add package /set classpath
I'm new to Java, and I'm working through a course which provides a few class.-files for an easy command-line input and some other stuff.
I've read through a lot of posts and articles on the subject, but still couldn't solve the problem.
First, I want to set an environment variable so the setting will be permanent.
I tried to execute a setenv-command that I've found in ( set CLASSPATH = ($CLASSPATH ~/$HOME/Library/java), I've got an error.
After that, I tried to edit javaconfig.plist, but I got an error message stating I didn't have the privileges to edit this file. (I'm the administrator on my machine.
Someone in this forum posted you could just put the files in the Library/Extensions folder, but the compiler still gives me the package not found-Error.
Now I've put the folder in the same folder where I save my class.-files, that works, but that's hardly a solution.
Any help...please?
I've read through a lot of posts and articles on the subject, but still couldn't solve the problem.
First, I want to set an environment variable so the setting will be permanent.
I tried to execute a setenv-command that I've found in ( set CLASSPATH = ($CLASSPATH ~/$HOME/Library/java), I've got an error.
After that, I tried to edit javaconfig.plist, but I got an error message stating I didn't have the privileges to edit this file. (I'm the administrator on my machine.
Someone in this forum posted you could just put the files in the Library/Extensions folder, but the compiler still gives me the package not found-Error.
Now I've put the folder in the same folder where I save my class.-files, that works, but that's hardly a solution.
Any help...please?
Powerbook G4 15" (&iBook clamshell tangerine 300MHz), Mac OS X (10.4.9)