• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

JDBC require EE?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill nice to see your name as moderater. I was away developing a desktop tool and now I'm back with my previous challenge. You may recall I'm was having trouble connecting with mSQL database. Currently I'm using JDK1.3 SE, should I be using JDK1.3 EE?
Best to all,
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need JDK1.3EE if you are using servlets. However, the java.sql package in JDK1.3 SE is all you need to connect to the database. If you still can't connect, try using a simple TestConnection class and see if you can get in. If you can't show us your code and report any error messages you are getting.
Bill
 
Kevin Cary
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bill,
I still can't get my database. There are no class files in directory with driver. Compiling using: javac *.java produces 66 errors. The first complaint is:
MsqlQueryData.java:4: cannot resolve symbol
symbol: class Encoder
location: package util
import com.imaginary.util.Encoder;
I've searched my hd and I don't have a class named Encoder. Below is the class I'm trying to run. Which doesn't run because it can't find the MsqlDriver. Any ideas?

import java.sql.*;
public class Test
{
public static void main( String args[] )
{
Connection mSQLcon = null;
try
{
Class.forName("com.imaginary.sql.msql.MsqlDriver").newInstance();
}
catch ( InstantiationException ie )
{
ie.printStackTrace ();
}
catch( ClassNotFoundException cfe )
{
System.err.println("Test.java:main:couldn't find driver");
cfe.printStackTrace();
}
catch( Exception e )
{
e.printStackTrace( );
}
finally
{
if( mSQLcon != null )
{
try
{
mSQLcon.close()
}
catch( Exception e )
System.err.println("Test.java:main method:finally");
}
}
}
}
}
 
Kevin Cary
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have since sent an email to imaginary.com. I'll let you know if I get a response.
 
Oh the stink of it! Smell my tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic