Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to organize files?

Status
Not open for further replies.

shine67

Programmer
Jan 11, 2002
41
US
Hi,

this is the first time I am running java along with some shell script and I want to know the convention people are using in organizing various types of files. I have the followings:

FileLoader.class: A main java class having main()
AboutDate.class: Secondary hava class
load_files.ksh: A shell script called from FileLoader.class

Right now, I put all of those in ~/bin and logs are created in ~/log. ~/src has *.java.

Thanks in advance,
Shine.
 
Not at all in advance. Could you please specify exactly what is the problem you can not solve or are you experiencing with doing that?

Ion Filipski
1c.bmp
 
You should organise classes however you feel most comfortable, or natural. (Just don't put them in a subdirectory of $JAVA_HOME).
 
From a linux/ unix point, this seems reasonable, while perhaps a starting script in bin would be more linux-like, and classes, or .jar - files could go to ~/lib.

When building bigger projects, you might get confused by too many files/ classes/ sources, if they don't get their subdirectory.

And tools like eclipse have their own idea, where to expect files :) .

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top