I'm not following you. Under Windows 2000, I am going into Control Panel, System, Advanced and then clicking the Environment Variables tab. I then highlight Path under System Variables and click Edit. I make the changes and get out. Then, when I type "path" in at the C:\> prompt in DOS I get:
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
Seems CLASSPATH is not a System variable in your machine. I also had this problem once, I kept classpath in System variables and It was available to me..... :O))
Ah ha. The problem is that you've confused path and classpath. The path is where the OS looks for executable programs (incidentally, class files can be configured as such, but that is another topic), whereas the classpath is where the JVM looks for class files. They are completely separate and different. You don't want that packtest stuff in the path, instead you need to create a new environment variable called classpath. This explains why specifying the classpath on the command line was working for you, also.
That was the problem. I THOUGHT path and classpath were synonymous terms. As soon as I created a classpath system variable and set it up correctly (and took the other stuff out of the path system variable) everything began working as expected.
Thanks Matt, and to everyone else. I feel like I've gone through a hyper-intensive crash course on packages, system variables and the javac compiler for almost a week now. It's been enormously frustrating, but also enormously educational. I'm now able to begin setting up the much more complex directory and package structures I had originally wanted to do all along.
Thanks again, everyone.
Flat View: This topic has 18 replies
on 2 pages
[
«
|
12
]