oh ok, this is making sense to me now. I just didn't recognize the error in the command prompt, I've had this error before in other languages. I applied the changes and the code compiled without...
Type: Posts; User: MeteoricDragon
oh ok, this is making sense to me now. I just didn't recognize the error in the command prompt, I've had this error before in other languages. I applied the changes and the code compiled without...
ok, but I'm confused about the first error, "identifier expected", That line is a constructor, I thought for constructors you put the (private/public) in and don't give identifiers, just give the...
Wow... I changed the "Planets" directory to "planets" in the windows folder, and got a whole different bunch of errors
Yes exactly, that is what has been so confusing to me. Are the package names case sensitive with the directory names?
ok i got these new files. and I moved them from jdk to the parent directory java:
And I think i understand what you're saying about classpath, but when you give it the directory to search, does it...
ok, i've added an import statement to the helper class Planets.java, but I am now back to the file not found problem:confused:
ok, what you're saying makes sense to me, but the exercise tells me explicitly to put the packages as they are. I assume it's trying to teach me to use a certain feature of java or something, Here's...
[Ok, I tried what you posted, and I'm receiving compiler errors due to the fact that the main class(GreetingsUniverse.java) instantiates the classes defined in Planets.java. but cannot find them.
...
Ok, tried that and got these results:
I am using javac in Windows command prompt to compile a basic hello world application that uses 2 source files (this is for a java certification exercise, I'm learning java). The source files are...