Tag Info

New answers tagged

4

The following function can be used to recover the resource URL that contains a given class: Needs["JLink`"] InstallJava[]; LoadJavaClass["com.wolfram.jlink.JLinkClassLoader"]; classResourceUrl[className_] := JavaBlock @ Module[{resourceName, loader} , resourceName = StringReplace[className, "."->"/"]~~".class" ; loader = ...


4

Mathematica usually shows all of the stack trace elements that are due to user code. It omits stack frames that belongs to JLink itself. This is rarely a problem but, as we shall see, there is a small possibility that we could lose some frames of interest. Example Before we talk about the missing frames, let's look at an example. The following code is ...



Top 50 recent answers are included