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.

Similar Messages

  • 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.

  • Is it possible to load classes from a jar file

    Using ClassLoader is it possible to load the classes from a jar file?

    URL[] u = new URL[1] ;
    u[0] = new URL( "file://" + jarLocation + jarFileName + "/" );
    URLClassLoader jLoader = new URLClassLoader( u );
    Object clsName = jLoader.loadClass( clsList.elementAt(i).toString() ).newInstance();
    I get this error message.
    java.lang.ClassNotFoundException: ExceptionTestCase
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    // "file://" + fileLocation + fileName + "/" This works fine from a browser.
    Is there anything I am missing? Thanks for the reply.

  • Loading a jar via a custom classloader

    Hi,
    I have written a custom class loader that allows me to load a compiled java program as a collection of class files at runtime.
    This is nice however I now need to consider the runtime execution of more complex java programs that have custom library dependencies.
    This means loading a .jar library into the classloader. I can get the contents of a jar and load specific classes by name via reflection but I want to load the entire jar into the classloader so that its contents can be used 'as needed' much like a jar on the system classpath.
    Is this possible? If so I would like to know how as I have been struggling with this problem and cannot see a solution.
    Regards,
    Stephen

    However I still don't understand why you need to
    actually load all those classes initially. Afterall,
    URLClassLoader (which sounds a lot like what youare
    describing) only loads classes as needed.i have just built a swing app that accesses an oracle
    database, i jared together all the classes, and i did
    something in the manfest file so that you can just
    double clisk the jar and it fires up like an exe.
    doing it this way everything is fine except it cannot
    access the database, the reason is those oracle
    classes are not loaded, even they are on the path - i
    can run the app using a batch file but i dont like it
    as it opens up a dos window. this is an example, as i
    was told, where it is necessary to load all thoses
    oracle database classes initially. Dear, daFei.
    I believe that you are getting confused between the way the system will ignore that CLASPPATH environment variable when you run a java application packaged as a jar file with the -jar switch (the classpath for the jar can be set in the manifest) and what I am attempting to-do which is to run a compiled java program at runtime and dynamically load any dependant libraries.
    Stephen

  • Dynamically load local_policy.jar?

    Hi
    I'd like to use a 256bit-AES-Algorithm with my application.
    Is there any possibility to load the necessary
    Unlimited Strength Jurisdiction Policy Files dynamically?
    I don't really believe, that I have to suggest the user
    to alter the basic-jre/jdk-configuration, just in order
    to use my small app.
    (copy local_policy.jar/US_export_policy.jar to
    $JAVA_HOME/lib/security)
    Isn't there anything you can do to import the
    local_policy.jar/US_export_policy.jar at runtime
    or via runtime-parameter for the vm?
    thanks in advance.
    Oli4

    eg- this.getClass().getClassLoader().loadClass("class")Try using Thread.currentThread().getContextClassLoader() instead of this.getClass().getClassLoader().

  • 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.

  • Urgent - Is it possible to Load a DLL in ABAP ?

    Hi All,
       Is it possible to Load a DLL from ABAP ? If so how ?
    Thanks
    Sunil.M

    Hi sunil,
    1. Its not possible for DLL,
      but if its Activex EXE,
      (ie. OLE concept is there),
    2. then it can be done.
    regards,
    amit m.

  • Unable to load "ejb.jar" to database

    Hi All,
    I am trying to load ejb.jar to database by using the following syntax.
    loadjava  -verbose -force -resolve -oracleresolver -user <uname>/<password>@<server>:<port>:<sid>  -t  ejb.jar 
    But it is showing error :
    ksh: loadjava : not found.
    In the server when i type loadjava it is showing the options, means loadjava will work i think. Is there any configuration needs to change to load ejb.jar to database ?
    Machine details :
    AIX 64 Bit 5.3
    DB : Oracle 11g 11.2.0.2.0
    Appreciated your help in this.
    Thanks,
    Prakash

    Prakash wrote:
    Hi,
    I did the following
    export PATH=$ORACLE_HOME/bin
    Then
    loadjava  -verbose -force -resolve -oracleresolver -user <Uname>/<Pwd>@<Server>:<Port>:<Sid>  -t  ejb.jar
    But still i m facing the same issue.
    Even the .profile also we have defined : export PATH=$PATH:$ORACLE_HOME/bin/
    Can you please point me what is missing in the above steps i followed.
    Thanks,
    Prakash
    PLEASE use COPY & PASTE so we can see exactly what you do & response from OS/Oracle
    what is "-t" arguement?
    bcm@bcm-laptop:~$ loadjava
    loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grants] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-nativecompile] [-resolver resolver] [-schema schema] [-synonym] [-thin] [-tableschema schema] [-user user/password@database] [-verbose] [-edition edition] classes..jars..resources..properties...
    bcm@bcm-laptop:~$

  • Loading all jars in a folder at runtime

    Hi...
    Suppose , i have a folder in which there are many jars which depends upon each others....
    I need to load all the jars at one go ....
    I am using below code
    public URLClassLoader loaderNEW(String jarFileName) {
              File file = new File("D:\\ESTED JAR\\");
         String libDir="D:\\ESTED JAR\\";
         try {
              File dependencyDirectory = new File(libDir);
                   File[] files = dependencyDirectory.listFiles();
                   URL[] urls = new URL[20];
                   for (int i = 0; i < files.length; i++) {
                   if (files.getName().endsWith(".jar")) {
                   urls[i]=(files[i].toURL());
                   //urls.add(files[i].toURI().toURL());
         // Convert File to a URL
         // Create a new class loader with the directory
         ClassLoader loader = new URLClassLoader(urls);
         // Load in the class; Class.childclass should be located in
         // the directory file:/c:/class/user/information
         Class cls = loader.loadClass("user.informatin.Class");
         } catch (MalformedURLException e) {
         return loader;
    its is giving error
    Exception in thread "main" java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at LoadClass.loaderNEW(LoadClass.java:33)
         at LoadClass.main(LoadClass.java:10)
    Please help me out......
    Thanks in advance

    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    } catch (MalformedURLException e) {
    }Never swallow exceptions.
    at LoadClass.loaderNEW(LoadClass.java:33)Something is null that shouldn't be at line 33 of LoadClass.java
    Better go through some beginner tutorials before you play around with ClassLoaders and the like. Identifying the cause of a NullPointerException is much more fundamental than
    Loading all jars in a folder at runtimedb

  • Loading plsql_proxy.jar takes so long..never ends

    Hello people,
    I´m deploying a proxy cliente using command,
    jpub -u SCOTT/SCOTT -sysuser SCOTT/SCOTT -proxywsdl=any_wsdl -endpoint=any
    then the executing process stay in Load plsql_proxy.jar for a long time. it looks like never ends.
    plsql_wrapper.sql
    plsql_dropper.sql
    plsql_grant.sql
    plsql_revoke.sql
    Executing plsql_dropper.sql
    Executing plsql_wrapper.sql
    loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
    Loading plsql_proxy.jar......................
    the execution process looks like stopped at this here and doesn´t throw any exception.
    I´ll be grateful the soon answer.
    Rodius
    anybody knows how long takes the proxy client generation process?

    I have this issue also, with images from my D70 (~6 megapixels) ... no solution, except that when it happens, quitting and re-launching Aperture seems to clear it up for a while, at least until it happens again.
    Given that you have almost twice the RAM and four times the CPU cores that I have, I suspect this is a software issue, and not one of insufficient hardware resources.  :-)

  • 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

  • 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;
    }

  • 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.

  • Error while Loading Mail.jar in Database

    Hi,
    I am trying to load mail.jar in Oracle 8i Database(ver. 8.1.5.0.0). It is giving error insufficient previleges. Then I extracted mail.jar and tried to load class PasswordAuthentication of mail.jar in user scott. It gave me same error. But I could load the same class in user SYS.
    Does it mean that, scott needs some special previleges for the classes in mail.jar. If so, How can I set those previleges ?
    Thanking You.
    Mrinal.
    null

    rdbms 8.1.5 had very tight restrictions on loading "system classes.
    check the java doc for 8.1.5 on this.
    check out the following
    "protected packages" in the following
    http://otn.oracle.com/doc/server.815/a64682/04jserve.htm#1001015
    Protected Packages
    You cannot replace system classes (those that CREATE JAVA SYSTEM installs, which you invoke with initjvm.sql at database initialization time). In addition, classes in any package (or sub-package) in which system classes reside, can be created only in the SYS schema. Protected packages include those starting with the patterns:
    java
    javax
    oracle.aurora
    oracle.jdbc
    oracle.rdbms
    oracle.sqlj
    oracle.sqlnet
    oracle.vm
    oracle.weak
    sun.tools
    sun.misc
    sun.net
    com.visigenic.vbroker
    com.sun.jndi
    org.omg
    sqlj
    by the way 8.1.5 went out of support on dec 31, 2000. you need to consider moving to 8.1.7.
    null

  • 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.

Maybe you are looking for

  • I don't have an "Adobe ebooks" icon on my Pandigital Novel

    I would like to download books from the library onto my Pandigital Novel.  I have no problems buying books from Barnes and Noble and downloading them but I can't do it for library books.  Here's what I know so far:  1.  I have to download the book in

  • TO_DATE - How do I pass the date and time to the function

    Hi, I am writing a PL/SQL code. The code has a simple cursor, For the criteria, I am using a column called 'created' which is a date column, and the to_date function. I would like to pass the date and time to the to_date fuction as a parameter, date_

  • Error: package sun.java2d.cmm does not exist

    I started to use Netbeans IDE 7.0.1 with jdk 7u9. I have an issue with import sun.java2d.cmm.ColorTransform; import sun.java2d.cmm.PCMM; etc. If I import from the package sun.java2d.cmm I can run but I can NOT build my project because of error: packa

  • Access Policy  Vs Self Service triggered provisioning

    Hello Everyone, I wanted to know if there is any way to differentiate at the process definition level whether the provisioning process is triggered by Access Policy/direct OIM user create or a Self Service Request?? Thanks N

  • How to achieve this layout?

    Hi, I am no layout expert but I am currently in need of creating a layout with a square something where I could drop my 4 taskflows as regions in each area. Is this possible in JDEV 11G using only the layout component? I used inlinestyles but I am en