If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

No class Defintion error - Jbuilder being annoying.

I have a JBuilder project that has three classes. One of the classes "XmlParser.java" uses "Link.java" and "Update.java" and compiles and runs perfectly when i open it all using the jbuilder .jpx project file.

However if i open them all seperatly into JBuilder, or even just try and run XmlParser in command prompt, it says the noClassDefinition error stuff.

Also another thing i noticed is that when i even try and compile XmlParser in command prompt it wont work saying theres errors with the Update and Link classes variables and methods etc found in XmlParser. ie its not realising it requires the other classes, even though theyre all in the same package&folder.

Why wont it run as a unit outside of the Jbuilder project, eh, thing?
Thanks, kate

Do you mean classpath to javac, or to the other classes "Update" and "Link"? If its the latter, how do you physically point it at them? If its the first, thats already set - ive had java running on this machine for years.

I really dont understand thought why it compiles and runs fine through "jbuilder project" but not through explicitly specifying that i want to run XmlParser, or by calling it in cmd.

I mean the CLASSPATH to java, to use packages correctly outside an IDE you must have the corresponding folder structure. If you have source file blaa.java in a package called foo.bar the corresponding folder structure is: CLASSPATH/foo/bar/blaa.java .