|
|
Back to UserFriendly Strip Comments Index
|
Beginner Java help | by mikosullivan | 2002-03-05 16:56:07 |
| I'm a bit rusty... |
by skeegenin |
2002-03-05 17:15:38 |
but I seem to remember having this sinking feeling before. If I remember rightly, the problem has to do with Java 1.3 not resolving dependancies in the default package (in a way that made sense to me).
You're a beginner, but do you grok Java packages yet? If so, try putting both of these into your own package (I can probably instruct if you want) and compiling again (try getting just Shape to compile in a package first to make sure your CLASSPATH is happy). You may need to do something like
javac package_path/Shape.java
javac package_path/Line.java
from the parent directory of the root of your package path.
Heh, using packages is a good habit to get into, anyway. :)
You may need to add your current working directory to the CLASSPATH (see java README or whatever). They changed rules about the CLASSPATH but I think '.' is in the CLASSPATH by default now (without setting any CLASSPATH) which is why the above javac might need to be the way it is. I also seem to recall that you're better off if you can avoid setting the CLASSPATH. ;)
Lemme know if you're still stuck and I'll putz around a bit over here. :) |
|
[ Reply ] |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|