Error Loading PLSQL.jar

I am getting a java error when trying to load plsql.jar on Oracle 8.1.7
"Exception: java.util.zip.ZipException: invalid END header format"
the command i used is loadjava -user sys/passw plsql.jar
Thank you for your help

Brief search on My Oracle Support indicates that you need to raise an SR for this with Oracle support. However, since you are running an obsolete version of Oracle, you cannot raise an SR for the same.
Not sure if it would help but you can create a new Oracle home with your installable and try copying the JAR file from there.

Similar Messages

  • Load plsql.jar file in Oracle 9i R2(9.2.0.1)

    I am trying to use plsql query to send mail from Oracle. Before writing a procedure i came to know that plsql.jar should be executed with sys login.
    But i am not finding plsql.jar in my server. I am using Oracle 9i (9.2.0.1). Can I download plsql.jar.
    is there any other method
    can any one help in this regard.
    Prasanta

    Hi
    Can you please try those steps?
    1. Initialize the Oracle JVM.
    2. Load plsql.jar into the Oracle JVM.
    Use the following command to load plsql.jar:
    $> loadjava -resolve -user system/manager@sid
    $ORACLE_HOME\plsql\jlib\plsql.jar
    please let us know if this helps you
    Thank

  • Error loading dbwsclient.jar

    I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
    The database version is 10.1.0.4.2
    The command used is:
    loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
    I get the following response with error message:
    arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
    genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
    at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
    at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
    at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
    at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
    at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
    at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
    at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
    at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
    at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
    at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
    at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
    at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
    Any suggestions as for what's going wrong?
    Regards, Rob

    When I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
    C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
    tmp\src\genproxy\HttpSoap11ClientJPub.java
    plsql_wrapper.sql
    plsql_dropper.sql
    plsql_grant.sql
    plsql_revoke.sql
    Executing plsql_dropper.sql
    Executing plsql_wrapper.sql
    Executing plsql_grant.sql
    Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
    Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
    Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
    If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
    exiting  : Failures occurred during processing
    oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
         at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
    It does appear to work when logged in as SCOTT in sql*plus:
    scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
    JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
    HELLO!! You just said :hey there
    1 row selected.Can these errors be ignored?
    Eric

  • 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

  • Error Loading xmlparserv2.jar

    Platform: NT4 SP5
    Database: 8.1.6
    When loading xmlparserv2.jar via loadjava, I'm getting an ORA-01401: inserted value too large for column.
    Command:
    loadjava -user eclipse/eclipse@bugs -r -v xmlparserv2.jar
    Errors:
    loading : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties
    creating : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties
    Error while creating resource oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.prope
    rties
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01401: inserted value too large for column
    ORA-06512: at line 2
    loading : oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.properties
    creating : oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.properties
    Error while creating resource oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.prope
    rties
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01401: inserted value too large for column
    ORA-06512: at line 2
    I just manually upgraded to 8.1.6 from an 8.1.5 database. I also ran jvmu815.sql to upgrade the JVM.
    I noticed that there is a patch out for 8.1.6, would this be helpful to install?
    Thanks.
    null

    Christine,
    I apologize for the delay.
    I verified that the system is OK so I believe that the solution is a good work around.
    1.) Export the schema that you want to utilize the XML Parser and all the schema constraints, procedures, etc.
    2.) Drop the user/schema and cascade all of the user's objects.
    3.) Recreate the user with the same priveledges and with the same default and temp storage locations.
    4.) Load the xmlparserv2.jar and the xmlplsql.jar files with loadjava as the user you just recreated.
    5.) Run the sql script to create the java packages as the same user.
    6.) Now, import the schema that you exported in step 1.
    7.) After the import, I had to recompile three xml package bodies. They were: XMLDOM, XMLPARSER and XMLPROCESSOR. Check them to see if they are invalid in your user's shema.
    Good luck,
    Eric

  • Error loading servlet.jar

    I deployed a web application in tomcat server. I'm getting following error when starting the server
    WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\registeruser
    \WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
    Offending class: javax/servlet/Servlet.class

    I am trying to deploy a web application using Netbeans 6.1 but when I am running it I am getting the following errors:
    deployed with moduleid = S
    validateJarFile(/home/aadhya/sanju/S/build/web/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    Can any body please tell me how to solve this problem???
    I tried even by deleting servlet.jar from my application but still the same problem exists.
    Thanks & Regards,
    Sanjeev K
    Edited by: sanjeev.pk on Sep 2, 2008 3:35 PM

  • Errors loading xsu111.jar

    When I run the oraclexmlsqlload.bat file and it gets to the 'call loadjava -r -v -g PUBLIC -u %USER_PASSWORD% xsu111.jar' line and in the phase where it tries to resolve references I get the following Errors:
    ORA-29534: referenced object SYS.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SYS.oracle/xml/sql/query/OracleXMLQuery could not be resolved
    ORA-29534: referenced object SYS.oracle/xml/sql/dml/OracleXMLStaticSave could not be resolved
    ORA-29534: referenced object SYS.oracle/xml/sql/query/OracleXMLStaticQuery could not be resolved
    ORA-29521: referenced name oracle/jdbc2/Clob could not be found
    Does any one know what's the problem? I followed the installation instructions to the letter. Help!

    see if the classes111.zip is in your classpath env. variable.... It looks as though it is trying to find the classes referenced in your message above.
    Other than that, I do not know.

  • Loadjava error - loading JAR file

    Hi,
    I am trying to load a JAR file into the DB and am getting these errors:
    $ loadjava -force -user user/pass javaTelnet.jar
    Error while creating class javaTelnet/ScriptHandler
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetClient$ReaderThread
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetClient
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetWrapper
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetProtocolHandler
        ORA-29537: class or resource cannot be created or dropped directly
    The following operations failed
        class javaTelnet/ScriptHandler: creation
        class javaTelnet/TelnetClient$ReaderThread: creation
        class javaTelnet/TelnetClient: creation
        class javaTelnet/TelnetWrapper: creation
        class javaTelnet/TelnetProtocolHandler: creation
    exiting  : Failures occurred during processing
    These are the only other Java class I have in the DB.
    SQL> select dbms_java.longname(object_name),status
      2  from user_objects
      3  where object_type='JAVA CLASS'
      4  /
    DBMS_JAVA.LONGNAME(OBJECT_NAME)
    STATUS
    PBoot
    VALIDThe JAR contains all class files within a package named javaTelnet.
    I am able to execute the JAR successfully from command line.
    Thanks

    Hi,
    I am not able to load a simple java source/class(either one, not both) file into the DB.
    $ dropjava -user user/pass -v A.java
    dropping: source A
    $ loadjava -user user/[email protected] -v -resolve A.java
    arguments: '-user' 'user/[email protected]' '-v' '-resolve' 'A.java'
    creating : source A
    loading  : source A
    creating : A
    resolving: source A
    $
    SQL> select dbms_java.longname(object_name),status
      2  from user_objects
      3  where object_type like 'JAVA %'
      4  /
    DBMS_JAVA.LONGNAME(OBJECT_NAME)
    STATUS
    PBoot
    VALIDAny guess how I may be able to resolve this issue?.
    Any trace files about loadjava written anywhere ?
    Thanks

  • 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

  • Error Loading jar

    Im using this command to load a jar file.
    loadjava -u CRAMER/CRAMER@CRAM51AS -r -v api-private.jar
    But, getting the following error....
    arguments: '-u' 'CRAMER/CRAMER@CRAM51AS' '-r' '-v' 'api-private.jar'
    Error while connecting with oci8 driver to CRAM51AS: oracle.aurora.server.tools.loadjava.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to try the JDBC Thin driver: make_c_state
    exiting : could not open connection
    What does this mean and how to rectify this? Pls help...
    My database version is 9.2.0.4.0
    Manoj

    For your information, there are already XML parsers loaded into the database. If you haven't already done so, I suggest running the following query:
    select
       DBMS_JAVA.LONGNAME(OBJECT_NAME) as Object_Name
      ,OBJECT_TYPE
      ,OWNER
      ,STATUS
    from
       ALL_OBJECTS
    where
       upper(DBMS_JAVA.LONGNAME(OBJECT_NAME)) like '%XML%'
    and
       OBJECT_TYPE like 'JAVA %'Good Luck,
    Avi.

  • Java io error when attempting to load PLSQL content

    Anyone have an issue loading PLSQL content (package, procedure, function)?
    I can connect to a database and do DML, DDL, browsing. However, when I attempt to open or create PLSQL content, I get the java.io error (see below).
    I have 1.5 JRE installed. It's odd that everything else works fine.
    Thanks in advance for any insights!
    Tom
    java.io.IOException: Connection to xxx not open.
         at oracle.jdeveloper.cm.dt.net.JDevCmURLFileSystemHelper.createReader(JDevCmURLFileSystemHelper.java:287)
         at oracle.ide.net.URLFileSystemHelperDecorator.createReader(URLFileSystemHelperDecorator.java:338)
         at oracle.ide.net.URLFileSystem.createReader(URLFileSystem.java:1489)
         at oracle.ide.model.TextNode.createReader(TextNode.java:1508)
         at oracle.ide.model.TextNode.loadTextBufferData(TextNode.java:823)
         at oracle.ide.model.TextNode.loadTextBuffer(TextNode.java:774)
         at oracle.ide.model.TextNode.openTextBuffer(TextNode.java:717)
         at oracle.ide.model.TextNode.openImpl(TextNode.java:175)
         at oracle.jdeveloper.cm.dt.browser.jdbc.PlSqlBaseNode.openImpl(PlSqlBaseNode.java:172)
         at oracle.ide.model.Node.open(Node.java:565)
         at oracle.ide.model.Node.ensureOpen(Node.java:976)
         at oracle.ide.model.TextNode.getTextBufferImpl(TextNode.java:1191)
         at oracle.ide.model.TextNode.acquireTextBuffer(TextNode.java:1252)
         at oracle.ide.ceditor.CodeEditor.initializeEditor(CodeEditor.java:1719)
         at oracle.ide.ceditor.CodeEditor.setContext(CodeEditor.java:1160)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:142)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1280)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1215)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1150)
         at oracle.dbdev.oviewer.base.NavSelectionListener.whenDatabaseObjectSelected(NavSelectionListener.java:178)
         at oracle.dbdev.oviewer.base.NavSelectionListener.mouseClicked(NavSelectionListener.java:231)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
         at java.awt.Component.processMouseEvent(Component.java:5491)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:185)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Found a previous post. This error results if your connection name contains a ":". I removed the ":", and raptor was able to open plsql content

  • 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

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

