From: <lak...@t-...> - 2005-05-07 11:31:07
|
Hi Janusz, The "resource" protocol is used to load idl files from the classpath. Before the compiler accesses it, it registers a handler for the resource protocol by modifying the system property java.protocol.handler.pkgs (see docs for java.net.URL). If the URL handler is not found via reflection I think the error you see will be triggered. I assume you are using the Ant task, not the command line compiler via a <java> call. You need to have the tools.jar (more specifically the class org.openorb.util.urlhandler.resource.Handler) in the same classpath you are using for the compiler. In other words, you need both openorb_orb_tools.jar from the OpenORB package and tools.jar from the tools package in your taskdef - and no, the names weren't my idea :-) Please let me know if this solves your problem. Regards, Lars Janusz Dalecki (TYCO) wrote: >Hi, > I am getting an error when trying to compile an idl.The output from the ant >idl2java task is: > > BUILD FAILED: C:\apps\dev\sms\build.xml:98: there are errors...Could not >add bundled idl >[resource:/org/openorb/idl/] reason [unknown protocol: resource] > >I have seen similar problem reported but no answer?. > >I got this message using the beta released in December. > >Janusz > > > |