Is it possible to load additional JAR Files?

Hi,
I was wondering if it is possible to load JAR files into an existing application. That is, if i have already deployed a JAD file onto a phone and have it running, is it possible to load additional classes into this program to use with the current program?
This is because depending on user decisions, different classes are needed and having all of them at once will use to much memory.

No, it's not possible.

Similar Messages

  • Is it possible to load rt.jar?

    Hi! I need some classes found in JDK 1.3.1, is it possible to load rt.jar into Oracle 9i? I've tried with but there are lots of errors (I've even decompressed and zipped it again since I was told it could help). Any ideas?
    Thanks!

    Hi:
    Which classes are you looking for inside rt.jar?
    Oracle 9i is shipped with JDK 1.3.1 complaint JVM, so the standard JDK is already loaded into SYS's schema.
    Before uploading any class in SYS first check if doesn't exist.
    You can find any particular class by using (logged as SYS):
    SELECT dbms_java.longname(object_name) cName
    FROM user_objects
    WHERE object_type = 'JAVA CLASS' AND status = 'VALID'
    AND dbms_java.longname(object_name) like 'javax/sql/%';
    If you upload classes which where created during OJVM installation may be you can break the DB or get inconsistent results.
    Missing classes can be uploaded extracting the rt.jar in an empty directory, copying only the missing classes and creating a new rt-missing.jar file.
    Best regards, Marcelo.

  • How to load a Jar file in the class path?

    How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • Error while loading the jar file using loadjava

    Hi,
    I'm trying to load a jar file in to a database through the loadjava utility. First time when i loaded a jar file it created few public synonyms with /'s. like /5b3d7f97_BeanInfoIndexer.
    Now i want to drop these synonyms before i reload the jar file with loadjava.
    If i use DROP PUBLIC SYNONYM /5b3d7f97_BeanInfoIndexer; it gives the following error...
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    I wonder how to drop these synonyms. I have to drop all these synonyms to freshly load the jar file.
    Thanks
    Shiva

    You can include the synonym names in double quotes in the drop synonym command. But it is not a good idea to drop the synonyms(which have been created by loadjava) using drop synonym command. Instead, you can use dropjava command which will automatically drop all the synonyms created by the loadjava command.

  • Problem while loading a jar file into database

    Hi All,
    We are using Oracle 8.1.5 in Solaris. When I try to load a jar file into the database by using loadjava it gives the following error
    Error while processing jar cryptix32.jar
    Exception java.io.IOException: Load Java is unable to handle compressed entries: cryptix/provider/Cryptix.class
    loadjava: 1 errors
    Can anybody suggest anything to overcome this. Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Emmer ([email protected]):
    I presume you've tried creating the jar w/o compressing it? If not, and even if you didn't create the jar, then first unpack the jar into a directory and re-jar it without using compression.<HR></BLOCKQUOTE>
    Hi John,
    Thanks for your help. I unpacked the jar and rhen re-jared it with -0 (uncompress ) option. The above error is gone. But I am getting another problem. I am getting the following error for all the classes except the property files.
    Error while resolving class cryptix/cryptix/provider/cipher/Rijndael
    ORA-04043: object cryptix/cryptix/provider/cipher/Rijndael does not exist
    But the class is there in the jar. I am able to load single individual classes. Can anybody help me in this matter. Thanks in advance.

  • Is it possible to load a dump file collected from sql server to orcle 10gR2

    Hi..
    As a part of data migration from legacy systems , we need to migrate only required tables from Sql server to Oracle 10gr2 .
    At present client is telling that he will give it as dump file.
    My question is , Is it possible to load the dump file collected from sql server to oracle 10gR2?
    Thanks in advance ..

    yes, it is.
    Using for example SQL Developer Migration Workbench even allows you to create unload scripts for the desired SQL Server tables and it also creates the DDL scripts for you to create the Oracle tables similar to the SQL Server table AND it alows creates the SQL*Loader scripts that allow you to load the SQL Server generated dump file into the Oracle db.
    Here the link:
    http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html
    If you do not want to use this utility, you can also use SQL*Loader to load the content of the SQL Server dump file into the Oracle database; but in this case you have to write the whole SQL*Loader control scripts on your own.
    Edited by: kgronau on Sep 16, 2009 1:54 PM

  • Is it possible to load a xdp file into a subform?

    Is it possible to load a xdp file into a subform?

    That worked with an existing fragment.
    What i'm tryin to do is generate a xdp file like (which i can open in the designer as preview pdf correctly), and insert this as subform.
    <?xml version="1.0" encoding="UTF-8"?>
    <xfa>
       <template xmlns="http://www.xfa.org/schema/xfa-template/2.8/">
          <subform name="TopmostSubform">
             <pageSet name="PageSet">
                <pageArea name="MasterPage1" id="p1">
                   <contentArea name="ContentArea" x="0pt" y="0pt" w="595.3pt" h="841.9pt"/>
                   <medium stock="a4" short="595.3pt" long="841.9pt" orientation="portrait" imagingBBox="none"/>
                </pageArea>
                <pageArea name="MasterPage2" id="p2">
                   <contentArea name="ContentArea" x="0pt" y="0pt" w="595.3pt" h="841.9pt"/>
                   <medium stock="a4" short="595.3pt" long="841.9pt" orientation="portrait" imagingBBox="none"/>
                </pageArea>
             </pageSet>
             <subform name="Page1" w="595.3pt" h="841.9pt">
                <draw name="Text" x="59.25pt" y="117pt" minW="400.25pt" minH="12pt">
                   <ui>
                      <textEdit multiLine="1"/>
                   </ui>
                   <value>
                      <exData contentType="text/html">
                         <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Assunto: Ap&#xf3;lice n&#xba; #MC_Apolice_MC# - Actualiza&#xe7;&#xe3;o de Condi&#xe7;&#xf5;es 2012/2013</p></body>
                      </exData>
                   </value>
                   <para/>
                </draw>
                <draw name="Text" x="59.25pt" y="141pt" minW="88.25pt" minH="12pt">
                   <ui>
                      <textEdit multiLine="1"/>
                   </ui>
                   <value>
                      <exData contentType="text/html">
                         <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Estimado Cliente,</p></body>
                      </exData>
                   </value>
                   <para/>
                </draw>
                <draw name="Text" x="59.25pt" y="165.75pt" w="490.25pt" minH="24pt">
                   <ui>
                      <textEdit multiLine="1"/>
                   </ui>
                   <value>
                      <exData contentType="text/html">
                         <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Aproximando-se a data de renova&#xe7;&#xe3;o do seu seguro de sa&#xfa;de Multicare, vimos inform&#xe1;-lo das altera&#xe7;&#xf5;es que ocorrer&#xe3;o na sua ap&#xf3;lice a partir de #MC_Dt.Inicio_MC#.</p></body>
                      </exData>
                   </value>
                   <para/>
                </draw>
                <draw name="Text" x="59.25pt" y="201.75pt" minW="155pt" minH="12pt">
                   <ui>
                      <textEdit multiLine="1"/>
                   </ui>
                   <value>
                      <exData contentType="text/html">
                         <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt;font-weight:bold">Refor&#xe7 ;&#xe1;mos a sua prote&#xe7;&#xe3;o</p></body>
                      </exData>
                   </value>
                   <para/>
                </draw>
             </subform> 
          </subform>
       </template>
    </xfa>

  • Is it possible to run a jar file in another program???

    Hello members,
    i am sanketh. is it possible to run a jar file in another program.
    if possible plz reply with an example or good links to go thru.

    What do you mean "run a jar file in another program"? It's not very clear.

  • Error Loading xerces.jar file

    Hi,
    I am getting the following errors while loading the Apache xercesImpl.jar file.
    ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/HTMLSerializer
    could not be resolved
    errors : class org/apache/xml/serialize/XML11Serializer
    ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/XMLSerializer c
    ould not be resolved
    errors : class org/apache/xml/serialize/XMLSerializer
    ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/OutputFormat co
    uld not be resolved
    errors : class org/w3c/dom/html/HTMLDOMImplementation
    ORA-29521: referenced name org/w3c/dom/html/HTMLDocument could not be found
    I am loading the jar file using the following command
    loadjava -user demo/demo@userdemo -resolve xercesImpl.jar
    Any help will be really appricated.
    Thanks in advance
    Mohammad

    Hi,
    Check whether the file is open? close the file and try to pull once again.
    Fields are matching with the data source? check it once. it should be in sync with MData fields.
    and may be the problem with data...I think some Extra permitted chars / lower case is there in flat file. this can be solved by RSKC

  • Possible to create a JAR file from within a java app?

    Is it possible to create a jar file from within a java application?
    Can it be done more elegantly than by spawning-off another
    process with the Runtime and exec() portions of the api?
    Thanks
    Scott

    Thanks! I was mislead by the API notes for java.util.jar:
    The JarOutputStream class is used to write the contents
    of a JAR file to any output stream.
    I was looking for a class or method to make jar files.
    Seems this is it ;)
    Thanks
    Scott

  • CLASSPATH issues on DOS/NT and loading of jar files

    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

    Thanks for the reply. I much appreciate it. What about the other idea that I
    had outlined-loading these jar files using a ClassLoader. Is that viable ?
    Aswin.
    Cameron Purdy wrote:
    In Win2k: Control Panel, System, Advanced, Environment Variables
    ComSpec=%SystemRoot%\system32\cmd.exe /e:16384
    You still will not be able to have a command line exceeding a certain size
    (around 1k or so). That is a hardcoded limit somewhere inside the NT kernel
    ("kernel" being a poor term for the piece so named in NT ;-).
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Aswin Dinakar" <[email protected]> wrote in message
    news:[email protected]..
    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

  • Jinit not loading webutil jar files

    Hello,
    Our Application Server has had webutil installed on it for quiet some time now. I am implementing a custom Banner Form that requires webutil functionality. Well the form is all set, but the webutil portion does not function correctly. I have been working with the designers of this application and they recommended I make sure that my archive_jini and archive parameters be set in the file /u01/app/oracle/product/10gASforms/10.1.2/forms/server/formsweb.cfg as follows:
    archive_jini=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall_jinit.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
    archive=banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,frmall.jar,gwucustom.jar,frmwebutil.jar,jacob.jar
    so I set these up as requested. When I look at my Java Console I only see the following load:
    banicons.jar, bannerui.jar, banspecial.jar, banorep.jar and frmall_jinit.jar
    I do not see gwucustom.jar, frmwebutil or jacob.jar load.
    Is there something I am missing? Do I have to restart the Application Server?
    Thank you much in advance for any guidance anyone can provide!
    -Stan

    I actually corrected this issue myself.
    In the formsweb.cfg file I added these properties under the default section.
    There is a section called jinit_pprd (My Pre-Production test server, I added these values under there and the .jar files are now loading.
    -Stan

  • Loading separate JAR files.

    Hello.
    I have an application that loads functionality from separate jar files so that the application has a "hot deploy" feature. This means that the application reloads a certain functionallity if a new jar is deployed to that folder. This also means that the jars containing this functionality must be in a separate forlder than the jars for the application framework, or the system would try to load this as a functionallity as well.
    In my JNLP file, I load the whole application framework at startup, but none of the functionality jars as these are loaded after the application has logged the user in and so on. I use URLClassLoader to load the funtionality classes but in these classes, I import from the allready loaded framework, and the functionalities I try to load throw an excaption that they do not find the classes in the framework.
    Any ideas as to how the externally loaded jars can find classes loaded into the framework? This works perfectly well when I don't use web start, so there must be some class loading issues I am not aware of.
    Thank you.
    -r

    OK, I am making some progress, but now I have a different problem: Some of the framework for loading was written by someone else and I would really like access to the debug information it prints without having to rewrite a lot to print it all to files. Is there any way to get access to everything that is being printed on System.out from web start. Been looking around but I can't find anything on the subject.

  • URLClassLoader + dynamically loading signed jar files

    I have an applet that does not know all of the jar files it will need to load at startup.
    I would like to dynamically load these signed jar files using the URLClassLoader, however it does not recognize these jar files as being signed and I get java.security.AccessControlException: access denied errors.
    Any suggestions?
    Thanks!

    Try this classloader for loading the jars, it should to the trick:
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.net.URLStreamHandlerFactory;
    import java.security.AllPermission;
    import java.security.CodeSource;
    import java.security.PermissionCollection;
    import java.security.Permissions;
    public class AllPermissionsClassLoader extends URLClassLoader {
        public AllPermissionsClassLoader (URL[] urls) {
            super(urls);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent) {
            super(urls, parent);
            System.out.println(parent);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
            super(urls, parent, factory);
        protected PermissionCollection getPermissions (CodeSource codesource) {
            Permissions permissions = new Permissions();
            permissions.add(new AllPermission());
            return permissions;
    }

  • Java applet won't load from Jar file

    Hi all,
    I have a problem which I didn't used to have. I have written an applet which used certain classes stored in directories. It used to work just fine. I recently updated the main class from which the applet starts and since then I get error messages:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/benoize
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class WiaRekenToolHC.class not found.
    java.lang.ClassNotFoundException: WiaRekenToolHC.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:252)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:687)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
         at java.lang.Thread.run(Thread.java:680)
    Exception: java.lang.ClassNotFoundException: WiaRekenToolHC.class
    As you can see it says that it can't find the class WiaRekenToolHC, but it's there in the jar files.
    Here is the link where you can see it:
    www.creativemathsolutions.nl/demo/HC/demo.html
    The jar files are in the directory HC and Generic.
    If you need more info then let me know!
    Regards, Benoit

    <applet
      codebase="http://www.creativemathsolutions.nl/demo/HC"
      code="WiaRekenToolHC.class"
      ARCHIVE="HC/wia_hc_archive_v0_3.jar, Generic/wia_archive_v0_3.jar"
      width=900 height=600>The code-base combined with archive href for the first Jar mean the JRE will look for it at:
    http://www.creativemathsolutions.nl/demo/HC/HC/wia_hc_archive_v0_3.jar
    It is not there. The other Jar is also missing from the stated location.

Maybe you are looking for