The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Beginner Java help by mikosullivan2002-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]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)