Changes between Version 11 and Version 12 of JavaApps
- Timestamp:
- Aug 16, 2008, 7:46:17 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaApps
v11 v12 18 18 <?xml version="1.0" encoding="ISO-8859-1"?> 19 19 <jsmoothproject> 20 <JVMSearchPath>registry</JVMSearchPath>21 <JVMSearchPath>javahome</JVMSearchPath>22 <JVMSearchPath>jrepath</JVMSearchPath>23 <JVMSearchPath>jdkpath</JVMSearchPath>24 <JVMSearchPath>exepath</JVMSearchPath>25 <JVMSearchPath>jview</JVMSearchPath>26 <bundledJVMPath>jre</bundledJVMPath>27 <classPath>YourJavaApplication.jar</classPath>28 <embeddedJar>false</embeddedJar>29 <executableName>YourLauncherApp.exe</executableName>30 <initialMemoryHeap>-1</initialMemoryHeap>31 <mainClassName>MainClassOfYourJavaApp</mainClassName>32 <maximumMemoryHeap>-1</maximumMemoryHeap>33 <maximumVersion></maximumVersion>34 <minimumVersion></minimumVersion>35 <skeletonName>Autodownload Wrapper</skeletonName>36 <skeletonProperties>37 <key>Message</key>38 <value><![CDATA[20 <JVMSearchPath>registry</JVMSearchPath> 21 <JVMSearchPath>javahome</JVMSearchPath> 22 <JVMSearchPath>jrepath</JVMSearchPath> 23 <JVMSearchPath>jdkpath</JVMSearchPath> 24 <JVMSearchPath>exepath</JVMSearchPath> 25 <JVMSearchPath>jview</JVMSearchPath> 26 <bundledJVMPath>jre</bundledJVMPath> 27 <classPath>YourJavaApplication.jar</classPath> 28 <embeddedJar>false</embeddedJar> 29 <executableName>YourLauncherApp.exe</executableName> 30 <initialMemoryHeap>-1</initialMemoryHeap> 31 <mainClassName>MainClassOfYourJavaApp</mainClassName> 32 <maximumMemoryHeap>-1</maximumMemoryHeap> 33 <maximumVersion></maximumVersion> 34 <minimumVersion></minimumVersion> 35 <skeletonName>Autodownload Wrapper</skeletonName> 36 <skeletonProperties> 37 <key>Message</key> 38 <value><![CDATA[ 39 39 40 Message to users when finding a jvm fails40 Message to users when finding a jvm fails 41 41 42 ]]>43 </value>44 </skeletonProperties>45 <skeletonProperties>46 <key>DownloadURL</key>47 <value>http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab</value>48 </skeletonProperties>49 <skeletonProperties>50 <key>SingleProcess</key>51 <value>1</value>52 </skeletonProperties>53 <skeletonProperties>54 <key>Debug</key>55 <value>0</value>56 </skeletonProperties>42 ]]> 43 </value> 44 </skeletonProperties> 45 <skeletonProperties> 46 <key>DownloadURL</key> 47 <value>http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab</value> 48 </skeletonProperties> 49 <skeletonProperties> 50 <key>SingleProcess</key> 51 <value>1</value> 52 </skeletonProperties> 53 <skeletonProperties> 54 <key>Debug</key> 55 <value>0</value> 56 </skeletonProperties> 57 57 </jsmoothproject> 58 59 58 }}} 60 59 … … 65 64 - Use boinc_zip from within the wrapper application by adding something like this to wrapper.C : 66 65 {{{ 67 68 66 string inzip; 69 67 boinc_resolve_filename_s("jre.zip",inzip); … … 72 70 if(boinc_zip(UNZIP_IT, inzip, outzip)) 73 71 fprintf(stderr, "unzipping failed\n"); 74 75 72 }}} 76 73 77 - make sure the jmooth launcher looks for an "embedded" jvm in the folder that you unzip to from the wrapper.78 - that's it. Since it is not possible to use the BOINC API from within the Java application, it would be polite to let the users opt out of running your application, e.g. if they have a lot of suspend/resume events.74 - Make sure the jmooth launcher looks for an "embedded" jvm in the folder that you unzip to from the wrapper. 75 - That's it. Since it is not possible to use the BOINC API from within the Java application, it would be polite to let the users opt out of running your application, e.g. if they have a lot of suspend/resume events.