|
From: <php...@li...> - 2009-08-23 06:57:02
|
hi I need this older version of Java Bridge, if someone can provide it. Thanks |
|
From: <php...@li...> - 2009-08-23 07:52:27
|
US or Canada? Seriously, why do you need such an old version? 23. Aug 2009 8:57 vorm. schrieb am < php...@li...>: hi I need this older version of Java Bridge, if someone can provide it. Thanks ------------------------------------------------------------------------------ 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 |
|
From: <php...@li...> - 2009-08-24 15:46:19
|
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.tomcat.,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.java:1387)
#-24
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: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(SimpleJavaBridgeClassLoader.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:191)
#-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
|
|
From: <php...@li...> - 2009-08-24 17:06:25
|
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.tomcat.,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.java:1387)
#-24
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: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(SimpleJavaBridgeClassLoader.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:191)
#-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
|
|
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
|
|
From: <php...@li...> - 2009-08-24 17:40:18
|
> 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.java:1387)
mhm looks to me as you try to create a instance of "out" but thats
just a property of java.lang.System
try it like this
echo java("java.lang.System")->out->println("aadsfdsaf");
kind regards,
Dominik
|
|
From: <php...@li...> - 2009-08-24 17:50:15
|
thanks,
that at least did not result in an error even though nothing was printed to
the browser (which is probably ok since it is not stdout).
Anyway, thanks. I think i understand now the correlation between the syntax
and creating instances and calling methods.
(I think ... . That doesn't mean much, so i'll probably be back once i get
stumped again)
thanks
matt
On Monday 24 August 2009, php...@li... wrote:
> > 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.
> >java:1387)
>
> mhm looks to me as you try to create a instance of "out" but thats
> just a property of java.lang.System
>
> try it like this
>
> echo java("java.lang.System")->out->println("aadsfdsaf");
>
> kind regards,
>
> Dominik
>
> ---------------------------------------------------------------------------
>--- 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
|
|
From: <php...@li...> - 2009-08-24 17:56:27
|
try looking at the console output of tomcat/the context running the
bridge... it may be printed there.
Kind regards,
Dominik
On Mon, Aug 24, 2009 at 7:50 PM,
<php...@li...> wrote:
> thanks,
>
> that at least did not result in an error even though nothing was printed to
> the browser (which is probably ok since it is not stdout).
>
> Anyway, thanks. I think i understand now the correlation between the syntax
> and creating instances and calling methods.
>
> (I think ... . That doesn't mean much, so i'll probably be back once i get
> stumped again)
>
> thanks
> matt
>
>
> On Monday 24 August 2009, php...@li... wrote:
>> > 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.
>> >java:1387)
>>
>> mhm looks to me as you try to create a instance of "out" but thats
>> just a property of java.lang.System
>>
>> try it like this
>>
>> echo java("java.lang.System")->out->println("aadsfdsaf");
>>
>> kind regards,
>>
>> Dominik
>>
>> ---------------------------------------------------------------------------
>>--- 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
>
|
|
From: <php...@li...> - 2009-08-24 18:20:54
|
Methods and attributes are collectively callled "features".
> Sorry for my ignorance again, but how to i use the > "feature"?
You access an attribute the same way as you would access a method.
java(java.lang.System")->out->println("foo")
will write "foo" to system out, wherever that might be.
24. Aug 2009 7:37 nachm. schrieb am <
php...@li...>:
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 ...
>91) #-15 php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:228)
#-14
> javax.servlet.http.HttpServlet.service(HttpServlet.j in >
/usr/local/tomcat/webapps/JavaBridge/jav...
>
---------------------------------------------------------------------------
>--- 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...
|