Hi,
using JDeveloper 10.1.3.3. with Firebird database.
I've created ADF BC application, added firebird jar to project.
I am instantiating driver for database this way:
Class.forName("org.firebirdsql.jdbc.FBDriver");
This is my connection string:
jdbc:firebirdsql:127.0.0.1:test
, where test is firebird alias for C:\db\test.fdb
Application works fine in JDeveloper. I've created deployment profile, added Main class,
created Dependency Analysis where I've included all libraries shown in Contributors and have chosen "Include Contents in Output". All jars in Profile Dependencies are chosen.
When I deploy application, and run it with "java -jar app.jar", I get next error:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
When I choose "Include JAR Files in Output", I get next error:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdeveloper/lay
out/XYLayout
at com.firm.manord.FormMain.$init$(FormMain.java:84)
at com.firm.manord.FormMain.<init>(FormMain.java:152)
at com.firm.manord.FormMain.main(FormMain.java:568)
When I choose "Add to Dependency Analyzer Classpath", I get next error:
java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
These are jars included in Dependency Analysis -> Libraries:
JDeveloper Runtime -> jdev-rt.jar
Jaybird-2.1.2.jar -> jaybird-full-2.1.2.jar
Can anyone help me?
Thanks in advance.