I'd like to be able to run an external command on a Java class in a package. The built in java.exe tool seems to add the package name to the class when it calls it, but you apparently can't do this in your own custom tools.
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
Running java commands on classes in packages.
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Running java commands on classes in packages.
Just a thought.....
Could you wrap the preverify tool into your own class ?
I assume the tool IS a java class.
mvh / regards
Henrik S. Larsen
Could you wrap the preverify tool into your own class ?
I assume the tool IS a java class.
mvh / regards
Henrik S. Larsen