|
From: <php...@li...> - 2009-08-24 17:36:37
|
Hi Jost,
thanks for the reply.
Sorry for my ignorance again, but how to i use the "feature"? I assume i can.
I guess i am not fully understanding your explanation.
If there is some vital documentation i am missing please point me to it.
thanks
matt
On Monday 24 August 2009, you wrote:
> You can use echo java_inspect(java("java.lang.System")) to inspect
> features. Out is such a feature.
>
> Regards,
> Jost Boekemeier
>
> 24. Aug 2009 5:47 nachm. schrieb am <
> php...@li...>:
>
> Hi,
>
> I created an sandbox to test javabridge on my local box. I have a index.php
> in
> which i include the Java.inc file and call:
> echo java("java.lang.System")->getProperties();
> which gives me:
>
> {java.runtime.name=Java(TM) SE Runtime Environment,
> sun.boot.library.path=/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386,
> java.vm.version=14.0-b16, shared.loader=, java.vm.vendor=Sun Microsystems
> Inc., java.vendor.url=http://java.sun.com/, path.separator=:,
> ... snip...
> sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little,
> package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomc
>at.,org.apache.jasper.,sun.beans., sun.cpu.isalist=}
>
> which looks to my untrained eye like it finds something/it works.
>
>
> However, trying to slightly expand this, i did:
> echo java("java.lang.System.out")->println("sdgfsdfsdf");
> which gives:
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: ReferenceClass
> failed: new java.lang.System.out. Cause: java.lang.ClassNotFoundException:
> java.lang.System.out VM: 1.6.0_14@http://java.sun.com/" at: #-25
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
>va:1387) #-24
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
>va:1233) #-23 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> #-22 java.lang.Class.forName0(Native Method) #-21
> java.lang.Class.forName(Class.java:247) #-20
> php.java.bridge.SimpleJavaBridgeClassLoader.forName(SimpleJavaBridgeClassLo
>ader.java:157) #-19
> php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:455) #-18
> php.java.bridge.Request.handleRequest(Request.java:439) #-17
> php.java.bridge.Request.handleRequests(Request.java:490) #-16
> php.java.servlet.PhpJavaServlet.handleLocalConnection(PhpJavaServlet.java:1
>91) #-15 php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:228) #-14
> javax.servlet.http.HttpServlet.service(HttpServlet.j in
> /usr/local/tomcat/webapps/JavaBridge/java/Java.inc on line 215
>
> I realize that i am missing something fundamental here. Forgive me for my
> ignorance in this matter but how come this does not work? Do i need to
> include
> another library? But if so, then why did the getProperties() call work?
>
>
> thanks for any shedding light on this matter
> matt
>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|