File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Cattle Drive and the fly likes com folders everywhere...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "com folders everywhere......" Watch "com folders everywhere......" New topic
Author

com folders everywhere......

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
Once again, I seem to have com folders popping up everywhere in my development directory. I also seem to get 2 copies of jr.jar in videos.zip, but if I delete one of them, they both disappear.
This I can live with, but I want to clean up my development directory. I currently have these duplicates of the com directory:

C:\java\com\javaranch\drive\
C:\java\src\com\javaranch
\common
\db
\drive\videos
C:\java\src\java\com\javaranch
\common
\db
\drive\videos
C:\java\videos\src\com\javaranch
\common
\db
\drive\videos
C:\java\videos\src\java\com\javaranch
\common
\db
\drive\videos

Surely this is too many copies of the com directory. And I'm also thinking that if C:\java\videos is the root directory for this app, then I shouldn't be needing the videos directory inside of the drive directory. My java files should be directly inside drive instead.
Can anyone help me clean up this mess?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Originally posted by Carol Murphy:
Once again, I seem to have com folders popping up everywhere in my development directory. I also seem to get 2 copies of jr.jar in videos.zip, but if I delete one of them, they both disappear.
This I can live with, but I want to clean up my development directory. I currently have these duplicates of the com directory:

Surely this is too many copies of the com directory. And I'm also thinking that if C:\java\videos is the root directory for this app, then I shouldn't be needing the videos directory inside of the drive directory. My java files should be directly inside drive instead.
Can anyone help me clean up this mess?


If you use code tags, it will maintain your spacing so the directory structure is clearer

Let's see, one at a time:
C:\java\com\javaranch\drive\
You don't need this one. Everything in the C:\java\com folder should be deleted.

C:\java\src\com\javaranch\common
C:\java\src\com\javaranch\db
C:\java\src\com\javaranch\drive\videos[/B]
You don't need any of these. Everything in the C:\java\src\com folder should be deleted.

C:\java\src\java\com\javaranch\common
C:\java\src\java\com\javaranch\db
C:\java\src\java\com\javaranch\drive\videos

You don't need any of these. Everything in the C:\java\src\java\com folder should be deleted.


C:\java\videos\src\com\javaranch\common
C:\java\videos\src\com\javaranch\db
C:\java\videos\src\com\javaranch\drive\videos

You don't need any of these. Everything in the C:\java\videos\src\com folder should be deleted.

C:\java\videos\src\java\com\javaranch
Keep this one.

C:\java\videos\src\java\com\common
You don't need this. And isn't it C:\java\videos\src\java\com\javaranch\common ?

C:\java\videos\src\java\com\db
You don't need a db directory until Assignment JDBC 2b. I'd delete it for now to avoid confusion. We'll be editing that assignment page too before too long (and this one is not correct anyway)

C:\java\videos\src\java\com\drive\videos
This one is also incorrect.

Now back to the correct one ... Just add \drive\videos onto the end and you're all set.
C:\java\videos\src\java\com\javaranch\drive\videos
C:\java\videos\src\java\com\javaranch\drive\videos\VideoData.java

Thanks for reminding me that I have to update videos.zip also. You should unzip videos.zip into your C:\java\videos directory.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
Okay, I deleted everything except the one I'm supposed to keep. When I unzipped the video.zip file into C:\java\videos I noticed there is now ( in addition to the src, lib, and build directories ) a Meta-inf directory and also a copy of j2ee.jar and jr.jar. These 2 jar files belong in the lib directory, right?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Originally posted by Carol Murphy:
When I unzipped the video.zip file into C:\java\videos I noticed there is now ( in addition to the src, lib, and build directories ) a Meta-inf directory and also a copy of j2ee.jar and jr.jar. These 2 jar files belong in the lib
directory, right?

You're too fast for me. I just now (one minute ago) put the new video.zip there. It should not contain any j2ee.jar and/or jr.jar (because you already have those, right?). It contains two text files telling you where to put those jars, one in lib/development and one in lib/production. You can ignore the META-INF directory. We won't be using it.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
Okay, I've got the newest version of jar.txt, and it states to place both j2ee.jar and jr.jar in the lib directory. No mention of the production or development sub-directories. I know I saw a post or the new instructions on the assignment page that told which file goes where, I'm going to look for that info now. Thanks, Marilyn. My files look much neater and the application is still functioning, (sort of) I just found a bug in the attempt I sent off the other day that I didn't notice before, and I'm trying to figure out a way to figure out why it is happening.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
Okay, I found the reference to the lib\production and lib\development directories on the assignment page for Servlets, but when I placed the jar files in their appropriate sub-directories, the build failed. The com.javaranch.common files couldn't be accessed until I put jr.jar directly in the lib directory. Does this mean the build file needs to be edited?



[ August 13, 2006: Message edited by: Carol Murphy ]
[ August 13, 2006: Message edited by: Carol Murphy ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Originally posted by Carol Murphy:
Okay, I've got the newest version of jar.txt, and it states to place both j2ee.jar and jr.jar in the lib directory. No mention of the production or development sub-directories.


Oops. My bad. I uploaded videos.zip instead of video.zip. Good thing you're checking up on me, Carol. You should find 2 files named jar.txt now. One in lib/development and one in lib/production.

(edit) It also has a new build.xml file in it containing the new directory structure stuff.
[ August 13, 2006: Message edited by: Marilyn de Queiroz ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1194
Okay! I think I've got my development environment ship-shape. Now to tackle that bug in Servlets 4b......................
Thanks Marilyn!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: com folders everywhere......
 
Similar Threads
Trouble with Jenny
New File Structure in Servlet Assignments?
Servlet 4b building problem
JDBC question
Need Servlets 4a Help