Hi Patrick, Thanks a lot for your continued help!!! As per your suggestion I am trying to install Inline-Java with JNI, but I get this error during dmake:
C:\TEMP\Inline-Java-0.52>dmake gcc -c "-IC:\Java\jdk1.5.0_11\include" "-IC:\Java\jdk1.5.0_11\include\win32" -DNDEBUG -DWIN32 -D_CONSOLE -DN O_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE _PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -O2 -DVERSION=\"0.52\" -DXS_VERSION=\" 0.52\" "-IC:\Perl\lib\CORE" JNI.c dlltool --def JNI.def --output-exp dll.exp g++ -o ..\blib\arch\auto\Inline\Java\JNI\JNI.dll -Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl\lib\CORE" JNI.ob j -Wl,--image-base,0x2e220000 C:\Perl\lib\CORE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -l advapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -l msvcrt dll.exp g++: JNI.obj: No such file or directory dmake.exe: Error code 1, while making '..\blib\arch\auto\Inline\Java\JNI\JNI.dll' dmake.exe: Error code 255, while making 'subdirs' Any ideas as to what I am missing? I have set the Windows Path too to include "C:\Perl\lib\CORE\perl58.lib" and "C:\Perl\lib\CORE". Thanks, Sharmishtha --- Patrick LeBoutillier <[EMAIL PROTECTED]> wrote: > Hi, > > Perhaps in your case JNI would be better as the JVM > would in the same > process as you Perl code. This would eliminate the > intermediate server > and the need for SHARED JVM. > > Patrick > > > On 10/25/07, sharmishtha upadhyay > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have developed a Perl wrapper for Java code > using > > Inline::Java. It is a client-server model, where > both > > the client and server are in java.I have used the > > Inline::Java to extend the java client > functionality > > to Perl too. So now a Perl client can talk to a > java > > Server. > > I am also using Inline::Java callback to receive > > callbacks from my application server. One of the > > issues I faced during this process was that I > could > > not run two Perl scripts at the same time, one > waiting > > for callbacks and another perl client script > invoking > > my application server. The error I got was: "Could > not > > start Inline Java server on port 7890" > > To resolve this, I did SHARED_JVM =>1. > > So now in my script MY::Script.pm I have > > use Inline ( > > Java => 'STUDY', > > STUDY => [], > > CLASSPATH=> $ENV{CLASSPATH}, > > SHARED_JVM=>1, > > > > ); > > > > I have this code in my test script: > > BEGIN { use_ok(MY::Script) }; > > included with my Perl module. > > > > However, when I do > > 'make test' > > > > the script hangs, and I usually have to kill > java.exe > > for it to work > > This problem occurs only with SHARED_JVM => 1, > > If I comment it out, 'make test' succeeds. > > > > This problem occurs only on Windows XP. > > On Solaris 10 there is a little delay, but the > test > > succeeds. > > I don't know why this is happening. > > I have installed Inline::Java without the JNI. > > Do you think this issue will be resolved if JNI is > > used? > > > > Any help would be highly appreciated. > > > > Thanks, > > Sharmishtha > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > -- > ===================== > Patrick LeBoutillier > Laval, Québec, Canada > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com