tJava example
In the following example, the tJava component will execute a piece of Java code to:
-
create a directory D:/myFolder.
-
define a global variable named output_file that represents the output stream target D:/myFolder/people.txt.
setSettings {
CODE : "new java.io.File(\"D:/myFolder\").mkdirs();
globalMap.put(\"output_file\",new java.io.FileOutputStream(\"D:/myFolder/people.txt\"));"
}
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!