Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24622
| Date | 2013-07-04 18:24 +0100 |
|---|---|
| From | lipska the kat <"nospam at neversurrender dot co dot uk"> |
| Organization | Trollbusters 3 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Package naming, disk organization |
| References | <kqssv3$dfm$1@speranza.aioe.org> <kquqfj$38p$1@speranza.aioe.org> <kr2q7l$fdd$1@dont-email.me> <51D5A431.4060001@fastmail.fm> |
| Message-ID | <XIKdnd3YIokhMkjMnZ2dnUVZ8k-dnZ2d@bt.com> (permalink) |
On 04/07/13 17:34, Dave wrote: > On 07/03/2013 11:35 PM, markspace wrote: >> On 7/2/2013 8:09 AM, Dave wrote: <snip> > > This is the one thing (so far) that I really don't like about Java. The > Oracle assumes that developers are corporations with web sites. Huh!, you don't have to be a corporation to have a website and you don't need to have a website to have a domain name. Anyway, it's nothing to do with Oracle, it was ever thus. You can get a .co.uk domain name from 123-reg for a few quid a year If you want to develop software that will be used by people outside your sphere of influence then it will be a good investment. I don't know why you haven't done it yet. Register dboland.co.uk, it's still available and will cost £6.98 for two years, surely it's worth that just to end the angst :-) Then your packages will be uk.co.dboland... Done and dusted and no chance of your code clashing with anyone else's, ever. this would give you /home/user/javadev/projectname/source/uk/co/dboland if you have a package called utilities the directory structure would be /home/user/javadev/projectname/source/uk/co/dboland/utilities/ and the package name would be uk.co.dboland.utilities Everything else is just stuff, there are certain conventions that you should follow if you are building web apps but apart from that you can more or less do what you want. people use a build directory to collect together all the stuff they need to build a component (say a jar file), some people get real anal about this stuff but whatever works for you. So you might have /home/user/javadev/projectname/build /home/user/javadev/projectname/build/classes /home/user/javadev/projectname/build/classes/uk/co/dboland/utilities/ etc etc <snip> > I should also point out that I'm a tad old fashion (I guess) because I > use an editor and command line. I do plan to go to an IDE - once I'm > told which one everyone wants to use. <tinhat> There is only one ... Eclipse :-) </tinhat> > Ok, back to the subject. I want to obey the conventions, but not box > myself in or create future problems. So how about: > * domain (used for general Java development for now): dboland > * source: home/user/javadev/dboland/proj_name/src Not really /home/user/javadev/projectname/source/uk/co/dboland/utilities/ > * classes: home/user/javadev/dboland/proj_name/classes /home/user/javadev/projectname/classes/uk/co/dboland/utilities/ > // I don't get the need for build/classes. See above > * CLASSPATH: home/user/javadev/dboland Hmm, for the above your classpath would be /home/user/javadev/projectname/classes Any questions :-) lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-01 17:39 -0400
Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-01 15:22 -0700
Re: Package naming, disk organization Martin Gregorie <martin@address-in-sig.invalid> - 2013-07-01 23:56 +0000
Re: Package naming, disk organization Roedy Green <see_website@mindprod.com.invalid> - 2013-07-01 15:35 -0700
Re: Package naming, disk organization Roedy Green <see_website@mindprod.com.invalid> - 2013-07-01 15:36 -0700
Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-01 17:22 -0700
Re: Package naming, disk organization Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-07-02 18:51 +0300
Re: Package naming, disk organization Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-07-18 23:50 -0300
Re: Package naming, disk organization Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-07-01 21:30 -0400
Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-01 18:43 -0700
Re: Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-02 11:09 -0400
Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-03 22:53 -0400
Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-03 20:35 -0700
Re: Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-04 12:34 -0400
Re: Package naming, disk organization Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-07-04 20:08 +0300
Re: Package naming, disk organization lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-07-04 18:24 +0100
Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-04 11:26 -0700
Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 15:42 -0400
Re: Package naming, disk organization Martin Gregorie <martin@address-in-sig.invalid> - 2013-07-04 20:40 +0000
Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-04 14:01 -0700
Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 17:06 -0400
Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 15:39 -0400
csiph-web