just noticed: <quote> ... or at least "java foopackage\fruitpackage\FoodMain" from c: \myjavaprograms </quote>
One of the reasons for the syntax is that java aims for write once, run anywhere, so 'java foodpackage.fruitpackage.FoodMain' will work on windows (with its backslashes separating directories), unix/linux (with forward slashes) and mac (with whatever it uses :) It also helps with namespaces. You may be running the development an office suite. Each team is responsible for one program (spreadsheet, word processor, database) and Program is the name of each team's main class. your apps could potentially start from the following packages suite.spreadsheet.Program suite.wordprocess.Program suite.database.Program suite.utilities.calc.Program but they'd all be 'Program' and the java executable would be called from the same place each time (the directory above suite) hth Hallgrímur Njálsson to me Ok! Thanks, I have to experiment a little further with this to clarify my understanding!! Thanks again! On Sep 1, 2:42 pm, mcalex <[email protected]> wrote: > you're fine. > > let's say you have a FoodMain class in your > foodpackage.vegetablepackage package - how would you access it? > > mcalex --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
