Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Calling java class from ipl
Rathina
HI,
I need to call one custom java class file from the ipl file.is it possible to do like that.
please through some light on it.
Thanks
Rathina
Find more posts tagged with
Comments
Migrateduser
Do you know how to write a Java application (i.e., a class with a "main" method)? This should be covered within the first couple of chapters of any basic Java book.
You can invoke a Java application just as you can run any other program from Perl (ex., exec, system, backtick, etc.)
Brinko Kobrin
Interwoven Staff Engineer
megamala
When we execute the Java from perl , some times that command is not executing.
$cmd = qq(java -cp ....................);
Some times its not executing the command , just it througin an error (return code is either 256 or 3XXXX). Is there any way in unix like Win32:
rocess in windows.
MM Guptha
Migrateduser
You said that sometimes the command is not working. Does that mean that other times it does work? I would start by trying to find some pattern among the failures.
Make sure that "java" is in the PATH of the Perl process, or better yet specify the fully-qualified path.
You might find
IPC:
pen3
to be useful.
Brinko Kobrin
Interwoven Staff Engineer
megamala
80% of the time it executes the that Java command , but some times its just skips that command and goes to the next step in the program . In our Java program we bunch of debug statments, it not returning any output . I thing this is happening when multiple users executing that perl program. (from work flow)
MM Guptha
nipper
>we [have a] bunch of debug statments
>I thing this is happening when multiple users executing that perl program
Is there an area where these java programs can collide ? two trying to wrtire to teh same file at the same time ? Can you run the java from Unix & do it several times from different shells, see if you can duplicate the environment.
Andy
herald10
I suggest you run that java program from a seperate perl program and see how its working ... after that we can think of your current settings....
megamala
That java program updates the Database. I tried running serveral times from different shells, i didn't get any error. It worked fine.
MM Guptha