File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A multiple part question

 
Shannon Keough
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a novice when it comes to java and I have a couple of questions
I have written a application for my home computer that I wish to be able to put a shortcut on the desktop that would start the app for me rather than having to go into the text editor & compile and then run the app. Is this what a jar is used for? If so, How do I create /use a jar.
Another thing is that Im connecting to a Access 2000 database and I can only go forward through the records but not backwards. I can't go back to the previous record. Is there a driver or file that I can get that would allow me to move back to the previous record.
I am using JDK 1.3.0_02 version.
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Do you have windows on your home computer? You can create a .bat file and keep the code which executes your code in it.
java name_of_class_file
Or else you can create an executable jar file(Please refer to Sun's tutorial for that) and put the code to execute the jar file in the .bat file.
java -jar name_of_jar_file
2.You can use ResultSet's previous() method to move the cursor to the previous row. But this will work only if the fetch direction is set properly in the Statement object. The default value is ResultSet.FETCH_FORWARD. Use setFetchDirection() to set it to ResultSet.FETCH_REVERSE or ResultSet.FETCH_UNKNOWN.
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
Shannon Keough
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help.
I have yet to try the method to go back to the previous method but I have created a jar. The notes on creating a jar file were excellent. That's exactly what I needed.
Shannon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic