Jad/MANIFEST problems

Hello world!
I'm having a problem with my J2ME midlet. I can build it correctly, but I'm having problems running it.
When running that way :
emulator -Dcom.sun.midp.io.http.proxy=0:0 -Xdescriptor:C:\WTK21\apps\project\bin\MIDmain.jad
I'm obtaining this error:
com.sun.kvem.midletsuite.InvalidJadException: Reason = 18
Missing Jar URL in the jad descriptor
here is my MIDmain.jad file:
MIDlet-1: MIDmain, MIDmain.png, MIDmain
MIDlet-Name: MIDmain
midlet-jar-size: 7211
MIDlet-Jar-URL: C:\WTK21\apps\playboy\bin\MIDmain.jar
MIDlet-Permissions: javax.microedition.io.Connector.http
MIDlet-Vendor: Sun Microsystems
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
It seems to me that the Jar URL is in the jar descriptor, isn't it?
Here is my MANIFEST.MF file, by any chance:
MIDlet-1: MIDmain, MIDmain.png, MIDmain
MIDlet-Name: MIDmain
MIDlet-Permissions: javax.microedition.io.Connector.http
MIDlet-Vendor: Sun Microsystems
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
Any ideas?
I'm using WTK21 on windows 2000

Hi
have you got any solution for the problem.If so please help as I am also facing the
same issue.
thanks
Hello world!
I'm having a problem with my J2ME midlet. I can build
it correctly, but I'm having problems running it.
When running that way :
emulator -Dcom.sun.midp.io.http.proxy=0:0
-Xdescriptor:C:\WTK21\apps\project\bin\MIDmain.jad
I'm obtaining this error:
com.sun.kvem.midletsuite.InvalidJadException: Reason =
18
Missing Jar URL in the jad descriptor
here is my MIDmain.jad file:
MIDlet-1: MIDmain, MIDmain.png, MIDmain
MIDlet-Name: MIDmain
midlet-jar-size: 7211
MIDlet-Jar-URL: C:\WTK21\apps\playboy\bin\MIDmain.jar
MIDlet-Permissions:
javax.microedition.io.Connector.http
MIDlet-Vendor: Sun Microsystems
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
It seems to me that the Jar URL is in the jar
descriptor, isn't it?
Here is my MANIFEST.MF file, by any chance:
MIDlet-1: MIDmain, MIDmain.png, MIDmain
MIDlet-Name: MIDmain
MIDlet-Permissions:
javax.microedition.io.Connector.http
MIDlet-Vendor: Sun Microsystems
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
Any ideas?
I'm using WTK21 on windows 2000

