JLink`
JLink`

AddToClassPath

AddToClassPath[path1,path2,]

adds the specified full paths to directories and jar or zip files to the J/Link class search path.

Details and Options

  • To use AddToClassPath, you first need to load J/Link using Needs["JLink`"].
  • In AddToClassPath[path1,path2,], each pathi can be a string or a file object with head File.
  • If you specify a directory, it will be searched automatically for .jar and .zip files, in addition to appropriately nested .class files, so you do not have to name .jar or .zip files explicitly.
  • Changes take effect immediately and apply only to the currently running Java runtime.
  • If you quit and restart Java, you will need to call AddToClassPath again.
Wolfram Research (2007), AddToClassPath, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html (updated 2016).

Text

Wolfram Research (2007), AddToClassPath, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html (updated 2016).

CMS

Wolfram Language. 2007. "AddToClassPath." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html.

APA

Wolfram Language. (2007). AddToClassPath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html

BibTeX

@misc{reference.wolfram_2024_addtoclasspath, author="Wolfram Research", title="{AddToClassPath}", year="2016", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_addtoclasspath, organization={Wolfram Research}, title={AddToClassPath}, year={2016}, url={https://reference.wolfram.com/language/JLink/ref/AddToClassPath.html}, note=[Accessed: 22-December-2024 ]}