Probleme de comande executer un fichier jar

Fermé
keponcture - Modifié par keponcture le 31/08/2011 à 15:03
 keponcture - 31 août 2011 à 15:53
http://imagik.fr/view-rl/475675
(désoler pour des raison d'orthographe je doit mettre cette image)
merci de vôtres compréhension
A voir également:

2 réponses

zipe31 Messages postés 36402 Date d'inscription dimanche 7 novembre 2010 Statut Contributeur Dernière intervention 27 janvier 2021 6 415
31 août 2011 à 15:09
Salut,

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

sudo apt-get java
1
arg je croyais que c'était bon mais non...
l'opération java n'est pas valide
merci quand même ;)
0
zipe31 Messages postés 36402 Date d'inscription dimanche 7 novembre 2010 Statut Contributeur Dernière intervention 27 janvier 2021 6 415
31 août 2011 à 15:27
Est-ce que java est installé ou essaies-tu justement de l'installer ?
0
j'ai installer openJDK...
0
je crois avoire trouver en tapant just java
...
0
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
Bogomips Messages postés 123 Date d'inscription mardi 5 avril 2011 Statut Membre Dernière intervention 18 mars 2015 16
Modifié par Bogomips le 31/08/2011 à 15:10
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
oui mais c'est pour avoir la permissions merci quand même
0