🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.debugger
Article #5214

Re: HELP ! java.lang.NoClassDefFoundError during debugging session

#5214
From: Andreas Meyer
Date: Thu, 22 Oct 1998 00:00
102 lines
3487 bytes
Hi David,

thank you very much for yor response. Below you can see a reduced piece of code
because the original code is to huge. But this simple Applet has the same debugging
problem:

>> AppAccelerator(tm) 1.1.034 for Java (JDK 1.1), x86 version.
>> Copyright (c) 1998 Borland International. All Rights Reserved.
>> Opening db connection ...
>> java.lang.NoClassDefFoundError


my code snippet:
...

    import java.sql.*;

    ...

    try {
         Class.forName (driverName);
         System.out.println ("Opening db connection ...");
***   connection = DriverManager.getConnection (dbUrl, user, passwd);
         System.out.println ("Success");
    }

...

I have placed a breakpoint on 'System.out.println ("Opening ...")' and it
worked so far. But when the debugger reaches the following line (***) i get
the NoClassDefFoundError message. So debugging seems to work in general.
But something must go wrong. You mentioned something about JRun jar files which
i don't understand. Please tell me more about it. Most of my jar files are located
in:

E:\JBuilder2\java\lib
E:\JBuilder2\java
E:\JBuilder2\redist

My path configuration is:

CLASSPATH =
   e:\jbuilder2\lib;
   e:\jbuilder2\redist:
   e:\jbuilder2\java\lib;
   e:\jbuilder2\myclasses;
   %SWING_HOME%\swing.jar;
   %SWING_HOME%\motif.jar;
   %SWING_HOME%\windows.jar;
   e:\programme\Borland\DataGateway\classes\DataGateway.zip
   e:\Program Files\InterBase Corp\InterClient\interclient.jar;
   .;

SWING_HOME = e:\jbuilder2\redist

Path =
   E:\jdk1.1.6\bin;
   E:\IBMVJava\eab\bin;
   e:\Centura\Dbcnvt;
   e:\Centura\Samples;
   e:\Centura;
   %SystemRoot%\system32;
   %SystemRoot%;%SystemRoot%\system32\nls\ENGLISH;
   c:\prg\sqlbase;
   E:\IMNnq_NT;
   E:\ORANT\BIN;
   e:\programme\Borland\DataGateway\bin


Thanks in advance
Andreas

Hackenberg & Partner, A Renaissance Worldwide Company
EMail: am@hackenberg.de

P.S: I've forgotten to mention that i am using Netscape 4.06 with the Java Plugin
1.1.1.
I have copied all files in the redist directory to the Netscape java\classes
directory.




David Orriss Jr. wrote:

> Andreas Meyer <am@hackenberg.de> wrote:
>
> >java.lang.NoClassDefFoundError
>
> Hello Andreas,
>
> What browser are you running?  What are the first three lines that appear in the
> Java Console.  Normally error message means that you're using the wrong JDK, but
> in this case, it may just mean that you don't have the JRun JAR files in the
> proper locations.  You might want to email Live Software about this problem.
>
>  David Orriss Jr. *TeamB*
>  http://www.davenet.net/
>
>  Any opinions expressed here are solely my own.  Inprise may own them,
>  since it's their news server, but that doesn't mean they agree with
>  them.
Technical Details
Message-ID: <362F1F23.6103EF84@hackenberg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <362DEC3E.D7EBD16@hackenberg.de> <362fd664.4764871@forums.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5c5,896be5901e4bedf9
X-Google-Attributes: gidff5c5,public
From: Andreas Meyer <am@hackenberg.de>
Subject: Re: HELP ! java.lang.NoClassDefFoundError during debugging session
Date: 1998/10/22
Message-ID: <362F1F23.6103EF84@hackenberg.de>
X-Deja-AN: 403897065
Content-Transfer-Encoding: 7bit
References: <362DEC3E.D7EBD16@hackenberg.de> <362fd664.4764871@forums.inprise.com>
To: "David Orriss Jr." <davidorrissjr@hotmail.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.debugger