tutorial for importing a class

hi!

does anybody have a tutorial which show me how to import a class in my module?

hello?
could anybody tell me how i’m able to import a java class from another module???
pleeeeeeeeeeeease

If you’re adding something to the module (it’s not a trait that can be added
to a piece), copy the java class into your module (it’s an archive just like
a ZIP file) and make sure it’s in exactly the same subdirectory as in the
original module.

Then in the module editor, click on Add Imported Class in the context menu
for the component that you want to add the class to. Then type in the fully
qualified class name. If the class path is like this:

ca/mkiefte/GreatClass.class

you would type in:

ca.mkiefte.GreatClass

Hope this helps.

If you’re adding a class that is meant to be a piece trait, this gets a bit
more complicated.

  • M.

On 27 July 2010 12:14, derdiggeohl derdiggeohl@hochsitze.com wrote:

hello?
could anybody tell me how i’m able to import a java class from another
module???
pleeeeeeeeeeeease

If you’re adding something to the module (it’s not a trait that can be added to a piece), copy the java class into your module (it’s an archive just like a ZIP file) and make sure it’s in exactly the same subdirectory as in the original module.


Then in the module editor, click on Add Imported Class in the context menu for the component that you want to add the class to.� Then type in the fully qualified class name.� If the class path is like this:

ca/mkiefte/GreatClass.class


you would type in:

ca.mkiefte.GreatClass

Hope this helps.

If you’re adding a class that is meant to be a piece trait, this gets a bit more complicated.

- M.


On 27 July 2010 12:14, derdiggeohl <derdiggeohl@hochsitze.com> wrote:

hello?

could anybody tell me how i’m able to import a java class from another

module???

pleeeeeeeeeeeease