gorgorbhey
Messages postés12Date d'inscriptionlundi 14 décembre 2009StatutMembreDernière intervention24 février 2020
-
13 nov. 2009 à 17:15
cs_DARKSIDIOUS
Messages postés15814Date d'inscriptionjeudi 8 août 2002StatutMembreDernière intervention 4 mars 2013
-
13 nov. 2009 à 17:24
Bonjour,
Voici mon problème.
Ci-dessous un fichier command ms-dos qui lance une applet en fonction de la variables passée en argument.
le fichier se nomme JDemo.cmd
Je lance mon applet en lançant la commande "JDemo.cmd SDDemo" dans l'invite de commande msdos.
Comme on peut le voir dans le code un fichier jar est nécessaire, il y a d'autres classes aussi
Ma question: Comment je peux lancer cette applet à partir d'une page html ?
@echo off
setlocal
set SIGNWARE_JAR=SPSignware_18.jar
set path=..\..\c-api\Win32;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%
set CLASSPATH=..\%SIGNWARE_JAR%;%CLASSPATH%
if not exist ..\%SIGNWARE_JAR% (
echo Please check your installation, cannot find ..\%SIGNWARE_JAR%
goto :EOF
)
if /I "%1" == "SDDemo" ( set JMAIN=jTablet.SDDemo& shift) else (
if /I "%1" == "SWClean" ( set JMAIN=jSWClean.SWClean& shift) else (
if /I "%1" == "TabletBackground" ( set JMAIN=jTabletBackground.TabletBackground& shift) else (
echo Select the sample:
echo jTablet.SDDemo will execute the tablet entry demo
REM echo jTabletBackground.TabletBackground will execute the LCD Background demo
echo jSWClean.SWClean will execute the cleaning demo
set /P JMAIN=
)
)
)
if "%JMAIN%" == "" (
echo JDemo usage
echo JDemo ClassName options
echo supported ClassName:
echo SDDemo Tablet entry demo
REM echo TabletBackground Demonstrate setting the tablet LCD background
echo SWClean Cleaning demo
echo default: SDDemo
pause
goto :EOF
)
cs_DARKSIDIOUS
Messages postés15814Date d'inscriptionjeudi 8 août 2002StatutMembreDernière intervention 4 mars 2013130 13 nov. 2009 à 17:24
Salut,
Pas la peine d'ouvrir un nouveau topic à ce sujet : celà complique les recherches sur le forum, et empêche toute conversation suivie entre les membres !