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

avec Java Discussion :

Importer des packages avec le shell


Sujet :

avec Java

  1. #1
    Nouveau Candidat au Club
    Inscrit en
    Février 2013
    Messages
    4
    Détails du profil
    Informations forums :
    Inscription : Février 2013
    Messages : 4
    Points : 1
    Points
    1
    Par défaut Importer des packages avec le shell
    hello every one ;
    i work in desktop java application using JFrame , when i execute this projest in netbeans everithing is all-right but when i compile it using shell command (javac frame.name.java) i have lot of errors like this :

    <<<<<error: package org.jdesktop.layout does not exist
    .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)>>>>>

    i think i must export org package in ~/.bashrc file ,
    but nothing right ,
    can any one help????
    thanks in advance .

  2. #2
    Membre expérimenté
    Avatar de yotta
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Septembre 2006
    Messages
    1 088
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Technicien maintenance
    Secteur : Industrie

    Informations forums :
    Inscription : Septembre 2006
    Messages : 1 088
    Points : 1 540
    Points
    1 540
    Par défaut
    Hello,

    Normaly, when you compile a project in NetBeans, and when you declare some libraries or jar in the preoperties of your project, Netbeans create a directory "lib" in the "dist" destination directory. And in this directory, Netbeans copy the jars you need. I think it's a NetBeans configuration mistake. Check the option "Build project in classpath" in Libraries tree in your project's properties. For me, this is true, and when i compile a Project with an extension Library that correctly define in the properties of my project, a directory named 'lib' creating by NetBeans compilation contain my Library. And in the METAINF the classpath is update for pointing in this directory.

    I think you make an error in your line :
    (javac frame.name.java)
    I suppose you want to write java.... for execution. javac is for compilation...
    If you have executed your code in NetBeans, Netbeans compiling it. Well, after NetBeans execution, a directory named "dist" created in your netbeans project directory. And in this dist Directory, you'll find you jar application, with a 'lib' directory if need.
    Une technologie n'est récalcitrante que par ce qu'on ne la connait et/ou comprend pas, rarement par ce qu'elle est mal faite.
    Et pour cesser de subir une technologie récalcitrante, n'hésitez surtout pas à visiter les Guides/Faq du site !

    Voici une liste non exhaustive des tutoriels qui me sont le plus familiers :
    Tout sur Java, du débutant au pro : https://java.developpez.com/cours/
    Tout sur les réseaux : https://reseau.developpez.com/cours/
    Tout sur les systèmes d'exploitation : https://systeme.developpez.com/cours/
    Tout sur le matériel : https://hardware.developpez.com/cours/

Discussions similaires

  1. Problème "Rechercher des patrons" avec Korn Shell
    Par dongnold dans le forum Linux
    Réponses: 2
    Dernier message: 29/07/2006, 15h22
  2. importer des tables avec les relations
    Par guigui5931 dans le forum Access
    Réponses: 5
    Dernier message: 23/06/2006, 12h14
  3. Réponses: 3
    Dernier message: 13/05/2006, 18h31
  4. Importer des donnees avec fichier txt
    Par flOZ dans le forum Requêtes
    Réponses: 8
    Dernier message: 21/04/2006, 17h26
  5. Importation des mails avec Kmail et Thunderbird ?
    Par axel-erator dans le forum Applications et environnements graphiques
    Réponses: 6
    Dernier message: 30/11/2004, 00h36

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