Responsive Ad Area

Share This Post

test

Program running in intellij but when running from jar I get : java.net.MalformedURLException: no protocol

When connecting to an internal sqlite database in my java(1.8) program, it runs fine in intelliJ but when trying from a the jar I get:

java.sql.SQLException: resource null not found: java.net.MalformedURLException: no protocol: null


java.sql.SQLException: resource medDBInternal.db not found:java.net.MalformedURLException:
no protocol: medDBInternal.db

I’m using the following statement:

"jdbc:sqlite::resource:medDBInternal.db");

PS: I can find the database in the jar file and I ‘m using sqlite-JDBC-3.23.1


Program running in intellij but when running from jar I get : java.net.MalformedURLException: no protocol
Program running in intellij but when running from jar I get : java.net.MalformedURLException: no protocol
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar