Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Java Interface >

LoadJavaClass

LoadJavaClass[classname]
loads the specified class into Java and sets up definitions so that it can be used from Mathematica.
  • To use LoadJavaClass, you first need to load J/Link using Needs["JLink`"].
  • You must specify the fully qualified class name, for example "java.awt.Frame".
  • It is safe to call LoadJavaClass multiple times on the same class; it simply returns right away without doing anything.
  • The following options can be given:
StaticsVisibleFalsewhether static methods/fields are accessible by name or in a special context
AllowShortContextTruewhether static methods/fields can be accessed by name or by full context
UseTypeCheckingTruewhether to suppress the type checking normally inserted in definitions for calls to Java
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team