0

I am working on windows using tomcat 6 and PHP/Java Bridge. I know how to access a Java file from PHP but how do we do it the other way i.e accessing PHP from Java

<?php
require_once("java\Java.inc");
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970: 
".$systemInfo->currentTimeMillis();
?>

Also how do I access Java classes that are created by me. Do I write a CLASSPATH env variable or change the php.ini config file?

asked Apr 28, 2010 at 9:06
1

1 Answer 1

1

I think you should look at JPHP, which embeds PHP into the Java VM.

answered Apr 28, 2010 at 9:13
Sign up to request clarification or add additional context in comments.

1 Comment

No I want to use PHP/Java Bridge. I cant install JPHP on windows

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.