First: Don't check 'Disable BB Code...' - especially if you're posting code. They're not something naughty; just the "tags" that the site normally recognises.
Jim Brent wrote:Now when I type this in Eclipse I get the error which states: Dog cannot be resolved to a type.
So I need a Dog Class created first which defines the type for what??? --- The Program, the compiler, the package, or the JVM?
when I type just the word Dog...
Not quite sure what you mean here. You tried to create a source file with just the word 'Dog' in it?
I received the following error.
- Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration
So how does the IDE know that I am trying to declare a Variable reference? AND does that mean the compiler will figure this out before the JVM?
Yes (in general). The messages you see in an IDE usually come from the compiler; but many IDEs have their own "smarts" built in, so you can't always be absolutely sure.
To make absolutely sure, shut down your IDE and run javac from the command line.
If it is in a jar, then you don't need to have it listed in the manifest of that jar, you just need that jar on the CLASSPATH. If another jar uses it, then you could have the jar which contains Dog referenced in the manifest of that other jar.
You package Dog in Jar1.jar
In Jar2.jar you have code that needs to use Dog
Then in Jar2.jar, the manifest will contain: