Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

java.lang.NoClassDefFoundError: java/sql/DriverManager

4 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-04-24 16:04:32.0Z
Jim Lynch Posted on 1997-04-23 20:47:12.0Z
Message-ID: <335E7550.446B@zazu.mcit.com>
Date: Wed, 23 Apr 1997 14:47:12 -0600
From: Jim Lynch <jlynch@zazu.mcit.com>
Organization: MCI Communications
X-Mailer: Mozilla 3.0 (X11; I; AIX 1)
MIME-Version: 1.0
Subject: java.lang.NoClassDefFoundError: java/sql/DriverManager
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 38
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:943
Article PK: 252698

I get the following error when running an applet trying to query sybase
on AIX.

$ appletviewer SQLGui.html
Warning:
Cannot allocate colormap entry for default background

Sybase jConnect (TM) for JDBC (TM) 2.1 Development and Unsupported
Version
It is an unsupported product and is not intended for deployment. It
does not include free technical support. You can purchase
technical support on an annual or pay-per-issue basis. Discussion
Newsgroup is available on www.sybase.com. For additional in
formation on services or run-time license, please check Sybase website
or call 1-800-8-SYBASE or +1-510-922-3500 outside of the
USA and Canada.

Copyright 1997 Sybase, Inc.
All Rights Reserved
Exception in thread "thread applet-GridLabApplet.class"
java.lang.NoClassDefFoundError: java/sql/DriverManager
at com.sybase.jdbc.SybDriver.<clinit>(SybDriver.java)
at GridLabApplet.init(GridLabApplet.java:39)
at sun.applet.AppletPanel.run(AppletPanel.java:259)
at java.lang.Thread.run(Thread.java)
$

Here's some env that might help:

$ echo $JDBC_HOME
/home2/jlynch/jdbc_test/jConnect
$
$ echo $JAVA_HOME
/usr/local/Java
$
$
$ echo $CLASSPATH
/home2/jlynch/jdbc_test/jConnect/classes:/home2/jlynch/jdbc_test/jConnect/syb102.zip:/usr/local/Java/classes:.
$


I'm using IBM's java compiler JDK 1.0.2C and the latest version of
jConnect.

Suggetions/comments??

Thanks much,
Jim
jlynch@zazu.mcit.com


Jim Lynch Posted on 1997-04-24 13:53:32.0Z
Message-ID: <335F65DC.1CFB@zazu.mcit.com>
Date: Thu, 24 Apr 1997 07:53:32 -0600
From: Jim Lynch <jlynch@zazu.mcit.com>
Organization: MCI Communications
X-Mailer: Mozilla 3.0 (X11; I; AIX 1)
MIME-Version: 1.0
Subject: NoClassDefFoundError: java/sql/DriverManager
References: <335E7550.446B@zazu.mcit.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 51
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:938
Article PK: 252688

I switched my CLASSPATH to be:

/home2/jlynch/jdbc_test/jConnect/classes:/usr/local/Java/classes:/home2/jlynch/classes:/usr/local/Java/lib:.

I still get the same error. I noticed the error comes up just before
the applet is loaded. Could I still be trying to load the JDK1.1
version of the jConnect driver still?? I also was wondering if my
CLASSPATH needs to be in a different order??

Thanks much,
Jim

Jim Lynch wrote:
>
> I get the following error when running an applet trying to query sybase
> on AIX.
>
> $ appletviewer SQLGui.html
> Warning:
> Cannot allocate colormap entry for default background
>
> Sybase jConnect (TM) for JDBC (TM) 2.1 Development and Unsupported
> Version
> It is an unsupported product and is not intended for deployment. It
> does not include free technical support. You can purchase
> technical support on an annual or pay-per-issue basis. Discussion
> Newsgroup is available on www.sybase.com. For additional in
> formation on services or run-time license, please check Sybase website
> or call 1-800-8-SYBASE or +1-510-922-3500 outside of the
> USA and Canada.
>
> Copyright 1997 Sybase, Inc.
> All Rights Reserved
> Exception in thread "thread applet-GridLabApplet.class"
> java.lang.NoClassDefFoundError: java/sql/DriverManager
> at com.sybase.jdbc.SybDriver.<clinit>(SybDriver.java)
> at GridLabApplet.init(GridLabApplet.java:39)
> at sun.applet.AppletPanel.run(AppletPanel.java:259)
> at java.lang.Thread.run(Thread.java)
> $
>
> Here's some env that might help:
>
> $ echo $JDBC_HOME
> /home2/jlynch/jdbc_test/jConnect
> $
> $ echo $JAVA_HOME
> /usr/local/Java
> $
> $
> $ echo $CLASSPATH
> /home2/jlynch/jdbc_test/jConnect/classes:/home2/jlynch/jdbc_test/jConnect/syb102.zip:/usr/local/Java/classes:.
> $
>
> I'm using IBM's java compiler JDK 1.0.2C and the latest version of
> jConnect.
>
> Suggetions/comments??
>
> Thanks much,
> Jim
> jlynch@zazu.mcit.com


Lance Andersen Posted on 1997-04-24 16:04:32.0Z
Message-ID: <335F8490.6ED0@sybase.com>
Date: Thu, 24 Apr 1997 12:04:32 -0400
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Jim Lynch <jlynch@zazu.mcit.com>
Subject: Re: NoClassDefFoundError: java/sql/DriverManager
References: <335E7550.446B@zazu.mcit.com> <335F65DC.1CFB@zazu.mcit.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 85
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:936
Article PK: 252689

Hi Jim,

You still need to modify the applet to use the 102 style imports and
to load the 102 driver. Here is the key info from the URL that I
provided earlier:

------


Use these includes:




import jdbc.sql.*;
import jdbc.math.*;
import jdbc.sybase.utils.Debug;
import jdbc.sybase.jdbc.*;



Use this driver:




Class.forName("jdbc.sybase.jdbc.SybDriver");



Use jdbc.math.BigDecimal and jdbc.math.BigInteger instead of
java.lang.Bignum.
All prior development using Bignum must be modified.
--------


If you still are having problems, try compiling the Isql.java
that we provide and see if you can get that to run.

-lance

Jim Lynch wrote:
>
> I switched my CLASSPATH to be:
>
> /home2/jlynch/jdbc_test/jConnect/classes:/usr/local/Java/classes:/home2/jlynch/classes:/usr/local/Java/lib:.
>
> I still get the same error. I noticed the error comes up just before
> the applet is loaded. Could I still be trying to load the JDK1.1
> version of the jConnect driver still?? I also was wondering if my
> CLASSPATH needs to be in a different order??
>
> Thanks much,
> Jim
>
>
> Jim Lynch wrote:
> >
> > I get the following error when running an applet trying to query sybase
> > on AIX.
> >
> > $ appletviewer SQLGui.html
> > Warning:
> > Cannot allocate colormap entry for default background
> >
> > Sybase jConnect (TM) for JDBC (TM) 2.1 Development and Unsupported
> > Version
> > It is an unsupported product and is not intended for deployment. It
> > does not include free technical support. You can purchase
> > technical support on an annual or pay-per-issue basis. Discussion
> > Newsgroup is available on www.sybase.com. For additional in
> > formation on services or run-time license, please check Sybase website
> > or call 1-800-8-SYBASE or +1-510-922-3500 outside of the
> > USA and Canada.
> >
> > Copyright 1997 Sybase, Inc.
> > All Rights Reserved
> > Exception in thread "thread applet-GridLabApplet.class"
> > java.lang.NoClassDefFoundError: java/sql/DriverManager
> > at com.sybase.jdbc.SybDriver.<clinit>(SybDriver.java)
> > at GridLabApplet.init(GridLabApplet.java:39)
> > at sun.applet.AppletPanel.run(AppletPanel.java:259)
> > at java.lang.Thread.run(Thread.java)
> > $
> >
> > Here's some env that might help:
> >
> > $ echo $JDBC_HOME
> > /home2/jlynch/jdbc_test/jConnect
> > $
> > $ echo $JAVA_HOME
> > /usr/local/Java
> > $
> > $
> > $ echo $CLASSPATH
> > /home2/jlynch/jdbc_test/jConnect/classes:/home2/jlynch/jdbc_test/jConnect/syb102.zip:/usr/local/Java/classes:.
> > $
> >
> > I'm using IBM's java compiler JDK 1.0.2C and the latest version of
> > jConnect.
> >
> > Suggetions/comments??
> >
> > Thanks much,
> > Jim
> > jlynch@zazu.mcit.com

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Technical Support Phone:(617) 564-6336
77 South Bedford Street Fax: (617) 564-6148
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================


Lance Andersen Posted on 1997-04-24 12:30:52.0Z
Message-ID: <335F527C.246B@sybase.com>
Date: Thu, 24 Apr 1997 08:30:52 -0400
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Jim Lynch <jlynch@zazu.mcit.com>
Subject: Re: java.lang.NoClassDefFoundError: java/sql/DriverManager
References: <335E7550.446B@zazu.mcit.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 65
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:940
Article PK: 252692

Jim,

A couple of quick pointers.

Your classpath should point to $JDBC_HOME/classes not to the *.zip.
The classes directory contains both versions of the jConnect
driver.

The problem below is that you are trying to load the jdk1.1 version
of the jConnect driver and you do not have the lib in your CLASSPATH.
As you are writing an applet you will need to modify you applet to
use the jdk 102 version of the driver.

For more details, Please refer to:

http://www/products/internet/jconnect/docs/prjdbc_4.htm#HEADING4-20


-Lance

Jim Lynch wrote:
>
> I get the following error when running an applet trying to query sybase
> on AIX.
>
> $ appletviewer SQLGui.html
> Warning:
> Cannot allocate colormap entry for default background
>
> Sybase jConnect (TM) for JDBC (TM) 2.1 Development and Unsupported
> Version
> It is an unsupported product and is not intended for deployment. It
> does not include free technical support. You can purchase
> technical support on an annual or pay-per-issue basis. Discussion
> Newsgroup is available on www.sybase.com. For additional in
> formation on services or run-time license, please check Sybase website
> or call 1-800-8-SYBASE or +1-510-922-3500 outside of the
> USA and Canada.
>
> Copyright 1997 Sybase, Inc.
> All Rights Reserved
> Exception in thread "thread applet-GridLabApplet.class"
> java.lang.NoClassDefFoundError: java/sql/DriverManager
> at com.sybase.jdbc.SybDriver.<clinit>(SybDriver.java)
> at GridLabApplet.init(GridLabApplet.java:39)
> at sun.applet.AppletPanel.run(AppletPanel.java:259)
> at java.lang.Thread.run(Thread.java)
> $
>
> Here's some env that might help:
>
> $ echo $JDBC_HOME
> /home2/jlynch/jdbc_test/jConnect
> $
> $ echo $JAVA_HOME
> /usr/local/Java
> $
> $
> $ echo $CLASSPATH
> /home2/jlynch/jdbc_test/jConnect/classes:/home2/jlynch/jdbc_test/jConnect/syb102.zip:/usr/local/Java/classes:.
> $
>
> I'm using IBM's java compiler JDK 1.0.2C and the latest version of
> jConnect.
>
> Suggetions/comments??
>
> Thanks much,
> Jim
> jlynch@zazu.mcit.com

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Technical Support Phone:(617) 564-6336
77 South Bedford Street Fax: (617) 564-6148
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================