PASSTHRU php function and JAVA

General discussion on Zend Core for IBM System i
Post Reply
victorpy
Posts: 1
Joined: Tue Apr 28, 2009 11:10 pm

PASSTHRU php function and JAVA

Post by victorpy » Tue Apr 28, 2009 11:11 pm

hello,

I have zendcore in a IBM i5 v6r1 and java sdk 1.5 installed.
I created a php that execute the command:

passthru("java -version > output.txt");

this created a file with no content in it.

after that i execute the next command:

passthru("java -version 2>> error.txt");

this redirects the stderr to the file error.
The output of this was:

java[13]: /QSYS.LIB/QJVATOOLS.PGM: cannot execute

I think it could be permission... otherwise i don't know

PD: im asking this because i need to execute a .jar from php

any help please??

diogo_toscano
Posts: 2
Joined: Thu Aug 06, 2009 10:14 pm

Re: PASSTHRU php function and JAVA

Post by diogo_toscano » Thu Aug 06, 2009 10:17 pm

We have the same problems in two customers using ZendCore on i5.
What can we do to execute java files? Everything works in Exec functions, we test the zendid to and works fine.

This problem is only when we try to execute java files.

diogo_toscano
Posts: 2
Joined: Thu Aug 06, 2009 10:14 pm

Re: PASSTHRU php function and JAVA

Post by diogo_toscano » Sat Aug 08, 2009 8:19 pm

If you guys want to see more, go to http://pd4ml.com/support/html-pdf-faq-f ... s-t30.html

User avatar
shlomov
Zend Global Support
Posts: 140
Joined: Mon Dec 29, 2008 2:38 pm

Re: PASSTHRU php function and JAVA

Post by shlomov » Mon Aug 10, 2009 10:29 am

The Following library does exist with V6R1.

1. Check the Installed License Programs:
5761JV1 *BASE IBM Developer Kit for Java
5761JV1 7 Java Developer Kit 5.0
5761JV1 8 J2SE 5.0 32 bit
5761JV1 9 J2SE 5.0 64 bit

Check the PTF group level:
PTF group . . . . . . . . : SF99610
Level . . . . . . . . . . : 8365
Status . . . . . . . . . . : Installed
Target release . . . . . . : V6R1M0
Text . . . . . . : CUMULATIVE PTF PACKAGE C8365610

IBM - Preventive Service Planning - PSP:
http://www-912.ibm.com/s_dir/sline003.n ... =GroupPTFs
http://www-912.ibm.com/s_dir/sline003.n ... enDocument
Shlomo Vanunu
IBM System i

User avatar
shlomov
Zend Global Support
Posts: 140
Joined: Mon Dec 29, 2008 2:38 pm

Re: PASSTHRU php function and JAVA

Post by shlomov » Mon Aug 10, 2009 10:34 am

Shlomo Vanunu
IBM System i

conexionpy
Posts: 2
Joined: Wed Aug 12, 2009 12:18 am

Re: PASSTHRU php function and JAVA

Post by conexionpy » Fri Aug 14, 2009 12:28 am

We have this problema as well.

Our OS400 is V6R1 with the lastest PTFs installed. When we try to execute a jar, no spoolfile are created and no error at dsplog are displayed.

There is a way to make a debug of what is missing at zendcore that make impossible to execute a jar?

User avatar
shlomov
Zend Global Support
Posts: 140
Joined: Mon Dec 29, 2008 2:38 pm

Re: PASSTHRU php function and JAVA

Post by shlomov » Wed Aug 26, 2009 3:59 pm

The Following library does exist with V6R1.
1. Check the Installed License Programs:
5761JV1 *BASE IBM Developer Kit for Java
5761JV1 7 Java Developer Kit 5.0
5761JV1 8 J2SE 5.0 32 bit
5761JV1 9 J2SE 5.0 64 bit


2. Please check the following java file in directory:
/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit/bin/java

it should point to the library and program used:
DSPOBJD OBJ(QSYS/QJVATOOLS) OBJTYPE(*PGM)

3. please enter a PMR with your IBM support as mentioned, so far all our v6r1 are working properly, it is possible that your PASE application is not up to date or corrupted.

4. It is also possible that a TCP Java serer is not started:
QJVACMDSRV QIBMHELP
QJVAEXEC QIBMHELP
Shlomo Vanunu
IBM System i

Post Reply