[sane-devel] Possible Fujitsu Driver Bug
Chris Chesney
cchesney at go-integral.com
Fri Oct 24 05:54:01 BST 2003
Hi Henning,
We've created a beta version of a web-based document management system that we hope to provide as an open source solution if the product matures. The solution is Java based and our intent was to use the JNI wrappers provided in the japi directory as means to control the backend scanning. We're learning as we go, but this is what we've done so far:
1. Fixed a bug in Sane.c - Line 268 should be
jclass stringClass = (*env)->FindClass(env, "java/lang/String");
*NOT*
jclass stringClass = (*env)->FindClass(env, "String");
2. Added a package statement to the following 5 java classes. For our purposes, I called the package japi. It would be more appropriate to follow the typical package naming convention and would ask for a suggestion from you if you want this committed to the project.
- SaneDevice.java
- SaneOption.java
- SaneParameters.java
- SaneRange.java
- Sane.java
3. By making these files part of a package, Sane.c requires an additional change to make the object references fully qualified.
We haven't done anything with the Swing app that is included in the japi directory because we lack the experience in Swing and it isn't necessary for the project we're working on. If your interested in separating the wrapper code from the example java apps, we're almost there and would be happy to work with you to get it committed. If you were looking for more of a complete overhaul of the entire directory, we're probably not up for the challenge.
Let me know how you want to proceed.
Thanks,
Chris
-----Original Message-----
From: Henning Meier-Geinitz [mailto:henning at meier-geinitz.de]
Sent: Thu 10/16/2003 10:40 AM
To: sane-devel at lists.alioth.debian.org
Cc:
Subject: Re: [sane-devel] Possible Fujitsu Driver Bug
Hi,
On Wed, Oct 15, 2003 at 03:52:03PM -0500, Chris Chesney wrote:
> As a side note, I've modified the japi wrapper code to be part of a
> package so it can be used by other java packages and would be willing to
> contribute that as well if you are interested.
What have you changed on that code? Updated it to get it running?
I'm interested. That codes has been in need of fixing for years.
Bye,
Henning
_______________________________________________
sane-devel mailing list
sane-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
More information about the sane-devel
mailing list