Salome HOME
Added test of checkin with empty list of steps.
[tools/siman.git] / Workspace / Siman / applet_howto.txt
1 set path=%path%;C:\Program Files\Java\jdk1.6.0_03\bin
2
3
4 D:\users\rkv\SIMAN\SIMAN_SRC\Workspace\Siman\build\classes>
5 set path=%path%;"C:\Program Files\Java\jdk1.6.0_20\bin"
6
7 C:\work\Siman\SIMAN_SRC\Workspace\Siman\build\classes>
8 jar cvf splat-launcher.jar org\splat\launcher\*.class
9
10
11 cd ..\..\WebContent\jap
12
13 jarsigner -verbose -keystore launcherkeystore -signedjar splat-signedlauncher.jar splat-launcher.jar launcheralias
14
15
16
17 For creation the applet please use the following java methods :
18
19  //To get the SALOME_HOME environment variable
20      String SALOME_HOME = System.getenv("SALOME_ROOT_DIR");
21
22  If SALOME_ROOT_DIR does not exist the SALOME_HOME equals to _null_.
23
24  //To execute the RunSalome script
25      Runtime runtime = Runtime.getRuntime();
26      String pathToScript = SALOME_HOME+"\\runSalome" or pathToScript = SALOME_HOME+"runSalome"
27
28      if (new File(pathToScript).exists()) {
29          Process process = runtime.exec(pathToScript);
30      }
31      
32      
33      
34     <applet name="perform" id="perform" code="org.splat.launcher.ToolbarApplet.class" archive="../jap/splat-signedlauncher.jar" width=54 height=24>
35         <param name="icon0" value="tool.winword.png" />
36           <param name="tool0" value="winword.exe" />
37         <param name="icon1" value="tool.sgeom.png" />
38           <param name="tool1" value="../sgeom/index.jsp" />
39     </applet>
40
41
42 Dear Colleagues,
43
44   
45
46  Some more details about current procedure of SALOME running
47
48  It probably will be updated in accordance with changes of SALOME directories
49  organizarion
50
51   
52
53  To check availability of SALOME environment, the applet should :
54
55  - check existence of environment variable $SALOME_ROOT_DIR
56
57  - check existence of environment file $SALOME_ROOT_DIR/env_build.sh
58
59  - existence of run bash script $SALOME_ROOT_DIR/KERNEL/bin/salome/runSalome
60
61   
62
63  To run SALOME-SIMAN :
64
65  - open bash shell 
66
67  bash
68
69  - export SALOME environment variables  
70
71  . $SALOME_ROOT_DIR/env_build.sh
72
73  - run bash shell script 
74
75  runSalome --siman --siman-study=s --siman-scenario=sc --siman-user=u -k
76   
77
78  where :
79
80  the SIMAN parameters are displayed as Title of the SALOME GUI Window 
81
82  "-k" is to kill previously run runSalome and all SALOME processes
83
84   
85
86  --
87
88  Best Regards,
89
90  Alexander