Java general questions

General information about Neurotechnology and its software

Re: Java general questions

Postby Martynas » Dec 21, 2011 13:10

jorgevaron wrote:Hello Martynas, us are working with the console example enroll-finger-from-scanner, from tutorials.biometrics.java. this example runs perfetly in us windows machine.


Could you compile the application on Linux? Also please ensure that the application is able to find all required *.so files, by defining the LD_LIBRARY_PATH when launching it and that the path defined in LD_LIBRARY_PATH has a FScanners folder.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Martynas » Dec 21, 2011 13:14

Jorge wrote:Hello, I am trying on Ubuntu the Java AbisSample for face detection.

First, I have the following error:

Code: Select all
java.lang.UnsatisfiedLinkError: Unable to load library 'NCore': libNCore.so: cannot open shared ob...


And, as specify before, I have solved it by executing:

Code: Select all
sudo LD_LIBRARY_PATH=../../Lib/Linux_x86 sh ./abis-sample.sh


But now, I have the following error:

Code: Select all
Obtaining licenses from server 192.168.100.10:16669
Biometrics.FingerExtraction: not obtained
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x74dae3d5, pid=17684, tid=1968753520
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# C  [jna5617971544785359809.tmp+0xd3d5]
#
# An error report file with more information is saved as:
# /home/likewise-open/LOCAL/jhortelano/NeuroTechnology/SDK/Bin/Java/hs_err_pid17684.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted


As I can read, it fails when try to obtain the first license of the list (fingerprint). The information do not give to me any clue of how to solve the problem. Any ideas are welcome.


Hello Jorge,

I have asked you once to provide me the SDK, which you are using, revision number, but you didn't. Could you provide it now? It will help me to identify the exact version of the SDK you are using. so i will try to reproduce the issue on our side.

Code: Select all
Obtaining licenses from server 192.168.100.10:16669

I see that you are trying to obtain the license from the ip address 192.168.100.10 using the port 16669. Is the Neurotechnology licensing service running on the 192.168.100.10 configured to use the port 16669 too? By default it is 5000.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Jorge » Dec 21, 2011 15:36

Hello Martynas,

My revision number is: 81229

Regarding to the port of the server, yes, you are right. The port was wrong. Now it works!
Thanks.
Jorge
 
Posts: 4
Joined: Dec 15, 2011 09:01

Re: Java general questions

Postby jorgevaron » Dec 21, 2011 19:56

Hello Martynas, The problem was solved, just had to run the eclipse as sudo.

Our company will acquire the Finger print Concurrent License.

Where we can obtain technical documentation on this subject?

Thanks in advance
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Dec 22, 2011 12:20

Jorge wrote:Hello Martynas,

My revision number is: 81229

Regarding to the port of the server, yes, you are right. The port was wrong. Now it works!
Thanks.


Hello Jorge,

actually there should be no crash when the license is not obtained - my colleague was successful in reproducing of this issue and he reported it to our developers. the fix should be included in the next update of the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Martynas » Dec 22, 2011 12:37

jorgevaron wrote:Hello Martynas, The problem was solved, just had to run the eclipse as sudo.

Our company will acquire the Finger print Concurrent License.

Where we can obtain technical documentation on this subject?

Thanks in advance


Hi,

nice to hear that you have found the solution.
What regards the concurrent license - we do not have any technical document on it. I will explain it below in this post.

The main difference between the single computer license and the concurrent license is that the concurrent license does not lock to the customer computer, which obtained the license, for some time period (single computer license obtained from the "license server" is locked to obtained client machine up to 8 hours). It becomes available to other clients, as soon as the client, obtained it, releases it.
So in this case if the process, which needs the license on the client side, is not long, it is possible to use a one concurrent license on several computers. i.e. if you have 5 client applications and one concurrent license. i..e the application needs the license only for the fingerprint scanning and template extraction. Then when all clients tried to obtain the concurrent license, one of the clients obtains it and uses. Other clients waits while the license will be released. once the first client releases the license, other clients can obtain it.
Concurrent license should be installed on computer, which will be accessible by other client computers via network.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 03, 2012 15:40

Hello, in ubuntu 10.04, firefox 3.6.3 and java 1.7.0. I have a signed applet for VeriFinger, it runs ok in eclipse, but in firefox an error occurs when executing the statement: if (!Nlicense.obtainComponents (....

The LD_LIBRARY_PATH = /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial/Lib/Linux_x86/, the same for the PATH variable.

When running the line:
if (!Nlicense.obtainComponents( ..
I captured the following error:

Code: Select all
Unable to load library 'NCore':libNCore.so


libNCore.so resides in /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial/Lib/Linux_x86/

thanks in advance
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 04, 2012 13:14

jorgevaron wrote:Hello, in ubuntu 10.04, firefox 3.6.3 and java 1.7.0. I have a signed applet for VeriFinger, it runs ok in eclipse, but in firefox an error occurs when executing the statement: if (!Nlicense.obtainComponents (....

Hi,

which revision of the SDK do you use? SDK revision number can be found in SDKRevision.txt.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 04, 2012 13:38

Hi Martynas, Product revision number: 80462, in file NeurotecBiometricSDKTrialRevision.txt.

Note: the applet runs ok in eclipse linux ubuntu.

Thanks.
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 04, 2012 15:04

jorgevaron wrote:Hi Martynas, Product revision number: 80462, in file NeurotecBiometricSDKTrialRevision.txt.

Note: the applet runs ok in eclipse linux ubuntu.

Thanks.

Hi,

there was an update of the SDK on December 21, 2011 (revision 82018). Please download it and try it.
Is it your own application, or you are compiling the provided samples in the SDK?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 04, 2012 16:15

Hi Martynas,

Us created this applet based on the tutorial console /Neurotec_Biometric_4_2_SDK_Trial/Tutorials/Biometrics/Java/enroll-finger-from-scanner.java

We could not run the applet examples contained in the trial, so we chose to create an applet based on console tutorial.

Initially we created this applet in Windows XP and it worked perfectly on eclipse and firefox.

This also works correctly in the eclipse linux ubuntu.

Thanks in advance.
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 05, 2012 13:48

jorgevaron wrote:Hi Martynas,

Us created this applet based on the tutorial console /Neurotec_Biometric_4_2_SDK_Trial/Tutorials/Biometrics/Java/enroll-finger-from-scanner.java

We could not run the applet examples contained in the trial, so we chose to create an applet based on console tutorial.

Initially we created this applet in Windows XP and it worked perfectly on eclipse and firefox.

This also works correctly in the eclipse linux ubuntu.

Thanks in advance.

Hello,

I'm trying to reproduce this issue on our side. so it would be very useful if you could provide steps how you compiled the applet.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 05, 2012 14:40

Hi Martynas, this is all our test code,

Please: test you the ENROLLAR buttom only.

Code: Select all
package csc;



import java.io.IOException;

import java.nio.ByteBuffer;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.sql.SQLException;

import java.util.EnumSet;

import java.util.Scanner;

import java.lang.String;



import javax.swing.JApplet;



import com.neurotec.biometrics.NFEExtractionStatus;

import com.neurotec.biometrics.NFExtractor;

import com.neurotec.biometrics.NFImpressionType;

import com.neurotec.biometrics.NFPosition;

import com.neurotec.biometrics.NFRecord;

import com.neurotec.biometrics.NMatcher;

import com.neurotec.devices.NDeviceManager;

import com.neurotec.devices.NDeviceType;

import com.neurotec.devices.NFScanner;

import com.neurotec.images.NGrayscaleImage;

import com.neurotec.images.NImage;

import com.neurotec.licensing.NLicense;

import com.neurotec.samples.util.LibraryManager;

import com.neurotec.samples.util.Utils;



import java.applet.Applet;

import java.awt.*;




import javax.swing.*;

import java.awt.event.*;




public class enrollar extends JApplet {



   private static Connection dbConnection;



   /**Consultas preparadas**/

   private static PreparedStatement guardarStmt;

   private static PreparedStatement identificarStmt;

   private static PreparedStatement verificarStmt;



    /** Initializes the applet appletsimple */

    public void init() {

        initComponents();

    }

   

    /** This method is called from within the init() method to

     * initialize the form.

     * WARNING: Do NOT modify this code. The content of this method is

     * always regenerated by the Form Editor.

     */

    private void initComponents() {

       setLayout(null);

       

        label1 = new java.awt.Label();

        label1.setBounds(20, 20, 180, 30);

       

        //mensajeenviar = new java.awt.TextArea();

        cedula = new TextField("", 100);

        cedula.setBounds(210, 20, 100, 30);

       

        label2 = new java.awt.Label();

        label2.setBounds(20, 60, 150, 30);

       

        labelpruebas = new java.awt.Label();

        labelpruebas.setBounds( 0, 0, 500, 30);

       

        //mensajerecibir = new java.awt.TextArea();

        //mensajerecibir.setBounds(20, 80, 100, 30);

        nombre = new TextField("", 100);

        nombre.setBounds(210, 60, 100, 30);

        //label3 = new java.awt.Label();

       

        botonenviar = new java.awt.Button();

        botonenviar.setBounds(20, 100, 100, 30);

       

        botonVerifica = new java.awt.Button();

        botonVerifica.setBounds(130, 100, 100, 30);

        botonVerifica.setLabel("Enrollar");



        //setLayout(new java.awt.GridLayout(5, 1, 2, 5));

       

        //label1.setAlignment(java.awt.Label.CENTER);

        //label1.setForeground(new java.awt.Color(51, 51, 255));

        label1.setText("Introduzca el Numero de Cedula");

       

        labelpruebas.setText("Listo");

        //add(label1);



        //add(mensajeenviar);



        //label2.setAlignment(java.awt.Label.CENTER);

        //label2.setForeground(new java.awt.Color(255, 0, 0));

        label2.setText("Nombre de la Persona");

       

        //add(label2);

               

        //add(mensajerecibir);

               

        botonenviar.setLabel("Enrollar");

        botonVerifica.setLabel("Verificar");

       

        add(label1);

        add(label2);

        add(labelpruebas);

        add(cedula);

        add(nombre);

        add(botonenviar);

        add(botonVerifica);

       

        /*

        Label3 = new JLabel();

        Label3.setBounds(210, 100, 180, 250);

        Label3.setText("1111");

      add(Label3);

        */

       

        /*imagen = new ImageIcon("c:\\imagenhuella.bmp");

       Label3 = new JLabel();

       Label3.setIcon(imagen);

       Label3.setBounds(210, 100, 180, 250);

       add(Label3);

       Label3.setText("1111");

        */

       this.repaint();

      

        botonenviar.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {

                botonenviarActionPerformed(evt);

            }

        });

       

        botonVerifica.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {

               botonVerificaActionPerformed(evt);

            }

        });


        //add(botonenviar);

       

        /*label3.setAlignment(java.awt.Label.CENTER);

        label3.setForeground(new java.awt.Color(255, 0, 0));

        label3.setText("Imagen");

        add(label3);

        */


    }

   

    private void botonVerificaActionPerformed(java.awt.event.ActionEvent evt){

       final String components = "Biometrics.FingerExtraction,Devices.FingerScanners";


       String s_cedula = cedula.getText();



       //this.showStatus("PASE 1");

       LibraryManager.initLibraryPath();

       //this.showStatus("PASE 2");

       //this.showStatus("PASE 3");

       

      try {

         if (!NLicense.obtainComponents("/local", 5000, components)) {

            //System.out.format("Could not obtain licenses for components: %s%n", components);

            return;

         }

         

          //this.showStatus("PASE 4");



         System.out.println("loading scanners ...");

         NDeviceManager deviceManager = new NDeviceManager(EnumSet.of(NDeviceType.FSCANNER), true, false);



         int deviceCount = deviceManager.getDevices().size();

         if(deviceCount > 0) {

            //System.out.format("found %d scanner(s)%n", deviceCount);

         }

         else {

            System.out.println("no scanners found, exiting ...");

            return;

         }



         if(deviceCount > 1)

            System.out.println("please select scammer from list: ");



         int i = 0;

         for(i = 0; i < deviceCount; i++) {

            //System.out.format("%d) %s%n", i + 1, deviceManager.getDevices().get(i).getDisplayName());

         }



         if(deviceCount > 1)

         {

            System.out.print("please eneter device index: ");

            Scanner scanner = new Scanner(System.in);

            i = scanner.nextInt();

            if (i > deviceCount || i < 1) {

               System.out.println("Incorrect index provided, exiting ...");

               return;

            }

         }

         i--;



         NFScanner device = (NFScanner)deviceManager.getDevices().get(i);

         //System.out.format("captruing from %s device. please put your finger on device:%n", device.getDisplayName());

         NImage capturedImage = device.capture();

         if(capturedImage == null){

            //System.out.println("failed to capture image. exiting ...");

            return;

         }

                           

         //capturedImage.save(args[0]);

         //Syst7em.out.println("image saved successfully");



         NFRecord record = extractRecordFromImage(capturedImage.toGrayscale());

         

         /*if(record != null) {

            System.out.format("saving template to file %s%n", args[1]);

            Utils.writeAllBytes(args[1], record.save());

            System.out.println("template saved successfully");

         }*/

         

         try {

               //Establece los valores para la sentencia SQL

            verificarStmt.setString(1, s_cedula);

            //Ejecuta la sentencia

             ResultSet rs = verificarStmt.executeQuery();      

            

             if (rs.next()){

                    //Lee la plantilla de la base de datos

                    byte templateBuffer[] = rs.getBytes("template");

                    //Crea una nueva plantilla

                    ByteBuffer buffer = ByteBuffer.wrap(templateBuffer);

                    

                    //buffer.put(templateBuffer);

                    

                    NFRecord record2 = new NFRecord(buffer);

                    

                    //compara las plantilas (actual vs bd)                    

                    

                    NMatcher matcher = new NMatcher();

                    int score = matcher.verify(record.save(), record2.save());

                                             

                    System.out.print("score = ");

                    System.out.println(score);

                    if(score > 0){

                     //System.out.println("templates matched");

                       this.showStatus("Plantilla Encontrada");

                    }

                    else{

                     //System.out.println("templates not matched");

                       this.showStatus("Plantilla No Encontrada");

                    }



                    

                } else {

                    

                }



         } catch (SQLException ex) {

               //Si ocurre un error lo indica en la consola

            System.err.println("Error al Consultar los datos de la huella.");

            ex.printStackTrace();

         }

                  

      }

      catch(Exception e) {

         System.out.println(e);

      }

      finally {

         try {

            NLicense.releaseComponents(components);

         }

         catch(IOException ex) {

            System.out.println(ex);

         }

      }

       

    }



   private void botonenviarActionPerformed(java.awt.event.ActionEvent evt) {

       final String components = "Biometrics.FingerExtraction,Devices.FingerScanners";

   

       String s_cedula = cedula.getText();

       String s_nombre = nombre.getText();

       

       LibraryManager.initLibraryPath();

       labelpruebas.setText("PASE 2");

       repaint();

       

       labelpruebas.setText("PASE 3");

       

       repaint();

       try {

          labelpruebas.setText("LICENCIA 1c");

           repaint();

           try{

         if (!NLicense.obtainComponents("/local", 5000, components)) {

            //System.out.format("Could not obtain licenses for components: %s%n", components);

            this.showStatus("Could not obtain licenses for components");

            labelpruebas.setText("Could not obtain licenses for components");

             repaint();

            return;

         }

           } catch (Throwable t) {

            // TODO: handle exception

              labelpruebas.setText("Mensaje 1c:"+t.getCause().getMessage());

              Thread.sleep(30000);

               this.showStatus(t.getMessage());   

         }

           //Thread.sleep(30000);

         labelpruebas.setText("PASE LICENCIA");

           repaint();

         

         this.showStatus("Cargando Escanner");

         //System.out.println("loading scanners ...");

         NDeviceManager deviceManager = new NDeviceManager(EnumSet.of(NDeviceType.FSCANNER), true, false);



         int deviceCount = deviceManager.getDevices().size();

         if(deviceCount > 0) {

            this.showStatus("Escanner Futronic.");

            //System.out.format("found %d scanner(s)%n", deviceCount);

         }

         else {

            //System.out.println("no scanners found, exiting ...");

            this.showStatus("no scanners found, exiting ...");

            return;

         }



         //if(deviceCount > 1)

         //   System.out.println("please select scammer from list: ");



         int i = 0;

         

         for(i = 0; i < deviceCount; i++) {

            //System.out.format("%d) %s%n", i + 1, deviceManager.getDevices().get(i).getDisplayName());

         }

         

         if(deviceCount > 1)

         {

            System.out.print("please eneter device index: ");

            Scanner scanner = new Scanner(System.in);

            i = scanner.nextInt();

            if (i > deviceCount || i < 1) {

               System.out.println("Incorrect index provided, exiting ...");

               return;

            }

         }

         i--;


         NFScanner device = (NFScanner)deviceManager.getDevices().get(i);

         //System.out.format("captruing from %s device. please put your finger on device:%n", device.getDisplayName());

         this.showStatus("Coloque Dedo en el lector");

         NImage capturedImage = device.capture();

         if(capturedImage == null){

            System.out.println("failed to capture image. exiting ...");

            return;

         }

                  

         //System.out.format("saving image to file %s%n", args[0]);

         String archivo = "c:\\huella" + s_cedula + ".JPG";

         

         capturedImage.save(archivo);

         System.out.println("image saved successfully");

         

         Label3 = new JLabel();

           Label3.setBounds(230, 100, 180, 250);          

         add(Label3);

         

         ImageIcon fot = new ImageIcon("c:\\huella" + s_cedula + ".JPG");

          

           ImageIcon icono = new ImageIcon(fot.getImage().getScaledInstance(Label3.getWidth(), Label3.getHeight(), Image.SCALE_DEFAULT));

          

           icono.getImage().flush();

          

           Label3.setIcon(icono);

         

         //imagen = new ImageIcon(getClass().getResource(archivo)).getImage();

         

         //JPanelConFondo = new JPanel();

         //JPanelConFondo.

         //label3 = new java.awt.Label(imagen);

         //JLabel label3 = new JLabel(imagen);

         //label3.setBounds(210, 100, 150, 200);

         //label3.setText("Imagen");

         

         //label3 = new java.awt.Label(imagen);

         //label3 = new java.awt.Label(imagen);

         //JLabel label3 = new JLabel(imagen);

         //label3.setBounds(210, 100, 150, 200);

         //label3.setText("Imagen");

         

         //add(label3);

         

          /* 

          imagen = new ImageIcon(archivo);

          Label3 = new JLabel();

          Label3.setIcon(imagen);

          Label3.setBounds(210, 100, 150, 200);

          add(Label3);

         */



         NFRecord record = extractRecordFromImage(capturedImage.toGrayscale());

         

         /*if(record != null) {

            System.out.format("saving template to file %s%n", args[1]);

            Utils.writeAllBytes(args[1], record.save());

            System.out.println("template saved successfully");

         }*/

         

         ByteBuffer buffer = record.save();

         byte[] bytes = new byte[buffer.capacity()];

         buffer.clear();

         buffer.get(bytes, 0, bytes.length);

         

          try {

                  //Establece los valores para la sentencia SQL

              guardarStmt.setString(1, s_cedula);             

              guardarStmt.setBytes(2, bytes) ;

              guardarStmt.setString(3, s_cedula);

              guardarStmt.setString(4, s_nombre);

              //Ejecuta la sentencia

              guardarStmt.execute();

              this.showStatus("Persona Enrolada con Exito");

              dbConnection.close();



          } catch (SQLException ex) {

                  //Si ocurre un error lo indica en la consola

              System.err.println("Error al guardar los datos de la huella.");

              ex.printStackTrace();

          }

         

      }

      catch(Exception e) {

         System.out.println(e);

      }

      finally {

         try {

            NLicense.releaseComponents(components);

         }

         catch(IOException ex) {

            System.out.println(ex);

         }

      }

                 

    }

   

    public static NFRecord extractRecordFromImage(NGrayscaleImage image) {

      NFExtractor extractor = new NFExtractor();

      NFExtractor.ExtractResult extractorResult = extractor.extract(image, NFPosition.UNKNOWN, NFImpressionType.LIVE_SCAN_PLAIN);

      if(extractorResult.getStatus() != NFEExtractionStatus.TEMPLATE_CREATED) {

         //7System.out.format("extraction status indicates failure, reason: %s%n", extractorResult.getStatus().toString());

         return null;

      }



      return extractorResult.getRecord();

   }

   

    public static NFRecord extractTemplate(String imageFileName) throws IOException {

      NImage image = NImage.fromFile(imageFileName);

      if(image.isResolutionIsAspectRatio() || image.getHorzResolution() < 250 || image.getVertResolution() < 250) {

         image.setResolutionIsAspectRatio(false);

         image.setHorzResolution(500);

         image.setVertResolution(500);

      }



      NGrayscaleImage grayscaleImage = image.toGrayscale();

      NFExtractor extractor = new NFExtractor();

      NFExtractor.ExtractResult extractorResult = extractor.extract(grayscaleImage, NFPosition.UNKNOWN, NFImpressionType.LIVE_SCAN_PLAIN);

      if(extractorResult.getStatus() != NFEExtractionStatus.TEMPLATE_CREATED) {

         System.out.print("extraction status indicates failure, reason: ");

         System.out.println(extractorResult.getStatus().toString());

         return null;

      }



      return extractorResult.getRecord();

   }

   

    // Variables declaration - do not modify

    private java.awt.Button botonenviar;

    private java.awt.Button botonVerifica;

    private java.awt.Label label1;

    private java.awt.Label label2;

    private java.awt.Label labelpruebas;

    //private java.awt.Label label3;

    //private java.awt.TextArea mensajeenviar;

    //private java.awt.TextArea mensajerecibir;

    private java.awt.TextField cedula;

    private ImageIcon imagen;

    private JLabel Label3;

    private java.awt.TextField nombre;

    // End of variables declaration

   

}
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby jorgevaron » Jan 05, 2012 20:17

Hi Martynas,
I solved the above problem by placing LD_LYBRARY_PATH in ~ /. profile, now the problem is when the instruction
Code: Select all
int deviceCount = deviceManager.getDevices().size();
         if(deviceCount > 0) {

is executed, it returns 0
Code: Select all
   this.showStatus("no scanners found, exiting ...");


In eclipse the enrollment is completed without problems.
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 06, 2012 11:44

jorgevaron wrote:now the problem is when the instruction
Code: Select all
int deviceCount = deviceManager.getDevices().size();
         if(deviceCount > 0) {

is executed, it returns 0
...

Hello,

please check if the LD_LIBRARY_PATH is set to the path where the FScanners folder is located.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 06, 2012 19:24

HI Martynas.
Yes the folder FScanner exist in the LD_LIBRARY_PATH.

Besides the eclipse's working directory is identical to LD_LIBRARY_PATH, and the applet can complete ok the enrollment on the eclipse.
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 09, 2012 13:34

jorgevaron wrote:HI Martynas.
Yes the folder FScanner exist in the LD_LIBRARY_PATH.

Besides the eclipse's working directory is identical to LD_LIBRARY_PATH, and the applet can complete ok the enrollment on the eclipse.

Hi,

did you update the SDK as i have asked you in one of the previous posts?
Have you tried to compile the applets by using maven projects, which are provided in the SDK?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 11, 2012 14:05

Hi Martynas,
Yes, we are working with the recommended trial.

We are not using maven.

Above, we explain how us builded our test applet.

This applet works correctly on:

Eclipse windows.
firefox windows.
Eclipse Ubuntu.

But on firefox ubuntu, the applet loads all the libraries but do not detect the sensor.

This is the hs_error.log
Code: Select all
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00be74b5, pid=3572, tid=2427124592
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Server VM (21.0-b17 mixed mode linux-x86 )
# Problematic frame:
# C  [jna80298782680427177.tmp+0xd4b5]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x098f5400):  VMThread [stack: 0x90a2f000,0x90ab0000] [id=3580]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000004c

Registers:
EAX=0x098f5520, EBX=0x00bed234, ECX=0x90aafc04, EDX=0x00000000
ESP=0x90aaeb80, EBP=0x90aaebb8, ESI=0x0163fe24, EDI=0x90aaeba8
EIP=0x00be74b5, EFLAGS=0x00210246, CR2=0x0000004c

Top of Stack: (sp=0x90aaeb80)
0x90aaeb80:   098f5520 00000010 00000000 002c3e61
0x90aaeb90:   00acd4c0 00000000 00000000 00abb3e5
0x90aaeba0:   00000002 00acd4c0 098f5520 00acd4c0
0x90aaebb0:   8f457a20 00000002 90aaec08 00bea1f0
0x90aaebc0:   8ea09a90 90aaec20 90aaebd0 8ea09a88
0x90aaebd0:   90aaec40 90aaec44 90aaebf8 00a676b6
0x90aaebe0:   00000000 00000008 90aaebf8 00a7ee3d
0x90aaebf0:   00000002 90aaebd0 0019f1a8 8ea09a90

Instructions: (pc=0x00be74b5)
0x00be7495:   00 00 89 7c 24 04 89 34 24 ff 50 10 85 c0 75 64
0x00be74a5:   8b 45 f0 8b 10 c7 44 24 04 10 00 00 00 89 04 24
0x00be74b5:   ff 52 4c 85 c0 78 7f 8b 45 f0 8b 55 10 89 54 24
0x00be74c5:   04 8b 55 0c 89 14 24 8b 4d 08 8b 55 14 e8 74 f8

Register to memory mapping:

EAX=0x098f5520 is an unknown value
EBX=0x00bed234: <offset 0x13234> in /tmp/jna80298782680427177.tmp at 0x00bda000
ECX=0x90aafc04 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x90aaeb80 is an unknown value
EBP=0x90aaebb8 is an unknown value
ESI=0x0163fe24: <offset 0x7a4e24> in /usr/lib/jvm/jdk1.7.0/jre/lib/i386/server/libjvm.so at 0x00e9b000
EDI=0x90aaeba8 is an unknown value


Stack: [0x90a2f000,0x90ab0000],  sp=0x90aaeb80,  free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [jna80298782680427177.tmp+0xd4b5]
C  [jna80298782680427177.tmp+0x101f0]
C  [jna80298782680427177.tmp+0x10462]
C  [libNCore.so+0x99526]  NObjectAddDisposedCallback+0x556
C  [libNCore.so+0x9970a]  NObjectDispose+0x6a
C  [libNCore.so+0x99762]  NObjectDispose+0xc2
C  [libNCore.so+0x5cf78]  NObjectFree+0x38
C  [libNDevices.so+0x18ed2]  NDeviceManagerGetPluginManager+0x1022
C  [libNDevices.so+0x1d9c5]  NDeviceManagerCreate+0x16d5
C  [libNCore.so+0x36b9a]  NModuleUnregister+0xda
C  [libNDevices.so+0x1da90]  NDeviceManagerCreate+0x17a0
C  [libNDevices.so+0x4ef8]  NMediaTypeIsValidSingle+0x4ef8
C  [libNDevices.so+0x22b90]  NPalmScannerTypeOf+0x1370
C  [ld-linux.so.2+0xe2a6]  _dl_rtld_di_serinfo+0x6396
C  [libc.so.6+0x2f1bf]  __secure_getenv+0x11f
C  [libc.so.6+0x2f22f]  exit+0x2f
V  [libjvm.so+0x3e1eb4]  vm_direct_exit(int)+0x24
V  [libjvm.so+0x6e5b5c]  VM_Exit::doit()+0xac
V  [libjvm.so+0x6e54a1]  VM_Operation::evaluate()+0x41
V  [libjvm.so+0x6e3e48]  VMThread::evaluate_operation(VM_Operation*)+0x78
V  [libjvm.so+0x6e4387]  VMThread::loop()+0x1a7
V  [libjvm.so+0x6e4a15]  VMThread::run()+0x85
V  [libjvm.so+0x5a2f21]  java_start(Thread*)+0x111
C  [libpthread.so.0+0x596e]  start_thread+0xbe

VM_Operation (0x90010bb0): Exit, mode: safepoint, requested by thread 0x09c0f400


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x09c0f800 JavaThread "Thread-2" [_thread_blocked, id=3710, stack(0x90012000,0x90063000)]
  0x09c0f400 JavaThread "Timer-3" [_thread_blocked, id=3691, stack(0x8ffc1000,0x90012000)]
  0x906f8800 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=3607, stack(0x903ba000,0x9040b000)]
  0x09a59000 JavaThread "JVM[id=5]-Heartbeat" daemon [_thread_blocked, id=3606, stack(0x900b4000,0x90105000)]
  0x09a3dc00 JavaThread "Browser Side Object Cleanup Thread" [_thread_blocked, id=3601, stack(0x901a7000,0x901f8000)]
  0x906d6800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3600, stack(0x9029a000,0x902eb000)]
  0x09a28400 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=3599, stack(0x901f8000,0x90249000)]
  0x09a24400 JavaThread "CacheMemoryCleanUpThread" daemon [_thread_blocked, id=3598, stack(0x90249000,0x9029a000)]
  0x09a13800 JavaThread "SysExecutionTheadCreator" daemon [_thread_blocked, id=3594, stack(0x902eb000,0x9033c000)]
  0x09a09000 JavaThread "Java Plug-In Pipe Worker Thread (Client-Side)" daemon [_thread_in_native, id=3592, stack(0x9033c000,0x9038d000)]
  0x90672400 JavaThread "Timer-0" [_thread_blocked, id=3589, stack(0x9045c000,0x904ad000)]
  0x90623000 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3588, stack(0x904ad000,0x904fe000)]
  0x90604800 JavaThread "Service Thread" daemon [_thread_blocked, id=3586, stack(0x9070d000,0x9075e000)]
  0x90602800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3585, stack(0x9057f000,0x90600000)]
  0x90600800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3584, stack(0x9075e000,0x907df000)]
  0x098ffc00 JavaThread "Finalizer" daemon [_thread_blocked, id=3582, stack(0x9098d000,0x909de000)]
  0x098fb000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3581, stack(0x909de000,0x90a2f000)]
  0x09846c00 JavaThread "main" [_thread_blocked, id=3577, stack(0xb76a2000,0xb76f3000)]

Other Threads:
=>0x098f5400 VMThread [stack: 0x90a2f000,0x90ab0000] [id=3580]

VM state:at safepoint (shutting down)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x098448a8] Threads_lock - owner thread: 0x098f5400

Heap
 PSYoungGen      total 164288K, used 47875K [0xa9e80000, 0xb45a0000, 0xb45d0000)
  eden space 157248K, 30% used [0xa9e80000,0xacd27eb0,0xb3810000)
  from space 7040K, 1% used [0xb3810000,0xb3828d50,0xb3ef0000)
  to   space 6848K, 0% used [0xb3ef0000,0xb3ef0000,0xb45a0000)
 PSOldGen        total 22144K, used 7968K [0x94fd0000, 0x96570000, 0xa9e80000)
  object space 22144K, 35% used [0x94fd0000,0x957982a0,0x96570000)
 PSPermGen       total 22528K, used 11291K [0x90fd0000, 0x925d0000, 0x94fd0000)
  object space 22528K, 50% used [0x90fd0000,0x91ad6d58,0x925d0000)

Code Cache  [0xb469a000, 0xb48da000, 0xb769a000)
 total_blobs=386 nmethods=146 adapters=192 free_code_cache=48660Kb largest_free_block=49668416

Dynamic libraries:
00110000-0011c000 r-xp 00000000 08:01 918356     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libverify.so
0011c000-0011d000 rw-p 0000c000 08:01 918356     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libverify.so
0011d000-00140000 r-xp 00000000 08:01 918373     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libjava.so
00140000-00141000 rw-p 00022000 08:01 918373     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libjava.so
00141000-0014b000 r-xp 00000000 08:01 1839447    /lib/tls/i686/cmov/libnss_files-2.11.1.so
0014b000-0014c000 r--p 00009000 08:01 1839447    /lib/tls/i686/cmov/libnss_files-2.11.1.so
0014c000-0014d000 rw-p 0000a000 08:01 1839447    /lib/tls/i686/cmov/libnss_files-2.11.1.so
0014d000-00164000 r-xp 00000000 08:01 918403     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libzip.so
00164000-00165000 rw-p 00017000 08:01 918403     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libzip.so
00165000-0017f000 r-xp 00000000 08:01 918379     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libdeploy.so
0017f000-00180000 rw-p 00019000 08:01 918379     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libdeploy.so
00180000-00184000 rw-p 00000000 00:00 0
00184000-00198000 r-xp 00000000 08:01 918386     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnet.so
00198000-00199000 rw-p 00014000 08:01 918386     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnet.so
00199000-0019d000 r-xp 00000000 08:01 7342933    /usr/lib/libXtst.so.6.1.0
0019d000-0019e000 r--p 00003000 08:01 7342933    /usr/lib/libXtst.so.6.1.0
0019e000-0019f000 rw-p 00004000 08:01 7342933    /usr/lib/libXtst.so.6.1.0
0019f000-001a0000 r-xs 00000000 08:01 7350669    /tmp/ffi5Va4EU (deleted)
001a0000-001bb000 r-xp 00000000 08:01 1835034    /lib/ld-2.11.1.so
001bb000-001bc000 r--p 0001a000 08:01 1835034    /lib/ld-2.11.1.so
001bc000-001bd000 rw-p 0001b000 08:01 1835034    /lib/ld-2.11.1.so
001bd000-001c5000 r-xp 00000000 08:01 7342927    /usr/lib/libXrender.so.1.3.0
001c5000-001c6000 r--p 00007000 08:01 7342927    /usr/lib/libXrender.so.1.3.0
001c6000-001c7000 rw-p 00008000 08:01 7342927    /usr/lib/libXrender.so.1.3.0
001c7000-001cb000 r-xp 00000000 08:01 7342903    /usr/lib/libXdmcp.so.6.0.0
001cb000-001cc000 r--p 00003000 08:01 7342903    /usr/lib/libXdmcp.so.6.0.0
001cc000-001cd000 rw-p 00004000 08:01 7342903    /usr/lib/libXdmcp.so.6.0.0
001cd000-001d3000 r-xp 00000000 08:01 1839443    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
001d3000-001d4000 r--p 00006000 08:01 1839443    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
001d4000-001d5000 rw-p 00007000 08:01 1839443    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
001d5000-0025b000 r-xp 00000000 08:01 918353     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libawt.so
0025b000-00262000 rw-p 00086000 08:01 918353     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libawt.so
00262000-00286000 rw-p 00000000 00:00 0
00286000-0029e000 r-xp 00000000 08:01 7343899    /usr/lib/libxcb.so.1.1.0
0029e000-0029f000 r--p 00017000 08:01 7343899    /usr/lib/libxcb.so.1.1.0
0029f000-002a0000 rw-p 00018000 08:01 7343899    /usr/lib/libxcb.so.1.1.0
002a0000-002a4000 r-xp 00000000 08:01 7342907    /usr/lib/libXfixes.so.3.1.0
002a4000-002a5000 r--p 00003000 08:01 7342907    /usr/lib/libXfixes.so.3.1.0
002a5000-002a6000 rw-p 00004000 08:01 7342907    /usr/lib/libXfixes.so.3.1.0
002a6000-002ae000 r-xp 00000000 08:01 1317096    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/NdmMedia.so
002ae000-002af000 rw-p 00007000 08:01 1317096    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/NdmMedia.so
002af000-002b5000 r-xp 00000000 08:01 1835194    /lib/libusb-0.1.so.4.4.4
002b5000-002b6000 r--p 00005000 08:01 1835194    /lib/libusb-0.1.so.4.4.4
002b6000-002b8000 rw-p 00006000 08:01 1835194    /lib/libusb-0.1.so.4.4.4
002b9000-002ce000 r-xp 00000000 08:01 1839456    /lib/tls/i686/cmov/libpthread-2.11.1.so
002ce000-002cf000 r--p 00014000 08:01 1839456    /lib/tls/i686/cmov/libpthread-2.11.1.so
002cf000-002d0000 rw-p 00015000 08:01 1839456    /lib/tls/i686/cmov/libpthread-2.11.1.so
002d0000-002d2000 rw-p 00000000 00:00 0
002d2000-0031b000 r-xp 00000000 08:01 918355     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/xawt/libmawt.so
0031b000-0031d000 rw-p 00048000 08:01 918355     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/xawt/libmawt.so
0031d000-0031e000 rw-p 00000000 00:00 0
0031e000-00360000 r-xp 00000000 08:01 918398     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libfontmanager.so
00360000-00363000 rw-p 00041000 08:01 918398     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libfontmanager.so
00363000-00367000 rw-p 00000000 00:00 0
00367000-0037d000 r-xp 00000000 08:01 1317103    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNLicensing.so
0037d000-00383000 rw-p 00016000 08:01 1317103    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNLicensing.so
003a6000-003b4000 r-xp 00000000 08:01 918391     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnio.so
003b4000-003b5000 rw-p 0000e000 08:01 918391     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libnio.so
003b5000-004ce000 r-xp 00000000 08:01 7342888    /usr/lib/libX11.so.6.3.0
004ce000-004cf000 r--p 00118000 08:01 7342888    /usr/lib/libX11.so.6.3.0
004cf000-004d1000 rw-p 00119000 08:01 7342888    /usr/lib/libX11.so.6.3.0
004d1000-004d2000 rw-p 00000000 00:00 0
004d2000-004f7000 r-xp 00000000 08:01 1317063    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNDevices.so
004f7000-004fd000 rw-p 00024000 08:01 1317063    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNDevices.so
004fd000-004fe000 rw-p 00000000 00:00 0
00506000-00523000 r-xp 00000000 08:01 1835092    /lib/libgcc_s.so.1
00523000-00524000 r--p 0001c000 08:01 1835092    /lib/libgcc_s.so.1
00524000-00525000 rw-p 0001d000 08:01 1835092    /lib/libgcc_s.so.1
0057d000-00584000 r-xp 00000000 08:01 1839460    /lib/tls/i686/cmov/librt-2.11.1.so
00584000-00585000 r--p 00006000 08:01 1839460    /lib/tls/i686/cmov/librt-2.11.1.so
00585000-00586000 rw-p 00007000 08:01 1839460    /lib/tls/i686/cmov/librt-2.11.1.so
00586000-005e2000 r-xp 00000000 08:01 1317072    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNMediaProc.so
005e2000-005e7000 rw-p 0005c000 08:01 1317072    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNMediaProc.so
005e7000-005e8000 rw-p 00000000 00:00 0
005eb000-005ed000 r-xp 00000000 08:01 7342892    /usr/lib/libXau.so.6.0.0
005ed000-005ee000 r--p 00001000 08:01 7342892    /usr/lib/libXau.so.6.0.0
005ee000-005ef000 rw-p 00002000 08:01 7342892    /usr/lib/libXau.so.6.0.0
005ef000-0064e000 r-xp 00000000 08:01 918382     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libt2k.so
0064e000-00652000 rw-p 0005f000 08:01 918382     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/libt2k.so
00652000-00656000 rw-p 00000000 00:00 0
00697000-006a5000 r-xp 00000000 08:01 7342905    /usr/lib/libXext.so.6.4.0
006a5000-006a6000 r--p 0000d000 08:01 7342905    /usr/lib/libXext.so.6.4.0
006a6000-006a7000 rw-p 0000e000 08:01 7342905    /usr/lib/libXext.so.6.4.0
00710000-00723000 r-xp 00000000 08:01 1839441    /lib/tls/i686/cmov/libnsl-2.11.1.so
00723000-00724000 r--p 00012000 08:01 1839441    /lib/tls/i686/cmov/libnsl-2.11.1.so
00724000-00725000 rw-p 00013000 08:01 1839441    /lib/tls/i686/cmov/libnsl-2.11.1.so
00725000-00727000 rw-p 00000000 00:00 0
00785000-0078d000 r-xp 00000000 08:01 1839451    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0078d000-0078e000 r--p 00007000 08:01 1839451    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0078e000-0078f000 rw-p 00008000 08:01 1839451    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0078f000-0080e000 r-xp 00000000 08:01 1317092    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/FScanners/NdmFutronic/libScanAPI.so
0080e000-00810000 rw-p 0007f000 08:01 1317092    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/FScanners/NdmFutronic/libScanAPI.so
00810000-00816000 rw-p 00000000 00:00 0
00820000-00844000 r-xp 00000000 08:01 1839438    /lib/tls/i686/cmov/libm-2.11.1.so
00844000-00845000 r--p 00023000 08:01 1839438    /lib/tls/i686/cmov/libm-2.11.1.so
00845000-00846000 rw-p 00024000 08:01 1839438    /lib/tls/i686/cmov/libm-2.11.1.so
008cb000-00a1e000 r-xp 00000000 08:01 1839430    /lib/tls/i686/cmov/libc-2.11.1.so
00a1e000-00a1f000 ---p 00153000 08:01 1839430    /lib/tls/i686/cmov/libc-2.11.1.so
00a1f000-00a21000 r--p 00153000 08:01 1839430    /lib/tls/i686/cmov/libc-2.11.1.so
00a21000-00a22000 rw-p 00155000 08:01 1839430    /lib/tls/i686/cmov/libc-2.11.1.so
00a22000-00a25000 rw-p 00000000 00:00 0
00a25000-00acd000 r-xp 00000000 08:01 1317059    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNCore.so
00acd000-00ace000 rw-p 000a7000 08:01 1317059    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNCore.so
00ace000-00ad0000 rw-p 00000000 00:00 0
00ad0000-00bb9000 r-xp 00000000 08:01 7343797    /usr/lib/libstdc++.so.6.0.13
00bb9000-00bba000 ---p 000e9000 08:01 7343797    /usr/lib/libstdc++.so.6.0.13
00bba000-00bbe000 r--p 000e9000 08:01 7343797    /usr/lib/libstdc++.so.6.0.13
00bbe000-00bbf000 rw-p 000ed000 08:01 7343797    /usr/lib/libstdc++.so.6.0.13
00bbf000-00bc6000 rw-p 00000000 00:00 0
00bda000-00bed000 r-xp 00000000 08:01 7350666    /tmp/jna80298782680427177.tmp (deleted)
00bed000-00bee000 rw-p 00013000 08:01 7350666    /tmp/jna80298782680427177.tmp (deleted)
00cc3000-00ccc000 r-xp 00000000 08:01 1317091    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/FScanners/NdmFutronic/NdmFutronic.so
00ccc000-00ccd000 rw-p 00008000 08:01 1317091    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/FScanners/NdmFutronic/NdmFutronic.so
00d31000-00d39000 r-xp 00000000 08:01 7342899    /usr/lib/libXcursor.so.1.0.2
00d39000-00d3a000 r--p 00007000 08:01 7342899    /usr/lib/libXcursor.so.1.0.2
00d3a000-00d3b000 rw-p 00008000 08:01 7342899    /usr/lib/libXcursor.so.1.0.2
00d4c000-00d58000 r-xp 00000000 08:01 7342913    /usr/lib/libXi.so.6.1.0
00d58000-00d59000 r--p 0000c000 08:01 7342913    /usr/lib/libXi.so.6.1.0
00d59000-00d5a000 rw-p 0000d000 08:01 7342913    /usr/lib/libXi.so.6.1.0
00dba000-00dbb000 r-xp 00000000 00:00 0          [vdso]
00e19000-00e1b000 r-xp 00000000 08:01 1839436    /lib/tls/i686/cmov/libdl-2.11.1.so
00e1b000-00e1c000 r--p 00001000 08:01 1839436    /lib/tls/i686/cmov/libdl-2.11.1.so
00e1c000-00e1d000 rw-p 00002000 08:01 1839436    /lib/tls/i686/cmov/libdl-2.11.1.so
00e87000-00e9a000 r-xp 00000000 08:01 918377     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/jli/libjli.so
00e9a000-00e9b000 rw-p 00012000 08:01 918377     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/jli/libjli.so
00e9b000-015ff000 r-xp 00000000 08:01 918402     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/server/libjvm.so
015ff000-0164a000 rw-p 00763000 08:01 918402     /usr/lib/jvm/jdk1.7.0/jre/lib/i386/server/libjvm.so
0164a000-01a69000 rw-p 00000000 00:00 0
0345b000-0345c000 ---p 00000000 00:00 0
0345c000-03c5c000 rwxp 00000000 00:00 0
04460000-04b1c000 r-xp 00000000 08:01 1317097    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNBiometrics.so
04b1c000-04b2a000 rw-p 006bc000 08:01 1317097    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNBiometrics.so
04b2a000-04b2d000 rw-p 00000000 00:00 0
07bb5000-07d43000 r-xp 00000000 08:01 1317061    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNMedia.so
07d43000-07d4c000 rw-p 0018e000 08:01 1317061    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86/libNMedia.so
07d4c000-07d4f000 rw-p 00000000 00:00 0
08048000-08049000 r-xp 00000000 08:01 918612     /usr/lib/jvm/jdk1.7.0/jre/bin/java
08049000-0804a000 rw-p 00000000 08:01 918612     /usr/lib/jvm/jdk1.7.0/jre/bin/java
09841000-09f3e000 rw-p 00000000 00:00 0          [heap]
8ea00000-8eaac000 rw-p 00000000 00:00 0
8eaac000-8eb00000 ---p 00000000 00:00 0
8ebff000-8ec00000 ---p 00000000 00:00 0
8ec00000-8f400000 rwxp 00000000 00:00 0
8f400000-8f4fe000 rw-p 00000000 00:00 0
8f4fe000-8f500000 ---p 00000000 00:00 0
8f500000-8f5fc000 rw-p 00000000 00:00 0
8f5fc000-8f600000 ---p 00000000 00:00 0
8f600000-8f6ff000 rw-p 00000000 00:00 0
8f6ff000-8f700000 ---p 00000000 00:00 0
8f740000-8fa00000 rw-s 00000000 00:04 1507349    /SYSV00000000 (deleted)
8fa00000-8faf9000 rw-p 00000000 00:00 0
8faf9000-8fb00000 ---p 00000000 00:00 0
8fc00000-8fd00000 rw-p 00000000 00:00 0
8fd6a000-8fd6e000 r--s 00088000 08:01 792998     /usr/lib/jvm/jdk1.7.0/jre/lib/jsse.jar
8fd6e000-8fdaf000 r--s 004f3000 08:01 1310906    /home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Samples/Biometrics/Java/enrollCSC/enrollCSC_dic_21.jar
8fdaf000-8fdb2000 ---p 00000000 00:00 0
8fdb2000-8fe00000 rwxp 00000000 00:00 0
8fe00000-8ff00000 rw-p 00000000 00:00 0
8ff1f000-8ff22000 ---p 00000000 00:00 0
8ff22000-8ff70000 rwxp 00000000 00:00 0
8ff70000-8ff73000 rwxp 00000000 00:00 0
8ff73000-8ffc1000 rwxp 00000000 00:00 0
8ffc1000-8ffc4000 ---p 00000000 00:00 0
8ffc4000-90012000 rwxp 00000000 00:00 0
90012000-90015000 ---p 00000000 00:00 0
90015000-90063000 rwxp 00000000 00:00 0
90063000-90066000 ---p 00000000 00:00 0
90066000-90105000 rwxp 00000000 00:00 0
90105000-90108000 ---p 00000000 00:00 0
90108000-90156000 rwxp 00000000 00:00 0
90156000-90159000 ---p 00000000 00:00 0
90159000-9038d000 rwxp 00000000 00:00 0
9038d000-903af000 r--p 00000000 08:01 7638275    /usr/share/locale-langpack/es/LC_MESSAGES/libc.mo
903af000-903ba000 r--s 00370000 08:01 793009     /usr/lib/jvm/jdk1.7.0/jre/lib/charsets.jar
903ba000-9040b000 rwxp 00000000 00:00 0
9040b000-9040e000 ---p 00000000 00:00 0
9040e000-904fe000 rwxp 00000000 00:00 0
904fe000-904ff000 ---p 00000000 00:00 0
904ff000-9057f000 rwxp 00000000 00:00 0
9057f000-90580000 ---p 00000000 00:00 0
90580000-90600000 rwxp 00000000 00:00 0
90600000-90700000 rw-p 00000000 00:00 0
90704000-9070d000 r--s 00254000 08:01 792991     /usr/lib/jvm/jdk1.7.0/jre/lib/resources.jar
9070d000-9075e000 rwxp 00000000 00:00 0
9075e000-9075f000 ---p 00000000 00:00 0
9075f000-907df000 rwxp 00000000 00:00 0
907df000-907e2000 ---p 00000000 00:00 0
907e2000-90830000 rwxp 00000000 00:00 0
90830000-9086f000 r--p 00000000 08:01 7347972    /usr/lib/locale/es_CO.utf8/LC_CTYPE
9086f000-9098d000 r--p 00000000 08:01 7348101    /usr/lib/locale/es_CO.utf8/LC_COLLATE
9098d000-90a2f000 rwxp 00000000 00:00 0
90a2f000-90a30000 ---p 00000000 00:00 0
90a30000-90ab0000 rwxp 00000000 00:00 0          [threadstack:0007f494]
90ab0000-90ac3000 r--s 0018b000 08:01 793003     /usr/lib/jvm/jdk1.7.0/jre/lib/plugin.jar
90ac3000-90acc000 r--s 000c9000 08:01 793000     /usr/lib/jvm/jdk1.7.0/jre/lib/javaws.jar
90acc000-90ae0000 r--s 0035e000 08:01 793002     /usr/lib/jvm/jdk1.7.0/jre/lib/deploy.jar
90ae0000-90b2b000 rw-p 00000000 00:00 0
90b2b000-90cea000 r--s 039fa000 08:01 792929     /usr/lib/jvm/jdk1.7.0/jre/lib/rt.jar
90cea000-90ceb000 ---p 00000000 00:00 0
90ceb000-90d6b000 rwxp 00000000 00:00 0
90d6b000-90d6c000 ---p 00000000 00:00 0
90d6c000-90dec000 rwxp 00000000 00:00 0
90dec000-90df7000 rw-p 00000000 00:00 0
90df7000-90e0c000 rw-p 00000000 00:00 0
90e0c000-90e17000 rw-p 00000000 00:00 0
90e17000-90eb4000 rw-p 00000000 00:00 0
90eb4000-90ebf000 rw-p 00000000 00:00 0
90ebf000-90ed4000 rw-p 00000000 00:00 0
90ed4000-90edf000 rw-p 00000000 00:00 0
90edf000-90f7b000 rw-p 00000000 00:00 0
90f7b000-90fcf000 rw-p 00000000 00:00 0
90fcf000-925d0000 rw-p 00000000 00:00 0
925d0000-94fd0000 rw-p 00000000 00:00 0
94fd0000-96570000 rw-p 00000000 00:00 0
96570000-a9e80000 rw-p 00000000 00:00 0
a9e80000-b45a0000 rw-p 00000000 00:00 0
b45a0000-b45d0000 ---p 00000000 00:00 0
b45d1000-b45d2000 rw-s 00000000 08:01 7350669    /tmp/ffi5Va4EU (deleted)
b45d2000-b45d6000 r--s 000f6000 08:01 918346     /usr/lib/jvm/jdk1.7.0/jre/lib/ext/localedata.jar
b45d6000-b45d7000 r--p 00000000 08:01 7348120    /usr/lib/locale/es_CO.utf8/LC_NUMERIC
b45d7000-b45d8000 r--p 00000000 08:01 7348214    /usr/lib/locale/es_CO.utf8/LC_TIME
b45d8000-b45d9000 r--p 00000000 08:01 7343110    /usr/lib/locale/es_CO.utf8/LC_MONETARY
b45d9000-b45da000 r--p 00000000 08:01 7348111    /usr/lib/locale/es_CO.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b45da000-b45e3000 rw-p 00000000 00:00 0
b45e3000-b469a000 rw-p 00000000 00:00 0
b469a000-b48da000 rwxp 00000000 00:00 0
b48da000-b769a000 rw-p 00000000 00:00 0
b769a000-b76a2000 rw-s 00000000 08:01 7995446    /tmp/hsperfdata_micro01/3572 (deleted)
b76a2000-b76a3000 ---p 00000000 00:00 0
b76a3000-b76f3000 rwxp 00000000 00:00 0
b76f3000-b76f5000 rw-p 00000000 00:00 0
b76f5000-b76f6000 r--p 00000000 08:01 7347978    /usr/lib/locale/es_CO.utf8/LC_PAPER
b76f6000-b76f7000 r--p 00000000 08:01 7347872    /usr/lib/locale/es_CO.utf8/LC_NAME
b76f7000-b76f8000 r--p 00000000 08:01 7343111    /usr/lib/locale/es_CO.utf8/LC_ADDRESS
b76f8000-b76f9000 r--p 00000000 08:01 7343138    /usr/lib/locale/es_CO.utf8/LC_TELEPHONE
b76f9000-b76fa000 r--p 00000000 08:01 7347974    /usr/lib/locale/es_CO.utf8/LC_MEASUREMENT
b76fa000-b7701000 r--s 00000000 08:01 7346698    /usr/lib/gconv/gconv-modules.cache
b7701000-b7702000 r--p 00000000 08:01 7343139    /usr/lib/locale/es_CO.utf8/LC_IDENTIFICATION
b7702000-b7703000 rw-p 00000000 00:00 0
b7703000-b7704000 ---p 00000000 00:00 0
b7704000-b7706000 rw-p 00000000 00:00 0
bfb53000-bfb66000 rwxp 00000000 00:00 0          [stack]
bfb66000-bfb68000 rw-p 00000000 00:00 0

VM Arguments:
jvm_args: -D__jvm_launched=4248836133 -D__applet_launched=4248834645 -Xbootclasspath/a:/usr/lib/jvm/jdk1.7.0/jre/lib/deploy.jar:/usr/lib/jvm/jdk1.7.0/jre/lib/javaws.jar:/usr/lib/jvm/jdk1.7.0/jre/lib/plugin.jar -Dsun.awt.warmup=true
java_command: sun.plugin2.main.client.PluginMain write_pipe_name=/tmp/.com.sun.deploy.net.socket.2006.723650166988303292.AF_UNIX
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/lib/jvm/jdk1.7.0/bin/
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
USERNAME=micro01
LD_LIBRARY_PATH=/usr/lib/firefox-3.6.3:/usr/lib/firefox-3.6.3/plugins:/usr/lib/firefox-3.6.3:/home/micro01/Descargas/Neurotec_Biometric_4_2_SDK_Trial_dic_21/Lib/Linux_x86
SHELL=/bin/bash
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x6ddc10], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x6ddc10], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x59e1e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x59e1e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x59e1e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x59e1e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x59dae0], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x5a01f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x5a01f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x5a01f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x5a01f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


---------------  S Y S T E M  ---------------

OS:squeeze/sid

uname:Linux 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686
libc:glibc 2.11.1 NPTL 2.11.1
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:0,57 0,46 0,32

