Error in jacob

i want to run the jacob example
i set my classpath:
C:\j2sdk1.4.2_06\lib;.;C:\hemant\Downloads\jacob\jacobBin_17\jacob.jar
path:
%JAVA_HOME%\bin;.;%PATH%;C:\hemant\Downloads\jacob\jacobBin_17\jacob.dll
System variable path is:
D:\oracle\ora92\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\hemant\Downloads\jacob\jacobBin_17\jacob.dll
whenever i run the jacob example file from command prompt it show error
when i give like this
prompt> java -cp . math
Exception in thread "main" java.lang.NoClassDefFoundError: com/jacob/com/Dispatc
h
at math.main(math.java:12)
when i give like this
prompt> java math
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jacob in java.libr
ary.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jacob.com.Dispatch.<clinit>(Dispatch.java)
at math.main(math.java:12)
please send me the solution as soon as possible
regards
hemant

still i get the same error i.e. ->
Exception in thread "main" java.lang.NoClassDefFoundError: com/jacob/com/Dispatch
at math.main(math.java:12)
i will running from c prompt
C:\hemant\Downloads\jacob\jacobBin_17\samples\test>java -cp . math

Similar Messages

  • WUC-20 stated size error of jacob.dll

    When running our web application we are receiving the following error messages :-
    WUC-20 The stated size of the source file
    http://appstest1.rcn.org.uk/forms90/forms90/webutil/jacob.dll does not match
    that of the downloaded file C:\PROGRA~1\Oracle\JINITI~1.9\bin\jacob.dll
    We have the same problem with JNIsharedstubs.dll and d2kwut60.dll
    We copied across the files from the Application Server directory /u01/ora9ias/forms90/webutil directory directly to the client but when running the application these dll's are overwritten to 1k from the following sizes :-
    d2kwut60.dll 192512
    jacob.dll 94208
    JNIsharedstubs.dll 65582
    The client is a Windows2000 server running IE5. We have downloaded JInitiator 1.3.1.9 successfully.
    What are we doing wrong?

    Have a look at this: Webutil error WUC-20 when running
    Cheers, APC

  • Error in Jacob.jar register - alias webutil2 already exists

    Hi,
    I am getting the following error when I try to register the jacob.jar, Before also I did try to register the jacob.jar,
    but I am not sure that time it registered successfully, Because I was getting the following error, When I try to run the Web Util sample form to write to the client side Word file using CLIENT_OLE, so again I did
    try to register the jacob.jar
    Error copied from Java Console
    <<
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    >>
    Steps I did to Sign Jacob.jar
    D:\DevSuiteHome_2\forms\webutil>sign_webutil D:\DevSuiteHome_2\forms\java\jacob.jar
    Generating a self signing certificate for key=webutil2...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    Backing up D:\DevSuiteHome_2\forms\java\jacob.jar as D:\DevSuiteHome_2\forms\java\jacob.jar.old...
    1 file(s) copied.
    Signing D:\DevSuiteHome_2\forms\java\jacob.jar using key=webutil2...
    jarsigner: attempt to rename D:\DevSuiteHome_2\forms\java\jacob.jar to D:\DevSuiteHome_2\forms\java\
    jacob.jar.orig failed
    There were warnings or errors while signing the jar. Please review them.
    D:\DevSuiteHome_2\forms\webutil>jarsigner -verify D:\DevSuiteHome_2\forms\java\frmwebutil.jar
    jar verified.
    Warning: This jar contains entries whose signer certificate has expired. Re-run with the -verbose an
    d -certs options for more details.
    D:\DevSuiteHome_2\forms\webutil>jarsigner -verify D:\DevSuiteHome_2\forms\java\jacob.jar
    jar is unsigned. (signatures missing or not parsable)
    Thanks in advance
    Rizly

    Did you change the variables in your sign_webutil.bat file?
    Because this batch file creates you a new keystore with information about your company etc.
    Maybe you should take a look at the batch file.
    The Java Error in the console indicates that the jar file didn't get signed right btw...

  • Unsigned jacob.jar file causing forms loading slow

    Dear All,
    Oracle version : 10.1.2.0.2
    OS: Windows 2003
    Client IE version : IE 8
    JRE version : JRE 1.6 update 21
    JRE security setting : Mixed code (sandboxed vs. trusted) security verification - Disabled
    We are getting the unsigned jar file error for jacob.jar, but it is running fine in many other places and giving unsigned jar file error for other jar files.
    Loaded image: jar:http://192.168.100.88:7778/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    Trace level set to 5: all ... completed.
    cache: Reading Signers from 0 http://192.168.100.88:7778/forms/java/jacob.jar | C:\Users\samm.AGS-STORE-005\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\48\dc408b0-3aabe349.idx
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: No certificate info for unsigned JAR file: http://192.168.100.88:7778/forms/java/jacob.jar
    network: Connecting http://192.168.100.88:7778/forms/lservlet;jsessionid=c0a8645830d6885b096494a44406bb10e869f532355e.e38LbhmPbxyKci0La3qPa3iNa38Re6fznA5Pp7ftolbGmkTy with proxy=DIRECT
    I have seen sites to sign the jar files, but is it possible to overcome this error without signing. Since this error is taking 10-20 secs more to load the form.
    Please help.
    Thanks and Regards,
    Anand.

    HI,
    You need to sign both frmwebutil.jar and jacob.jar first the clear JAR cache ion end-user computer,so that new signed JAR files are downloaded to end-user machines..

  • Struts/ADF Iterator problem - how to prevent iterator from executing?

    HI
    I've a problem with a iterator which I would like NOT to execute before I order it! This is a basic Struts/ADF app developed in JDeveloper 9052 and I really don't understand why this iterator is executed!
    My binding definition file for the page contains 2 iterators, let say iterator A and B. Each iterator is bound to a different viewobject. Viewobject bound to iterator A i straightforward, but viewobject bound to iterator B has 3 bind variables - and then I don't want iterator B to execute before i have specified values for those, but I can't hold it back!
    The bindingcontainer is forced into FindMode to prevent any iterator to execute in the first place - then I thought that I would be completely in control. This works fine, until I need to execute iterator A without executing B or any other iterator. I've overridden the prepareModel() method, to accomplish this:
    protected void prepareModel(DataActionContext ctx) throws Exception {
    DCBindingContainer con = ctx.getBindingContainer();
    JUCtrlActionBinding action = (JUCtrlActionBinding)con.findCtrlBinding("ExecuteA");
    action.invoke();
    But, executing iterator A this way, also automatically executes iterator B somehow, which causes a classic JBO-27122 (not all variable bound...). If I remove the code for manually executing iterator A, I get no error, because no iterator is fired at all then. But how do I only execute one iterator in the binding container???
    To demonstrate, my JSP page only has this content:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:errors/>
    Regards
    Jacob

    I don't think you can stop that.
    What I usually do to prevent result show up is to add additional condition with bind variable to programmatically make it selecting no row. vo is something like
    select aField
    from someTable
    where .....
    and :toSearch = 'Y'
    the bind variable :toSearch will be default to 'N'

  • Webutil and object properties

    I'm trying to access property that has been declared as
    [id(0x6002009a), propget, helpcontext(0x0000027f)]
    _CadInputQueue* CadInputQueue();"
    I get error "com.jacob.com.ComFailException: Can't map name to dispid: CadInputQueue".
    Code I'm using is like this:
    app := CREATE_OBJECT('MYAPP.Application');
    queue := GET_OBJ_PROPERTY(app, 'CadInputQueue');
    ... and then process queue but it only gives that error.
    If I use eg. BSTR'ed everything works. Any ideas?

    Declare in your header file that your VC adopts the UIScrollViewDelegate protocol and the warning will go away.
    You cannot print out C structures as Objective-C objects using the %@ format specifier. You need to print the various primitive components of the CGRect using the appropriate specifier (generally %f, %g etc. can be used for float values).

  • Jacob.jar Help/Webutil Error-Urgent Help Needed

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Thanks for quick response.
    But my question is do we need to config jacob lib even we dn't need it.I am asking this because with this release of WEBUTIL,jacob is a seperate lic. product and its not a part of WEBUTIL pack.
    Thanks

  • Jacob.jar Help/Webutil Error

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Yes, it seems from Jacob zip file jacob.jar is also needed to be extracted into the web util (lib) directory.
    Please review Oracle Metaink: com/jacob/com/ComFailException When Deploying Form With Webutil: Doc ID: Note:247007.1
    Hope it would be helpful.
    Adith

  • Jacob dll error

    I'm trying to run my forms compiled with webutil.pll and webutil.pll as part of the forms builder. My 9ias is fully configured for webutil. I got the following error..
    java.lang.NoClassDefFoundError: com/jacob/com/ComFailException
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Please help.

    I still was getting error, but the fix made was
    .     Cleared the JAR cache and ran test form. Checked JAR cache to confirm – no Jacob.dll
    .     Ran http://<server>:9001/forms/webutil/jacob.dll in a browser - the downloaded Jacob.dll was the older version
    .     Searched ....\oracle\wls_64 to ensure no spare Jacob.dll were sitting around – there were none
    .     Guessed that Jacob.dll was being cached somewhere. Since you are using port 9001 (i.e., no HTTP server or webcache), I assumed it was the WLS doing the caching
    .     Stopped and started WLS_FORMS
    .     Tested form and it worked

  • Error while signing jacob.jar in FMW 11g

    Hi,
    after setting the PATH like:
    set PATH=C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\jdk\bin;%PATH%
    while signing the jacob.jar file for the first time after installing 11g Forms in Windows the following error occurs:
    C:\Dokumente und Einstellungen\bten>C:\Programme\ORACLE11g\Oracle\Middleware\ins
    tances\FRinst\bin\sign_webutil.bat C:\Programme\ORACLE11g\Oracle\Middleware\PFRD
    11g\forms\java\jacob.jar
    Generating a self signing certificate for key=webutil2...
    Keytool-Fehler: java.lang.RuntimeException: Verwendungsfehler: 360 ist kein g³lt
    iger Befehl.
    There were warnings or errors while generating a self signing certificate. Pleas
    e review them.
    Backing up C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar
    as C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar.old...
    1 Datei(en) kopiert.
    Signing C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar us
    ing key=webutil2...
    jarsigner error: java.lang.RuntimeException: keystore load: C:\Dokumente und Ein
    stellungen\bten\.keystore (Das System kann die angegebene Datei nicht finden)
    There were warnings or errors while signing the jar. Please review them.
    C:\Dokumente und Einstellungen\bten>
    What is the reason, and how can I solve this?
    Thanks Bea

    Perhaps you are using old WLST code (used for OSB 10g), with OSB 11g.
    The ALSBConfigurationMBean (com.bea.wli.sb.management.configuration.ALSBConfigurationMBean) Interface in the com.bea.wli.sb.management.configuration package in the Oracle Fusion Middleware Java API Reference for Oracle Service Bus includes example code illustrating how to import and export Oracle Service Bus 11g configurations, how to change environment values, how to query resources, and so on. Please find it here -
    http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15033/toc.htm
    Regards,
    Anuj

  • Error due to wrong size of jacob.dll and solution to fix it

    Hi
    First of all this thread is not a question for you but rather an information I would like to share with you.
    We are in the process of upgrading our Forms 6i to Forms 11g. The setup of Forms 11g (11.1.1.3.0) and Webutil is completed. I ran my first form with Webutil PLL attached to it. The form ran fine. I looked at the Java console for messages. Saw the following error message:
    System library http://<oracle_home>:8090/forms/webutil/jacob.dll has incorrect size in WebUtil config. Download will be cancelled
    After doing googling and a search on Metalink, found the cause of this error.
    It was due to the actual file size of jacob.dll file and the one specified in webutil.cfg file was not matching. The entry in my webutil.cfg file reads as follows:
    install.syslib.0.7.1=jacob.dll|106496|1.10|true
    To find out the exact file size of your jacob.dll file, right click on it and on the 'General' tab you can see the exact size in bytes.
    For example, *104 KB (106,496 bytes)*
    In my case the file size of Jacob.dll was different due to the wrong version of Jacob I had downloaded. I had downloaded jacob_18.zip file from the following link:
    http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    Again, googling through Forms forums and Metalink, found that the version of Jacob.dll we need to have for Forms 11g should be 1.10. So downloaded this version from the following link:
    http://sourceforge.net/projects/jacob-project/files/jacob-project/1.10.1/jacob_1.10.1.zip/download
    Unzipped it and the checked the size of jacob.dll, it was 106496, matching with the entry in webutil.cfg file !!
    The next step was to delete the old jacob.dll file from <oracle_home>\forms\webutil folder and old jacob.jar from <oracle_home>\forms\java folder and copying the new files back the same folders.
    The last step was to re-sign the jacob.jar file using sign_webutil.bat (or sign_webutil.sh for unix).
    As suggested in Metalink, to be on safe size, also deleted the old jar files downloaded in your temporary folder and deleted the jacob.dll file downloaded in your \Program files\Java\JRE\bin folder.
    Thats it ! Re-launched my form and checked the Java console. That incorrect file size message had gone !!
    Hope this brief information will help you if you also face the same problem.
    Cheers
    Mayur

    I still was getting error, but the fix made was
    .     Cleared the JAR cache and ran test form. Checked JAR cache to confirm – no Jacob.dll
    .     Ran http://<server>:9001/forms/webutil/jacob.dll in a browser - the downloaded Jacob.dll was the older version
    .     Searched ....\oracle\wls_64 to ensure no spare Jacob.dll were sitting around – there were none
    .     Guessed that Jacob.dll was being cached somewhere. Since you are using port 9001 (i.e., no HTTP server or webcache), I assumed it was the WLS doing the caching
    .     Stopped and started WLS_FORMS
    .     Tested form and it worked

  • Error while attaching a image in forms10g envion..

    hi
    i am getting this error while attaching a image in forms 10g enviornment.
    ERROR>WUC-24 [URLDownload.pullFile()] Error reading URL http :// 10.80.50.222:7778/forms90/webutil/jacob.dll
    regards
    Geo.

    did you install jacob ? with the correct version number described in the installation-guides.
    jacob is not an oracle tool, which normally is only useful for COM-commands against windows.
    What did you do with the image?

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Error encountered while attaching a document in an appraisal

    Hi Experts,
    Good day. I have enabled or allowed an attachment to be included in an appraisal but I am getting this error while attaching a document "Read error during PC upload (header of the pop-up box), Include file in PC application Try Again? Yes / No / Cancel (message contents)". Any inputs as to why I got this error? I also checked table T77S0 for GENER/OBJSV and it shows with the value of 1 meaning it is activated, right? One more thing, do you also have an idea as to why I am getting this warning message for the description of the appraisal template: "You have maintained a description that is not displayed." It allows me save but I just want to know why this happens and what do I need to do for it not to appear because the client may get back to me and ask the same thing. Any inputs will be greatly appreciated. Please help.
    Thanks in advance,
    Arvin

    did you install jacob ? with the correct version number described in the installation-guides.
    jacob is not an oracle tool, which normally is only useful for COM-commands against windows.
    What did you do with the image?

  • Webutil error while trying to open an excel file

    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Excepción
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks
    Hi, I´m using oracle forms to read an excel file, I have two installations in different servers using oracle app server 9.04 and in one of this installations while trying to read an excel file i get the following error message in the java console:
    2006-jul-14 10:45:27.718 ERROR>WUO-708 [OleFunctions.get_obj_property()] No se ha podido obtener la propiedad: Workbooks; Exception
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At Invoke of: Workbooks
    Description: An unknown COM error has occured.
    2006-jul-14 10:45:36.140 WUO[getProperty()] Getting property WUO_OLE2_CREATE_ARGLIST
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_HANDLE to 2
    2006-jul-14 10:45:37.781 WUO[setProperty()] Setting property WUO_OLE2_ADD_ARG to SD:\UPLOADS\FILE.xls
    I dont really know where to start to try and solve this issue, any help is greatly appreciated
    Thanks

    I created a system DSN named odbc_excel. Then, I created a file named initexcelsid.ora with the following arguments:
    HS_FDS_CONNECT_INFO = odbc_excel
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = dg4odbc
    In the location, I put excelsid in the Service_Name entry. Do you need me to post the listener.ora file or something else?
    Thank you.

Maybe you are looking for