• 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

Why this difference?

 
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have noticed that I could access MsAccess using
jdbc dbc river{Microsoft Access Driver (*.mdb)};DBQ=g:\\jal\\data.mdb
with my programs running on Jdk1.3 and previous versions of j2sdk1.4 but not with j2sdk1.4.2_10

I have to use forward slashes with it otherwise microsoft driver doesnot recognise path ie
jdbc dbc river{Microsoft Access Driver (*.mdb)};DBQ=g:/jal/data.mdb

Is it a bug or some kind of restriction or what?
Comment...

Maki Jav
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because on Windows path elements are separated by backslashes, not forward slashes. The file system doesn't know what to do with forward slashes (which are used on Unix-ish operating systems). In some places Windows (and Java) pretend that you can use either, but that's not generally true.
 
Maki Jav
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I am using windows...
I have recently tried started using the newer jdk. I had used jdk1.3 before that to code my database application and single classes using double back slashes and now this problem....

Maki jav
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic