More specifically, I'm trying to run the preverify.exe tool that comes with J2ME. I have to pass it the name of the class, including the package name. If I just pass $BaseName, I get the following error:
Error preverifying class HelloWorld
Class loading error: Wrong name
which indicates that I need to prepend the class name: com.gary.micro.HelloWorld.
I've hacked around this problem by creating a macro to go highlight the package name, and then using the $Sel tool macro to insert it into the command line, but that's kind of lame.
I was just wondering if there was any way to get the package name in a custom tool. It's annoying that the built-in java.exe can get to it, but I can't.

Thanks for any help.
Gary