Mercurial > hg > monetdb-java
changeset 545:79393647d7fb onclient
Call Class.forName("...MonetDriver") from main() in OnClientTester
Otherwise my test program doesn't run anymore. It used to, I don't know what changed.
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Tue, 14 Sep 2021 09:20:41 +0200 (2021-09-14) |
parents | c71ce17fa724 |
children | eb7ecfbb48f2 |
files | tests/OnClientTester.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/OnClientTester.java +++ b/tests/OnClientTester.java @@ -20,12 +20,15 @@ public final class OnClientTester extend super(jdbcUrl, verbosity, watchDogEnabled); } - public static void main(String[] args) throws SQLException, NoSuchMethodException { + public static void main(String[] args) throws SQLException, NoSuchMethodException, ClassNotFoundException { String jdbcUrl = null; String requiredPrefix = null; int verbosity = 0; boolean watchDogEnabled = true; + // Don't know why I need this all of a sudden.. is it only on my system? + Class.forName("org.monetdb.jdbc.MonetDriver"); + for (String arg : args) { if (arg.equals("-v")) verbosity++;