/proc/meminfo:
MemTotal:        2053332 kB
MemFree:          753876 kB
Buffers:           72028 kB
Cached:           530448 kB
SwapCached:            0 kB
Active:           867128 kB
Inactive:         365576 kB
Active(anon):     711012 kB
Inactive(anon):        0 kB
Active(file):     156116 kB
Inactive(file):   365576 kB
Unevictable:          36 kB
Mlocked:              36 kB
HighTotal:       1179336 kB
HighFree:           5952 kB
LowTotal:         873996 kB
LowFree:          747924 kB
SwapTotal:       6013944 kB
SwapFree:        6013944 kB
Dirty:                84 kB
Writeback:             0 kB
AnonPages:        630260 kB
Mapped:           119020 kB
Shmem:             80788 kB
Slab:              30912 kB
SReclaimable:      18396 kB
SUnreclaim:        12516 kB
KernelStack:        2744 kB
PageTables:         6732 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7040608 kB
Committed_AS:    1625180 kB
VmallocTotal:     122880 kB
VmallocUsed:       26260 kB
VmallocChunk:      89676 kB
HardwareCorrupted:     0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       16376 kB
DirectMap4M:      892928 kB


CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

/proc/cpuinfo:
processor   : 0
vendor_id   : GenuineIntel
cpu family   : 6
model      : 15
model name   : Intel(R) Core(TM)2 Duo CPU     T5470  @ 1.60GHz
stepping   : 13
cpu MHz      : 1601.000
cache size   : 2048 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 2
apicid      : 0
initial apicid   : 0
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 10
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida
bogomips   : 3191.90
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family   : 6
model      : 15
model name   : Intel(R) Core(TM)2 Duo CPU     T5470  @ 1.60GHz
stepping   : 13
cpu MHz      : 1601.000
cache size   : 2048 KB
physical id   : 0
siblings   : 2
core id      : 1
cpu cores   : 2
apicid      : 1
initial apicid   : 1
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 10
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida
bogomips   : 3191.99
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:



Memory: 4k page, physical 2053332k(753876k free), swap 6013944k(6013944k free)

vm_info: Java HotSpot(TM) Server VM (21.0-b17) for linux-x86 JRE (1.7.0-b147), built on Jun 27 2011 01:49:33 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Tue Jan 10 09:09:46 2012
elapsed time: 170 seconds

jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 12, 2012 13:36

Hello Jorge,

could you try the system, which would have a most recent version of the Firefox. the one you are using is quite old and it can be an issue that it is using some old plugin.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 20, 2012 20:40

Hi, we solved all the problems, but our trial license has expired.
how we can extend the trial license a few more days ?
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby vaidasz » Jan 23, 2012 08:58

jorgevaron wrote:Hi, we solved all the problems, but our trial license has expired.
how we can extend the trial license a few more days ?


Hello,

Please generate diagnostics using Activation Wizard, save it to file and e-mail to support@neurotechnology.com. Please also explain what do you need in e-mail.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Feb 09, 2012 20:17

Hello.

We've created our own API for verifinger, and it runs smoothly under Linux 32 bits. But when we try to run in a 64 bits environment, we're getting this error:
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError:/usr/lib/libNeurotecJavaNative.so: /usr/lib/ libNeurotecJavaNative.so: cannot open shared object file: No such file or directory
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:834)
       at com.neurotechnology.Library.NativeManager.loadDefault(NativeManager.java:14)
       at com.neurotechnology.NLicensing.NLicensing.<clinit>(NLicensing.java:28)
       at com.perzona.extractor.service.ExtractorManager.ExtraerMinucias(ExtractorManager.java:52)
       at com.perzona.extractor.service.WebExtracting.doExtract(WebExtracting.java:60)
       at com.perzona.extractor.service.WebExtracting.main(WebExtracting.java:36)

I am using Product revision number: 71621 (the latest Verifinger stand alone version you released).

Do you have any suggestions?

Another question. This file libNeurotecJavaNative.so doesn't exist anymore in your new Neurotec Biometrics SDK. Is there a reason why? Was it replaced by another library?

Thank you.


--
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby vaidasz » Feb 10, 2012 09:39

Hello,

I am not sure which version of SDK you are using, but I think it is VeriFinger 6.2 SDK.
Crisstina wrote:Do you have any suggestions?

As the error states libNeurotecJavaNative.so is missing from /usr/lib/ directory. Please copy libNeurotecJavaNative.so from VeriFinger_6_2_SDK/Lib/Linux_x86_64/ to /usr/lib/ or run LD_LIBRARY_PATH=?/VeriFinger_6_2_SDK/Lib/Linux_x86_64/ ./YOUR_APPLICATION.

Crisstina wrote:Is there a reason why? Was it replaced by another library?

There is not libNeurotecJavaNative.so in VeriFinger 6.3+ SDK because Java API has been rewritten from the scratch. So in case you want to upgrade your application using VeriFinger 6.3+ SDK you would have to redevelop your application.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Feb 14, 2012 15:24

Hello all,

Thanks for your previous advice. I already copied the library in the folder where the Java exception informs me to copy it, but it didn't work.

I am trying to figure out your tutorials included in the Neurotec SDK: Product revision number: 83664.

Using the EnrollFingerFromImage in Java, I compiled it as you suggested in the SDK Document, using Eclipse and Maven.

But I am constantly getting this error:

Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError
   at com.neurotec.tutorials.EnrollFingerFromImage.main(EnrollFingerFromImage.java:64)


The line that the error refers to is:

Code: Select all
   finally{
         try {
            //THIS LINE RETURNS AN ERROR
                                           NLicense.releaseComponents(components);
                                //END OF LINE WITH ERROR
         } catch (IOException ex) {
            System.out.println(ex);
         }


Am I missing a step? I have a dongle with licenses already connected. I was able to run the EnrollFingerFromImageCS (Visual C# version) with no issues, but the Java sample cannot be run.

I am using Java 1.6, and also in other computer Java 1.5 but with none of them it has worked.

I appreciate your help.
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby vaidasz » Feb 15, 2012 16:16

Crisstina wrote:Hello all,

Thanks for your previous advice. I already copied the library in the folder where the Java exception informs me to copy it, but it didn't work.

I am trying to figure out your tutorials included in the Neurotec SDK: Product revision number: 83664.

Using the EnrollFingerFromImage in Java, I compiled it as you suggested in the SDK Document, using Eclipse and Maven.

But I am constantly getting this error:

Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError
   at com.neurotec.tutorials.EnrollFingerFromImage.main(EnrollFingerFromImage.java:64)


The line that the error refers to is:

Code: Select all
   finally{
         try {
            //THIS LINE RETURNS AN ERROR
                                           NLicense.releaseComponents(components);
                                //END OF LINE WITH ERROR
         } catch (IOException ex) {
            System.out.println(ex);
         }


Am I missing a step? I have a dongle with licenses already connected. I was able to run the EnrollFingerFromImageCS (Visual C# version) with no issues, but the Java sample cannot be run.

I am using Java 1.6, and also in other computer Java 1.5 but with none of them it has worked.

I appreciate your help.


Hello,

It is very strange that you get error on NLicense.releaseComponents(components); method. Don't you get similar error when calling NLicense.obtainComponents()? Please make sure you have configured to use correct class.
Also make sure there are Neurotechnology's jars at the same directory as EnrollFingerFromImage is.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Feb 15, 2012 16:34

vaidasz wrote:
Hello,

It is very strange that you get error on NLicense.releaseComponents(components); method. Don't you get similar error when calling NLicense.obtainComponents()? Please make sure you have configured to use correct class.
Also make sure there are Neurotechnology's jars at the same directory as EnrollFingerFromImage is.



Hello,

1. No, the error is just shown in that line. I don't get the error when the license is being obtained.
2. I am using the class from the SDK. Maven automatically downloaded the JARs into its default folders.
3. Anyway, I copied all the jars in the same directory where EnrollFingerFromImage is running: /ProgramFiles/Neurotechnology/SDKfolder/Bin/Win32_x86 (I am running under 32 bits architecture right now)

Still having the same error I described before.

I just get the error when I grant an argument to the program under eclipse. When I don't give it arguments, the error doesn't show.
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Crisstina » Feb 16, 2012 15:21

vaidasz wrote:Hello,

I am not sure which version of SDK you are using, but I think it is VeriFinger 6.2 SDK.
Crisstina wrote:Do you have any suggestions?

As the error states libNeurotecJavaNative.so is missing from /usr/lib/ directory. Please copy libNeurotecJavaNative.so from VeriFinger_6_2_SDK/Lib/Linux_x86_64/ to /usr/lib/ or run LD_LIBRARY_PATH=?/VeriFinger_6_2_SDK/Lib/Linux_x86_64/ ./YOUR_APPLICATION.

Crisstina wrote:Is there a reason why? Was it replaced by another library?

There is not libNeurotecJavaNative.so in VeriFinger 6.3+ SDK because Java API has been rewritten from the scratch. So in case you want to upgrade your application using VeriFinger 6.3+ SDK you would have to redevelop your application.


Hello Vaidas,

I am using Verifinger 6.2 now...
I tried our application again with a brand new clean Linux Ubuntu 10.04.3 computer, and after copying all the libraries in the right folders of Java and the Operating System, we're getting this error now:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: undefined symbol: NFRecordSetQuality
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)

    at com.neurotechnology.Library.NativeManager.loadDefault(NativeManager.java:14)
    at com.neurotechnology.NLicensing.NLicensing.<clinit>(NLicensing.java:28)
    at com.perzona.extractor.service.ExtractorManager.ExtraerMinucias(ExtractorManager.java:52)
    at com.perzona.extractor.service.WebExtracting.doExtract(WebExtracting.java:60)
    at com.perzona.extractor.service.WebExtracting.main(WebExtracting.java:36)
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby vaidasz » Feb 20, 2012 15:16

Crisstina wrote:
vaidasz wrote:
Hello,

It is very strange that you get error on NLicense.releaseComponents(components); method. Don't you get similar error when calling NLicense.obtainComponents()? Please make sure you have configured to use correct class.
Also make sure there are Neurotechnology's jars at the same directory as EnrollFingerFromImage is.



Hello,

1. No, the error is just shown in that line. I don't get the error when the license is being obtained.
2. I am using the class from the SDK. Maven automatically downloaded the JARs into its default folders.
3. Anyway, I copied all the jars in the same directory where EnrollFingerFromImage is running: /ProgramFiles/Neurotechnology/SDKfolder/Bin/Win32_x86 (I am running under 32 bits architecture right now)

Still having the same error I described before.

I just get the error when I grant an argument to the program under eclipse. When I don't give it arguments, the error doesn't show.


Hello,

Could you please write an e-mail regarding this issue to support@neurotechnology.com. Please mention step-by-step scenario to reproduce the issue.
I have tried exact the same version of SDK with eclipse and everything seems to run just fine.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby vaidasz » Feb 20, 2012 15:19

Crisstina wrote:Hello Vaidas,

I am using Verifinger 6.2 now...
I tried our application again with a brand new clean Linux Ubuntu 10.04.3 computer, and after copying all the libraries in the right folders of Java and the Operating System, we're getting this error now:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: undefined symbol: NFRecordSetQuality
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)

    at com.neurotechnology.Library.NativeManager.loadDefault(NativeManager.java:14)
    at com.neurotechnology.NLicensing.NLicensing.<clinit>(NLicensing.java:28)
    at com.perzona.extractor.service.ExtractorManager.ExtraerMinucias(ExtractorManager.java:52)
    at com.perzona.extractor.service.WebExtracting.doExtract(WebExtracting.java:60)
    at com.perzona.extractor.service.WebExtracting.main(WebExtracting.java:36)


Hello,

Such error is usually shown when you use different versions of libNeurotecJavaNative.so and JARs (not from the same SDK version). So please make sure you use the same version fo SDK for JARs and for libNeurotecJavaNative.so.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Feb 22, 2012 18:19

vaidasz wrote:
Crisstina wrote:Hello Vaidas,

I am using Verifinger 6.2 now...
I tried our application again with a brand new clean Linux Ubuntu 10.04.3 computer, and after copying all the libraries in the right folders of Java and the Operating System, we're getting this error now:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: undefined symbol: NFRecordSetQuality
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)

    at com.neurotechnology.Library.NativeManager.loadDefault(NativeManager.java:14)
    at com.neurotechnology.NLicensing.NLicensing.<clinit>(NLicensing.java:28)
    at com.perzona.extractor.service.ExtractorManager.ExtraerMinucias(ExtractorManager.java:52)
    at com.perzona.extractor.service.WebExtracting.doExtract(WebExtracting.java:60)
    at com.perzona.extractor.service.WebExtracting.main(WebExtracting.java:36)


Hello,

Such error is usually shown when you use different versions of libNeurotecJavaNative.so and JARs (not from the same SDK version). So please make sure you use the same version fo SDK for JARs and for libNeurotecJavaNative.so.


Thank you for your reply Vaidas,

yes, I am using the same version for all files. As a matter of fact, I re-copied all the files to make sure, and I am still getting the same error, but ONLY in 64 bits architecture. In 32 bits, I do not get any error at all.

Code: Select all
root@perzona-test64:/opt/perzona# java -Djava.library.path=/home/perzona/jdk1.5.0/jre/bin/ -cp NLicenses.cfg -jar mextractor.jar /home/perzona/APINacar/P4/Imagenes/1.tif
servetIP: 192.168.2.195
Port: 5000
Type: SingleComputerLicense:VFExtractor
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: /home/perzona/jdk1.5.0/jre/bin/libNeurotecJavaNative.so: undefined symbol: NFRecordSetQuality
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
   at java.lang.Runtime.loadLibrary0(Runtime.java:822)
   at java.lang.System.loadLibrary(System.java:992)
   at com.neurotechnology.Library.NativeManager.loadDefault(NativeManager.java:14)
   at com.neurotechnology.NLicensing.NLicensing.<clinit>(NLicensing.java:28)
   at com.perzona.extractor.service.ExtractorManager.ExtraerMinucias(ExtractorManager.java:52)
   at com.perzona.extractor.service.WebExtracting.doExtract(WebExtracting.java:60)
   at com.perzona.extractor.service.WebExtracting.main(WebExtracting.java:36)
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby cneafis » Feb 29, 2012 17:21

Hi, all.

¿Where can I find javadoc for lastest version of SDK?

thx in advance.
cneafis
 
Posts: 2
Joined: Feb 28, 2012 14:15

Re: Java general questions

Postby Martynas » Mar 01, 2012 08:33

cneafis wrote:Hi, all.

¿Where can I find javadoc for lastest version of SDK?

thx in advance.

Hello,

we do not have a JavaDoc. Java API reference is provided in the documentation of the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Extract Template of Fingerprint

Postby dhernandezs » Mar 21, 2012 16:45

Hi,
I have the next error trying to extract a template of fingerprint.

Code: Select all
...
if (!NLicense.obtainComponents("/local", 5000, "Biometrics.FingerExtraction,Biometrics.FingerSegmentation")){
...
result = extractor.extract(imagenHuellaGray, NFPosition.LEFT_LITTLE_FINGER, NFImpressionType.NON_LIVE_SCAN_PLAIN);
..


Java console
Code: Select all
com.neurotec.lang.NIllegalArgumentException: The specified hImage has resolution specified as aspect ratio
   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:16)
   at com.neurotec.lang.NError.get(NError.java:166)
   at com.neurotec.lang.NError.get(NError.java:177)
   at com.neurotec.lang.NError.getLast(NError.java:182)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:225)
   at com.neurotec.lang.NResult.raiseError(NResult.java:281)
   at com.neurotec.lang.NResult.check(NResult.java:219)
   at com.neurotec.biometrics.NFExtractor.extract(NFExtractor.java:292)
   at sre.sepm.dispositivos.escanercamaplana.regiones.RegionHuella.obtenerTemplateBase64(RegionHuella.java:166)
   at sre.sepm.dispositivos.escanercamaplana.auto.principal.ComunicacionConJavaScript.actualizarHuellaDeFormatoOP5EnJsp(ComunicacionConJavaScript.java:78)
   at sre.sepm.dispositivos.escanercamaplana.auto.principal.Programa.terminaProcesamiento(Programa.java:290)
   at sre.sepm.dispositivos.escanercamaplana.auto.principal.ManejadorDeEventos.reportarFinDeActividades(ManejadorDeEventos.java:68)
   at sre.sepm.dispositivos.escanercamaplana.auto.principal.FormatoOP5.run(FormatoOP5.java:180)
   at java.lang.Thread.run(Unknown Source)


It's an applet.
Java version 1.6
IE8
Neuro 4.2 SDK - Single PC licenses

Thanks,
Daniel H

Admin: merged to "Java general questions"
dhernandezs
 
Posts: 3
Joined: Feb 01, 2012 16:54

Re: Extract Template of Fingerprint

Postby Martynas » Mar 21, 2012 17:22

dhernandezs wrote:I have the next error trying to extract a template of fingerprint.
...
It's an applet.
Java version 1.6
IE8
Neuro 4.2 SDK - Single PC licenses

Hi,

please send email to support@neurotechnology.com with detailed description and images which you are using.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

NDeviceManager disposing

Postby mamartinez » Mar 22, 2012 19:42

Hello

I have an Applet... each time that I invoque this one I create a new NDeviceManager like the line below:
Code: Select all
deviceManager= new NDeviceManager(EnumSet.of(NDeviceType.CAMERA));

in the destroy method execute the following lines:
Code: Select all
if(deviceManager!=null){
   deviceManager.dispose();
}
LicenseManager.getInstance().release();
NCore.shutdown();

