Hi friends
i have dell inspiron laptop with i3 core processor..having Oracle 10g as database.
i could n't run JDBC programs in my lapy. so many ppl spoke to me that dell lapy doesn't support type1 driver.. So i tried for third party type 4 drivers(OJDBC14.JAR) it is also not working.
please help me to run those programs. and am ready to change my database to MySQL or anything..
guys please help me.. its very urgent..

Dani AI

Generated

A short, practical follow-up to the problem reported by and the suggestion from : the laptop brand is almost never the cause of JDBC failures. Most JDBC startup problems on Windows 7 come from JVM/driver mismatches, classpath problems, wrong connection strings, or database listener/network issues. Switching database engines (for example to MySQL) is a valid option, but the same basic checks apply.

Checklist to diagnose and fix JDBC startup failures

  • Confirm the runtime: run java -version and ensure the JDBC driver chosen is compatible with that JVM major version.
  • Match architectures: a 64-bit JVM needs 64-bit native libraries (if used) and drivers compiled for that JVM; mixing 32-bit and 64-bit components causes classloading or native errors.
  • Put the driver JAR on the application runtime classpath (IDE project libraries, servlet container lib folder, or the -cp used when launching the app).
  • Use a pure-Java (Type 4) driver when possible to avoid native dependencies. For databases that still use native clients, ensure the client is installed and the DB listener is running.
  • Verify the connection endpoint: test network reachability (telnet host port or equivalent) and confirm the database service/SID and port. Windows firewall or an inactive listener are common blockers.
  • Check runtime logs and Java exceptions for the real cause: ClassNotFoundException means the driver JAR is missing; SQLException with a network message points to connectivity or listener problems.

Minimal test pattern (conceptual)

Class.forName("com.example.Driver"); 
Connection conn = DriverManager.getConnection("jdbc:dbtype://host:port/service", "user", "pass");

Summary: focus on JVM/driver/version/classpath and network/listener checks first. Switching to another DB is optional; solving the configuration issues above will get JDBC running on Windows 7 regardless of hardware.

Recommended Answers

All 7 Replies

I am not sure if I understand you, but if I understood you correctly, then my advice is move on to MySQL, and be sure that it's very easy to connect to it with Java. you have a working class ready in a couple of recent threads here in Java forums. if that's the route you chose to take, then I assure you will very fast be able to interact with MySQL with Java.

thanx but..
am using dell inspiron so is it possible to use mysql in it??

I am not sure if I understand you, but if I understood you correctly, then my advice is move on to MySQL, and be sure that it's very easy to connect to it with Java. you have a working class ready in a couple of recent threads here in Java forums. if that's the route you chose to take, then I assure you will very fast be able to interact with MySQL with Java.

thanx but..
am using dell inspiron so is it possible to use mysql in it??

I used to have a dell inspiron 2650 laptop, an old one, running xp, and mysql worked on it perfectly. I don't see why wouldn't MySQL run on a machine :) I guess the best way to verify though is to try and install it.

I used to have a dell inspiron 2650 laptop, an old one, running xp, and mysql worked on it perfectly. I don't see why wouldn't MySQL run on a machine :) I guess the best way to verify though is to try and install it.

here my problem is wid my operating system my lapy does nt support XP coz its i3 core processor.that's y am using win7 home basic only..
i need instructions that suits my OS

why don't you just bring your laptop over, and I'll do everything for you... I'm in Kosovo :)
come on man, just install it, I'm sure it will work in Windows 7 or whichever version you happen to have. try installing it, if it does not, look for instructions on specific problems you encounter.

why don't you just bring your laptop over, and I'll do everything for you... I'm in Kosovo :)
come on man, just install it, I'm sure it will work in Windows 7 or whichever version you happen to have. try installing it, if it does not, look for instructions on specific problems you encounter.

hmmmmmmmmmmmmmmmmmmmmm
okies nd thanx and bubye :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.