Similar Messages

  • About read manifest problem.

    Hi,
    I have a problem .Who can tell me how to read [*.jar]/META-INF/MANIFEST.MF file using codes in the jar ?
    Thanks for help!

    I'm sorry that can't work.
    If the X.jar not in the lib fold it can read its manifes.mf.But it in the folder "lib" can't read manifest when the run.bat is not in the lib folder.
    The exception is:
    java.util.zip.ZipException: The system cannot find the file specified
    at java.util.zip.ZipFile.open(Native Method)
    ........

  • WLS 6.1 SP2 and Struts 1.1b3 Manifest Problem

    When I try to deploy the struts-example.war or if I add the struts.jar
    to any other web app I've created, I get this error when I start WLS and it
    tries to deploy that war.
    java.lang.StringIndexOutOfBoundsException
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName
    (WebAppHelper.java:469)
    I'm using version 1.1b3 of struts. I'm having no problems with version
    1.0.2 of struts.
    I'm guessing its complaining about the manifest file in struts.jar, but I
    don't understand why.
    Here's my version info and the stack trace (my web app is called findme in
    this example). Thanks in advance.
    -Phil
    Server BuildWebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product VersionsWebLogic Server 6.1 SP2 12/18/2001 11:13:46
    #154529 WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    <Feb 11, 2003 7:45:25 AM EST> <Error> <J2EE> <Error deploying application
    findme: Could not load findme>
    <Feb 11, 2003 7:45:25 AM EST> <Error> <Management> <ApplicationManager
    starting Config caught throwable
    java.lang.reflect.UndeclaredThrowableException:
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.jav
    a:469)
    at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:
    234)
    at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServ
    letContext.java:3407)
    at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletCont
    ext.java:3376)
    at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.ja
    va:862)
    at
    weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.
    java:815)
    at
    weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:144)
    at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java
    :76)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy29.addWebDeployment(Unknown Source)
    at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployme
    nt(WebServerMBean_CachingStub.java:1121)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:315)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploymen
    tTarget.java:279)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(
    DeploymentTarget.java:233)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploy
    mentTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy28.updateDeployments(Unknown Source)
    at
    weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments
    (ServerMBean_CachingStub.java:2761)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(App
    licationManager.java:370)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManag
    er.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy36.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start
    (ApplicationManagerMBean_CachingStub.java:480)
    at
    weblogic.management.Admin.startApplicationManager(Admin.java:1180)
    at weblogic.management.Admin.finish(Admin.java:590)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
    at weblogic.Server.main(Server.java:35)
    --------------- nested within: ------------------
    weblogic.j2ee.DeploymentException: Could not load findme - with nested
    exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
    at
    weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:144)
    at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java
    :76)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy29.addWebDeployment(Unknown Source)
    at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployme
    nt(WebServerMBean_CachingStub.java:1121)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:315)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploymen
    tTarget.java:279)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(
    DeploymentTarget.java:233)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploy
    mentTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy28.updateDeployments(Unknown Source)
    at
    weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments
    (ServerMBean_CachingStub.java:2761)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(App
    licationManager.java:370)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManag
    er.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy36.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start
    (ApplicationManagerMBean_CachingStub.java:480)
    at
    weblogic.management.Admin.startApplicationManager(Admin.java:1180)
    at weblogic.management.Admin.finish(Admin.java:590)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
    at weblogic.Server.main(Server.java:35)
    >
    <Feb 11, 2003 7:45:32 AM EST> <Error> <J2EE> <Error deploying application
    struts-example: Could notload struts-example>
    <Feb 11, 2003 7:45:32 AM EST> <Error> <Management> <Error deploying
    application .\config\mydomain\applications\struts-example.war:
    java.lang.reflect.UndeclaredThrowableException>

    I've solved my own problem. I learned that there was a sp4 (let alone a
    sp3) for WLS. Installed that and the problem went away. Sorry for the
    noise.
    -Phil
    Philip Bower <[email protected]> wrote in
    news:[email protected]:
    When I try to deploy the struts-example.war or if I add the struts.jar
    to any other web app I've created, I get this error when I start WLS
    and it tries to deploy that war.
    java.lang.StringIndexOutOfBoundsException
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName
    (WebAppHelper.java:469)
    I'm using version 1.1b3 of struts. I'm having no problems with
    version 1.0.2 of struts.
    I'm guessing its complaining about the manifest file in struts.jar,
    but I don't understand why.
    Here's my version info and the stack trace (my web app is called
    findme in this example). Thanks in advance.
    -Phil
    Server BuildWebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product VersionsWebLogic Server 6.1 SP2 12/18/2001
    11:13:46 #154529 WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02
    #154529
    <Feb 11, 2003 7:45:25 AM EST> <Error> <J2EE> <Error deploying
    application findme: Could not load findme>
    <Feb 11, 2003 7:45:25 AM EST> <Error> <Management> <ApplicationManager
    starting Config caught throwable
    java.lang.reflect.UndeclaredThrowableException:
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -1
    at java.lang.String.substring(String.java:1525)
    at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper
    .jav a:469)
    at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.j
    ava: 234)
    at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebApp
    Serv letContext.java:3407)
    at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServlet
    Cont ext.java:3376)
    at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContex
    t.ja va:862)

  • Manifest Problems

    I'm having a lot of trouble with customizing the manifest file.
    The first problem is that any non-standard customizing (such as menu placement in InDesign) gets wiped out by the manifest editor. My workaround is to avoid using the manifest editor and I edit the manifest manually.
    My current problem, is that I need a different ScriptPath for Flash and Fireworks. I noticed that the Kuler extension does this, and I copied the (basic) XML structure from there. I'm getting a parsing error when I try to build my project.
    Am I doing something wrong or is this a bug?
    Here's my manifest:
    <?xml version="1.0" encoding="UTF-8"?>
    <ExtensionManifest Version="2.0" ExtensionBundleId="ScriptBay" ExtensionBundleVersion="0.1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Author>
            <![CDATA[In-Tools]]>
        </Author>
        <Contact>
            <![CDATA[contact me...]]>
        </Contact>
        <Legal>
            <![CDATA[Legal stuff...]]>
        </Legal>
        <Abstract href="http://in-tools.com/scriptbay.html">
            <![CDATA[This is a Script Panel replacement for the entire Creative Suite plus a whole lot more!!!]]>
        </Abstract>
        <ExtensionList>
            <Extension Id="ScriptBay" Version="0.1.4" />
        </ExtensionList>
        <ExecutionEnvironment>
            <HostList>
                <Host Name="AICY" Version="7" />
                <Host Name="FLPR" Version="11" />
                <Host Name="FWKS" Version="11" />
                <Host Name="IDSN" Version="7" />
                <Host Name="ILST" Version="15" />
                <Host Name="PHSP" Version="12" />
                <Host Name="PHXS" Version="12" />
                <Host Name="BRDG" Version="4" />
            </HostList>
            <LocaleList>
                <Locale Code="All" />
            </LocaleList>
            <RequiredRuntimeList>
                <RequiredRuntime Name="CSXS" Version="2.0" />
            </RequiredRuntimeList>
        </ExecutionEnvironment>
        <DispatchInfoList>
            <Extension Id="ScriptBay">
                <DispatchInfo >
                    <Resources>
                        <SwfPath>./ScriptBay.swf</SwfPath>
                    </Resources>
                    <Lifecycle>
                        <AutoVisible>true</AutoVisible>
                    </Lifecycle>
                    <UI>
                        <Type>Panel</Type>
                        <Menu>Script Bay</Menu>
                        <Geometry>
                            <Size>
                                <Height>350</Height>
                                <Width>208</Width>
                            </Size>
                        </Geometry>
                        <Icons>
                            <Icon Type="Normal">./icons/script_bay_bw.png</Icon>
                            <Icon Type="RollOver">./icons/script_bay_c.png</Icon>
                        </Icons>
                    </UI>
                </DispatchInfo>
                <DispatchInfo Host="AICY">
                    <UI>
                        <Menu Placement="'Main:&amp;Window:UtilitiesSubmenu',600.0,'KBSCE Window menu'">Script Bay</Menu>
                    </UI>
                </DispatchInfo>
                <DispatchInfo Host="IDSN">
                    <UI>
                        <Menu Placement="'Main:&amp;Window:UtilitiesSubmenu',600.0,'KBSCE Window menu'">Script Bay</Menu>
                    </UI>
                </DispatchInfo>
                <DispatchInfo Host="FLPR">
                    <Resources>
                        <ScriptPath>./FlashFunctions.jsfl</ScriptPath>
                    </Resources>
                </DispatchInfo>
                <DispatchInfo Host="FWKS">
                    <Resources>
                        <ScriptPath>./FireworksFunctions.jsf</ScriptPath>
                    </Resources>
                </DispatchInfo>
            </Extension>
        </DispatchInfoList>
    </ExtensionManifest>
    Harbs

    It is "&amp;" in the manifest. The forum software strikes again!
    The error is:
    The reference to entity "Window:UtilitiesSubmenu" must end with the ":" delimiter.
    The thing is: it does not have any problem parsing it without the Flash and Fireworks DispatchInfo.
    Harbs

  • Manifest problem in compiling through ant (csc)

    Hi All,
    I have been trying to compile reports in Dot Net 2003 using ant script (by calling csc). But after compilation, when I try to see any report, I get the message - Unable to find the report in the manifest resources...-. I checked the generted DLL through ildasm.exe and found that the manifest does not have complete path with the rpt file as a namespace, where as the corresponding .cs file has complete path as namespace. For example, if report is present under:
    Project - Sales
    Folder - SalesReports
    Sub Folder - reports
    Report (present under sub folder) - SalesTrack.rpt
    then the namespace for .cs file is SalesReport.reports, but for the report file, it is just SalesTrack.rpt. But if the same report is compiled in DotNet studio, then the namespace is properly attached as SalesReports.reports.
    Is there any way to attach SalesReports.reports with the report name?
    Regards,
    Manish

    try copying the Csc.exe command line from the Output window when building in the IDE to see what you may be missing.

  • Manifest problem in nested jars

    I ve created an enterprise archive file ( APP.ear ) which contains all EJB's and WAR's etc.
    I also put in my APP.ear's manifest.mf file some application specific information (such as app-name=app-value).
    I wonder now how can my EJB's, WAR's, code... read this values?
    Shall I care about weblogic classloaders? is there any standard way? I want to keep my APP.ear 'clean' from absolut pathes and stuff that limit its portability.
    APP.ear
    +-- META-INF/manifest.mf
    +-- OtherJAR.jar (code here wants to read manifest above)
    Thanks for your time.

    While you could use the manifest for this, I wouldn't recommend it.
    instead add a directory in your ear named resources (or whatever you
    want to call it).
    In your OtherJar.jar add a manifest class-path entry to ../resources
    In resources, include your configuration files, perhaps my.xml
    In your code, you can do
    getClass().getClassLoader().getResourceAsStream("my.xml");
    -- Rob
    Jakkaro Jakkaro wrote:
    I ve created an enterprise archive file ( APP.ear ) which contains all EJB's and WAR's etc.
    I also put in my APP.ear's manifest.mf file some application specific information (such as app-name=app-value).
    I wonder now how can my EJB's, WAR's, code... read this values?
    Shall I care about weblogic classloaders? is there any standard way? I want to keep my APP.ear 'clean' from absolut pathes and stuff that limit its portability.
    APP.ear
    +-- META-INF/manifest.mf
    +-- OtherJAR.jar (code here wants to read manifest above)
    Thanks for your time.

  • Unable to read Class from META-INF/MANIFEST.MF file

    Hi,
    One of my EJB Bean is referencing a class file "test.class".
    So, I placed the test.class file under app-servers's
    "<root-dir>/lib/test.class". And added this in MANIFEST.MF file under "Class-Path" property.
    But the app servers is not recognising this Class and displaying "NoClassDefFoundException".
    Any help is appreciated.
    Thanks in advance

    If it is saying this abt main MIDlet class then it is
    a JAD file problem. try to check "MIDlet-n" attibute
    (including package info if any).Yes - the KToolbar project/package updates the jad file as well as creating the jar file.
    Cheers

  • Creating & Using .jar files and manifests

    I've read through hundreds of online tutorials on creating and using .jar's, but it's surprising how unhelpful they really are.
    I've been trying to make a java program of mine standalone, so I can distribute it to others and allow them to run it without use of a compiler, etc (ideally just a .exe or .bat that they double click on). Everything I've found says I need to create a .jar of my program in order to do this. I was finally able to create a .jar but I got different errors relating to "main-class" and "manifest" issues...I tried running it with javaw.exe and had the same problem.
    Some tutorials briefly discuss "meta manifest's", other's skip the concept all together in creating .jar's. I created a jar with:
    jar cf A2.jar c:\jarTester.java
    after changing my command prompt path to
    C:\Program Files\Java\jdk1.6.0_01\bin
    It created the .jar, but nothing worked. As above, it gave me errors relating to the "Main-Class" and "Manifest". So here's my question:
    What involvement does a "manifest" play in .jar's, and how do I create/use one to create a .jar? Why is it necessary to specify the "Main-Class" when I have already done so in my .java file?
    I believe that once I can get this "Main-Class" and "Manifest" problem straightened out, I will be able to create a batch file with the line:
    java -jar A2.jar
    is this correct? THANKS.

    I've read through hundreds of online tutorials on
    creating and using .jar's, but it's surprising how
    unhelpful they really are.really, hundreds?
    I've been trying to make a java program of mine
    standalone, so I can distribute it to others and
    allow them to run it without use of a compiler, etc
    (ideally just a .exe or .bat that they double click
    on). Everything I've found says I need to create a
    .jar of my program in order to do this. Make up your mind, do you want to make a jar or an exe?
    I was
    finally able to create a .jar but I got different
    errors relating to "main-class" and "manifest"
    issues...I tried running it with javaw.exe and had
    the same problem.
    Some tutorials briefly discuss "meta manifest's",
    other's skip the concept all togetherthat's because the manifest isn't usually necessary
    in creating
    .jar's. I created a jar with:
    jar cf A2.jar c:\jarTester.javaugh, that won't work. you need to put the class file in there, not the source. or you can put the source in as well if you want, but the class is necessary
    i'm ignoring the rest of this post for now
    go back to Google and type in jar manifest and read more

  • CUPS problems with PDF printing

    I am having all manner of problems with PDF printing.  Recently added a Lexmark MX710 and have 7 machines that were previously printing fine to an X652de a T652 as well as a Samsung CLP770.  All network printers.
    Now there are bizarre issues with PDF printing. CUPS version 1.6.1.  The MX710 will blue screen and reboot when printing one specific pdf without fail.  There are all kinds of random nonsensical results when printing from different locations.  A pdf that stalls the X and T652 with "filter error" will print from my own machine to the same printer, using the same versions of cups, .ppd file, and everything package related to cups.
    Yet other PDF files will print, while some print complete gibberish, I can't find any rhyme or reason or anything predictable about any of it other than to say printing postscript files works fine all around.
    This has been universally in KDE printing through Okular.
    I've tried some things I've found suggested, such as modifying the mime.conv as suggested by an old ubuntu thread, adding the a2ps package, all to zero effect.
    Last edited by TheWretched (2012-12-08 00:27:41)

    At this point the only reasonable explanation I can think of is that the ppd package I downloaded and installed via included shell script from lexmark for the mx710 caused this whole catastrophe.  The only common thread for this problem starting was that I used this on all of the affected machines and they now all manifest problems.  And on four of these machines this is literally all that was done, they were loaded in september, have not been updated via pacman in any way, and are running the exact same version of cups poppler, and okular that they were then, which was working, and now cannot print pdf to any printer at all without causing one of several problems depending on the printer.
    I cannot seem to get this reversed though.  I've gone so far as to force remove all the cups packages, and delete the files associated with the install script, but the problem remains afterward.  From what I can see so far all this lexmark package did was display a license agreement, then copy the ppd files in it's folder to /usr/share/ppd/Lexmark.  This particular printer, the mx710 has no .ppd available that I have found other than this one from Lexmark directly.  Open printing doesn't have anything for this model.
    This printer's driver has some kind of a cups filter driver with it that the install script presumably installs, I suspect this could be what caused the problem specifically, but I must not be removing it correctly, despite following the file removal suggestions in the Lexmark readme for uninstallation.  CUPS printing is something I am new to and only have a basic understanding of.
    To answer some specific questions I nearly forgot, I don't have cups pdf installed.  I have chrome installed which can successfully save pages to PDF, previously it could also print pdf, and presumably it prints everything as pdf given the cups pdf workflow.  That is also broken now too, so printing from the browser causes the printer to fail as well.  If I save as pdf from chrome, and print with adobe reader, it works.
    Last edited by TheWretched (2012-12-11 14:25:40)

  • Computer no longer recognizes mount point of hard drive

    Hello all,
    I have a perplexing problem here. When I was running a Verify Disk in Disk Utilities I got a "Keys Out of Order" error, and I cannot repair with either Disk Utility or using fsck.
    I ran a Hardware Test and nothing was wrong, so I decided to back everything up, wipe the drive, and re-install the OS. Problem is, DIsk Utility will not let me wipe my hard drive. The mount point shows up as just "/" instead of, for example, /Volumes/My Awesome Computer. I assume this is a symptom of my "Keys out of order" error, since I can see my boot camp partition just fine and can choose to erase it if I want to.
    I guess my question is, how can I wipe my Apple partition if the option is not even available to me to begin with? I tried booting up from my installation disks and doing an Archive and Install from there already, but my disks don't even recognize my Apple partition, so I can't even begin to re-install the OS from them.
    My only remaining idea is to re-partition my hard drive into another Apple partition, install there, and then unpartition, but I'm not sure if that'll work. Does anyone have any clues or advice?

    Update: I tried re-partitioning my drive, but that failed to initiate. I got this error: filesystem verify or repair failed.
    It's the same error that I get when I tried to repair my HD with Disk Utility. So, I cannot make new partitions, and my hard drive mount point remains unrecognized by my install CDs. Yet...I can log in and use it just fine. The only manifested problem I've had with this Keys Out of Order error is that I can no longer see my Apple partition from Boot Camp, but I'm worried this problem may get just worse and worse. Help would be greatly appreciated.

  • Audio missing on burned  DVD's

    Hi, After completing a project I try to burn a DVD on PE3. It burns the picture fine nut no audio. I try to burn the same to hard drive and again, good picture but no sound. Yet I am able to transfer it to tape no problem!
    What could be the cause? My DVD playback software reports no audio stream on the VOB files, so it looks like its not encoding audio. (I've checked all the settings.)
    Thanks

    Mark C Lawrie
    The reason that I questioned you on the Vaio involvement was
    1. I thought that I remembered a similar PE3/Vaio problem at another web site which ended with Adobe saying that there was no fix for it for PE3 and 4.
    2. And, there is the following Steve Grisetti FAQ on this kind of a topic:
    http://www.adobeforums.com/webx/.59b5a5ae
    Since Steve Grisetti is visiting this topic, for now I will step aside, just temporarily, for his further comments. I want to make sure that I am not mixing "apples and oranges" in my thoughts as applied to your specific situation. As author of the FAQ, he will tell us if I have.
    Many times, users have the same outwardly manifested problem, but have different causes for the problem.
    To be continued, if necessary.....

  • How to give security permission for html file which is accessing a database

    there a applet code which is accessing database and i am placing that code in one folder in any drive and iam placing a
    applet tag in a html file and storing on desktop.
    now if i run that html file i am unable to connect to database and it is not not giving any exception errors.
    what is the security permission we have to provide for that html file.
    i want this solution immediately plz.

    sign your midlet suite and give the permission in the jad / manifest
    http://java.sun.com/j2me/docs/wtk2.2/docs/UserGuide-html/security.html

  • Why is the .jar file not created??

    the error i get is :
    com.sun.kvem.midletsuite.InvalidJadException: Reason = 36
    Error in opening jar file: list.jar
    and in the \j2mewtk\2.5.2\apps\list\bin there are only 2 files are :
    list.jad
    MANIFEST.MF.
    Why is that so?
    Edited by: angelusPiper on May 7, 2009 7:24 AM

    Hi Sudipto,
    I'm assuming that you used the <wsgen> Ant task (in your build.xml) to create this
    web service, right?
    Are you sure the client.jar file isn't in the web-services.war? You can verify this
    by extracting this file (web-services.war) from the .ear for your web service, and
    viewing its contents with WinZip (or the jar.exe utility that comes with the JDK).
    There is a way to create client code without having a client.jar (or a WSDL document),
    but it takes a little more work :-) I have attached a "heavily commented" example
    of this, at the bottom of this post.
    Regards,
    Mike Wooten
    "Sudipto" <[email protected]> wrote:
    >
    Hi,
    I have developed a web service for our Internal network. I have deployed
    the web
    service onto weblogic 6.1 and have been able to obtain the wsdl file. I
    have coded
    my java client, but to compile and run the client, I require the client.jar
    file,
    which weblogic should create on its own once the actual web service is successfully
    deployed. wl server is not able able to create the client.jar file and hence
    I am
    unable to run the client. Could anyone tell me why the client.jar file is
    not being
    created and is there any workaround for coding the java client without using
    the
    client.jar file.
    Thanx
    sudipto[NoWSDLWeatherClient.java]

  • FIM WebService Connector

    Hi
    I'm struggling with the FIM Web service connector in different areas that i need some help with.
    For starters i just want to let you know that i've worked a great deal with the connector, and learned how to cope with most of the shortcomings and quirks. My work has mostly been for on-premise tasks, i.e. connecting to other on-premise systems.
    Now I am trying to connect to a Web service over the Internet, hence the security setup is significantly different from what I am used to in conjunction with the Web Service Connector.
    I this case the web services is https based and also requires a client certificate for authentication.
    The client certificate part is actually not a problem as the connector supports authenticating using client certificates natively and it works like a charm.
    My problems seems to be around using a https based web service, also that the web service presents itself as supporting both soap and soap12 requests. When I add the web service to the Web Service Configuration Tool, I receive a warning telling that one
    of my endpoints has a unsupported (custom) binding, that is not a basic http binding. I actually discover two endpoints that seem alike but the failing one is based on soap12. I am not able to remove the failing endpoint within the Web Service Configuration
    Tool and successive attempts to configure a Management Agent in FIM Sync Manager using this Web Service Project fails as unsupported bindings are used.
    According to the hotfix update 1.0.419.911 for the FIM WebService Connector - this update should address certain limitations towards custom bindings, so I tried to implement this update.
    But this gave another headache - after updating the Web Service Connector (actually uninstalling the old one, and installing the new one - as there seems to be some versioning mishaps) I am not able to start the Web Service Configuration Console as i am
    presented with the following error:
    Error occurred while running the tool
    Could not load flie or assemply 'Microsoft.MetaDirectorySericesEx,Version=4.1.2.0...etc...
    The error is: Strong name validation failed.
    I've tried several things to address the issue, i.e.:
     - Copying the Microsoft.MetaDirectorySericesEx.dll file from other folder to the UIShell\Web Service Configuration folder as the versions was not alike - resultet in manifest problems.
     - Turning off Strong Name Checking for the library in question - the Web Config tools has able to start but crashed when used.
     - Upgraded to newest build of FIM Sync (4.1.3559) - still not working.
    So - my actual questions are:
     - Does the FIM Web Service Connector support accessing web services that are https based in either the old (5.3.407.0) version or the new one (hotfix update 1.0.419.911) ?
     - What about soap12?
     - Did anyone succeed in implementing the new Web Service Connector update?
     - Any hints on solving the problem I encountered with the Web Service Connector ?
    Any input highly appreciated.
    Best regards
    Søren

    Got the Config Tool running today - yay!
    The problem was a missing entry in the config file of the Config tool (WSConfigTool.exe.Config).
    The Config tool assumed that the version of the Microsoft.MetadirectoryServicesEx.dll library registered was an older version as the current registered. The current version is depending on the build level of FIM.
    To fix the problem open the .config file of the FIM Sync Service (C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\Bin\miiserver.exe.config) and copy the section shown below, please note that the newVersion parameter varies
    depending on your FIM build level.
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Microsoft.MetadirectoryServicesEx" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="3.3.0.0-4.1.3.0" newVersion="4.1.4.0" />
    </dependentAssembly>
    <probing privatePath="Assemblies" />
    </assemblyBinding>
    </runtime>
    Open the .config file of the WS Config Tool (C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\UIShell\Web Service Configuration\WSConfigTool.exe.Config) and paste the section into the file just before the closing of the
    Configuration section </configuration>.
    This will redirect the WS Config Tool to use the version of the library that is currently registered in the assembly cache.
    Towards the problem with multiple bindings in a single web service - this seems to to a problem still :-(.
    Rgds
    Søren

  • How to know the image size and coding of our j2me project

    Hi,
    I have developed a game and i did the obfuscation. My jar size is now 170KB. How can differentiate the coding size and the image size from the total jar size.
    If i asked any thing wrongly, please forgive me and clarify my doubt.
    I am looking forward to meet ur queries if any.
    Thanks and Regards,
    Hithayath.

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
    <project xmlns:projdeps2="http://www.netbeans.org/ns/ant-project-references/2" basedir=".." default="jar" name="-impl">
    <target name="pre-init"/>
    <target depends="pre-init" name="pre-load-properties">
    <property file="nbproject/private/private.properties"/>
    <property value="0.0.1" name="deployment.number"/>
    <property value="000002" name="deployment.counter"/>
    <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    <available file="${user.properties.file}" property="user.properties.file.exists"/>
    </target>
    <target unless="config.active" depends="pre-load-properties" name="exists.config.active">
    <echo message="Active configuration (config.active property) is not set - using default." level="warning"/>
    <property name="config.active" value=""/>
    </target>
    <target unless="netbeans.user" depends="pre-load-properties" name="exists.netbeans.user">
    <echo message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically." level="warning"/>
    </target>
    <target unless="user.properties.file.exists" depends="pre-load-properties" name="exists.user.properties.file">
    <echo message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)." level="warning"/>
    </target>
    <target depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file" name="load-properties">
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    <containsregex pattern="^platform.active=|^deployment.method="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="${user.properties.file}">
    <filterchain>
    <replaceregex replace="platform." pattern="^platforms\.${platform.active}\."/>
    <replaceregex replace="deployment.scriptfile=" pattern="^deployment\.${deployment.method}\.scriptfile="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    </filterchain>
    </loadproperties>
    </target>
    <target unless="platform.active" depends="load-properties" name="exists.platform.active">
    <echo message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)." level="warning"/>
    </target>
    <target depends="load-properties" unless="platform.configuration" name="exists.platform.configuration">
    <echo message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration." level="warning"/>
    <property value="CLDC-1.0" name="platform.configuration"/>
    </target>
    <target depends="load-properties" unless="platform.profile" name="exists.platform.profile">
    <echo message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile." level="warning"/>
    <property value="MIDP-1.0" name="platform.profile"/>
    </target>
    <target depends="pre-init,load-properties,exists.platform.active,exists.platform.configuration,exists.platform.profile" name="init">
    <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-modules-kjava-antext.jar file in the IDE installation directory.</fail>
    <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
    <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
    <fail unless="src.dir">Must set src.dir</fail>
    <fail unless="build.dir">Must set build.dir</fail>
    <fail unless="build.classes.dir">Must set build.classes.dir</fail>
    <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
    <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
    <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
    <fail unless="dist.dir">Must set dist.dir</fail>
    <fail unless="dist.jar">Must set dist.jar</fail>
    <fail unless="dist.jad">Must set dist.jad</fail>
    <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
    <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
    <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
    <property value="" name="abilities"/>
    <property value="" name="obfuscator.classpath"/>
    <property value="" name="kjava.configuration"/>
    <property value="UEI-1.0" name="platform.type"/>
    <property value="" name="platform.device"/>
    <property value="0" name="obfuscation.level"/>
    <property value="false" name="sign.enabled"/>
    <property value="file://" name="dist.jad.url"/>
    <property value="1.3" name="javac.source"/>
    <property value="1.1" name="javac.target"/>
    <property value="${file.encoding}" name="javac.encoding"/>
    <condition property="no.deps">
    <istrue value="${no.dependencies}"/>
    </condition>
    <condition property="no.javadoc.preview">
    <isfalse value="${javadoc.preview}"/>
    </condition>
    <condition value="${filter.excludes},**/*Test.java,**/test,**/test/**" property="filter.excludes.evaluated">
    <istrue value="${filter.exclude.tests}"/>
    </condition>
    <property value="${filter.excludes}" name="filter.excludes.evaluated"/>
    <condition value="" property="evaluated.run.security.domain">
    <isfalse value="${run.use.security.domain}"/>
    </condition>
    <condition value="" property="deployment.do.override.jarurl">
    <istrue value="${deployment.override.jarurl}"/>
    </condition>
    <property value="${run.security.domain}" name="evaluated.run.security.domain"/>
    <taskdef resource="org/netbeans/modules/kjava/antext/defs.properties">
    <classpath>
    <pathelement path="${libs.j2me_ant_ext.classpath}"/>
    </classpath>
    </taskdef>
    <uptodate targetfile="${preprocessed.dir}/.timestamp" property="no.clean.before.build">
    <srcfiles dir="nbproject">
    <include name="project.properties"/>
    <include name="build-impl.xml"/>
    </srcfiles>
    </uptodate>
    <condition property="skip.deployment">
    <equals trim="true" casesensitive="false" arg2="NONE" arg1="${deployment.method}"/>
    </condition>
    <condition property="skip-sign-keystore-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.keystore.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <condition property="skip-sign-alias-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.alias"/>
    <isset property="sign.alias.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <antcall inheritrefs="true" inheritall="true" target="post-init"/>
    </target>
    <target name="post-init"/>
    <target name="deps-jar" depends="init" unless="no.deps"/>
    <target description="Clean project in case its meta information has changed." unless="no.clean.before.build" depends="init" name="conditional-clean">
    <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
    </target>
    <target name="pre-preprocess"/>
    <target description="Preprocess project sources." depends="init,pre-preprocess,deps-jar,conditional-clean" name="preprocess">
    <mkdir dir="${preprocessed.dir}"/>
    <echo file="${preprocessed.dir}/.timestamp" message="ignore me"/>
    <nb-prep encoding="${javac.encoding}" preprocessfor="${config.active},${abilities}" destdir="${preprocessed.dir}">
    <fileset excludes="${filter.excludes.evaluated}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </nb-prep>
    <antcall inheritrefs="true" inheritall="true" target="post-preprocess"/>
    </target>
    <target name="post-preprocess"/>
    <target description="Extracts all bundled libraries." depends="init,deps-jar,conditional-clean" name="extract-libs">
    <mkdir dir="${build.classes.dir}"/>
    <nb-extract excludeManifest="true" dir="${build.classes.dir}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </nb-extract>
    </target>
    <target name="pre-compile"/>
    <target description="Compile project classes." depends="init,preprocess,extract-libs,pre-compile" name="compile">
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" bootclasspath="${platform.bootclasspath}" srcdir="${preprocessed.dir}" destdir="${build.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <copy todir="${build.classes.dir}">
    <fileset excludes="${filter.excludes.evaluated},${build.classes.excludes}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </copy>
    <antcall inheritrefs="true" inheritall="true" target="post-compile"/>
    </target>
    <target name="post-compile"/>
    <target name="pre-compile-single"/>
    <target description="Compile selected project classes." depends="init,preprocess,extract-libs,pre-compile-single" name="compile-single">
    <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" includes="${javac.includes}" bootclasspath="${platform.bootclasspath}" destdir="${build.classes.dir}" srcdir="${preprocessed.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <antcall inheritrefs="true" inheritall="true" target="post-compile-single"/>
    </target>
    <target name="post-compile-single"/>
    <target depends="init" name="create-jad">
    <mkdir dir="${build.dir}"/>
    <dirname property="dist.jad.dir" file="${dist.dir}/${dist.jad}"/>
    <mkdir dir="${dist.jad.dir}"/>
    <condition value="${manifest.apipermissions}" property="evaluated.manifest.apipermissions">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition value="${manifest.pushregistry}" property="evaluated.manifest.pushregistry">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition property="contains.manifest.configuration">
    <contains string="${manifest.others}" substring="MicroEdition-Configuration: "/>
    </condition>
    <condition property="contains.manifest.profile">
    <contains string="${manifest.others}" substring="MicroEdition-Profile: "/>
    </condition>
    <property name="evaluated.manifest.apipermissions" value=""/>
    <property name="evaluated.manifest.pushregistry" value=""/>
    <property value="" name="manifest.jad"/>
    <property value="" name="manifest.manifest"/>
    <echo file="${dist.dir}/${dist.jad}">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</echo>
    <echo file="${build.dir}/manifest.mf">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</echo>
    <antcall inheritrefs="true" inheritall="true" target="add-configuration"/>
    <antcall inheritrefs="true" inheritall="true" target="add-profile"/>
    </target>
    <target unless="contains.manifest.configuration" name="add-configuration">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    </target>
    <target unless="contains.manifest.profile" name="add-profile">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Profile: ${platform.profile}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Profile: ${platform.profile}
    </echo>
    </target>
    <target name="pre-obfuscate"/>
    <target description="Up-to-date check before obfuscation." depends="init,compile" name="obfuscate-check">
    <uptodate targetfile="${obfuscator.destjar}" property="no.obfusc">
    <srcfiles dir="${build.classes.dir}"/>
    </uptodate>
    </target>
    <target unless="no.obfusc" description="Obfuscate project classes." depends="init,compile,obfuscate-check,pre-obfuscate" name="obfuscate">
    <dirname property="obfuscator.srcjar.dir" file="${obfuscator.srcjar}"/>
    <dirname property="obfuscator.destjar.dir" file="${obfuscator.destjar}"/>
    <mkdir dir="${obfuscator.srcjar.dir}"/>
    <mkdir dir="${obfuscator.destjar.dir}"/>
    <jar basedir="${build.classes.dir}" jarfile="${obfuscator.srcjar}"/>
    <property value="" name="obfuscation.custom"/>
    <nb-obfuscate extraScript="${obfuscation.custom}" obfuscationLevel="${obfuscation.level}" classpath="${platform.bootclasspath}" obfuscatorclasspath="${obfuscator.classpath}" destjar="${obfuscator.destjar}" srcjar="${obfuscator.srcjar}"/>
    <mkdir dir="${obfuscated.classes.dir}"/>
    <unjar dest="${obfuscated.classes.dir}" src="${obfuscator.destjar}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-obfuscate"/>
    </target>
    <target name="post-obfuscate"/>
    <target name="pre-preverify"/>
    <target description="Preverify project classes." depends="init,compile,obfuscate,pre-preverify" name="preverify">
    <mkdir dir="${preverify.classes.dir}"/>
    <nb-preverify commandline="${platform.preverifycommandline}" platformtype="${platform.type}" platformhome="${platform.home}" configuration="${platform.configuration}" classpath="${platform.bootclasspath}" destdir="${preverify.classes.dir}" srcdir="${obfuscated.classes.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-preverify"/>
    </target>
    <target name="post-preverify"/>
    <target unless="skip-sign-keystore-password-input" if="netbeans.home" depends="init" name="set-keystore-password">
    <nb-enter-password passwordproperty="sign.keystore.password" keystore="${sign.keystore}"/>
    </target>
    <target unless="skip-sign-alias-password-input" if="netbeans.home" depends="init" name="set-alias-password">
    <nb-enter-password passwordproperty="sign.alias.password" keyalias="${sign.alias}" keystore="${sign.keystore}"/>
    </target>
    <target name="pre-jar"/>
    <target description="Build jar and application descriptor." depends="init,preverify,create-jad,set-keystore-password,set-alias-password,pre-jar" name="jar">
    <dirname property="dist.jar.dir" file="${dist.dir}/${dist.jar}"/>
    <mkdir dir="${dist.jar.dir}"/>
    <jar manifest="${build.dir}/manifest.mf" jarfile="${dist.dir}/${dist.jar}" compress="${jar.compress}">
    <fileset dir="${preverify.classes.dir}"/>
    <fileset dir="${obfuscated.classes.dir}">
    <exclude name="**/*.class"/>
    </fileset>
    </jar>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${dist.jar}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-jar"/>
    </target>
    <target name="post-jar"/>
    <target description="Rebuild the application." depends="init,clean,jar" name="rebuild"/>
    <target description="Run MIDlet suite." depends="init,jar" name="run">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target description="Quick Run already built MIDlet suite." depends="init" name="run-no-build">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target depends="init,clean,jar" description="Debug project." name="debug">
    <delete file="${preprocessed.dir}/.timestamp"/>
    <parallel>
    <nb-run commandline="${platform.debugcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" jadfile="${dist.dir}/${dist.jad}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" debuggeraddressproperty="jpda.port" debugserver="true" debugsuspend="true" debug="true"/>
    <sequential>
    <sleep seconds="5"/>
    <antcall target="nbdebug"/>
    </sequential>
    </parallel>
    </target>
    <target if="netbeans.home" description="Start NetBeans debugger" name="nbdebug">
    <nb-kjava-debug period="2000" timeout="30000" name="${app.codename}" address="${jpda.port}">
    <bootclasspath>
    <path path="${platform.bootclasspath}"/>
    </bootclasspath>
    <classpath>
    <path path="${dist.dir}/${dist.jar}"/>
    </classpath>
    <sourcepath>
    <path path="${src.dir}"/>
    <path path="${libs.src.path}"/>
    </sourcepath>
    </nb-kjava-debug>
    </target>
    <target depends="init,preprocess" name="javadoc">
    <mkdir dir="${dist.javadoc.dir}"/>
    <javadoc private="${javadoc.private}" windowtitle="${javadoc.windowtitle}" version="${javadoc.version}" author="${javadoc.author}" splitindex="${javadoc.splitindex}" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" use="${javadoc.use}" notree="${javadoc.notree}" bootclasspath="${platform.bootclasspath}" destdir="${dist.javadoc.dir}" source="${javac.source}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    <sourcepath>
    <pathelement location="${preprocessed.dir}"/>
    </sourcepath>
    <fileset dir="${preprocessed.dir}"/>
    </javadoc>
    <antcall target="browse-javadoc"/>
    </target>
    <target unless="no.javadoc.preview" if="netbeans.home" name="browse-javadoc">
    <nbbrowse file="${dist.javadoc.dir}/index.html"/>
    </target>
    <target name="pre-clean"/>
    <target description="Clean build products." if="no.clean.before.build" depends="init,conditional-clean" name="clean">
    <antcall inheritrefs="true" inheritall="true" target="do-clean"/>
    </target>
    <target depends="pre-clean" name="do-clean">
    <delete dir="${preprocessed.dir}"/>
    <delete dir="${build.classes.dir}"/>
    <delete file="${obfuscator.srcjar}"/>
    <delete file="${obfuscator.destjar}"/>
    <delete dir="${obfuscated.classes.dir}"/>
    <delete dir="${preverify.classes.dir}"/>
    <delete file="${build.dir}/manifest.mf"/>
    <delete file="${dist.dir}/${dist.jar}"/>
    <delete file="${dist.dir}/${dist.jad}"/>
    <delete dir="${dist.javadoc.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-clean"/>
    </target>
    <target name="post-clean"/>
    <target name="pre-deploy"/>
    <target if="deployment.do.override.jarurl" depends="init,jar,pre-deploy" name="override-jad">
    <property value="${dist.jar}" name="deployment.jarurl"/>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${deployment.jarurl}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target unless="skip.deployment" if="deployment.method" depends="init,jar,override-jad,pre-deploy" name="deploy">
    <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
    <ant inheritrefs="true" inheritall="true" antfile="${deployment.scriptfile}">
    <property location="${dist.dir}/${dist.jad}" name="deployment.jad"/>
    <property location="${dist.dir}/${dist.jar}" name="deployment.jar"/>
    </ant>
    <propertyfile file="nbproject/private/private.properties">
    <entry pattern="000000" default="2" operation="+" type="int" key="deployment.counter"/>
    <entry value="${deployment.counter}" key="deployment.number"/>
    </propertyfile>
    <replaceregexp replace="deployment.number=\2\3.\5\6.\8\9" match="^deployment.number=[0-9]*(0|([1-9]))([0-9])(0|([1-9]))([0-9])(0|([1-9]))([0-9])$" file="nbproject/private/private.properties" byline="true"/>
    <antcall inheritrefs="true" inheritall="true" target="post-deploy"/>
    </target>
    <target name="post-deploy"/>
    <target name="for-all-configs">
    <antcall inheritrefs="false" inheritall="false" target="${target.to.call}">
    <param value="" name="config.active"/>
    </antcall>
    </target>
    <target name="jar-all">
    <antcall target="for-all-configs">
    <param value="jar" name="target.to.call"/>
    </antcall>
    </target>
    <target name="javadoc-all">
    <antcall target="for-all-configs">
    <param value="javadoc" name="target.to.call"/>
    </antcall>
    </target>
    <target name="deploy-all">
    <antcall target="for-all-configs">
    <param value="deploy" name="target.to.call"/>
    </antcall>
    </target>
    <target name="rebuild-all">
    <antcall target="for-all-configs">
    <param value="rebuild" name="target.to.call"/>
    </antcall>
    </target>
    <target depends="load-properties" name="clean-all">
    <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
    <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
    <delete dir="${build.root.dir}"/>
    <delete dir="${dist.root.dir}"/>
    <antcall target="for-all-configs">
    <param value="clean" name="target.to.call"/>
    </antcall>
    </target>
    </project>
    I have pasted the content of that file, please do the needs....

Maybe you are looking for

  • I received a letter from a fake website apple. They want a credit card details. do something with this.

    it was in a letter Dear Client, This is an automatic message by the system to let you know that you have to confirm your account information within 48 hours. Your account has been frozen temporarily in order to protect it. The account will continue t

  • PanelView is not found in InDesign CC 2014

    Hi all, I'm trying to port indesign CS6 into InDesign CC and meet PanelView is not supported in InDesgin CC. Can you please tell me can I use the another for PanelView instead? I want to put buttons and somethings in a dialog and want they are always

  • Still cant open files

    when i open an email and try to open the PDF file attached it comes up in a crazy language like I don't have the convert program.  DO I have to manual open every single document?

  • How to find user exit for XK01/XK02/MK01/MK02/FK01/FK02

    I am working on an outbound interface and sending data from SAP to external syatem. I need to send the new supplier is created or modified data (transaction XK01/XK02/MK01/MK02/FK01/FK02) an user-exit is called to check which fields had been maintain

  • My iPhone apple Id is disabled.

    My iPhone apple Id is disabled. What can I do. I want my old apple id of course.