Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bobrivers2003

  1. bobrivers2003

    Problem extracting .jar and .zip with directory structure

    I have created a class that extracts all files within a built EAR application, within this EAR there would be additional archives that exist that also would need extracting. I am having trouble extracting jars and zip files that have files in multiple level of directories e.g...
  2. bobrivers2003

    2 FileFilter issues.

    That sound logical and something I can do! I really appreciate the help Miros, timw and Dian. Cheers :)
  3. bobrivers2003

    2 FileFilter issues.

    No error is shown if you are over writing a file, I thought that was odd!! Is there any way to ensure that the extension gets appended should it be removed? Thanks for the help it is greatly appreciated :)
  4. bobrivers2003

    2 FileFilter issues.

    I have a GUI application that includes a save file JFileChooser function. I have included a default save file name but everytime I click on a different directory to save the file in, the name in the save as text field dissapears (it doesnt do this in eclispe) forcing the user to type in a new...
  5. bobrivers2003

    Hashtable ClassCastException

    Stacktrace?
  6. bobrivers2003

    Hashtable ClassCastException

    Make a brew first! I am creating some classes that calculate the checksum of all files within a ear archive and saves these results to a report.txt file. It works a treat and computes a checksum for all files even if there are within a directory, within a directry etc. The problem I am having...
  7. bobrivers2003

    Automate command promt input

    Hi, I have created a class that executes an ant script. If the ant does not require an input it works fine. However, sometimes the script will ask a qustion from which the user must type either y or n followed by return. When my class runs this file it hangs when it gets to this bit. I...
  8. bobrivers2003

    Working out time difference between now and 18:00

    Thanks alot Dian that has beena great help. :)
  9. bobrivers2003

    Working out time difference between now and 18:00

    I want to work out the time difference (in hours) between and and 18:00. I have tried: Date futDate = new Date("23/05/2006 18:00:00"); long currentTime = System.currentTimeMillis(); long futTime = futDate.getTime(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss")...
  10. bobrivers2003

    Calculating Time Difference In Minutes between 2 times

    Thank you r937. It works a treat :)
  11. bobrivers2003

    Calculating Time Difference In Minutes between 2 times

    I have two columns in a table start_time and end_time (stored as datetime). I wish to work out the time difference in minutes between these two values. If the difference is 1hr 30 minutes I wish to get 90 (mins) I have tried: SELECT TIME_FORMAT(TIMEDIFF(start_time, end_time), '%i') FROM table...
  12. bobrivers2003

    FileWriter Wont Write To Directory

    Thank you very much that is a great help :)
  13. bobrivers2003

    FileWriter Wont Write To Directory

    Ahh, no it doesnt and works a treat when it is there. My low point of today!!! Is there a way of creating the directory if it does not exist? Thanks :)
  14. bobrivers2003

    FileWriter Wont Write To Directory

    I wish to save a file if i put c:\\file.txt, the file is saved in the c: drive, however if i put c:\\dir\\file.txt it doesnt work. What am I doing wrong? (I am working on Windows 2000) try { out = new BufferedWriter(new FileWriter("c:\\file.txt, true)); out.write(new Date() + " : " +...
  15. bobrivers2003

    Find difference between two time enteries

    timediff(), fantastic function!! It also works for periods greater than 24hrs. Thanks alot for the advice people :)

Part and Inventory Search

Back
Top