• 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

A multiple part question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to take a look at this quick exploration into creating an executable JAR file.
 
Shannon Keough
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic