I have a small Java Class question.
Suppose that you have an HTML page, and there is a small JavaScript that will retrieve the value of a public variable declared in a Java Class, I need to know how to create the Java Class with any string on the fly directly in Visual Basic or Visual C++, so the string that you inserted while creating the Java Class, can be readed from Javascript in the HTML page.
For example this is the Java code:
class reader extends Applet{
//This is the variable that I read from JavaScript
public String thevariable="variable content";
public void main(String argv[]){} }
The question is how can I create the Java COMPILED code on the fly to create a funcional Java Class directly in VB or VC++.
Then the Javascript will look like this:
var javavariable=[login to view URL]["applet1"].thevariable;
This is my question.
## Platform
Java Class Applets
Internet Explorer 4.0+ and Netscape 4.0+