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 Jenny has me confused...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Jenny has me confused......" Watch "Jenny has me confused......" New topic
Author

Jenny has me confused......

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
I get that Jenny will automatically write code that handles the details of database connections and accessing the dat stored in the tables therein, but I don't quite get how to use it.
At one point, I did something using Jenny, because there is a directory in my development directory named test that has four Jenny-generated class files in it. How they got there, I have no recollection. ( Perhaps I should consider running for congress. I'm obviously a natural. )
To start Jenny, the directions state that one should type the following at the command prompt:
java com.javaranch.db.Jenny db.properties
When I do this, I get the following gripe: ( from the JVM? )

C:\java\videos>java com.javaranch.db.Jenny videos.properties
Exception in thread "main" java.io.FileNotFoundException: videos.properties (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.javaranch.db.Jenny.main(Unknown Source)

Now, I'm pretty sure that this is because there is no main() in videos.properties. But there's not supposed to be.
I'm sure that I just don't have the directories set up like they should be. For example, there is no com.javaranch.db directory tree in C:\java or C:\java\videos.
Could someone explain with great detail how to set up Jenny, and how to invoke her powers? 'Cause I'm chasing my tail here, and I'm getting dizzy.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Thanks for reminding me that I need to update that page, Carol.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
We now have an ant target that uses Jenny and makes life much easier. Please be patient until the weekend.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Thanks Marilyn!
I took the week off from work, just to detox from a rather noxious work environment, and have been putting my free time to good use by trying to get back into the swing of things here at the ranch.
Will be on the lookout for the update.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jenny has me confused......
 
Similar Threads
Trouble with Jenny
getResource(fileName)
In Eclipse, how to add log4j.properties to classpath ?
FileReader cannot find text file!
com folders everywhere......