应用程序不会写入MS DB [英] Application wont write to MS DB

查看:168
本文介绍了应用程序不会写入MS DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Java桌面应用程序,它可以读取并应该写入Microsoft Access数据库。

I have created a Java desktop application which reads and should write to a Microsoft Access DB.

在将应用程序转换为 .JAR 之前,该应用程序正常工作,之后它只能从数据库读取但是不写信给它。

The application works fine before I convert it to a .JAR after which it can only read from the DB but doesn't write to it.

关于如何解决这个问题的任何想法?

Any ideas on how to solve this issue?

推荐答案

我我猜你已经把数据库文件包含在JAR文件中了。简单地说,虽然您可以从JAR内部获取读取文件的URL,但您无法写入。你需要从JAR中取出数据库(MDB文件?),如果要写入它,就把它放在实际的文件系统上。

I am guessing you've included the database file in the JAR file itself. Simply put, although you can get a URL to read a file from inside a JAR, you can't write to one. You're going to need to take the database (MDB file?) out of the JAR and put it in on the actual filesystem if you want to write to it.

这篇关于应用程序不会写入MS DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