Probleme de comande executer un fichier jar

keponcture -  
 keponcture -
http://imagik.fr/view-rl/475675
(désoler pour des raison d'orthographe je doit mettre cette image)
merci de vôtres compréhension

2 réponses

  1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
     
    Salut,

    Enlèves le "-jar" et ça devrait aller mieux :

    sudo apt-get java
    1
    1. keponcture
       
      arg je croyais que c'était bon mais non...
      l'opération java n'est pas valide
      merci quand même ;)
      0
    2. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
       
      Est-ce que java est installé ou essaies-tu justement de l'installer ?
      0
    3. keponcture
       
      j'ai installer openJDK...
      0
    4. keponcture
       
      je crois avoire trouver en tapant just java
      ...
      0
    5. keponcture
       
      Usage: java [-options] class [args...]
      (to execute a class)
      or java [-options] -jar jarfile [args...]
      (to execute a jar file)
      where options include:
      -d32 use a 32-bit data model if available
      -d64 use a 64-bit data model if available
      -client to select the "client" VM
      -server to select the "server" VM
      -cacao to select the "cacao" VM
      -zero to select the "zero" VM
      -hotspot is a synonym for the "client" VM [deprecated]
      The default VM is client.

      -cp <class search path of directories and zip/jar files>
      -classpath <class search path of directories and zip/jar files>
      A : separated list of directories, JAR archives,
      and ZIP archives to search for class files.
      -D<name>=<value>
      set a system property
      -verbose[:class|gc|jni]
      enable verbose output
      -version print product version and exit
      -version:<value>
      require the specified version to run
      -showversion print product version and continue
      -jre-restrict-search | -jre-no-restrict-search
      include/exclude user private JREs in the version search
      -? -help print this help message
      -X print help on non-standard options
      -ea[:<packagename>...|:<classname>]
      -enableassertions[:<packagename>...|:<classname>]
      enable assertions with specified granularity
      -da[:<packagename>...|:<classname>]
      -disableassertions[:<packagename>...|:<classname>]
      disable assertions with specified granularity
      -esa | -enablesystemassertions
      enable system assertions
      -dsa | -disablesystemassertions
      disable system assertions
      -agentlib:<libname>[=<options>]
      load native agent library <libname>, e.g. -agentlib:hprof
      see also, -agentlib:jdwp=help and -agentlib:hprof=help
      -agentpath:<pathname>[=<options>]
      load native agent library by full pathname
      -javaagent:<jarpath>[=<options>]
      load Java programming language agent, see java.lang.instrument
      -splash:<imagepath>
      show splash screen with specified image
      See http://java.sun.com/javase/reference for more details.



      le truck c qu'il me dise la même chose :/
      0
  2. Bogomips Messages postés 131 Statut Membre 16
     
    Salut

    Pour lancer un fichier Jar ,tu dois taper (si Java est installé):

    java -jar lenomdufichier.jar

    Dans ton exemple, tu as tapé:

    sudo apt-get java -jar
    0
    1. keponcture
       
      oui mais c'est pour avoir la permissions merci quand même
      0