The Artima Developer Community
Sponsored Link

Java Answers Forum
Can't run Java Jackcess

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
hans

Posts: 2
Nickname: hans6fakie
Registered: Jun, 2005

Can't run Java Jackcess Posted: Jun 10, 2005 12:50 AM
Reply to this message Reply
Advertisement
Hello,
i tried to run the example code from http://jackcess.sourceforge.net/:
Creating a new table and writing data into it:


Database db = Database.create(new File("new.mdb"));
Column a = new Column();
a.setName("a");
a.setSQLType(Types.INTEGER);
Column b = new Column();
b.setName("b");
b.setSQLType(Types.VARCHAR);
db.createTable("NewTable ", Arrays.asList(a, b));
Table newTable = db.getTable("NewTable");
newTable.addRow(new Object[] {1, "foo"});


but i got an NoClassDefFoundError Exception. I added the jackcess.jar from http://jackcess.sourceforge.net/, so i must run. I have no idea why this program isn`t running. Can anyone help?

Topic: primitiveType[1] Confusing Java POS Previous Topic   Next Topic Topic: length variable in arrays

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use