This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14309 - Loading database driver fails in debug, works in release
Summary: Loading database driver fails in debug, works in release
Status: CLOSED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-09 20:18 UTC by Alex Gurman
Modified: 2001-08-24 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Gurman 2001-08-09 20:18:01 UTC
I have installed InstantDB database. When I try to load their driver with 
Class.forName("org.enhydra.instantdb.jdbc.idbDriver"), it works Ok if I'm just 
running my project but fails with java.lang.ClassNotFoundException: 
org/enhydra/instantdb/jdbc/idbDriver if I'm running in debug mode.
I have tried adding the relevant jar to the CLASSPATH and copying it to 
forte4j/lib/ext. Nothing helps.
Comment 1 Alex Gurman 2001-08-09 20:22:21 UTC
This is relevant for both Comunity and Enterprize editions. 
Comment 2 Daniel Prusa 2001-08-13 13:53:16 UTC
I think that this issue is a classpath problem in general rather than 
a problem related to loading classes in debug mode.

Check settings of the used debugger type. Go to 
Project/Settings/Debugger Types/Default Debugging/Properties, edit 
property External Process. Classpath parameter defaulty looks like 
-classpath {q}{filesystems}{q}
{filesystems} tag is replaced by paths corresponding to mounted 
directories. Add {library} tag to include system libraries (including 
jars in lib/ext).

You can add the desired path into classpath parameter directly as 
well or it is possible to mount driver's jar to became part of 
{filesystems} tag ...
Comment 3 Jan Stola 2001-08-24 08:45:17 UTC
Worksforme -> Closed.