summiboy
10-28-2003, 03:10 AM
thanks for the answer-***-reply to my message but i still have a problem . The browser i'm using is netscape. Can you tell me where to add the custom classes regarding netscape navigator since it is using some .dll files as java plugins. I've add my custom classes to C:\Program Files\Java\the highest nimber jre\lib\classes but it didnt work out. please help me.
Regards
Summiboy
how to call java methods inside javascript
I'm trying to call a java method inside JavaScript.
The core constructors or methods could be used whereas a user-defined method couldnt be.
This works --> "var temp = new Packages.java.lang.Long(10); document.writeln(temp);"
But the following doesnt work --> " var tmp = new Packages.myclasses.myconstructor(); "
where "myconstructor" is an own class inside package "myclasses"
Can anyone help me in setting the classpath correctly to the user-defined classes in this case.
Waiting eagerly for a reply,
regards
Summiboy
Answer 1.
your browser knows where the code clases are thats why you can access them.I bet if you put your user defined classes in the lib folder of the JRE used in your OS browser will or should recognise them.
You will need to look in registr to see which is your JRE version..Or
for Window 2k
C:\Program Files\Java\the highest nimber jre\lib\classes here
__________________
Cheers
Khalid
Regards
Summiboy
how to call java methods inside javascript
I'm trying to call a java method inside JavaScript.
The core constructors or methods could be used whereas a user-defined method couldnt be.
This works --> "var temp = new Packages.java.lang.Long(10); document.writeln(temp);"
But the following doesnt work --> " var tmp = new Packages.myclasses.myconstructor(); "
where "myconstructor" is an own class inside package "myclasses"
Can anyone help me in setting the classpath correctly to the user-defined classes in this case.
Waiting eagerly for a reply,
regards
Summiboy
Answer 1.
your browser knows where the code clases are thats why you can access them.I bet if you put your user defined classes in the lib folder of the JRE used in your OS browser will or should recognise them.
You will need to look in registr to see which is your JRE version..Or
for Window 2k
C:\Program Files\Java\the highest nimber jre\lib\classes here
__________________
Cheers
Khalid