Click to See Complete Forum and Search --> : H2 use a java class


rci
03-19-2003, 08:24 AM
Hi everybody

When I read the server-side javascript guide, I understand that I can use java classes like "File" for example ...

When I try, I obtain "File is undefined".

What have I to do to use it ?

Thanks for your answers.

khalidali63
03-19-2003, 08:39 AM
var file = new java.io.File("fileName");
the above should be the syntax from NS

Khalid

rci
03-19-2003, 08:49 AM
Thanks but what about IE ?
When I try I obtain "java is undefined" !

khalidali63
03-19-2003, 08:56 AM
java will not work on Client side IE on the server side it should because serverside code implementationis transparent to clients

Cheers

Khalid