Bonjour j'ai un fichier bat que je voudrai traduire en.sh
la bat :
Celui ci fonctionne
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 echo off set JAVAMAIL=lib\activation.jar;lib\mail.jar;lib\smtp.jar;lib\dsn.jar;lib\imap.jar;lib\pop3.jar; set ENTREPRISE=lib\ENTREPRISE.jar; set CLASSES=TestSmtp.jar set MAIN_CLASSE=com.entreprise.frames.FramePrincipale "C:\Program Files\Java\jre1.5.0_11\bin\java" -classpath %JAVAMAIL%%ENTREPRISE%%CLASSES% %MAIN_CLASSE%
maintenant le sh
Ou ai-je faux car il me donne ca pour sh timmy.sh
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 #!/bin/sh set $JAVAMAIL=lib/activation.jar;lib/mail.jar;lib/smtp.jar;lib/dsn.jar;lib/imap.jar;lib/pop3.jar; set $entreprise=lib/entreprise.jar; set $CLASSES=TestSmtp.jar set $MAIN_CLASSE=com.entreprise.frames.FramePrincipale $JAVA_HOME -classpath $JAVAMAIL$ENTREPRISE$CLASSES $MAIN_CLASSE
Avant j'avais des erreurs de permissions sur les jars alrs j'ai mis toutes les merm a tous les utilisateurs ..timmy.sh: line 3: lib/mail.jar: cannot execute binary file
timmy.sh: line 3: lib/smtp.jar: cannot execute binary file
timmy.sh: line 3: lib/dsn.jar: cannot execute binary file
timmy.sh: line 3: lib/imap.jar: cannot execute binary file
timmy.sh: line 3: lib/pop3.jar: cannot execute binary file
: command not found
: command not found
timmy.sh: line 8: /usr/local/jdk1.5.0_09: is a directory
MErci
Partager