简体   繁体   English

类“ SynchronousHelper”的签名者信息与同一包中其他类的签名者信息不匹配

[英]class “SynchronousHelper”'s signer information does not match signer information of other classes in the same package

I already know that there are other topics about this but i can't find the answer to my problems. 我已经知道关于此还有其他主题,但是我找不到解决问题的答案。 I've downloaded morena's package to use Twain and WIA api, because i need to make a java application which use local scanner to do document's scan. 我已经下载了morena的软件包以使用Twain和WIA api,因为我需要制作一个使用本地扫描程序进行文档扫描的java应用程序。 I have one single jar with all the classes i need and I've put this in my project folder correctly (I use net beans to program), and I've done a test application that allow to use my epson scanner and do the scan. 我有一个罐子,其中包含我需要的所有类,并且已将其正确放置在项目文件夹中(我使用net bean进行编程),并且已经完成了一个测试应用程序,该应用程序允许使用我的epson扫描仪并进行扫描。 When i run this error appears: Exception in thread "main" java.lang.SecurityException: class "SynchronousHelper"'s signer information does not match signer information of other classes in the same package. 当我运行此错误时,将出现:线程“ main”中的异常java.lang.SecurityException:类“ SynchronousHelper”的签名者信息与同一包中其他类的签名者信息不匹配。

In the other topics, some users suggest to open the manifest and delete all the signature but when i do this, net beans mark an error because there aren't signatures. 在其他主题中,一些用户建议打开清单并删除所有签名,但是当我这样做时,net bean会标记错误,因为没有签名。 Someone has an idea? 有人有主意吗? Sorry if there are some grammars mistakes but i'm italian. 抱歉,如果有一些语法错误,但我是意大利人。 thanks to everyone. 谢谢大家。

import eu.gnome.morena.*;
import java.awt.image.BufferedImage;
import java.util.List;

public class main {
    public static void main(String[] args) throws Exception {
      Manager manager = Manager.getInstance();
       //Vector that contains the references to all my local scanners
       List<? extends Device> devices = manager.listDevices();
        //the position [0] contains my epson scanner
     Device device = (Device) devices.get(0);
     if (device instanceof Scanner) {

     Scanner scanner = (Scanner) device;
     scanner.setMode(Scanner.RGB_8);
     scanner.setResolution(75);
     scanner.setFrame(100, 100, 500, 500);

     } else if (device instanceof Camera) {

     }

     //SynchronousHelper--> the class that make problems 
     BufferedImage bimage = SynchronousHelper.scanImage(device);


    System.out.println("Informazioni del file scannerizzato: dimensioni=(" +              bimage.getWidth() + ", " + bimage.getHeight() + ")   bit mode=" + bimage.getColorModel().getPixelSize());
     Thread.sleep(30000);
}
}

The SynchronousHelper.java file should be in the morena folder that you downloaded under examples. SynchronousHelper.java文件应该位于示例中下载的morena文件夹中。 You can add this to your project, or copy the methods you need from there. 您可以将其添加到项目中,或从那里复制所需的方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 签名者信息与同一个其他类的签名者信息不匹配 package - Signer information does not match signer information of other classes in the same package “class”org.bouncycastle.asn1.ASN1Primitive“的签名者信息与使用Itext的同一个包中的其他类的签名者信息不匹配 - 'class “org.bouncycastle.asn1.ASN1Primitive”'s signer information does not match signer information of other classes in the same package' using Itext class “org.bouncycastle.asn1.DEREncodable”的签名者信息与同一类中其他类的签名者信息不匹配 package - class "org.bouncycastle.asn1.DEREncodable"'s signer information does not match signer information of other classes in the same package java.lang.SecurityException:类“XYZ”的签名者信息与同一包中其他类的签名者信息不匹配 - java.lang.SecurityException: class “XYZ”'s signer information does not match signer information of other classes in the same package 类“ org.bouncycastle.asn1.ASN1ObjectIdentifier”的签名者信息与同一包中其他类的签名者信息不匹配 - class “org.bouncycastle.asn1.ASN1ObjectIdentifier”'s signer information does not match signer information of other classes in the same package java.lang.SecurityException:签名者信息与同一包中其他类的签名者信息不匹配 - java.lang.SecurityException: signer information does not match signer information of other classes in the same package JFace签名者信息与同一package中其他类的签名者信息不匹配 - JFace signer information does not match signer information of other classes in the same package Hamcrest Matcher 签名者信息与同一包中其他类的签名者信息不匹配 - Hamcrest Matcher signer information does not match signer information of other classes in the same package 启动程序后CGLIB错误(签名者信息与同一软件包中其他类的签名者信息不匹配) - CGLIB error after launching program (signer information does not match signer information of other classes in the same package) java.lang.SecurityException: signer information does not match other classes in the same package in PowerMock 中的签名者信息与其他类的签名者信息不匹配 - java.lang.SecurityException: signer information does not match signer information of other classes in the same package in PowerMock
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM