IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

API standards et tierces Java Discussion :

Création code barre


Sujet :

API standards et tierces Java

  1. #1
    Membre régulier
    Inscrit en
    Mars 2006
    Messages
    220
    Détails du profil
    Informations forums :
    Inscription : Mars 2006
    Messages : 220
    Points : 88
    Points
    88
    Par défaut Création code barre
    je cherche un bout de code qui génère des code barres en format image.

    merci pour les renseignement

  2. #2
    Membre à l'essai
    Profil pro
    Développeur
    Inscrit en
    Juillet 2002
    Messages
    15
    Détails du profil
    Informations personnelles :
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur

    Informations forums :
    Inscription : Juillet 2002
    Messages : 15
    Points : 20
    Points
    20
    Par défaut
    Il y a ça sur sourceforge :
    http://sourceforge.net/projects/jbarcodebean
    c'est pas mal : ça porduit des codes sous différents formats (39, 128...)

  3. #3
    Membre régulier
    Inscrit en
    Mars 2006
    Messages
    220
    Détails du profil
    Informations forums :
    Inscription : Mars 2006
    Messages : 220
    Points : 88
    Points
    88
    Par défaut
    mais je veux le créer dans mon code java et non avec un logiciel

  4. #4
    Membre expert Avatar de KiLVaiDeN
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    2 851
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2003
    Messages : 2 851
    Points : 3 481
    Points
    3 481
    Par défaut
    Tu peux utiliser JBarcodeBean dans ton code, ce n'est pas un programme, c'est un "JavaBeans component".

    Voici un exemple de code, tiré du site http://jbarcodebean.sourceforge.net/

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import jbarcodebean.*;
     
    public class ServletTest extends HttpServlet {
     
        JBarcodeBean bb;
     
        public void init(ServletConfig conf) throws ServletException {
            super.init(conf);
            bb = new JBarcodeBean();
            bb.setCodeType(new ExtendedCode39());
            bb.setShowText(true);
        }
     
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
     
            resp.setContentType("image/gif");
            OutputStream out = resp.getOutputStream();
     
            bb.setCode(req.getParameter("code"));
            bb.gifEncode(out);
        }
    }
    K

  5. #5
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut
    la méthode gifEncode() n'a pas l'air d'etre définie . J'ai pourtant télécharger le .jar du site officiel.
    Comment faire?

  6. #6
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut JBarcodeBean
    Bonsoir, j'aimerais pouvoir utiliser cette classe pour générer un code à barre.
    En JSP.
    J'ai trouvé ce code sur developpez mais la fonction gifEncoder n'existe pas apparement.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import jbarcodebean.*;
    import net.sourceforge.jbarcodebean.model.ExtendedCode39;
     
    public class ServletTest extends HttpServlet {
     
        JBarcodeBean bb;
     
        public void init(ServletConfig conf) throws ServletException {
            super.init(conf);
            bb = new JBarcodeBean();
            bb.setCodeType(new ExtendedCode39());
            bb.setShowText(true);
        }
     
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
     
            resp.setContentType("image/gif");
            OutputStream out = resp.getOutputStream();
     
            bb.setCode(req.getParameter("code"));
            bb.gifEncode(out);
        }
    }
    Et ensuite en Java Swing pour pouvoir l'imprimer.
    Merci.

  7. #7
    Expert éminent sénior Avatar de Uther
    Homme Profil pro
    Tourneur Fraiseur
    Inscrit en
    Avril 2002
    Messages
    4 562
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pyrénées Orientales (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Tourneur Fraiseur

    Informations forums :
    Inscription : Avril 2002
    Messages : 4 562
    Points : 15 502
    Points
    15 502
    Par défaut
    Essaie de prendre la bonne habitude de regarder la documentation plutôt que des code existant qui peuvent dater. La classe jbarcodebean.JBarcodeBean est deprecated . Il faut utiliser net.sourceforge.jbarcodebean.JBarcodeBean
    Je ne vois pas cette méthode dans la doc, mais la méthode draw() semble convenir pour génerer une image. Dans l'exemple que tu donnes on doit pouvoir utiliser à la place:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    BufferedImage bi = bb.draw(null);
    ImageIO.write(bi,"GIF",out);
    Quand a utiliser en Swing c'est tout aussi simple, il suffit de faire afficher le BufferedImage dans un JLabel.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    BufferedImage bi = bb.draw(null);
    JLabel codeBarre = new JLabel(new ImageIcon(bi));

  8. #8
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut
    En effet , merci beaucoup.

    Pour la méthode draw de JBarCodeBean , pourquoi mettre un null en paramètre?
    Je la comprends pas vraiment , elle demande un BufferedImage en paramètre pour en ressortir un autre.

    Dans mon script j'ai un null pointer exception.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
    import java.awt.image.BufferedImage;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    import net.sourceforge.jbarcodebean.JBarcodeBean;
    import net.sourceforge.jbarcodebean.model.Code128;
    import net.sourceforge.jbarcodebean.model.ExtendedCode39;
     
    public class ServletTest extends HttpServlet {
     
        JBarcodeBean bb;
        public static final int LABEL_BOTTOM = 0;
     
        public void init(ServletConfig conf) throws ServletException {
            super.init(conf);
            bb = new JBarcodeBean();
            bb.setCodeType(new Code128());
            bb.setLabelPosition(LABEL_BOTTOM);
        }
     
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
     
            resp.setContentType("image/gif");
            OutputStream out = resp.getOutputStream();
     
            bb.setCode("76200");
            BufferedImage bi = bb.draw(null);
            ImageIO.write(bi,"GIF",out);
        }
    }
    J'ai créé un deuxième Buffered Image et ça marche mieux !
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
     
    import java.awt.image.BufferedImage;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    import net.sourceforge.jbarcodebean.JBarcodeBean;
    import net.sourceforge.jbarcodebean.model.Code128;
    import net.sourceforge.jbarcodebean.model.ExtendedCode39;
     
    public class ServletTest extends HttpServlet {
     
        JBarcodeBean bb;
        public static final int LABEL_BOTTOM = 0;
     
        public void init(ServletConfig conf) throws ServletException {
            super.init(conf);
            bb = new JBarcodeBean();
            bb.setCodeType(new Code128());
            bb.setLabelPosition(LABEL_BOTTOM);
        }
     
        public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
     
            resp.setContentType("image/gif");
            OutputStream out = resp.getOutputStream();
     
            bb.setCode("76200");
     
             int width = 100;
             int height = 100;
     
             // Create buffered image that does not support transparency
             BufferedImage bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
     
            BufferedImage bi = bb.draw(bimage);
            ImageIO.write(bi,"GIF",out);
        }
    }

  9. #9
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut
    Maintenant pour Swing , en fait c'est pas à l'affichage que ça m'interesse d'afficher ce code à barre mais c'est à l'impression.
    La problématique est un peu différente.

    Voici le code pour afficher le code à barre (merci de l'aide!)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
     
    /*
    Definitive Guide to Swing for Java 2, Second Edition
    By John Zukowski
    ISBN: 1-893115-78-X
    Publisher: APress
    */
     
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
     
    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    import javax.swing.InputVerifier;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.JTextComponent;
     
    import net.sourceforge.jbarcodebean.JBarcodeBean;
    import net.sourceforge.jbarcodebean.JBarcodeBean.*;
    import net.sourceforge.jbarcodebean.model.Code128;
    import net.sourceforge.jbarcodebean.model.ExtendedCode39;
     
    public class Find {
      public static void main(String args[]) {
        String title = (args.length == 0 ? "TextField Listener Example"
            : args[0]);
        JFrame frame = new JFrame(title);
        Container content = frame.getContentPane();
     
            JBarcodeBean bb = new JBarcodeBean();
            bb.setCodeType(new Code128());
            bb.setLabelPosition(0);
            bb.setCode("76200");
            int width = 100;
            int height = 100;
     
             // Create buffered image that does not support transparency
           BufferedImage bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
     
           BufferedImage bi = bb.draw(bimage);
     
     
     
     
        JPanel namePanel = new JPanel(new BorderLayout());
        JLabel nameLabel = new JLabel(new ImageIcon(bi));
        nameLabel.setDisplayedMnemonic(KeyEvent.VK_N);
        JTextField nameTextField = new JTextField();
        nameLabel.setLabelFor(nameTextField);
        namePanel.add(nameLabel, BorderLayout.WEST);
        namePanel.add(nameTextField, BorderLayout.CENTER);
        content.add(namePanel, BorderLayout.NORTH);
     
        JPanel cityPanel = new JPanel(new BorderLayout());
        JLabel cityLabel = new JLabel("City: ");
        cityLabel.setDisplayedMnemonic(KeyEvent.VK_C);
        JTextField cityTextField = new JTextField();
        cityLabel.setLabelFor(cityTextField);
        cityPanel.add(cityLabel, BorderLayout.WEST);
        cityPanel.add(cityTextField, BorderLayout.CENTER);
        content.add(cityPanel, BorderLayout.SOUTH);
     
        ActionListener actionListener = new ActionListener() {
          public void actionPerformed(ActionEvent actionEvent) {
            System.out
                .println("Command: " + actionEvent.getActionCommand());
          }
        };
        nameTextField.setActionCommand("Yo");
        nameTextField.addActionListener(actionListener);
        cityTextField.addActionListener(actionListener);
     
        KeyListener keyListener = new KeyListener() {
          public void keyPressed(KeyEvent keyEvent) {
            printIt("Pressed", keyEvent);
          }
     
          public void keyReleased(KeyEvent keyEvent) {
            printIt("Released", keyEvent);
          }
     
          public void keyTyped(KeyEvent keyEvent) {
            printIt("Typed", keyEvent);
          }
     
          private void printIt(String title, KeyEvent keyEvent) {
            int keyCode = keyEvent.getKeyCode();
            String keyText = KeyEvent.getKeyText(keyCode);
            System.out.println(title + " : " + keyText + " / "
                + keyEvent.getKeyChar());
          }
        };
        nameTextField.addKeyListener(keyListener);
        cityTextField.addKeyListener(keyListener);
     
        InputVerifier verifier = new InputVerifier() {
          public boolean verify(JComponent input) {
            final JTextComponent source = (JTextComponent) input;
            String text = source.getText();
            if ((text.length() != 0) && !(text.equals("Exit"))) {
              Runnable runnable = new Runnable() {
                public void run() {
                  JOptionPane.showMessageDialog(source,
                      "Can't leave.", "Error Dialog",
                      JOptionPane.ERROR_MESSAGE);
                }
              };
              SwingUtilities.invokeLater(runnable);
              return false;
            } else {
              return true;
            }
          }
        };
        nameTextField.setInputVerifier(verifier);
        cityTextField.setInputVerifier(verifier);
     
        DocumentListener documentListener = new DocumentListener() {
          public void changedUpdate(DocumentEvent documentEvent) {
            printIt(documentEvent);
          }
     
          public void insertUpdate(DocumentEvent documentEvent) {
            printIt(documentEvent);
          }
     
          public void removeUpdate(DocumentEvent documentEvent) {
            printIt(documentEvent);
          }
     
          private void printIt(DocumentEvent documentEvent) {
            DocumentEvent.EventType type = documentEvent.getType();
            String typeString = null;
            if (type.equals(DocumentEvent.EventType.CHANGE)) {
              typeString = "Change";
            } else if (type.equals(DocumentEvent.EventType.INSERT)) {
              typeString = "Insert";
            } else if (type.equals(DocumentEvent.EventType.REMOVE)) {
              typeString = "Remove";
            }
            System.out.print("Type  :   " + typeString + " / ");
            Document source = documentEvent.getDocument();
            int length = source.getLength();
            try {
              System.out
                  .println("Contents: " + source.getText(0, length));
            } catch (BadLocationException badLocationException) {
              System.out.println("Contents: Unknown");
            }
          }
        };
        nameTextField.getDocument().addDocumentListener(documentListener);
        cityTextField.getDocument().addDocumentListener(documentListener);
     
        frame.setSize(250, 150);
        frame.setVisible(true);
      }
    }
    Maintenant beaucoup plus compliqué , je dois l'envoyer à l'impression .

  10. #10
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut
    Comment récupérer un objet Image de la classe JBarcodeBean ?
    merci.

  11. #11
    Membre habitué
    Profil pro
    Architecte de système d’information
    Inscrit en
    Janvier 2007
    Messages
    439
    Détails du profil
    Informations personnelles :
    Localisation : Etats-Unis

    Informations professionnelles :
    Activité : Architecte de système d’information

    Informations forums :
    Inscription : Janvier 2007
    Messages : 439
    Points : 178
    Points
    178
    Par défaut
    BareCodeComponent.java


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
     
    package com.fft.tribune.tools;
     
    import javax.swing.*;
    import javax.imageio.*;
     
    import java.io.*;
     
    import java.awt.*;
    import java.awt.print.*;
    import java.awt.image.*;
     
    import net.sourceforge.jbarcodebean.JBarcodeBean;
     
     
    /**
     *
     * @author Bogdan Helwin
     */
    public class BarecodeComponent extends JBarcodeBean {
     
        Image _img = null;
     
        /** Creates a new instance of BarecodeComponent */
        public BarecodeComponent() {
            super();
        }
     
        public Image getImage() {
            try {
                PipedOutputStream out = new PipedOutputStream();
                PipedInputStream in = new PipedInputStream(out);
                //gifEncode(out);
                _img = ImageIO.read(in);
            } catch (IOException e) {
                _img = null;
            }
            return _img;
        }
    }

    code à appeler
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
         BarecodeComponent bc = new BarecodeComponent();
                /*
                 * TODO: add switch for codebare type
                 */
                bc.setCodeType(new Code128());
                //bc.setShowText(true);
                bc.setCode(_barre);
                int barreHeigth = (int)(coef * _barreHeigth);
                bc.setBarcodeHeight(barreHeigth);
     
     
                // Create buffered image that does not support transparency
                BufferedImage bimage = new BufferedImage(100, barreHeigth , BufferedImage.TYPE_INT_RGB);
     
                BufferedImage bi = bc.draw(bimage);
     
     
                Image img = (Image)bi;
     
     
                int bareWidth = img.getWidth(null);
     
                int barreX = (int)((width - bareWidth) / 2);
     
                log.debug("barre img width    = " + img.getWidth(null));
                log.debug("      img heigth   = " + img.getHeight(null));
                log.debug("      bareWidth    = " + bareWidth ) ;
                log.debug("      barreHeigth  = " + barreHeigth ) ;
     
                g2d.drawImage(img, barreX, (int)barreY  - barreHeigth,
                                   //barreX + barreWidth, (int)barreY + barreHeigth,
                                   null);

  12. #12
    Futur Membre du Club
    Inscrit en
    Juillet 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Juillet 2010
    Messages : 16
    Points : 6
    Points
    6
    Par défaut
    Bonjour j'ai essayé d'utiliser JBarCodeBean avec votre exemple mais j'ai un souci au niveau de l'execution de la servlet sur tomcat 7.
    Voici une des erreurs que la console me rapporte
    Merci d'avance pour vos réponses
    Caused by: java.lang.NoClassDefFoundError: net/sourceforge/jbarcodebean/model/BarcodeStrategy
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Unknown Source)
    at java.lang.Class.getDeclaredFields(Unknown Source)
    at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:87)
    at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
    at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 7 more

  13. #13
    Membre averti
    Homme Profil pro
    Java
    Inscrit en
    Mai 2011
    Messages
    170
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 34
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Java
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2011
    Messages : 170
    Points : 444
    Points
    444
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Caused by: java.lang.NoClassDefFoundError: net/sourceforge/jbarcodebean/model/BarcodeStrategy
    No Class Def Found Error (5 mots anglais facile à comprendre non ? ) + ce qui à causé l'erreur : net/sourceforge/jbarcodebean/model/BarcodeStrategy

    Je préfère te laisser chercher et revenir poser une question si tu ne trouves toujours pas que te dire pourquoi, la compréhension des erreurs est d'une grande importance dans ce domaine.

    Edit : Def = definition ;-)

  14. #14
    Futur Membre du Club
    Inscrit en
    Juillet 2010
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Juillet 2010
    Messages : 16
    Points : 6
    Points
    6
    Par défaut
    J'ai très bien compris l'anglais du message d'erreur, c'est justement ça qui ne va pas. Je ne sais pas comment résoudre alors que je vois que cette classe est bien définie dans la bibliothèque...


    Edit : importer jbarcode dans le dossier lib de tomcat
    Images attachées Images attachées  

Discussions similaires

  1. [WD14] Création automatique de code barre
    Par Xsara 167 cv dans le forum WinDev
    Réponses: 10
    Dernier message: 10/11/2009, 09h53
  2. Création code barre
    Par Line dans le forum Excel
    Réponses: 5
    Dernier message: 29/09/2009, 21h46
  3. Création d'un code barre avec fpdf
    Par PrinceMaster77 dans le forum ASP
    Réponses: 1
    Dernier message: 15/11/2006, 22h24
  4. Création de code barre sous Access
    Par soso78 dans le forum Access
    Réponses: 1
    Dernier message: 24/07/2006, 17h59
  5. Création de codes barres dans un état access
    Par caporal dans le forum IHM
    Réponses: 5
    Dernier message: 15/11/2004, 14h13

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo