2

i m new with netbeans platform , i want to use java class's method of module A into module B, so please suggerst to me how can i do deppendacy , Lookup system , and Service provider?

Jay
  • 1,235
  • 10
  • 28
  • 49

1 Answers1

1

The NetBeans class loading is partitioned, so each module gets its own class-loader. In order for you to use a class from module A in module B you need to set the package that your class is in as a public package and add Module A as a dependency for Module B

I would suggest looking at this NetBeans platform quick-start tutorial - it covers the Lookup, module interaction and Service Provider usage.

The Netbeans developer FAQ is also very helpful (For example it has a whole section for what the lookup is, and how to interact with it)

Tim Sparg
  • 3,294
  • 2
  • 27
  • 40