Build JAR file for phone?

Hey, i just created this simple application in Java that just shows a small dialog. I've builed it with Netbeans and uploaded the .jar file to me mobile phone.
When i tried to open the file on my phone i got the error message: 'invalid jar file'.
So obviously you can't just run Java programs on a phone... What do i have to do inorder to run my Java programs on my phone!? Can someone please help me in the right direction.
Thanks in advance.

w00 wrote:
Hey, i just created this simple application in Java that just shows a small dialog. I've builed it with Netbeans and uploaded the .jar file to me mobile phone.
When i tried to open the file on my phone i got the error message: 'invalid jar file'.
So obviously you can't just run Java programs on a phone... Obviously you can run java programs on phones since there are certainly hundreds of thousands if not millions doing so.
And the fact that you uploaded it and it recognized it as a jar file suggests that it can do so on your phone.
However that doesn't mean that you can run absolutely anything at all. Phones tend to be more restrictive than computers and so you must explicitly develop for the specific phone.
What do i have to do inorder to run my Java programs on my phone!? 1. Research your phone.
2. Determine exactly what parts of the java API are supported and what versions are supported.
3. Verify that your phone is set up correctly.
4. If it exists get a sdk/emulator for your specific phone to run your app in it first.

Similar Messages

  • [svn:osmf:] 14412: Added the Syndication. swc to the command line build config file for the AkamaiPluginSample project .

    Revision: 14412
    Revision: 14412
    Author:   [email protected]
    Date:     2010-02-24 17:48:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Added the Syndication.swc to the command line build config file for the AkamaiPluginSample project.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xml

    I think it is not supported through ant script and you may have to contact Oracle Support. Please go through below thread (hisaak's reply) -
    Re: Export OSB configuration jar file using Ant
    Regards,
    Anuj

  • MBeanMaker is not creating Schema folder in JAR file for custom authenticat

    I have created a custom authentication provider.I am using following code of build.xml to generate jar file for custom authentication provider
    <target name="build.mdf" depends="copyConfigFiles">
    <java classname="weblogic.management.commo.WebLogicMBeanMaker" fork="true" failonerror="true">
    <jvmarg line="-Dfiles=./build/mili -DMDF=./build/mili/MILIAuthenticator.xml -DcreateStubs=true"/>
    <classpath>
    <pathelement path="${java.class.path}"/>
    <pathelement location="./build/mili"/>
    <pathelement location="./lib/weblogic.jar"/>
    <pathelement location="./lib/wlManagement.jar"/>
    <pathelement location="./lib/jcifs-1.2.0.jar"/>
    </classpath>
    </java>
    </target>
    <target name="copySrcFiles" depends="build.mdf">
    <copy todir="./build/mili" flatten="true" overwrite="true">
    <fileset dir="./src/java">
    <include name="**/MILI*.java"/>
    </fileset>
    </copy>
    </target>
    <target name="SecurityProviderJar" depends="copySrcFiles">
    <java classname="weblogic.management.commo.WebLogicMBeanMaker" fork="true" failonerror="true">
    <jvmarg line="-Dfiles=./build/mili -DMJF=./build/MiliSecurityProviders.jar"/>
    <classpath>
    <pathelement path="${java.class.path}"/>
    <pathelement location="./build"/>
    <pathelement location="./lib/wlManagement.jar"/>
    <pathelement location="./lib/weblogic.jar"/>
    <pathelement location="./lib/jcifs-1.2.0.jar"/>
    </classpath>
    </java>
    </target>
    Build.xml is running fine without giving any error,but it is not generating schema folder in the jar file.
    beacause of that my custom authentication provider is not comming in admin console.
    Kindly help me to resolve this.

    Hi Ramesh,
    Try out the following
    1) Copy mediator.jar from SOA_HOME>/soa/modules/oracle.soa.mediator_11.1.1 to <MW_HOME>//soa/modules/oracle.soa.ext_11.1.1/classes
    2) Goto <MW_HOME>//soa/modules/oracle.soa.ext_11.1.1/classes and run the following command:
    a. jar -xvf mediator.jar
    3) Now remove the jar file, i.e., mediator.jar from classes folder.
    4) Restart the server.
    Regards,
    Srijith

  • Jdeveloper dependency on ANT script for .JAR file for ADF Application

    Hi all,
    We need to create a .jar file for an ADF project consist of Model & viewcontroller. We are able to create jar file with help OjDeploy in my ANT script.
    My query: Ojdeploy uses internally jdeveloper home to complete the task. After going through the generated script, we came to know about below two references:
    1.     oracle.jdeveloper.ant.library = ${jdeveloperHome}\\ jdeveloper\\jdev\\/lib/ant-jdeveloper.jar
    2.     oracle.jdeveloper.ojdeploy.path = ${jdeveloperHome}\\jdeveloper\\jdev\\bin\\ojdeploy.exe
    Is there any way to remove above dependencies so that we can create .jar file without installing Jdeveloper on a machine ?
    regards,
    Mohit

    ojdeploy requires a JDeveloper installation.
    Without going into the debate as to whether this is "good" or not, that's the way it works, I personally don't have a problem with installing JDeveloper on a build box (after all, you do have to install other software on the build box, too).
    If you don't want to install JDeveloper, you can hand-roll your own ANT scripts which is good for racking up the billable hours, but not so good at maintainability.

  • How to make .jar file for a multiple class program

    I have a code for a chat room that contains two folders , one for Server and one for Client
    What I need is to create a jar file for the server and a jar file for the clients
    but here the first problem , I have a file that named (SocketMessengerConstants.class) that is located outside the two folders and is being read by the two projects .
    I mean the server uses it while running and the client uses it too .
    the second problem is : I don't know how to create a jar file at all !
    please tell me how to do it in detail
    Thank you

    ChuckBing wrote:[Packaging Programs in JAR Files|http://java.sun.com/docs/books/tutorial/deployment/jar/index.html]
    I tried to read this tutorials before I come here but I couldn't understand it
    can you please tell me a specific steps to follow instead of the explaining .. because I understand the explanation but I can't apply it

  • How to create a .jar file for the BPEL project

    hi all,
    how can i create a .jar file for my BPEL project, i am trying to deploy the project but getting an error :
    "Error: [Error ORABPEL-10902]: compilation failed [Description]: in "C:\OraBPELPM\integration\jdev\jdev\mywork\Workspace_BPELDemo\BPEL_Report\BPEL_Report.bpel", XML parsing failed because "". [Potential fix]: n/a. "
    and when doubel cliking on this error Jdev take me to the beginning of the ".bpel" file.
    I 'm really stuck in here i am not able to deploy the process!
    Thanks,
    Rana

    Rana:
    If you haven't already, I would post this question in the BPEL forum. I would expect a much better turnaround there.
    Johnny Lee

  • Virus scan failed Error on deploying a web application having a jar file for calling the applet on the jsp page

    Hi,
    I have an applet application that i want to deploy on the Oracle cloud.
    So i have created a jar file for the applet application and i am using this jar to call the applet on a jsp page.
    But when i am delpoying my application on the java cloud, its giving me the below error:
    2014-10-28 03:16:41 CDT: Starting action "Virus Scan"
    2014-10-28 03:16:41 CDT: Virus Scan started
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: File Scanned: "Application7.ear".
    2014-10-28 03:16:49 CDT: File Size: "106698122".
    2014-10-28 03:16:49 CDT: File Status: "INFECTED".
    2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
    2014-10-28 03:16:49 CDT: Virus scan failed.
    2014-10-28 03:16:49 CDT: "Virus Scan" complete: status FAILED
    Can't we deploy any application having applet or swing component's onto the cloud?
    Or do we need to request for any extra permissions for the same?
    Thanks,
    Manoj

    I don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Include an in-memory jar file for JSR-199 compilation

    I want to compile a source file in memory, which requires a jar file that is also represented in memory. I used the JavaSourceFromString class recommended in the documentation for the class JavaCompiler and in a demo I found online that shows how to compile sources represented as String in memory. To represent the jar file, I used a similar trick to JavaSourceFromString:
    public class JarJavaFileObjectFromByteArray extends SimpleJavaFileObject {
       * The contents of this jar file.
      private final byte[] contents;
       * Constructs a new JarJavaFileObjectFromByteArray given the name and binary
       * contents of a jar file.
       * @param name the name of this jar file
       * @param contents the contents of this jar file
      public JarJavaFileObjectFromByteArray(String name, byte[] contents) {
        super(newURI(name), Kind.OTHER);
        this.contents = contents;
      ... // code not shown ensures that the URI returned from newURI is of the form,
          // for instance, bytes:///MathConstants.jar, if the name of the jar file is MathConstants.jar
      @Override
      public InputStream openInputStream() throws IOException {
        return new ByteArrayInputStream(contents);
    }However, I do not know how to alert the compiler that this jar file should be on the classpath. I tried this:
    List<String> options = Arrays.asList(" -classpath bytes:///MathConstants.jar ");
    CompilationTask task = compiler.getTask(null, fileManager, null, options, null, compilationUnits);but I get the following error when calling getTask:
    java.lang.IllegalArgumentException: invalid flag: -classpath bytes:///MathConstants.jarI assume there is some way to tell the compiler, "look at the MathConstants.jar file that I am storing in memory when searching the classpath", but I do not know how to do this. I assumed that the options parameter for getTask represents command-line flags that would be passed to the compiler if this were happening on the command line (such as "-cp .", which also does not work), but perhaps this assumption is wrong.

    Hi Bruce,
    I have a question regarding loading a jar file by the compiler to dynamically compile with a source file. I hope you can probably offer me an idea on what has been missing or wrong with the source codes I have written for my application.
    I am using Eclipse compiler to dynamically compile a class. In the class, I want it to make a reference to a jar file for compilation dynamically.
    Here is the source of a test class I wrote:
    import javax.servlet.http.HttpServlet;
    class MyServlet extends HttpServlet {
    }The import statement refers to the class javax.servlet.http.HttpServlet from the jar file C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\lib\\servlet-api.jar placed in the file system.
    In the method called compileClass (shown below), I used the path of the jar file to add to the option -classpath as you suggested.
         private static CompileClassResult compileClass(Writer out, String className, String classSource) {
              try {
                   JavaCompiler javac = new EclipseCompiler();
                   StandardJavaFileManager sjfm = javac.getStandardFileManager(null, null, null);
                   SpecialClassLoader scl = new SpecialClassLoader();
                   SpecialJavaFileManager fileManager = new SpecialJavaFileManager(sjfm, scl);
                   List<String> options = new ArrayList<String>();
                   options.addAll(Arrays.asList("-classpath", "C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\lib\\servlet-api.jar"));
                   List<MemorySource> compilationUnits = Arrays.asList(new MemorySource(className, classSource));
                   DiagnosticListener<JavaFileObject> diagnosticListener = null;
                   Iterable<String> classes = null;
                   if (out == null) {
                        out = new PrintWriter(System.err);
                   JavaCompiler.CompilationTask compile = javac.getTask(out, fileManager, diagnosticListener, options, classes, compilationUnits);
                   boolean res = compile.call();
                   if (res) {
                        //Need to modify the api to return an array of two elements - one classes and other bytecodes for all classes in the same class file.
                        return CompileClassResult.newInstance(scl.findClasses(), scl.findByteCodes());
              } catch (Exception e) {
                   e.printStackTrace();               
              return null;
         }I also extended the class ForwardingJavaFileManager as you suggested and have it delegated to the StandardJavaFileManager sent to the compiler mentioned in the method compileClass above. The extended class (called SpecialJavaFileManager) is as follows:
    public class SpecialJavaFileManager extends ForwardingJavaFileManager<StandardJavaFileManager> {
         private SpecialClassLoader xcl;
         public SpecialJavaFileManager(StandardJavaFileManager sjfm, SpecialClassLoader xcl) {
              super(sjfm);
              System.out.println("SpecialJavaFileManager");
              this.xcl = xcl;
         public JavaFileObject getJavaFileForOutput(Location location, String name, JavaFileObject.Kind kind, FileObject sibling) throws IOException {
              System.out.println("getJavaFileForOutput");
              MemoryByteCode mbc = new MemoryByteCode(name);
              xcl.addClass(name, mbc);
              return mbc;
         public Iterable<JavaFileObject> list(JavaFileManager.Location loc, String pkg, Set kinds, boolean recurse) throws IOException {
              System.out.println("list ");
            List<JavaFileObject> result = new ArrayList<JavaFileObject>();
            for (JavaFileObject f : super.list(loc, pkg, kinds, recurse)) {
                 System.out.println(f);
                result.add(f);
              return result;
    }I run the application and the result shows that it didn't load the jar file into the memory as expected. From the output (below) I got, it doesn't seem to invoke the method list(...) in the class SpecialJavaFileManager.
    SpecialJavaFileManager
    1. ERROR in \MyServlet.java (at line 1)
         import javax.servlet.http.*;
                ^^^^^^^^^^^^^
    The import javax.servlet cannot be resolved
    2. ERROR in \MyServlet.java (at line 3)
         class MyServlet extends HttpServlet {
                                 ^^^^^^^^^^^
    HttpServlet cannot be resolved to a typeWould you please let me know what has possibly be missing or wrong?
    Thanks.
    Jonathan
    Edited by: jonathanlam on Aug 10, 2009 6:47 PM

  • Jar files for using BRM API's

    Hello,
    I am not able to locate the Jar files for using BRM API's. I have tried searching the forum and did not find the name or location from where I can get them. If they are available on the server I could ask the basis team to give me a copy. Any help would be greatly appreciated.
    Regards
    Preetam

    Hi Adam,
    I have created a New EJB Project for my proxy development. This is the usual way I develop proxies for any given service interface created in ESR. Now i am not sure how to create  a dependency with the BRMS facade. If i find the jars i can add it as an external library when compiling.
    Can you explain a bit more about what you ment by "developing the java proxy in a development component", how did you accomplish this when creating a proxy for a service interface?
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/e2/3620cef55842cca4632664212f31b1/content.htm?frameset=%2Fen%2F81%2F097529e0e545e58bb2d7a34e4d0a2a%2Fframeset.htm

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g.
    Apparently the jar files for SQLJ are not on the classpath by default.
    java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
    are the Oracle JDBC drivers on the classpath by default?
    if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?

    I'm looking at the setDomainEnv, especially the big note at the top:
    >
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    >
    and am getting squeamish about editing it...
    http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
    so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
    Edited by: user8652010 on Feb 10, 2011 1:08 PM

  • How to use 3rd party jar files for xml transform

    Hi all,
    Am using OAS9.0.4 and I deployed my .ear successfully.
    In my application am using 4 jar files for xml transformation. (xerces.jar, xalan.jar, xml-apis.jar,xercesImpl.jar)
    OAS has its own xmlparserv2.jar file. Its using this jar file for transforming xml data and not even looking for above mentioned 4 jar files.
    In opmn.xml, I provided these 4 jar files in to class path. Then also it didn't effect my output.
    I also tried as put these 4 jar files into j2ee\home\applib directory, but o result.
    Can anybody tell me where should I keep these 4 jar files in OAS and OAS should use these 4 jar files instead of its own xmlparserv2.jar for transforming data.
    Thanks in Anticipation,
    Regards,
    RK

    Add the Xbootclasspath variable in the java-options field. It will somewhat look like the following in your opmn.xml file
    <process-type id="<OC4J Instance Name>" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="java-options value="........... -Xbootclasspath^/a:<location of your jar files>" />
    Ensure to use th ^/a (append) signature
    Regards,
    Chirag

  • Jar files for Didgital Signing

    Hi All,
    I have a requirement where I need to Access to Keystore for Digital signing an XML payload. I am using the example in the SAP help link - Link: [Using Digital Signatures|http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm] 
    I have already imported the following jar files (aii_af_cci.jar,aii_af_cpa.jar,aii_af_mp.jar, aii_af_ms_api.jar, aii_af_ms_spi.jar, aii_af_svc.jar, aii_af_trace.jar, aii_security_lib.jar, aii_security_interface.jar, iaik_jce.jar, tc_sec_ssf.jar).
    The code has the following import statements:
    import com.sap.aii.af.mp.module.*;
    import com.sap.aii.af.ra.ms.api.*;
    import com.sap.aii.af.mp.module.*;
    import com.sap.aii.af.ra.ms.api.*;
    import com.sap.aii.af.service.auditlog.*;
    import com.sap.aii.af.service.resource.SAPSecurityResources;
    import com.sap.aii.security.lib.KeyStoreManager;
    import com.sap.aii.security.lib.PermissionMode;
    import com.sap.security.core.server.ssf.SsfProfileKeyStore;
    import com.sap.security.api.ssf.ISsfProfile;
    import java.io.UnsupportedEncodingException;
    But even after the above imports I am still getting errors in resolving the following variables in the code.
      KeystoreManager
      keyStore
    What are import statements or jar files I am missing? and where can i find those jar files for making the example work?
    Thanks and Regards,
    Arunava
    Edited by: Arunava Das on Jun 6, 2008 7:05 PM

    Hi All,
    Im working on code which has
    import com.sap.security.api.ssf.ISsfProfile
    But i couldn't find the jar file for that. I think the the package is "com.sap.security.api.ssf".
    Please help me out, where can i get that jar file...?
    Warm Regards,
    DNK Siddhardha.

  • Where is the JMS jar file for CEP?

    I cannot find in any jar finder the JMS jar file for CEP.
    I mean the jar file which includes com.bea.wlevs.adapters.jms.api.InboundMessageConverter, com.bea.wlevs.adapters.jms.api.OutboundMessageConverter, etc.
    Does anybody know the link?
    Thanks!

    Thanks, but it is not there.
    I only have the following:
    com.bea.core.jsmpool_1.7.0.0.jar
    javax.jms_1.1.1.jar
    org.springframework.spring-jms_2.5.6.jar
    And if I cannot find it there, where could it be?
    Thanks!

  • Jar file for com.bea.xbean.util.XsTypeConverter

    I am using weblogic 10.3.5 I used clientgen to generate java classes for a webservice and a few classes are using the class XsTypeConverter.
    I have imported weblogic.jar but it says package does not exist com.bea.xbean.util.XsTypeConverter.
    Where can i find the jar file for this under weblogic?
    Thanks,

    Thank you so much for the reply.I have included all the jars you suggested.I could not find wlfulclient.jar in my weblogic home but there was
    wlclient.jar so I included that but face the same error.
    I used weblogic 10.3.5 clientgen to geberate the java classes then why is it that the classes it uses cannot be found in the same version.
    where jar will have the file com.bea.xbean.util.XsTypeConverter.
    I have searched a lot on internet but not able to find anything.Please help

  • Jar file for com.sapportals.wcm.service.propertyconfig

    Hi all,
    Where can i find the jar file for <b>com.sapportals.wcm.service.propertyconfig</b>.
    <b></b>
    If anyone can send that to my mail id(<b>[email protected]</b>) it would be very useful.
    Points will be rewarded for helpful answers.
    Regards
    Rajeev.

    Hi Rajeev,
    the files should be under /usr/sap/<SID>/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.km.cm.service.base
    or you can find it in the par file com.sap.km.cm.service.base.par
    Regards,
    Pascal

Maybe you are looking for

  • Adobe Premiere Keeps on Crashing/Freezing

    When I'm editing in Adobe Premiere using: iMac, 27-inch, late 2013 OS 10.8.5 3.5Ghz Intel i7 8 GB 1600 MHZ DDR3 NVIDIA GEFORCE GTX 780M 4096MB I encounter the following issues: I open up Premiere, Render my project - it freezes and crashes.  A hard r

  • Xml output format in sql*plus problem

    Hi all, In stead of seeing xml output in multiple line format, my sql*plus always returns xml output in ONE line, is there a way to change the format, it's really hard to read. Thanks 1 select xmlelement("row", xmlelement("user", xmlattributes(userna

  • My itunes freezes when ever i connect my iphone 5.

    Every time i try to connect my iphone 5 to itunes the program freezes. has anyone else had this problem and are there any solutions?

  • What is the best way to run a VBScript in labview 6.1

    I am trying to call some VBscript I have written using Labview 6.1. Any body got any Ideas how to do this without running a dos prompt?

  • Load image to Label componet

    How Could I load image to backgroung of label component? I want to use text with some background. It is possible or not? if it doesn't possible so can I to do it with other component? Thanks.