August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Packages.java.className.methodName
The java sub-package of the Packages object refers to the JavaPackage containing the core Java class library. This sub-package is used for several things, but most notably for adding security to LiveConnect and accessing the Java Console.
Listing 6.201 shows an example for the java package. It is used to write text to the Java Console.
<html>
<body>
<script language="JavaScript1.1">
<!–– Hide
// Use the Java package to write text to the Java Console
Packages.java.lang.System.out.println("Hello World!");
// End Hide ––>
</script>
</body>
</html>
|
Read now
Unlock full access