First time all is OK but in the next applet execution i got the following exception in the line I created the new NDeviceManager:
Code: Select all
JNA: Callback com.neurotec.plugins.NPlugin$1@737371 threw the following exception:
java.util.concurrent.RejectedExecutionException
   at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
   at com.neurotec.util.concurrent.NSyncChangeObject.changing(NSyncChangeObject.java:71)
   at com.neurotec.plugins.NPlugin$1.invoke(NPlugin.java:65)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:384)
   at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:414)
   at com.sun.jna.Function.invokeInt(Native Method)
   at com.sun.jna.Function.invoke(Function.java:344)
   at com.sun.jna.Function.invoke(Function.java:276)
   at com.sun.jna.Library$Handler.invoke(Library.java:216)
   at com.neurotec.lang.$Proxy2.NObjectFree(Unknown Source)
   at com.neurotec.lang.NObject.dispose(NObject.java:128)
   at com.neurotec.devices.NDeviceManager.dispose(NDeviceManager.java:321)
   at com.neurotec.lang.NAbstractDisposable.dispose(NAbstractDisposable.java:44)
   at sre.biometricos.faces.FacesPage.salir(FacesPage.java:285)
   at sre.biometricos.CapturaFotografia.CapturaFotografiaAplicacion.destroy(CapturaFotografiaAplicacion.java:80)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Admin: merged to "Java general questions"
mamartinez
 
Posts: 3
Joined: Feb 01, 2012 14:59

Re: NDeviceManager disposing

Postby vaidasz » Apr 05, 2012 14:17

mamartinez wrote:Hello

I have an Applet... each time that I invoque this one I create a new NDeviceManager like the line below:
Code: Select all
deviceManager= new NDeviceManager(EnumSet.of(NDeviceType.CAMERA));

in the destroy method execute the following lines:
Code: Select all
if(deviceManager!=null){
   deviceManager.dispose();
}
LicenseManager.getInstance().release();
NCore.shutdown();

First time all is OK but in the next applet execution i got the following exception in the line I created the new NDeviceManager:
Code: Select all
JNA: Callback com.neurotec.plugins.NPlugin$1@737371 threw the following exception:
java.util.concurrent.RejectedExecutionException
   at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.reject(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
   at com.neurotec.util.concurrent.NSyncChangeObject.changing(NSyncChangeObject.java:71)
   at com.neurotec.plugins.NPlugin$1.invoke(NPlugin.java:65)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:384)
   at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:414)
   at com.sun.jna.Function.invokeInt(Native Method)
   at com.sun.jna.Function.invoke(Function.java:344)
   at com.sun.jna.Function.invoke(Function.java:276)
   at com.sun.jna.Library$Handler.invoke(Library.java:216)
   at com.neurotec.lang.$Proxy2.NObjectFree(Unknown Source)
   at com.neurotec.lang.NObject.dispose(NObject.java:128)
   at com.neurotec.devices.NDeviceManager.dispose(NDeviceManager.java:321)
   at com.neurotec.lang.NAbstractDisposable.dispose(NAbstractDisposable.java:44)
   at sre.biometricos.faces.FacesPage.salir(FacesPage.java:285)
   at sre.biometricos.CapturaFotografia.CapturaFotografiaAplicacion.destroy(CapturaFotografiaAplicacion.java:80)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Hello,

Do you use JNLP when loading applet? If yes, please check if separate_jvm property is set to "true" in JNLP file.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 584
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Having difficulty in running the java samples using netbeans

Postby Maham 141 » Apr 20, 2012 13:41

Dear,
Our undergraduate final year project is to develop a fingerprint security system.We are having difficulty in running the sample java application using netbeans.Also guide us that how to link the libraries.
We are trying to implement the software using microcontroller so guide us is java a right choice to complete this project.

Admin: merged to "Java general questions"
Maham 141
 
Posts: 2
Joined: Apr 20, 2012 13:25

Re: Java general questions

Postby Martynas » Apr 23, 2012 12:53

Hello,

could you specify what exact problems do you meet, when using AbisSampleJava in NetBeans?

Maham 141 wrote:We are trying to implement the software using microcontroller so guide us is java a right choice to complete this project.

What processor does your micro controller use?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

NClusterJni library not found?

Postby mdwest » Apr 25, 2012 17:02

Hi,

I am running the abis-applet sample, and get the following error during initialization:
Code: Select all
...
Loading library NBiometrics
Loading library NBiometricTools
Loading library NDevices
Loading library NCluster
Loading library NClusterJni
[color=#FF0000][b]Library NClusterJni was not loaded.[/b][/color]
Obtaining licenses from server /local:5000
...

I can not find any other Java-based reference to NClusterJni (as a .class or .jar) within the samples or SDK (although I see it as a DLL in the <SDK>\bin directory.

I am using the Eclipse IDE to execute the applet from the JNLP file. The applet creates a window, but does not function properly... I assume because of the missing library.

Thanks for your help,
Mark

Admin: merged to "Java General Questions"
mdwest
 
Posts: 10
Joined: Apr 03, 2012 19:28

Re: NClusterJni library not found?

Postby mdwest » Apr 25, 2012 17:23

Additional information: this is the exception trace I get when I click the "OK" button after making a successful database connection.
Code: Select all
Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
   at com.neurotec.cluster.NCluster.<clinit>(NCluster.java:30)
   at com.neurotec.cluster.Admin.<clinit>(Admin.java:282)
   at com.neurotec.samples.connection.ClusterClient.checkServerConnection(ClusterClient.java:64)
   at com.neurotec.samples.connection.ConnectionSettingsPanel.btnOKClick(ConnectionSettingsPanel.java:377)
   at com.neurotec.samples.connection.ConnectionSettingsPanel.saveSettings(ConnectionSettingsPanel.java:132)
   at com.neurotec.samples.settings.SettingsManagerPanel$3.actionPerformed(SettingsManagerPanel.java:132)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   ... <snip> ...

Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'NClusterJni': The specified module could not be found.

at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:393)
at com.neurotec.cluster.NCluster.<clinit>(NCluster.java:28)
... 40 more
mdwest
 
Posts: 10
Joined: Apr 03, 2012 19:28

Re: Java general questions

Postby Maham 141 » Apr 26, 2012 08:03

Martynas wrote:Hello,

could you specify what exact problems do you meet, when using AbisSampleJava in NetBeans?

Maham 141 wrote:We are trying to implement the software using microcontroller so guide us is java a right choice to complete this project.

What processor does your micro controller use?


We are using SDK one of your software development kits first of all tell us
1) Does your SDK allow us to change extraction and matching algorithm?? Can we use our own programmed extraction algorithms(using various filters)??
2)We have decided to use PIC 16F88 Microcontroller in our hardware with USB to PIC interface.

Any help regarding this would be highly appreciated
Maham 141
 
Posts: 2
Joined: Apr 20, 2012 13:25

Re: NClusterJni library not found?

Postby Martynas » Apr 26, 2012 10:18

mdwest wrote:I am running the abis-applet sample, and get the following error during initialization:

Hi,

could you write the revision number of the SDK you are using? It can be found in the SDKRevision.txt file of the downloaded SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Martynas » Apr 27, 2012 10:35

Maham 141 wrote:Does your SDK allow us to change extraction and matching algorithm?? Can we use our own programmed extraction algorithms(using various filters)??


You can use your own algorithm instead of our provided extractor and matcher, but then I do not see any advantages of using our provided SDKs.

Maham 141 wrote:2)We have decided to use PIC 16F88 Microcontroller in our hardware with USB to PIC interface.


Our SDKs supports x86 and ARM processors. It would not be possible to run the SDK on such device.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: NClusterJni library not found?

Postby mdwest » May 01, 2012 15:45

Hi Martynas,

Product revision number: 82716
File dated 2-Jan-12
mdwest
 
Posts: 10
Joined: Apr 03, 2012 19:28

Re: NClusterJni library not found?

Postby Martynas » May 02, 2012 06:36

mdwest wrote:Product revision number: 82716
File dated 2-Jan-12

please use the latest updated SDK from our website.
Also we have released a new version last month - April 27, Revision 87298. So you can upgrade to it.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby cneafis » May 08, 2012 00:29

Im having problems getting pixels from a NImage:
When i try:
Code: Select all
NImage image = scanner.capture(-1);
byte[] b_image=image.getPixels().array();

i get this exception:
Code: Select all
java.nio.ByteBuffer.array(Unknown Source)

PS: When i use image.save(filename) is correctly saved.

I have a similar problem getting bytes from Templates but in that moment i just worked around but in this moment i need get Bytes from Neuro Objects.

Thanks in advance.
cneafis
 
Posts: 2
Joined: Feb 28, 2012 14:15

Re: Java general questions

Postby Martynas » May 08, 2012 10:49

cneafis wrote:Im having problems getting pixels from a NImage:
When i try:
Code: Select all
NImage image = scanner.capture(-1);
byte[] b_image=image.getPixels().array();

i get this exception:
Code: Select all
java.nio.ByteBuffer.array(Unknown Source)

PS: When i use image.save(filename) is correctly saved.

I have a similar problem getting bytes from Templates but in that moment i just worked around but in this moment i need get Bytes from Neuro Objects.

Hello,

if you want to save the ByteBuffer as byte array, then you need to use such code:

Code: Select all
NImage image = scanner.capture(-1);
ByteBuffer buffer = image.getPixels();
//if you want to save an NImage to ByteBuffer then use image.Save(NimageFormat) method
byte[] b_image = new byte[buffer.capacity()];
buffer.get(b_image);
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: NClusterJni library not found?

Postby mdwest » May 09, 2012 19:11

Martynas wrote:
mdwest wrote:Product revision number: 82716
File dated 2-Jan-12

please use the latest updated SDK from our website.
Also we have released a new version last month - April 27, Revision 87298. So you can upgrade to it.


Hello Martynas,

I downloaded the current SDK (Product revision number: 87298) and attempted to run the AbisApplet, and I received the same error. Library JClusterJni is not defined. I do not find this as a .jar file within the SDK.
Can you suggest how to solve the problem?

Thanks,
Mark
mdwest
 
Posts: 10
Joined: Apr 03, 2012 19:28

Re: Java general questions

Postby Martynas » May 10, 2012 11:49

mdwest wrote:I downloaded the current SDK (Product revision number: 87298) and attempted to run the AbisApplet, and I received the same error. Library JClusterJni is not defined. I do not find this as a .jar file within the SDK.
Can you suggest how to solve the problem?

please provide steps how to reproduce this issue. I have used the latest SDK and imported the AbisSample in the Eclipse as Maven project as described in the documentation of the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2207
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Error on execution of applet

Postby Vinicius » Jun 13, 2012 19:32

When run the applet happens this error

https://lh4.googleusercontent.com/-qj3W ... applet.JPG

Admin: merged to "Java general questions"
Vinicius
 
Posts: 9
Joined: Jun 04, 2012 15:04

PreviousNext

Return to Public

Who is online

Users browsing this forum: johnNers and 3 guests

cron