🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #153860

Re: jaybird

#153860
From: Tomek Kańka
Date: Thu, 05 Sep 2013 12:30
29 lines
1656 bytes
inst4nce <inst4nce@gazeta.pl> napisał(a)
> Mam taki kawałek kodu:
>
> try {
>    System.out.println("Ladowanie sterownika JDBC...");
>    Class.forName("org.firebirdsql.jdbc.FBDriver");
> }
> catch (Exception e) {
>    System.out.println("Blad ladowania sterownika JDBC");
>    System.out.println(e.getMessage());
>    e.printStackTrace();
>    return;
> }
>
> Niestety program łapie wyjątek:
>    Blad ladowania sterownika JDBC
>    org.firebirdsql.jdbc.FBDriver
>    java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
>
> Plik jaybird-full-2.2.3.jar wrzuciłem do tego samego folderu co mój 
> główny program (klasa zawierająca metodę main())
>
> Co robię nie tak, że driver jdbc do firebirda nie ładuje się?

Muszisz tego jara dodać do classpath.
Jak uruchamiasz? Jeśli z lini komend to java -jar jaybird...jar ....

-- 
Tomek
Technical Details
Message-ID: <slrnl2gubc.2f9.tom@tv2.dom.local>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <52286d1d$0$1258$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Tomek Kańka <tom@tomkan.eu.org>
Newsgroups: pl.comp.lang.java
Subject: Re: jaybird
Date: Thu, 5 Sep 2013 12:30:36 +0000 (UTC)
Organization: ATMAN - ATM S.A.
Lines: 31
Message-ID: <slrnl2gubc.2f9.tom@tv2.dom.local>
References: <52286d1d$0$1258$65785112@news.neostrada.pl>
NNTP-Posting-Host: host-80-238-125-99.jmdi.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1378384236 2316 80.238.125.99 (5 Sep 2013 12:30:36 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 5 Sep 2013 12:30:36 +0000 (UTC)
User-Agent: slrn/1.0.1 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit