Hi, I've run into a little quirk using the idlj (idl-to-java) compiler. I'm not sure there's anything that can be done, but maybe someone here can help.
Let's say I'm writing a Hello World application. My development environment directory structure is Development\Hello and this is where the file Hello.idl resides.
Because my company's domain name is SloanVentures.net I also have this structure Development\net\SloanVentures\ where all my packages go. So far, so good.
I want to run the idlj compiler so that it creates the app source code in this directory Development\Hello\HelloApp
but with package names in the source code that say[java]package net.SloanVentures.HelloApp;[/java] so that when I compile this generated source, it will put the classes in a package in this structure Development\net\SloanVentures\HelloApp\ I believe that this is the typical, standardized approach most would follow (I may be wrong about that, by the way...if so I'd love to hear how others do it).
So, I run the idlj compiler as follows:
This results in the correct package names in the generated java source, but puts them in the following new structure: Development\Hello\net\SloanVentures\HelloApp instead of Development\Hello\HelloApp.
If I eliminate the -pkgPrefix option, then it puts HelloApp in the right structure, but the package names in the source code are wrong i.e. [java]package HelloApp;[/java] so I have to modify all of them before compiling the java source.
So, I can either move HelloApp to the correct directory, or I can modify all the generated source to use the correct package names.