• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

com folders everywhere......

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Carol Murphy
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay! I think I've got my development environment ship-shape. Now to tackle that bug in Servlets 4b......................
Thanks Marilyn!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic