I am working on an exercise in a java certification study guide, And it is telling me to set up an application server and/or web container. And in an IDE, (NetBeans in my case) I am to open a new...
Type: Posts; User: MeteoricDragon
I am working on an exercise in a java certification study guide, And it is telling me to set up an application server and/or web container. And in an IDE, (NetBeans in my case) I am to open a new...
Thank you copeg, this was the more articulate way I sought to express my confusion. and helped me understand, thank you all.
That link does help, but I am also confused between inheritance and access given by protected access modifiers. If I create a Bicycle object with protected wheelRPM, then I create a TenSpeedBicycle...
I am reading a SCJA study guide and it's explaining examples of classes that use inheritance, I saw one example and am confused why the wheelRPM variable is overriden, even with the explanation given...
Awwwwww man!! slaps forehead! lol I can't believe I didn't see that. thanks!
I am new to java. I am working with this one .java file shown here, and for some reason the identifier location is not a found symbol
import java.lang.String;
class FishSpot
{
public...
Thank you for pointing this out.
My textbook says that packaging is not a container for classes, like namespaces, but rather defines where they are located. So you must have a package statement...
I am trying to run my program in command prompt using -classpath override. Take a look at what i tried here, and what resulted when I tried to give the classpath from a higher root directory. I am...
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...