Re: [PHP] PHP and Java: accessing Java classes from PHP

2007-07-31 Thread Holografix
Hi

>
> If you mean you tried this:
> http://php.net/java

It was the first thing I tried. I will post a bug in http://bugs.php.net

Then I read about php-java-bridge but the examples were using older versions 
of php-jb.

> That said, I don't see how you could possibly access Java without
> running Java... But maybe servelets is something separate from the
> monolithic Java already running?

We can't use apache tomcat (java app server). Java is present and running 
but not tomcat.

> You might also consider taking a step back and writing a Java program
> that uses SOAP/RPC/??? to provide the info PHP needs via HTTP instead
> of trying to get PHP and Java to play nice together at the binary
> level...

I am not the java coder so I have to use the code that already exists.

Thank you very much for the answer.

greets
holo


""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Fri, July 27, 2007 10:31 am, Holografix wrote:
>> I need to access some custom and native Java classes from php.
>> I've tried the steps form php manual and php-javabridge from sf but I
>> always
>> get an apache crash.
>> I don't need to run servlets and it's impossible to start servlet
>> engine in
>> the server (project requirements).
>>
>> The tutorials i've found are outdated (old php-javabridge versions)
>> and
>> refer to some files that no longer exists.
>>
>> If someone can point the right direction I would like to see the
>> solution.
>>
>> I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.
>
> If you mean you tried this:
> http://php.net/java
> and it crashed, then post a bug report here:
> http://bugs.php.net/
>
> If you haven't tried that, try it. :-)
>
> That said, I don't see how you could possibly access Java without
> running Java... But maybe servelets is something separate from the
> monolithic Java already running?
>
> You might also consider taking a step back and writing a Java program
> that uses SOAP/RPC/??? to provide the info PHP needs via HTTP instead
> of trying to get PHP and Java to play nice together at the binary
> level...
>
> -- 
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Java: accessing Java classes from PHP

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 10:31 am, Holografix wrote:
> I need to access some custom and native Java classes from php.
> I've tried the steps form php manual and php-javabridge from sf but I
> always
> get an apache crash.
> I don't need to run servlets and it's impossible to start servlet
> engine in
> the server (project requirements).
>
> The tutorials i've found are outdated (old php-javabridge versions)
> and
> refer to some files that no longer exists.
>
> If someone can point the right direction I would like to see the
> solution.
>
> I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.

If you mean you tried this:
http://php.net/java
and it crashed, then post a bug report here:
http://bugs.php.net/

If you haven't tried that, try it. :-)

That said, I don't see how you could possibly access Java without
running Java... But maybe servelets is something separate from the
monolithic Java already running?

You might also consider taking a step back and writing a Java program
that uses SOAP/RPC/??? to provide the info PHP needs via HTTP instead
of trying to get PHP and Java to play nice together at the binary
level...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Java: accessing Java classes from PHP

2007-07-27 Thread Holografix
Hi

Thanks for the answer.
I'm using php 5 (5.2.3).

holo

""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> if you cant get the php / java bridge to work and you cant run servlets 
> than
> i dont know
> what other options you have.  we used to use soap for communication 
> between
> java and
> php where i worked last, but that would require servlets as well (afaik).
> the bridge is marked as experimental..
> are you using php4 or php5?  if youre using 4 the source is there in /ext
> under the php source.
> if youre using 5 well i couldt find it on the pecl site [didnt search very
> long] but you can get the
> source here .
>
> -nathan
>
> On 7/27/07, Holografix <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> I need to access some custom and native Java classes from php.
>> I've tried the steps form php manual and php-javabridge from sf but I
>> always
>> get an apache crash.
>> I don't need to run servlets and it's impossible to start servlet engine
>> in
>> the server (project requirements).
>>
>> The tutorials i've found are outdated (old php-javabridge versions) and
>> refer to some files that no longer exists.
>>
>> If someone can point the right direction I would like to see the 
>> solution.
>>
>> I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.
>>
>> Thanks in advance.
>>
>> Greets
>> holo
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Java: accessing Java classes from PHP

2007-07-27 Thread Nathan Nobbe
if you cant get the php / java bridge to work and you cant run servlets than
i dont know
what other options you have.  we used to use soap for communication between
java and
php where i worked last, but that would require servlets as well (afaik).
the bridge is marked as experimental..
are you using php4 or php5?  if youre using 4 the source is there in /ext
under the php source.
if youre using 5 well i couldt find it on the pecl site [didnt search very
long] but you can get the
source here .

-nathan

On 7/27/07, Holografix <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I need to access some custom and native Java classes from php.
> I've tried the steps form php manual and php-javabridge from sf but I
> always
> get an apache crash.
> I don't need to run servlets and it's impossible to start servlet engine
> in
> the server (project requirements).
>
> The tutorials i've found are outdated (old php-javabridge versions) and
> refer to some files that no longer exists.
>
> If someone can point the right direction I would like to see the solution.
>
> I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.
>
> Thanks in advance.
>
> Greets
> holo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


[PHP] PHP and Java: accessing Java classes from PHP

2007-07-27 Thread Holografix
Hi

I need to access some custom and native Java classes from php.
I've tried the steps form php manual and php-javabridge from sf but I always 
get an apache crash.
I don't need to run servlets and it's impossible to start servlet engine in 
the server (project requirements).

The tutorials i've found are outdated (old php-javabridge versions) and 
refer to some files that no longer exists.

If someone can point the right direction I would like to see the solution.

I'm using win xp pro sp2, php 5.2.3, java 1.6.0_02.

Thanks in advance.

Greets
holo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PhP and Java login trouble (can someone help a brother out whom is truely trying to understand?)

2007-05-10 Thread Brad Sumrall
I have these to independently working scripts. 1 is php, the other is
javascript. For obvious reason, to separate logins are not appropriate.
It has been recommended to make a separate function, not sure how to do
this
Common sense says, "carry the variable from php to javascripting". I am
clueless on where to look on this common sense solution.

I am 2.5 weeks into this madness. I know when I find the solution, it will
be the one that was biting me on the nose.

I want to learn and understand this, but desperately need help from friends!

I will post the 2 complete code pages below..

Input, suggestion or solutions would truly be appreciated.

The first will be the original code that is javascripting friendly.
The second will be my own php working code.

Number one works fine for loging into a FCKEditor application, but is
failing with phpbb.

Number two works perfectly with phpbb applications and outside php pages
requiring phpbb related session controls, but fails sessions with the
javascripting based FCKEditor.

Sincerely,

Brad

#1  Working php/phpbb code:










Username:





Password




:


Log me on
automatically: 






I forgot my
password






  



Log out











Welcome : 




 
Manage Account


Manage Profile






   


 


















  

  

  
  

  
Read about any beauty product...
 
  
  

   

   





  

  

  
  

  
Add photos to our gallery...

  
  

  

  
  

  

  



#2 Working javascripting, but fails php/phpbb:


  

  
  

  









  
Username : 
  
  

  
  
Password : 
  
  

  
  

  
  







 

RE: [PHP] PhP and Java login trouble

2007-05-09 Thread Brad Sumrall
I have a question about your suggestion.
Would it not be easier to simply carry the sessionid from the php session
validation to the javascript?
Instead of: if(document.frmlogin.txtusername.value=="")
{
alert("Please Enter Username.");
document.frmlogin.txtusername.focus();
return false;

Why would I want to "re-enter the user name"?
My common sense "which maybe completely wrong" say, YOU ARE VALIDATED IN
PHPBB via issetid, now post to (document.frmlogin.userid.value=="")

This is why I am not catching your angle.

PhP makes so much more sense. This javascript integration is really giving
me a headache!

Suggestions?

Brad




-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 09, 2007 2:16 AM
To: Brad Sumrall
Cc: php-general@lists.php.net
Subject: Re: [PHP] PhP and Java login trouble

Brad Sumrall wrote:
> I have been hunting all around that website you referred me too looking
for
> javascripting information and can find nothing. I know a little bit of php
> but little to nothing about javascripting.

Eh? I never sent you to a website.

See this code:

function validatelogin()
{
if(document.frmlogin.txtusername.value=="")
{
alert("Please Enter Username.");
document.frmlogin.txtusername.focus();
return false;
}
if(document.frmlogin.txtpwd.value=="")
{
alert("Please Enter Password.");
document.frmlogin.txtpwd.focus();
return false;
}
document.frmlogin.login.value="Success";
document.frmlogin.action="operation.php?mode=login";
return true;
}


You need to create a *similar* function (eg 'BBValidateLogin()') to 
check different html field names.


For example:

function BBValidateLogin()
{
   var f = document.forms[0];
   alert('username is ' + f.username.value);
}

The username.value comes from this:



where you have name="username"

So take the name="..." and put a .value on the end.

Rinse, repeat until you have checked all of the fields you need to.

Return true for the form to submit.

Return false for it to NOT submit.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP and Java login trouble

2007-05-09 Thread itoctopus
I agree with Chris, if you can do it this way, then it's much better. 
Working with FCKEditor's code was not one of the easiest things I did in my 
life.

-- 
itoctopus - http://www.itoctopus.com
"Chris" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Brad Sumrall wrote:
>> I am trying to create a commonlogin.php which would perform a duel login 
>> for
>> phpbb and a java based FCKEditor combined
>>
>> I have working code for each as an individual but not a clue how to 
>> combine
>> them.
>>
>>  Does anyone have any suggestion on where I can go for information about
>> this?
>
> Firstly that's javaSCRIPT not java. Java is an entirely different beast.
>
>
> Why not just copy the "validateLogin" javascript functionality and put it 
> in a new function and then:
>
>  onsubmit="return BBValidateLogin();">
>
> -- 
> Postgresql & php tutorials
> http://www.designmagick.com/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Chris

Brad Sumrall wrote:

I have been hunting all around that website you referred me too looking for
javascripting information and can find nothing. I know a little bit of php
but little to nothing about javascripting.


Eh? I never sent you to a website.

See this code:

function validatelogin()
{
if(document.frmlogin.txtusername.value=="")
{
alert("Please Enter Username.");
document.frmlogin.txtusername.focus();
return false;
}
if(document.frmlogin.txtpwd.value=="")
{
alert("Please Enter Password.");
document.frmlogin.txtpwd.focus();
return false;
}
document.frmlogin.login.value="Success";
document.frmlogin.action="operation.php?mode=login";
return true;
}


You need to create a *similar* function (eg 'BBValidateLogin()') to 
check different html field names.



For example:

function BBValidateLogin()
{
  var f = document.forms[0];
  alert('username is ' + f.username.value);
}

The username.value comes from this:



where you have name="username"

So take the name="..." and put a .value on the end.

Rinse, repeat until you have checked all of the fields you need to.

Return true for the form to submit.

Return false for it to NOT submit.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PhP and Java login trouble

2007-05-08 Thread Brad Sumrall
I have been hunting all around that website you referred me too looking for
javascripting information and can find nothing. I know a little bit of php
but little to nothing about javascripting.

I have been beating my head against the wall on this one for weeks now, I am
so close!

Brad

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 08, 2007 10:58 PM
To: Brad Sumrall
Cc: 'php-general@lists.php.net'
Subject: Re: [PHP] PhP and Java login trouble

Firstly always CC the list - others can provide help and suggestions too.

Brad Sumrall wrote:
> Any chance you can tell me what I am doing wrong?
> 
> Brad
> 
> 
>if(!isset($_SESSION["userid"]))
>   {
> ?>
>  onsubmit="return BBValidateLogin();">

You don't have a javascript function called 'BBValidateLogin'.


You have one called validateLogin which references completely different 
form fields.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Lester Caine

Brad Sumrall wrote:

I have been hunting all around that website you referred me too looking for
javascripting information and can find nothing. I know a little bit of php
but little to nothing about javascripting.

I have been beating my head against the wall on this one for weeks now, I am
so close!
Not sure what link Chris gave you, but it looks like you are 'borrowing' code 
without understanding how it works. Never a good idea


http://www.webreference.com/programming/javascript/diaries/1/ is worth a read 
but I could not find a quick - validate form - example at short notice.
Actually http://www.webdevelopersjournal.com/articles/jscript_forms1.html just 
popped up

Just google for 'javascript validate form'


Firstly always CC the list - others can provide help and suggestions too.
Brad - You have to remember that 'reply' on some email lists will only give 
you the sender - not the list ;) Yep it's a pain when every other list works 
differently - but that is another pointless discussion :(

Bottom posting helps as well - this bit should be first.

--
Lester Caine - G8HFL
-
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Chris

Firstly always CC the list - others can provide help and suggestions too.

Brad Sumrall wrote:

Any chance you can tell me what I am doing wrong?

Brad



onsubmit="return BBValidateLogin();">


You don't have a javascript function called 'BBValidateLogin'.


You have one called validateLogin which references completely different 
form fields.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Chris

Brad Sumrall wrote:

I am trying to create a commonlogin.php which would perform a duel login for
phpbb and a java based FCKEditor combined

I have working code for each as an individual but not a clue how to combine
them.

 


Does anyone have any suggestion on where I can go for information about
this?


Firstly that's javaSCRIPT not java. Java is an entirely different beast.


Why not just copy the "validateLogin" javascript functionality and put 
it in a new function and then:


onsubmit="return BBValidateLogin();">


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and java appletsf

2004-05-24 Thread Tom Playford
On Fri, May 21, 2004 at 08:16:30AM -0700, jon wrote:
> Nah... Maybe we're both confused. Is this a java app you wrote or one 
> that you found somewhere? If you know how to control the camera from 
> java and you know how to work in java, you could build yourself a quick 
> and dirty command-line java application, then feed it commands from php 
> using exec or something similar.

Well the whole point of the java applet was to provide a nice, drag and drop interface 
to move the camera around. I already have a pure php version, it just doesn't look 
that nice and you can't drag things around.

I don't think I explained myself very well.

You can see the applet here:
http://tom.playford.net/control/control.html
It does very little at the moment.

Tom



> Tom Playford wrote:
> 
> >jon wrote:
> >
> >>Can you just send a command line java app commands from php?
> >
> >
> >I'm not sure what you're getting at.
> >
> >Do you mean writing the Java code in the php page? I didn't know php 
> >could compile the code on the fly, can it? Or do you mean something else?
> >
> >
> >Tom
> >
> >>
> >>-- jon
> >>
> >>Tom Playford wrote:
> >>
> >>>Dear all knowing list,
> >>>
> >>>I am trying to control the movement of a camera in real time from the 
> >>>web. But I also need to make sure that only the user I specify can 
> >>>have control.
> >>>
> >>>What I though I could do was this: launch a java applet from a php 
> >>>page parsing the session id. Then when the user adjusts the controls 
> >>>on the applet, a php page is loaded by the applet, sets the user 
> >>>session with the session id, then sends the control details back to 
> >>>the server and on to the camera.
> >>>
> >>>I've given this a go with no luck. When I try to set the session id 
> >>>on the php script that the Java applet loads I get a permissions 
> >>>error (the perms on /tmp are fine). I'm not 100% sure I understand 
> >>>sessions, is my method utterly implausible? Does anyone have any 
> >>>better suggestions?
> >>>
> >>>
> >>>Thanks,
> >>>
> >>>Tom Playford
> >>>
> >
> >
> >.
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and java applets

2004-05-21 Thread jon
Nah... Maybe we're both confused. Is this a java app you wrote or one 
that you found somewhere? If you know how to control the camera from 
java and you know how to work in java, you could build yourself a quick 
and dirty command-line java application, then feed it commands from php 
using exec or something similar.

-- jon
--
jon roig
web developer

Tom Playford wrote:
jon wrote:
Can you just send a command line java app commands from php?

I'm not sure what you're getting at.
Do you mean writing the Java code in the php page? I didn't know php 
could compile the code on the fly, can it? Or do you mean something else?

Tom
-- jon
Tom Playford wrote:
Dear all knowing list,
I am trying to control the movement of a camera in real time from the 
web. But I also need to make sure that only the user I specify can 
have control.

What I though I could do was this: launch a java applet from a php 
page parsing the session id. Then when the user adjusts the controls 
on the applet, a php page is loaded by the applet, sets the user 
session with the session id, then sends the control details back to 
the server and on to the camera.

I've given this a go with no luck. When I try to set the session id 
on the php script that the Java applet loads I get a permissions 
error (the perms on /tmp are fine). I'm not 100% sure I understand 
sessions, is my method utterly implausible? Does anyone have any 
better suggestions?

Thanks,
Tom Playford

.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php and java applets

2004-05-21 Thread Tom Playford
jon wrote:
Can you just send a command line java app commands from php?
I'm not sure what you're getting at.
Do you mean writing the Java code in the php page? I didn't know php could compile the code on the 
fly, can it? Or do you mean something else?

Tom
-- jon
Tom Playford wrote:
Dear all knowing list,
I am trying to control the movement of a camera in real time from the 
web. But I also need to make sure that only the user I specify can 
have control.

What I though I could do was this: launch a java applet from a php 
page parsing the session id. Then when the user adjusts the controls 
on the applet, a php page is loaded by the applet, sets the user 
session with the session id, then sends the control details back to 
the server and on to the camera.

I've given this a go with no luck. When I try to set the session id on 
the php script that the Java applet loads I get a permissions error 
(the perms on /tmp are fine). I'm not 100% sure I understand sessions, 
is my method utterly implausible? Does anyone have any better 
suggestions?

Thanks,
Tom Playford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php and java applets

2004-05-21 Thread jon
Can you just send a command line java app commands from php?
-- jon
Tom Playford wrote:
Dear all knowing list,
I am trying to control the movement of a camera in real time from the web. But I also 
need to make sure that only the user I specify can have control.
What I though I could do was this: launch a java applet from a php page parsing the 
session id. Then when the user adjusts the controls on the applet, a php page is 
loaded by the applet, sets the user session with the session id, then sends the 
control details back to the server and on to the camera.
I've given this a go with no luck. When I try to set the session id on the php script 
that the Java applet loads I get a permissions error (the perms on /tmp are fine). I'm 
not 100% sure I understand sessions, is my method utterly implausible? Does anyone 
have any better suggestions?
Thanks,
Tom Playford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php and java applets

2004-05-21 Thread Tom Playford
Dear all knowing list,

I am trying to control the movement of a camera in real time from the web. But I also 
need to make sure that only the user I specify can have control.

What I though I could do was this: launch a java applet from a php page parsing the 
session id. Then when the user adjusts the controls on the applet, a php page is 
loaded by the applet, sets the user session with the session id, then sends the 
control details back to the server and on to the camera.

I've given this a go with no luck. When I try to set the session id on the php script 
that the Java applet loads I get a permissions error (the perms on /tmp are fine). I'm 
not 100% sure I understand sessions, is my method utterly implausible? Does anyone 
have any better suggestions?


Thanks,

Tom Playford

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Java

2003-12-11 Thread Mark Ackroyd
Hi,

I am not so sure where the problem lies with this. I have installed 
JDK1.3.1 on a FreeBSD 4.9 server. It seems to work fine. I have written 
a small java program and it compiles and runs without any issues.

I want to get the PHP intgration with java working, I must admit I know 
more about compiling and tinkering with PHP source then java. So I have 
set all the right options in PHP for this intergration and got the thing 
to compile.

in my small PHP script to test the system is this.

#!/usr/local/bin/php -q
getProperty("java.version");
?>
when this is run it produces this.

PHP Fatal error:  Unable to load Java Library 
/usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so, error: 
/usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so: Undefined symbol 
"setFPMode" in /root/test on line 3

I know the setFPmode is due to the threads in java so I have set

LD_LIBRARY_PATH=/usr/local/jdk1.3.1/jre/lib/i386/green_threads

Either way this problem doesn`t seem to go away with the LD references?

anyone got an ideas of what I am doing wrong?

Mark

--

Mark Ackroyd
e: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php and java

2003-11-19 Thread Edward Peloke
Ok,

First, let me say, I have looked at the manual and searched the past posts
but still can't get this to work.  I also should say that this is my first
time trying to bridge php and java so this may be a stupid questionI
have a java class(DateUtil) in a package (testphp).  I then took the package
and created a jar file from it and put the location of the jar file in my
php.ini file with the java settings.

In my php code, this code works fine:

$java = new Java("testphp");
$currentTime=$java->currentTimeMillis();
echo "The Time is:". $currentTime;

but if I try to access my class, I get errors that it can't instantiate
non-existent class:

$mydate=new DateUtil("testphp");

Am I doing something blatantly wrong?

Thanks,
Eddie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and java

2003-10-30 Thread Jacob Vennervald
Why can't you do this using PHP?
Have a php script generate a directory listing the user can choose from
and when the user chooses a picture load that picture.

Jacob

On Thu, 2003-10-30 at 02:27, David Miller wrote:
> I have written PHP code to upload and download files to my server through my 
> browser. 
>On the local side I have generated a java applet to do a few things that I just 
> can't do with a browser.  There are some things that I need the java on the local 
> machine to have access to on the server.  I started to generate a java servlet to do 
> this when I found out that my service provider doesn't support servlets.
> For example, I need for the java to be able to make a request of the server for a 
> directory listing, then fetch an image from the directory to display in the applet. 
> I am a little new to java applets.
> 
> Any ideas on how to do this?
> 
> JDM
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
Venlig hilsen / Best regards,
Jacob Vennervald
System Developer
Proventum Solutions ApS
Tuborg Boulevard 12
2900 Hellerup
Denmark
Phone:  +45 36 94 41 66
Mobile: +45 61 68 58 51

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and java

2003-10-30 Thread - Edwin -
On Wed, 29 Oct 2003 19:27:36 -0600
David Miller <[EMAIL PROTECTED]> wrote:

> I have written PHP code to upload and download files to my
> server through my browser. 
>On the local side I have generated a java applet to do a
>few things that I just 
> can't do with a browser.  There are some things that I need
> the java on the local machine to have access to on the
> server.  I started to generate a java servlet to do this
> when I found out that my service provider doesn't support
> servlets. For example, I need for the java to be able to
> make a request of the server for a directory listing, then
> fetch an image from the directory to display in the applet.
> 
> I am a little new to java applets.
> 
> Any ideas on how to do this?

Hmm... maybe you can try asking on a Java list or just find a
provider the supports servlets ;)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and java

2003-10-29 Thread David Miller
I have written PHP code to upload and download files to my server through my browser. 
  On the local side I have generated a java applet to do a few things that I just 
can't do with a browser.  There are some things that I need the java on the local 
machine to have access to on the server.  I started to generate a java servlet to do 
this when I found out that my service provider doesn't support servlets.
For example, I need for the java to be able to make a request of the server for a 
directory listing, then fetch an image from the directory to display in the applet. 
I am a little new to java applets.

Any ideas on how to do this?

JDM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP and JAVA

2003-07-14 Thread Marek Kilimajer
Have you tried looking at http://www.php.net/java ?

J.F.Kishor wrote:

Hello all, 

I would like to know if there is a possibility in php to invoke
JAVA RMI from php by enabling some options in php in php.ini file.
If there is a possibility please let me know, where I can get a document
about it. If any one of you have tried this then please send me a sample
and steps involved in it, so that I can start experimenting on it further.
I'am in a urgent, I request you to help me as soon a possible.

Thanks in advance
cheers,
- JFK
kishor
Nilgiri Networks







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and JAVA

2003-07-14 Thread J.F.Kishor
Hello all, 

I would like to know if there is a possibility in php to invoke
JAVA RMI from php by enabling some options in php in php.ini file.

If there is a possibility please let me know, where I can get a document
about it. If any one of you have tried this then please send me a sample
and steps involved in it, so that I can start experimenting on it further.

I'am in a urgent, I request you to help me as soon a possible.

Thanks in advance
cheers,

- JFK
kishor
Nilgiri Networks






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP AND JAVA

2002-08-14 Thread Alexandra Aguiar

may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?!
any helps !?
thx

xanda



[PHP] PHP and Java Servlets

2002-03-15 Thread Richard Fox

I have to build a "bridge page" from my PHP script that does the following:

1. Kick off a Java servlet (in my case running on my Tomcat4 plug-in to
Apache)
2. Receive data back from that servlet and continue my PHP script.

Does anyone have hard won advice, tips on great articles, examples, etc?

TIA,

Rich




Re: [PHP] PHP and Java

2002-03-01 Thread Richard Fox

Minor point, but you do mean LD_LIBRARY_PATH, not LD_LIBRARYPATH right?

Also, set

[Java]
extension = libphp_java.so
extension_dir = (pathname to libphp_java.so)

Rich



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Java

2002-03-01 Thread Richard Fox

>From my experience getting Java to run w/ PHP and Apache on RedHat 7.0, you
can try setting the LD_LIBRARY_PATH environment variable ( without which my
Java would not run) set to the location of libjava.so, libjvm.so, and
php_java.jar, in my case (without line feeds)

 LD_LIBRARY_PATH="/usr/java/j2sdk1.4.0/jre/lib/i386:
/usr/java/j2sdk1.4.0/jre/lib/i386/server:/usr/local/lib/php"

Rich



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and Java

2002-03-01 Thread Hunter, Ray

If you are running this on apache then it needs to be in the libexec
directory of apache where it looks for the *.so modules that are to be
loaded.

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Java


no, it isn't. it is in usr/local/lib/php/modules

> Is the libphp_java.so located in your apache libexec directory?
>
>
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -Original Message-
> From: Proyecto de Grado [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Java
>
>
>  I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7
>
>I did compile php with-java
>
>1) Java section in php.ini
>[Java]
>java.home = /usr/java1.2
>java.class.path = /usr/local/lib/php/php_java.jar
>java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
>java.library.path = /usr/local/lib/php
>
>2) prueba.php
>
>
>  $system = new Java();
>  print "Java version=".$system->getProperty("java.version")." \n";
>  print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
>  print "OS=".$system->getProperty("os.name")." ".
>  $system->getProperty("os.version")." on ".
>  $system->getProperty("os.arch")." \n";
>
>  $formatter = new Java("java.text.SimpleDateFormat",
>",  dd,  'at' h:mm:ss a ");
>
>  print $formatter->format(new Java("java.util.Date"))."\n";
>
>?>
>
>
>
>the error in browser is:
>Fatal error: Cannot instantiate non-existent class: java in
>/usr/local/apache/htdocs/remotemanager/users/java.php on line 4
>
>  3)  when I run apache in error.log
>
>   PHP Warning:  Unable to load dynamic library './libphp_java.so' -
>  ld.so.1:
>   /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: 
> No such  file  or directory in Unknown on line 0
>   [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
>   configured --
>resuming normal operations
>   [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: 
> fcntl)
:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP and Java

2002-03-01 Thread Proyecto de Grado

no, it isn't. it is in usr/local/lib/php/modules

> Is the libphp_java.so located in your apache libexec directory?
>
>
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -Original Message-
> From: Proyecto de Grado [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Java
>
>
>  I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7
>
>I did compile php with-java
>
>1) Java section in php.ini
>[Java]
>java.home = /usr/java1.2
>java.class.path = /usr/local/lib/php/php_java.jar
>java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
>java.library.path = /usr/local/lib/php
>
>2) prueba.php
>
>
>  $system = new Java();
>  print "Java version=".$system->getProperty("java.version")." \n";
>  print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
>  print "OS=".$system->getProperty("os.name")." ".
>  $system->getProperty("os.version")." on ".
>  $system->getProperty("os.arch")." \n";
>
>  $formatter = new Java("java.text.SimpleDateFormat",
>",  dd,  'at' h:mm:ss a ");
>
>  print $formatter->format(new Java("java.util.Date"))."\n";
>
>?>
>
>
>
>the error in browser is:
>Fatal error: Cannot instantiate non-existent class: java in
>/usr/local/apache/htdocs/remotemanager/users/java.php on line 4
>
>  3)  when I run apache in error.log
>
>   PHP Warning:  Unable to load dynamic library './libphp_java.so' -
>  ld.so.1:
>   /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: No
> such  file  or directory in Unknown on line 0
>   [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
>   configured --
>resuming normal operations
>   [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: fcntl)
:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and Java

2002-03-01 Thread Hunter, Ray

Is the libphp_java.so located in your apache libexec directory?



Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Java


 I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7

   I did compile php with-java

   1) Java section in php.ini
   [Java]
   java.home = /usr/java1.2
   java.class.path = /usr/local/lib/php/php_java.jar
   java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
   java.library.path = /usr/local/lib/php

   2) prueba.php
   
   
   getProperty("java.version")." \n";
 print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
 print "OS=".$system->getProperty("os.name")." ".
 $system->getProperty("os.version")." on ".
 $system->getProperty("os.arch")." \n";

 $formatter = new Java("java.text.SimpleDateFormat",
   ",  dd,  'at' h:mm:ss a ");

 print $formatter->format(new Java("java.util.Date"))."\n";

   ?>
   


   the error in browser is:
   Fatal error: Cannot instantiate non-existent class: java in
   /usr/local/apache/htdocs/remotemanager/users/java.php on line 4

 3)  when I run apache in error.log

  PHP Warning:  Unable to load dynamic library './libphp_java.so' -
 ld.so.1:
  /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: No
such  file  or directory in Unknown on line 0
  [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
  configured --
   resuming normal operations
  [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: fcntl) :



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Java

2002-03-01 Thread Proyecto de Grado

 I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7

   I did compile php with-java

   1) Java section in php.ini
   [Java]
   java.home = /usr/java1.2
   java.class.path = /usr/local/lib/php/php_java.jar
   java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
   java.library.path = /usr/local/lib/php

   2) prueba.php
   
   
   getProperty("java.version")." \n";
 print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
 print "OS=".$system->getProperty("os.name")." ".
 $system->getProperty("os.version")." on ".
 $system->getProperty("os.arch")." \n";

 $formatter = new Java("java.text.SimpleDateFormat",
   ",  dd,  'at' h:mm:ss a ");

 print $formatter->format(new Java("java.util.Date"))."\n";

   ?>
   


   the error in browser is:
   Fatal error: Cannot instantiate non-existent class: java in
   /usr/local/apache/htdocs/remotemanager/users/java.php on line 4

 3)  when I run apache in error.log

  PHP Warning:  Unable to load dynamic library './libphp_java.so' -
 ld.so.1:
  /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: No
such
 file  or directory in Unknown on line 0
  [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
  configured --
   resuming normal operations
  [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: fcntl) :



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and JAVA

2001-12-02 Thread Steve Haemelinck

Hi all

Does anyone got any experience with JAVA in PHP?
I tried to rebuild php with java support. Everything worked well but when I
try to initiate Java in PHP, I get cannot instantiate Virtual machine.
I use kaffe and I believe I have configured PHP correctly.

See http://www.haemelinck.be:8080/phpinfo.phtml

Thx


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php and java problem

2001-10-01 Thread Alexander Deruwe

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday 30 September 2001 21:36, Nikola Veber wrote:
> Hi !
>
> I was able to determine the user's screen resolution, but I'd like to let
> php know that(the next page loaded should be in
> the right resolution, I'd like to pass a value to php, but I don't know
> how).

pagethatdeterminesresolution.php determines the resolution, and has a link 
such as this one:

Link
(The numbers are pure fiction ofcourse, you need to get them.)

This means that in correctpage.php you will have two variables, $Xres and 
$Yres that will represent the resolution.

Alexander
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7uG1AySJLuRUx8aQRAkf0AJwMutj7TZ3HCqFGEEyv0Gn8souqdACdFToE
20D9LSWxEYKAwOYvHD8psMU=
=Ghac
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php and java problem

2001-10-01 Thread George Pitcher

Nikola,

I'm not a javascript user and new to php too.

Is it possible to form your javascript result into a 'hidden' form value.
That could then be read by the next php page.

HTH

George
- Original Message -
From: "Nikola Veber" <[EMAIL PROTECTED]>
To: "php forum" <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 10:36 PM
Subject: [PHP] php and java problem


> Hi !
>
> I was able to determine the user's screen resolution, but I'd like to let
php know
> that(the next page loaded should be in
> the right resolution, I'd like to pass a value to php, but I don't know
how).
>
> Thanx
> Nikola
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php and java problem

2001-10-01 Thread Nikola Veber

Hi !

I was able to determine the user's screen resolution, but I'd like to let php know 
that(the next page loaded should be in 
the right resolution, I'd like to pass a value to php, but I don't know how).

Thanx
Nikola




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php and java problem

2001-09-30 Thread Nikola Veber

Hi !

I was able to determine the user's screen resolution, but I'd like to let php know 
that(the next page loaded should be in 
the right resolution, I'd like to pass a value to php, but I don't know how).

Thanx
Nikola



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and Java issues. Desperate please help.

2001-08-28 Thread Bill Koch

I have dug through several forums trying to find a solution to this issue.
I have configured PHP4.0.6 with Sun's JDK1.3.1 on RH7.1.  I keep receiving a
the following error message:

Fatal error:  Unable to load Java Library /usr/java/jdk1.3.1/jre/lib/i386
/classic/libjvm.so, error:
/usr/java/jdk1.3.1/jre/lib/i386/classic/libjvm.so: un
defined symbol: jdk_sem_post in /tmp/php-4.0.6/ext/java/jver.php on line

My php.ini file looks like the following:

[Java]
java.class.path=/usr/local/lib/php/php_java.jar:/usr/share/kaffe/worldpac_fu
lfil
lment.jar
java.home=/usr/java/jdk1.3.1
java.library=/usr/java/jdk1.3.1/jre/lib/i386/classic/libjvm.so
java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20001222:/u
sr/j
ava/jdk1.3.1/jre/lib/i386:/usr/java/jdk1.3.1/jre/lib/i386/classic:/usr/java/
jdk1
.3.1/jre/lib/i386/hotspot:/usr/java/jdk1.3.1/jre/lib/i386/native_threads
extension=libphp_java.so

And when I ldd -d libjvm.so I receive the following:

/usr/bin/ldd -d libjvm.so
libm.so.6 => /lib/i686/libm.so.6 (0x4009a000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400be000)
libdl.so.2 => /lib/libdl.so.2 (0x400d5000)
libc.so.6 => /lib/i686/libc.so.6 (0x400d9000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000)
undefined symbol: jdk_sem_post  (./libjvm.so)
undefined symbol: jdk_sem_init  (./libjvm.so)
undefined symbol: jdk_pthread_sigmask   (./libjvm.so)
undefined symbol: jdk_sem_wait  (./libjvm.so)
undefined symbol: jdk_pthread_sigmask   (./libjvm.so)

I pretty much understand that the issue is with the JDK but I cannot figure
out how to fix it.  I have tried the the ld.so.conf( and ran ldconfig, also
did a reboot) which is as follows:

/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/local/lib
/usr/java/jdk1.3.1/jre/lib/i386
/usr/java/jdk1.3.1/jre/lib/i386/classic
/usr/java/jdk1.3.1/jre/lib/i386/native_threads
/usr/java/jdk1.3.1/jre/lib/i386/green_threads

This has gotten to be a major holdup.  I have read through several posts and
tried all they suggest to no avail.  I am going nuts, I know this can work
because others have done it.  The only thing left that I haven't looked into
is this error message from the php debug.log:

/usr/bin/ld: warning: libstdc++-libc6.1-1.so.2, needed by
/usr/java/jdk1.3.1/jre
/lib/i386/hotspot/libjvm.so, not found (try using -rpath or -rpath-link)
/usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to
`__che
ck_eh_spec'
/usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to
`__thr
ow'
/usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to
`termi
nate(void)'
/usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to
`__cp_
pop_exception'
/usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so: undefined reference to
`__cp_
eh_info'
collect2: ld returned 1 exit status

I don't have libstdc++-libc6.1-1.so.2 on my system.  So I will go back and
try install it and see what happens.  Any ideas would be greatly
appreciated.

Bill

PS Alex I apologize greatly for the direct email.  But I am desperate, I saw
your name on several php forums and you seem to be the guru on this issue.
I switched from kaffe ( which I had running smoothly) because the project I
am working on requires certain pre done Java API's that were calling Java
classes that kaffe didn't seem to have.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and Java InputStream object

2001-08-15 Thread Kiat Kin

Is it possible use php to read a file and then using it to construct a
java.InputStream object?

TIA
Kiat Kin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php and java

2001-08-14 Thread Gaylen Fraley

I'm trying to get java support working with php and the jvm loads the first
time and then I have to start and stop the server to get it to load again.
In other words it's erring out and saying it can't load the jvm.  I have
followed the instructions at www.phpbuilder.com exactly and can't seem to
get it to work, other than one time inbetween starts.  Suggestions?  I am
running php under windows.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP and Java (CVS version)

2001-02-14 Thread Alex Akilov

Evan,

It sounds like your PATH doesn't contain the JDK/bin directory.  What happens if
you type "which jar" at a command shell?

Alex


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and Java (CVS version)

2001-02-13 Thread Montgomery-Recht, Evan

I've noticed a problem with the config.m4 in the ext/java directory.

Basic issue I'm running redhat 7.0 with the sun jdk installed in
/usr/java/jdk1.3

I type in really simple after doing a buildconf

I have my JAVA_HOME and PATH's setup to get all java exe's.

configure --with-mysql=/usr --with-java=/usr/java/jdk1.3

now when I go to do a make it's trying to use zip and not jar, so what I did
what I changed line
 23 to match line 21 and everything compiles correctly.

So it sounds like autoconf is not recognizing the PATH statement in my
system.

I'm not experienced enough with the autoconf and automake to really make
this change so it works properly since I know that I didn't do the right
thing to get it working.

if someone else has a suggestion on how to fix it properly please let me
know, and hopefully the CVS tree will get updated.

evan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]