Well, I reactivate this thread again.
Because of the fact that firmware 2.11 hasn't got a er_settings.txt anymore, some preparation need to be changed.
We have a new configuration file, which lives here:
Code:
/mnt/settings/registry/registry.xml
This should be added maybe to registry.xml:
Code:
<applications>
...
<application type="JAR">
<appCategory>viewer</appCategory>
<execute>=/usr/local/startjar/startjar.py</execute>
<argMask>_MANIFEST_</argMask>
<xResourceName>intent</xResourceName>
<ipcChannel>15</ipcChannel>
<supportFormat>
<extName>jar</extName>
</supportFormat>
<appIconPath/>
</application>
...
</applications>
Code:
<extensionInfos>
...
<extensionInfo>
<associateApp>JAR</associateApp>
<associateOrder>1</associateOrder>
<extName>jar</extName>
<extIcon>/usr/local/startjar/java.png</extIcon>
</extensionInfo>
...
</extensionInfos>
Is this code above correct?
I wanted to start the sample app Anagrams of the JDK with this manifest.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<dc-metadata>
<Title>Anagram</Title>
<Description/>
<Date>2007-01-01T00:00:00</Date>
</dc-metadata>
<y-metadata>
<startpage>anagrams.jar</startpage>
<image>.cover.png</image>
<version>000</version>
<ItemSize>32768</ItemSize>
</y-metadata>
<jar>
<jarfile>anagrams.jar</jarfile>
<jarfile>/home/intent/irex.jar</jarfile>
<vm-argument>-v</vm-argument>
<vm-argument>-Dfoo.bar=foobar</vm-argument>
<startclass>com.toy.anagrams.ui.Anagrams</startclass>
</jar>
</metadata>
</package>
I didn't get it to start, because I renamed a wrong file to manifest.bac.xml with result of manifest with a non correct startclass.
I can't correct my fault because trying to start a java program was my very last action before putting my iLiad in the travelling box for the trip to home.
So "startclass" in manifest.xml should be the same as "Main-Class" in META-INF/MANIFEST.MMF of app's jar file? Right?
Code:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.6.0_03-b05 (Sun Microsystems Inc.)
Main-Class: com.toy.anagrams.ui.Anagrams
Class-Path:
X-COMMENT: Main-Class will be added automatically by build
Thx helch for your work.