Bonjour,
j'ai crée une classe java qui fonctionne très bien sous eclipse. j'au donc génére le .jar de mon projet eclipse pour l'exploiter en Windev 16 avec les recommandation de la doc (appel de méthode statique).

Voici mon code 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
41
42
43
44
45
46
47
48
49
50
51
import com.lexpersona.lp7command.command.CommandException;
import com.lexpersona.lp7command.command.LP7Command;
 
public class SignExpert {
 
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
try	{
 
			System.out.println("Test");
 
			String TblCommand[] = new String[22];
			TblCommand[0]="-create";
			TblCommand[1]="-sourcefile";
			TblCommand[2]="C:\\Users\\cyril\\Desktop\\SignatureJava\\test.pdf";
			TblCommand[3]="-signaturetype";
			TblCommand[4]="-independant--implicit";
			TblCommand[5]="-keystoretype";
			TblCommand[6]="pkcs11";
			TblCommand[7]="-token_manager_invisible";
			TblCommand[8]="-token_pkcs11_module gclib.dll";
			TblCommand[9]="-token_manager_invisible";
			TblCommand[10]="-format plp7";
			TblCommand[11]="-pdf-image-file";
			TblCommand[12]="C:\\Users\\cyril\\Desktop\\SignatureJava\\signature.jpg";
			TblCommand[13]="-pdf-pages period 2;1";
			TblCommand[14]="-pdf-image-position bottom-left;20";
			TblCommand[15]="-visible_signature";
			TblCommand[16]="-visible_signature_image";
			TblCommand[17]="C:\\Users\\cyril\\Desktop\\SignatureJava\\signature.jpg";
			TblCommand[18]="-visible_signature_page 1";
			TblCommand[19]="-visible_signature_width 80";
			TblCommand[20]="-visible_signature_height 40";
			TblCommand[21]="-visible_signature_position bottom-right;30";
 
			LP7Command command = new LP7Command();
			command.decodeParameters(TblCommand);
			command.process();
		}
		catch (CommandException exception)	{
			int errorCode = exception.getCode();
			System.out.println("Error code: " + errorCode);
			System.out.println("Error message: ");
			exception.printStackTrace(System.out);
		}		
	}
 
}
Et mon code Windev :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
SI	JavaCharge("C:\Users\cyril\Desktop\SignExpert.jar") ALORS //qui charge mon jar
	LIB_CHARGE_API = ".jar chargé"
	javaExécute("SignExpert") //qui doit lancer le main de ma classe SignExpert
 
	LIB_RETOUR_JAVA = "Signature ok"
 
SINON
	LIB_CHARGE_API = "Impossible de chargé la classe "
FIN

Et a l’exécution je me retrouve avec l'erreur suivante :
Vous avez appelé la fonction JavaExécute.
Impossible de trouver la classe Java <SignExpert>.

je ne comprend pas pourquoi si quelqu'un à une idée.