• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

error for connection jdbc

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have already complied one example code succesfully, but when i run it ,there is error message
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.4' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
i use Oracle8i Personal Edition Release 8.1.5.0.0 - Production With the Java option
i use j2sdk1.4.0
window98
how can i fix it up???
Part of my code is following:

by the way,ORCL should be the so-called sid,where can i find sid from database when i write other jdbc codes ,i think sid should be different everytime.
[ Edited by Dave to format code and remove smilies ]
[ April 11, 2002: Message edited by: David O'Meara ]
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Installing the Oracle Client _after_ you installed JDK1.4 can cause this problem. The oracle install also installs JDK1.1 and updates the Windows registry. There are two solutions. One is just to reinstall JDK1.4. The other (if you are brave) is to hack the registry. The need to change the value of the keys HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment from 1.1 to the correct value for 1.4. This will be either 1.4 or 1.4.0 depending on which you have installed. If you expand the key you will see which one you have installed.
Remember if you do hack the registry to back it up first.
One more thing, the key above is for NT, I don't have access to a Win98 machine so you'll need to check your own registry.
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic