File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Setting up directory hierarchy for JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Setting up directory hierarchy for JAVA" Watch "Setting up directory hierarchy for JAVA" New topic

Setting up directory hierarchy for JAVA

Donald R. Cossitt
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
Is there a standard schema for directory hierarchy in order to use JAVA? I find the use of the dos console to be repugnant but, that is the way it is. It is obvious that following default setup is cumbersome in that Windows XP likes to bury files to the nth folder on a system.
Is it ok to create C:\JAVA and place JVM|JDK|SDK, Workspace, Project, Package folders all in that 'root' directory?
I need to completely re-organize what I have currently if I am going to use the @#$%$%! console instead of an IDE and I don't want to do it more than once
I realize this may sound a bit infantile but any advice would be helpful.
rank amature

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
I suggest you create C:\JAVA and use it for workspace, project, packages. However, when you install the jdk/sdk/jre (jvm), I think it is better if it has its own subdir. I usually accept the default (i.e. something like C:\j2sdk1.4.1), although if you wanted to do something like C:\JAVA\j2sdk1.4.1, I don't see any problem with that. Just don't put your files in that subdir.

This avoids clutter. It's easier to keep your stuff separate from the basic app stuff.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: Setting up directory hierarchy for JAVA
It's not a secret anymore!