Maybe you are looking for

  • How can I make a simple 1D array filter.

    When I aquire my data I get a 1D array with anywhere from 10 - 30 data points. There are always ten good data points the rest are noise or false triggeres. a good data point is in the range of .1-.2 a bad point is .001-.01 how can I filter out thse b

  • User Cannot manually Type LOV in Prompt Screen

    Hi Experts, WEBI reports built on OLAP Universes (Universes created on SAP BW) has below problem: As you know when user click's on Run Query or Refresh Data to run reports a prompt screen will pop up and in normal cases he has option of Selecting val

  • ADD NEW VALUE IN TO TEXTAREA IN CASE OF UPDATE FORM .

    HI, I HAVE A DUMMY TABLE CREATE TABLE  "DUMMY_MED_LITS"    (     "MED_CODE" VARCHAR2(100),      "MED_DOS" VARCHAR2(4000)    ).I AM GOING TO FETCH THESE TWO COLUMNS VALUE OF DUMMY TABLE INTO TEXTAREA .TEXT AREA ALREADY HAVE VALUE I WANT TO MARGE TEXTA

  • Out of bounds exception help

    hi all, i am having problems with some code i am working on. At the moment i only want to display my tilemap on screen. Everything compiles fine but when it runs it throws this; java.lang.ArrayIndexOutOfBoundsException: 135      at TileMap.getTileIma

  • Can anyone that works wirth xml in InDesign help me

    I am trying to create a schema to get an Excel workbook into xml so I can take that information and make a member list in inDesign CS6 so I don't have to type it by hand. This is the schema: <?xml version="1.0"?> <schema xmlns:xsd="http://www.w3.org/