Changes between Version 11 and Version 12 of JavaApps


Ignore:
Timestamp:
Aug 16, 2008, 7:46:17 AM (16 years ago)
Author:
Simek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavaApps

    v11 v12  
    1818<?xml version="1.0" encoding="ISO-8859-1"?>
    1919<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[
    3939
    40 Message to users when finding a jvm fails
     40        Message to users when finding a jvm fails
    4141
    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>
    5757</jsmoothproject>
    58 
    5958}}}
    6059
     
    6564 - Use boinc_zip from within the wrapper application by adding something like this to wrapper.C :
    6665{{{
    67 
    6866        string inzip;
    6967        boinc_resolve_filename_s("jre.zip",inzip);
     
    7270        if(boinc_zip(UNZIP_IT, inzip, outzip))
    7371                fprintf(stderr, "unzipping failed\n");
    74 
    7572}}}
    7673
    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.