I want to know that is it possible to get the classes, functions/methods available in a java package from C#. Suppose I have a java package p which contains SampleClass. I want to inspect this package from C# so that I can get SampleClass. I do not want to use this class in C# in fact I just want to get the name of the available classes and functions.
Hope this is possible!
Thanks
Assuming that you have a JDK installed, you can use ‘jar -tf jarName.jar’ to get a list of classes, which you can then parse.
To get more information about a particular class, you can use the command-line ‘javap’ utility to print out a list of all methods and fields. This is in a fairly easily parsable format. For example: