When pnuts command is used to execute scripts, pnuts.tools module is used by default, which in turn the following modules are used.
| Module Name | Classes |
|---|---|
| java.net | URL, URI, Socket, ServerSocket, MulticastSocket, Authenticator, DatagramSocket, DatagramPacket |
| java.util | Date, BitSet, Calendar, Hashtable, Vector, Stack, Map, List, Set, Collection, Collections, Arrays, Random, Locale, TimeZone, Enumeration, Iterator |
| java.io | File, OutputStream, InputStream, IOException, Reader, Writer |
Since exported names by modules have precedence over imported class names, import function can't override a name once the name was exported by a module. For example, in order to reference java.awt.List class, instead of java.util.List, it is necessary to unuse java.util module first, then import java.awt.List class.
unuse("java.util")
import java.awt.List