Message Boards Message Boards

Access java enumerators from an external jar file?

Posted 5 years ago

Hello, I have an external jar file that I am using inside my Mathematica notebook. This jar contains class and methods. One of the class contains some nested classes that I am loading by using LoadJavaClass["myclass$nestedclass"]

the nestedclass has not constructors but just some filds that are static string enumators. Is there any way to access to those enumerators? Thank you Best regards P

POSTED BY: Tarpanelli Paolo

I think this covers it: https://mathematica.stackexchange.com/a/22729/9490

In[1]:= << JLink`

In[2]:= LoadJavaClass["java.text.Normalizer$Form"]

Out[2]= JLink`JavaClass["java.text.Normalizer$Form", 2, {
JLink`JVM["vm1"]}, 3, "java`text`Normalizer$Form`", False, True]

In[3]:= Normalizer$Form`NFKC

Out[3]= JLink`Objects`vm1`JavaObject31853183189909505
POSTED BY: Jason Biggs
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract