How to invoke my dll in java?

hi:
I use Jawin Type Browser generate two java files(DES_in_VBA.java,_DES_in_VBA.java),but I do not know how to use this two java files,beacuse this is my first to use Jawin. Can you tell me Where the two files should to be place,and how to use it good.I had read Jawin's docs,but can not understand it for my poor english.
Thank you for your help again!!!
I want use 'FuncPtr' to invoke it,but there can not found the match Invok_* file's.I do not know how to pass my function's paramters!
There are two function's in my ".dll" file:
Public Sub DES_Encode(ByRef sCode() As Byte, ByVal sKey As String, ByRef bReturn() As Byte)
Public Sub DES_Decode(ByRef sCode() As Byte, ByVal sKey As String, ByRef bReturn() As Byte)
Can you tell me how to invoke the two functions in java,and can you give me a example about how to invoke the two functions?
Thank you for your help

http://java.sun.com/docs/books/tutorial/native1.1/index.html

Similar Messages

  • How to invoke BPEL process from JAVA API

    Hi Guys
    Any idea if you can tell me how to invoke BPEL process from JAVA API ?
    What to do in BPEL process manager to achieve that?
    Regards
    Deepak

    See http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/invoke.htm#sthref1373 and the JavaDocs http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm.

  • Invoking Native Dll in Java

    Hi,
    We have tried to invoke a native dll method using JNI in java.
    While invoking the dll method(below native code dll) we face the "Access violation error".
    But the very same native implementation code is working successfully when invoked from VC++ Exe application.
    We have given the Java class file, header file, CPP implementation of the method and the error report below.
    Can anybody let us know if there is some fault in the way code we have coded?
    *{color:#0000ff}Source Code:{color}
    {color:#0000ff}---------------------{color}
    _______________________________________WsqLib.java____________________________________________________________________
    class WsqLib
    private native int BitmapToWSQ();
    private native int WsqToBitmap();
    public static void main(String[] args)
    WsqLib wsqlib=new WsqLib();
    System.out.println("wsqlib.BitmapToWSQ() ==> "+wsqlib.BitmapToWSQ());
    static
    System.loadLibrary("WsqLib");
    # Create a class (WsqLib.java) that declares the native method.
    # We use javac to compile the WsqLib source file, resulting in the class file WsqLib.class.
    # We use javah to generate a C header file (WsqLib.h) containing the function prototype for the native method implementation.*
    _______________________________________WsqLib.h*_______________________________________________________________________
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include "jni.h"
    /* Header for class WsqLib */
    #ifndef IncludedWsqLib
    #define IncludedWsqLib
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: WsqLib
    * Method: BitmapToWSQ
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_WsqLib_BitmapToWSQ
    (JNIEnv *, jobject);
    * Class: WsqLib
    * Method: WsqToBitmap
    * Signature: ()I
    JNIEXPORT jint JNICALL Java_WsqLib_WsqToBitmap
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    # CPP implementation (WsqLib.cpp) of the native method is as below.
    # We compiled the cpp implementation into a native library, creating WsqLib.dll.
    # We use the WsqLib.dll in WsqLib.java.
    _______________________________________WsqLib.cpp______________________________________________________________________
    #include "stdafx.h"
    #include "WsqLib.h"
    #include "_vcclrit.h"
    #include "gdiplus.h"
    #include <afxstr.h>
    #include <atlimage.h>
    #include "WsqLib1.h"
    static const GUID guidBmp =
    { 0x557cf400, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } };
    extern "C"
    int debug = 0;
    JNIEXPORT jint JNICALL Java_WsqLib_BitmapToWSQ(JNIEnv *, jobject)
    Gdiplus::Bitmap *pBitmap = Gdiplus::Bitmap::FromFile(L"temp.bmp", TRUE);
    Gdiplus::BitmapData lockedBitmapData;
    Gdiplus::Rect rect(0, 0,pBitmap->GetWidth(),pBitmap->GetHeight());
    //Error occured in this Line.
    pBitmap->LockBits( &rect, Gdiplus::ImageLockModeRead, PixelFormat8bppIndexed, &lockedBitmapData );
    int byteCount = pBitmap->GetWidth() * pBitmap->GetHeight() * (int)(8 / 8);
    unsigned char *pPixelData2 = new unsigned char[byteCount];
    memset(pPixelData2, 0, (size_t)byteCount);
    unsigned char pBytes = (unsigned char) lockedBitmapData.Scan0;
    for (int index = 0; index < byteCount; index++)
    pPixelData2[index] = pBytes[index];
    pBitmap->UnlockBits(&lockedBitmapData);
    unsigned char *pPixelData = pPixelData2;
    int pixelsPerInch = (int)pBitmap->GetHorizontalResolution();
    float compressionFactor = (float)( (float)((int)75) / 100.0);
    unsigned char *pWsqBytes = NULL;
    int wsqBytesCount = 0;
    int result = 0;
    result = wsq_encode_mem(
    &pWsqBytes, // Output data buffer
    &wsqBytesCount, // Length of output data buffer
    compressionFactor, // Determines the amount of lossy compression.
    pPixelData, // Input pixel data
    pBitmap->GetWidth(), // Pixel width of the pixmap
    pBitmap->GetHeight(), // Pixel height of the pixmap
    8, // Depth (bits) of the pixmap
    pixelsPerInch, // Scan resolution of the image in integer units of pixels per inch
    (char *)NULL // Optional (we do not want to use this - we may even want to remove the implementation)
    if (result == 0)
    FILE *fptr1;
    fptr1=fopen("C:\\saran2.wsq_1.0","wb");
    fwrite(pWsqBytes,wsqBytesCount,1,fptr1);
    fclose(fptr1);
    return 10;
    JNIEXPORT jint JNICALL Java_WsqLib_WsqToBitmap(JNIEnv *, jobject)
    BYTE gData[242998];
    Gdiplus::Bitmap* image;
    CFile file;
    file.Open("temp.wsq_1.0",CFile::modeRead,NULL);
    file.Read(gData,242998);
    unsigned char pByteArray =(unsigned char)gData;
    unsigned char *pPixelData = NULL;
    int bitmapWidth = 0;
    int bitmapHeight = 0;
    int pixelDepth = 0;
    int pixelsPerInch = 0;
    int lossyFlag = 1;
    int byteArrayLength = 242998;
    int result = 0;
    result = wsq_decode_mem(
    &pPixelData, // Output image buffer
    &bitmapWidth, // Pixel width of the pixmap
    &bitmapHeight, // Pixel height of the pixmap
    &pixelDepth, // Depth (bits) of the pixmap
    &pixelsPerInch, // Scan resolution of the image in integer units of pixels per inch
    &lossyFlag, // Is the image lossy? F.I.I.K.
    pByteArray, // Input data buffer
    byteArrayLength // Input data buffer length
    if (result == 0 && pixelDepth == 8)
    image = new Gdiplus::Bitmap(bitmapWidth, bitmapHeight);
    Gdiplus::Rect bound( 0, 0,bitmapWidth,bitmapHeight);
    Gdiplus::BitmapData lockedBitmapData;
    image->LockBits( &bound, Gdiplus::ImageLockModeWrite, PixelFormat8bppIndexed, &lockedBitmapData );
    int imageRowSize = bitmapWidth * (8/8);
    unsigned char pBitmapPixelData = (unsigned char )lockedBitmapData.Scan0;
    int byteCount = bitmapWidth * bitmapHeight;
    for (int index = 0; index < byteCount; index++)
    pBitmapPixelData[index] = pPixelData[index];
    image->UnlockBits( &lockedBitmapData );
    else
    return result;
    image->Save(L"C:\\temp.bmp", &guidBmp);
    return 0;
    {color:#0000ff}Error report:{color}
    {color:#0000ff}-------------------{color}
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03920780, pid=380, tid=3572
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
    # Problematic frame:
    # C 0x03920780
    --------------- T H R E A D ---------------
    Current thread (0x00036d88): JavaThread "main" [_thread_in_native, id=3572]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000004
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000
    ESP=0x0007f9a8, EBP=0x0007fa70, ESI=0x00000000, EDI=0x00000000
    EIP=0x03920780, EFLAGS=0x00010246
    Top of Stack: (sp=0x0007f9a8)
    0x0007f9a8: 00000000 00000000 00000000 00000000
    0x0007f9b8: 039204ba 00000001 00000000 000be780
    0x0007f9c8: 03726248 0007fa10 00000000 00000000
    0x0007f9d8: 03920430 0007fa2c 7a32b4fa ffffffff
    0x0007f9e8: 0007fa38 79e7bba9 79e7bbb1 cce41966
    0x0007f9f8: ffffffff 0007fa68 000a4b30 00000000
    0x0007fa08: 00000000 00000000 00000000 00000000
    0x0007fa18: 00000000 00000000 00000000 00000000
    Instructions: (pc=0x03920780)
    0x03920770: 03 00 74 05 e8 85 1b 77 76 33 d2 89 14 24 8b fe
    0x03920780: 8b 4e 04 8d 14 24 e8 05 65 e0 ff 8b d8 8b d3 8b
    Stack: [0x00040000,0x00080000), sp=0x0007f9a8, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x03920780
    C 0x031e3171
    j WsqLib.BitmapToWSQ()I+0
    j WsqLib.main([Ljava/lang/String;)V+24
    v ~StubRoutines::call_stub
    V [jvm.dll+0x87599]
    V [jvm.dll+0xdfbb2]
    V [jvm.dll+0x8746a]
    V [jvm.dll+0x8e6ac]
    C [java.exe+0x14c5]
    C [java.exe+0x69cd]
    C [kernel32.dll+0x16d4f]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j WsqLib.BitmapToWSQ()I+0
    j WsqLib.main([Ljava/lang/String;)V+24
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x009f2b28 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3996]
    0x009f1820 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2832]
    0x009f0a68 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=404]
    0x009eb330 JavaThread "Finalizer" daemon [_thread_blocked, id=3304]
    0x009e9eb0 JavaThread "Reference Handler" daemon [_thread_blocked, id=1648]
    =>0x00036d88 JavaThread "main" [_thread_in_native, id=3572]
    Other Threads:
    0x009c8508 VMThread [id=492]
    0x009f0528 WatcherThread [id=2924]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 497K [0x22a50000, 0x22af0000, 0x22f30000)
    eden space 512K, 84% used [0x22a50000, 0x22abc5b8, 0x22ad0000)
    from space 64K, 99% used [0x22ae0000, 0x22aefff8, 0x22af0000)
    to space 64K, 0% used [0x22ad0000, 0x22ad0000, 0x22ae0000)
    tenured generation total 1408K, used 115K [0x22f30000, 0x23090000, 0x26a50000)
    the space 1408K, 8% used [0x22f30000, 0x22f4cc28, 0x22f4ce00, 0x23090000)
    compacting perm gen total 8192K, used 20K [0x26a50000, 0x27250000, 0x2aa50000)
    the space 8192K, 0% used [0x26a50000, 0x26a553b8, 0x26a55400, 0x27250000)
    ro space 8192K, 63% used [0x2aa50000, 0x2af60590, 0x2af60600, 0x2b250000)
    rw space 12288K, 46% used [0x2b250000, 0x2b7f21b0, 0x2b7f2200, 0x2be50000)
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\WINDOWS\system32\java.exe
    0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
    0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_12\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_12\bin\hpi.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_12\bin\verify.dll
    0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_12\bin\java.dll
    0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_12\bin\zip.dll
    0x10000000 - 0x10075000 D:\Jagadeesan\JNI_NEW\WSQ\WsqLib.dll
    0x79000000 - 0x79045000 C:\WINDOWS\system32\mscoree.dll
    0x7c140000 - 0x7c357000 C:\WINDOWS\system32\MFC71D.DLL
    0x10200000 - 0x10287000 C:\WINDOWS\system32\MSVCR71D.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
    0x774e0000 - 0x7761c000 C:\WINDOWS\system32\ole32.dll
    0x4ec50000 - 0x4edf3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\gdiplus.dll
    0x5d360000 - 0x5d36e000 C:\WINDOWS\system32\MFC71ENU.DLL
    0x79e70000 - 0x7a3d1000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
    0x78130000 - 0x781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\MSVCR80.dll
    0x7c9c0000 - 0x7d1d4000 C:\WINDOWS\system32\shell32.dll
    0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x5d090000 - 0x5d127000 C:\WINDOWS\system32\comctl32.dll
    0x790c0000 - 0x79ba6000 C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\bf3b003e3ac7e449bdf8fc9375318452\mscorlib.ni.dll
    0x79060000 - 0x790b3000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
    0x5e380000 - 0x5e409000 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll
    VM Arguments:
    java_command: WsqLib
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12;
    CLASSPATH=C:\Program Files\Apache Software Foundation\Tomcat 5.5\shared\lib\*.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\classes\org\apache\axis\transport\http\*.classs;D:\JONAS_4_6_6\lib\ext\axis.jar;C:\Sun\jwsdp-1.6\jaxp\lib\endorsed\sax.jar;C:\tomcat50-jwsdp\jaxp\lib\endorsed\sax.jar;C:\Files\Java\jdk1.5.0_01\jre\lib;C:\Program Files\Java\jdk1.5.0_12\jre\lib\ext;
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Jagadeesan Backup\DotNet\DynamicLibrary\MathFuncsDll\Debug;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies;C:\Sun\jwsdp-1.6\jaxrpc\bin;C:\Sun\jwsdp-1.6\jaxp\lib;C:\Sun\jwsdp-1.6\jaxp\lib\endorsed;C:\Program Files\Java\jdk1.5.0_12\bin;C:\Sun\jwsdp-1.6\jwsdp-shared\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Sun\jwsdp-1.6\jaxrpc\bin;C:\Sun\jwsdp-1.6\jaxp\lib;C:\Sun\jwsdp-1.6\jaxp\lib\endorsed;C:\Program Files\Java\jdk1.5.0_12\bin;
    USERNAME=Administrator
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 1 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 259888k(81380k free), swap 636388k(342588k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for windows-x86, built on May 2 2007 02:07:59 by "java_re" with MS VC++ 6.0

    Is there any other reason for this error?There is one and only one reason for the error code 0xc0000005 - there is a pointer (C/C++) pointing somewhere it shouldn't.
    The above C code working fine while invoking in VC++ Exe application,
    But the error occured only while invoking in java using JNI.Which suggests only that sometimes that it works. It doesn't mean that it always works.
    There are a number of places in the C/C++ code where it could fail and none of them are being checked.

  • How to invoke a 6 parameter java class within jsp

    i have just begun to learned jsp and java recently, so have the question below:
    Situation:
    My boss asked me to do a project for doing online data mining.
    He requested the thing below:
    1. Write a webpage by jsp with some textfield or pull down meun to get the parameter for getting the opinion and the parameter needed for the java class.
    2. When the user click the buttom in the website, then the java class have to be invoked.
    Questions:
    1. ask i put the .java in the server, i can simply use cmd and type the following command:
    java -Xmx800M P05context 1 1 3 6 F01xyz.txt F10xyz.txt
    which F01xyz is the prepared text file for the java class to read and the F10xyz.txt is the output file generated by the P05context.class
    but i don't know how to invoke the P05context.class by jsp
    My boss have suggested me two ways to do this:
    a. write a java virtual class to execute the java program.
    but i don't know how to write.
    i think conceptualy will be like this :
    public class run_java
    public void run java(parameter1,parameter2....,parameter6)
    //run the cmd command
    //java -Xmx800M P05context 1 1 3 6 F01xyz.txt F10xyz.txt
    b. write a javabean in the jsp. and i have try to use this code(at the end of the message:
    but the tomcat server reply a internal error to me
    how cani do ?
    the jsp file-->
    <jsp:useBean id="test" scope="session" class ="P05context" />
    <html>
    <head></head>
    <body>
    <% test.P05context(1,1,3,6,F01xyz.txt,F10xyz.txt); %>
    </body>
    </html>

    I still don't see why the form (the origin of the request) has to be a JSP, As you say, it might be static but forms I've written have usually had some kind of menu framework arround them and other variables. Also if the input is invalid you usually want to re-present the form, with an error message and the fields pre-populated according to what the user put in before. That does require a JSP and you may as well use the same JSP for an empty, as for a rejected request.
    the response to the form should be handled by a servlet. Both is HTML, but the
    form is static, and the reply dynamic. Using the combination; a servlet to do the data processing and a JSP to format the results is more flexible in a number of ways. For example, suppose you find the need to present the data form in, say, Greek? You don't want the processing to be duplicated in English and Greek versions of the results JSP.
    Suppose the boss wants to turn a graphics designer loose on your HTML. Don't want him mucking about with your processing code do you.
    The servlet typically takes the function of controller in the model/view/controller paradigm.
    Code in a servlet is cleaner, better formatted and easier to access with a debugger.

  • How to call VB dlls in java

    Hi
    I created one component in vb, where this component got 3 methods. and created dll also, when iam trying to use these dlls in java. it showing error, is there any method to call the vb dlls in java(native method), if s pls help me to solve these problem.

    hi, all
    I writed a vb dll, It have three publice sub and one preporty,
    I use html <object> attribute to declare this dll and call its methods and perporty in html file, everything is ok.the source code as following:
    <body>
    <OBJECT declare id="repExport" classid="clsid:0487D845-0DAD-46D0-9559-FADEC117C2B9">
    <param name="Exportfile" value="peiru">
    </OBJECT>
    <script language="vbscript">
    repExport.Exportfile="peiruyt"
    repExport.CrystalConnect()
    repExport.PassParameterRtp()
    repExport.reportexport()
    </script>
    Because i need get parameter from other web page , and i use weblogic 6.1 server, so i need change file type from html to jsp , But even if I just change the file extension from html to jsp, don't change any content in this file.
    then jsp cannot work, error message is "object don't support 'repExport.Exportfile' property", actual it don't support all three functions and a property
    Can anyone provide any help?
    thanks
    peiru

  • How to invoke dos shell from java program

    Hi,
    I'm not able to invoke dos shell from java.
    Can any one help me in this issue.
    I'm providing the source code below:
    try{
    Runtime.getRuntime().exec("cmd.exe")
    catch(IOException e) {
    System.out.println(e.getStackTrace());
    Thanks

    Does it throw a different exception?
    Or does it just do nothing at all?
    It does nothing at all[/b
    Is this a standalone Java app?
    Or a Java Applet running via a webbrowser? [b]It's a standalone application

  • How to access vc dll with java

    I need to access vc dll with java. Now I only have *.h,*.lib, *.dll,no *.cpp,because the dll is from others. I cann't modify the *.cpp files for java. so what should I do .
    Best wishes.

    Create a JNI wrapper for rhe dll:
    1)Create a java class that defines methods that correspond to the methds in the c++ dll
    2)compile this, and compile it with the jni compiler to get the c++ header files.
    3)Create a C++ file that implements the methods defined in the header file, calling the c++ code as necesssary and using the JNI helpess to translate parameters from java form to C++ from.
    4)Perform any initialisation of th c++ dll by adding a DllMain() or equivalent under unix/linux
    5)create a makefile to build a dll from the above, linking to your import (.lib) library
    6)make sure both DLLs are with your java class files when you run the java app.

  • How to invoke Web Service in JAVA from CRM 5.0

    Hi.
    I created a Web Service in JAVA. Now I want to invoke it from CRM 5.0
    in ABAP. How to do it? Could someone give me detail step in step?
    Thanks in advance!

    check this weblog by Thomas Jung
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Raja

  • How to create a dll in Java?

    I have written some code in Java to perform a certain function.
    How can I create a dll for this code? Would I be able to call this dll from any platform?

    Let me rephrase the question. I would like to create a dll for code that is written in Java.
    Can you please tell me the procedure to do that?
    I want to be able to call this dll from .Net framework or any other application. I found examples online to do the opposite using JNI.

  • How to unload a dll in java

    After loading the native library through System.loadLibrary , we were unable to unload the dll , i have tried entering the Registry Values of current windows version creating key alwaysunloaddll to 1 and also through c/c++ Wrapper Classes Using JNI but nothing worked out As the Dll is loaded in to the memory ,So Please Let Me know if there is any other way to Unload the Library in java? it is an Urgent Requirement so any comments and suggestions are appreciated ,Thanks in advance

    Thanks a lot,i really appreciate of taking time to answer my questions ,but im afraid that i have already used System.gc but i was unable to unload the library , But i think custom class loaders is only ray of hope so ,can anybody send me a code to unload the native library ,coz im a laymen to the concept of class loaders, or please do let me know if there is any alternate way of unloading the library Afterall there is a solution for every problem Right!Thanks once again ............

  • How to call the .dll use Jave

    hello,
    I will to call a .dll file in java
    which function or API can do that ?
    if someone knows , please tell me .
    thanks

    You must define "native" methods in java. The native methods allow you to call out of java into C programs (dll's on Windows, so's on unix.)
    There is a java tutorial on native methods. Look for the buzzwords JNI, which is Java Native Interface.

  • How to invoke a program in Java by Oracle?

    Hello everyone! I need help.
    Let me draw via a button on the form of Oracle, a Java program created with Eclipse.
    how can I do?
    Thanks in advance

    You can create executable jar files that can start up an application when double clicked. If you want more specifics, search the forums for "executable jar" and I'm sure you'll get more than enough info.

  • How to invoke Bpel process  from java using 'bpel process WSDL'

    I want to call bpel process from java using bpel wsdl.
    could any one point me to any url/sample.
    Thanks
    Nagajyothy

    Hi Seshagiri,
    Thanks for providing links and initial steps to create web service proxy(using Jdeveloper 11g).
    I created a web service proxy.
    provided the needed inputs.
    when I ran the client app, bpel process(has a human task) got invoked but faulted with exception as below
    Operation 'initiateTask' failed with exception 'EJB Exception: : java.lang.ExceptionInInitializerError[[
         at oracle.tip.pc.services.common.ServiceFactory.getAuthorizationServiceInstance(ServiceFactory.java:147)
         at oracle.bpel.services.workflow.task.impl.TaskService.initiateTask(TaskService.java:1159)
         at oracle.bpel.services.workflow.task.impl.TaskService.initiateTask(TaskService.java:502)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    please help me in solving the above problem.
    Thanks
    Nagajyothy

  • How to invoke Netscape from a java program

    Hello
    In my Java program, I would like to launch a Netscape with one file as parameter in order to see the file with Netscape. Is there someone who can tell me how to do that, thanks.
    danfei

    System.getRuntime().exec("fullPathToNetscape/netscape parameter");

  • How to Invoke a report from java?

    Hi,
    I am a java / web developer with no reports experience.
    We wish do the following from a java based web application:
    On a web page we have two buttons
    1) Print
    2) Create file.
    We want these two buttons to perform the following tasks:
    1) The print button should run a predefined report with a set of parameters and send the output to a printer.
    2) The Create File button should run a predefined report with a set of parameters and send the output to a rtf file on a temp area, which the java app can pick up for further processing.
    Both actions should be triggered from the web app without the need for users
    to have any knowledge of reports at all.
    We are running ias 9.0.2.3.
    Is the use of the plsql SRW package the best way to achieve this kind of functionality
    or are there other JAVA APIs or any other ways to solve this scenario?
    Any comments appreciated!
    Regards
    Per A Jorgensen

    Hi Per,
    In your submit button's ACTION, the URL that you submit should be like this:
    For printing button:
    http://machine:port/reports/rwservlet?report=...+server=...+userid=...+destype=printer+desformat=...+desname=<printer_name>
    For create file button:
    http://machine:port/reports/rwservlet?report=...+server=...+userid=...+destype=file+desformat=...+desname=<file_name>
    Find the report request methods as syntax in the Publishing Reports Manual (Section 13.2)
    http://otn.oracle.com/documentation/reports.html
    Navneet.

Maybe you are looking for

  • Creating new track - software catalog new product not showing up - Help!!!

    Hi, Creating a new track for custom development. A new product has been added in the software catalog in SLD. SLD and NWDI (netweaver 04) are on the same system. The new product is not showing up when trying to select in the new track, Software Compo

  • Problem starting up G5 2.5 after installing 10.4.7

    i have a G5 dual 2.5 (single core) that, until yesterday was running 10.3.9 and final cut pro 4.5 and working just fine. yesterday i upgraded to 10.4.7 and fcp 5.1.1 (mid-project, which was soooooooo stupid, but that's another thing,) and now, whenev

  • Billing Document to Accounting Error

    Hello Experts, When going to tcode VF02. when i release to accounting billing document 7578000065 im receiving this error "balance in transaction currency". Why is this happening? Can someone enlightened me regarding this issue is it functional or ab

  • Security Settings and Field Extraction

    Hello, I've run into a bit of a problem in .NET(C#) when trying to automate data extraction from a PDF. Specifically, I get an error stating "The document's security settings prohibit the operation being performed". The security method applied to the

  • Slow parts delivery

    Should it usually take six weeks for a my computer store to get a CPU fan for my iMac G5? The guy says that the parts are on back order - seems a long time.