Re: [jnc-users] LDAP with jnc
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2007-10-16 17:46:05
|
Norman Rieß wrote: > Marco Trudel schrieb: >> Norman Rieß wrote: >>> Marco Trudel schrieb: >>>> Hey Norman >>>> >>>> >>>> Either extract the Sun implementation and compile it into the >>>> project or search another LDAP library (JLDAP for example). >>>> >>>> >>>> Hope that helps >>>> Marco >>>> >>> Hi, >>> >>> that is kind of a Problem, too. >>> >>> reating "LdapInfo" for Linux >>> - processing rt.jar >>> com/sun/accessibility/internal/resources/accessibility.java:7: >>> internal compiler error: Segmentation fault >>> Please submit a full bug report, >>> with preprocessed source if appropriate. >>> See <URL:http://gcc.gnu.org/bugs.html> for instructions. >> What is rt.jar? Did you add the complete runtime from Sun? >> What was the result on using another LDAP library? >> >> >> Marco >> > rt.jar is the Runtime from Sun, yes. I set JNC only to comile the needed > sources. Well, you can't compile the whole rt.jar. You will confuse the compiler because most classes will be there twice (java.lang.Object, ...). > I unpacked rt.jar, too and only included the needed parts, but this did > not work either, because of dependencies. This were dependencies, > which are not included in the rt.jar. So why it suddenly asked for > them, i do not know. You have to fill the dependences. I had to do the same when importing AWT/Swing from Sun. I wrote a little tool that does this automatically :-) > Then i portet to JLDAP. This lib however suddenly asks for > org.apache.commons.XXX stuff while compiling in JNC. My first thought > was WTH commons-net!!! These are dependencies that would lead to a "ClassNotFoundException" if run into while using the library in a Sun JRE. You can avoid having to solve all reference when compiling with JNC by adding "-findirect-dispatch" as custom GCJ flag. It will then search dependencies at runtime. Marco > Ok, so i included that too..., but this .jar > wants some org.apache.*somethingtotallydifferent*. At this time i > resinged for today. > > I will post the exact error messages tomorrow. > > Regards > Norman |