Hi Steffen,

I believe there is  bug in the 1.0.2 OO plugin for netbeans.  the bug
seems to be in the generated build-uno-impl.xml file which overrides
the the ant "jar" target....and writes a manifest section for
Openoffice bootstrap class loader, unfortunately this target ignores
the Class-Path attribute (see [***] below...)

I worked this around by creating a manual manifest.mf - copying and
pasting the automatically generated bits from the plugin generated
manifest, and over-riding the "jar" target within build.xml to load
the manual manifest file...something like:

<target name="jar"
depends="-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar">

<jar basedir="${build.classes.dir}" compress="true"
jarfile="${dist.jar}" manifest="manifest.mf">

<fileset refid="bootstrap.glue.code"/>

</jar>

</target>

thanks

Ashok

[***] - build-uno-impl.xml - manifest section without class-path....
   <target name="jar"
depends="-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar">



       <jar basedir="${build.classes.dir}" compress="true"
jarfile="${dist.jar}">

           <fileset refid="bootstrap.glue.code"/>

           <manifest>

               <attribute name="Main-Class"
value="com.sun.star.lib.loader.Loader"/>

               <section name="com/sun/star/lib/loader/Loader.class">

                   <attribute name="Application-Class" value="${main.class}"/>

               </section>

           </manifest>

           </jar>

       </target>





On 6/15/07, Steffen Grund <[EMAIL PROTECTED]> wrote:
Hi there,

could you verify that the manifest file in your jar is correct? You may
have stumbled over a bug in the Netbeans plugin: the client application
gets a special manifest file for booting OpenOffice.org, using the
simple bootstrap mechanism.
If you do not find the necessary jar files in the manifest file inside
of your jar, feel free to write me a bug.
I may be able to create a workaround hopefully.

Regards, Steffen


houssam elhallak wrote:
> hello
> this is my first mail here with this list ,I'm sorry if this is not the
> right place .
> I have been spending 2 days on this problem
>
> every thing is ok when I create openoffice application client with netbeans
> the problem start when I try to create a jform or a jpanel and then use
> any layout
> netbeans will include a library called swing layout
> "swing-layout-1.0.1.jar"
>
> my application still run in a good way in netbeans ,but when I try it to
> execute it from the commande line ,I got this error .
>
> java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
>
>
> I tried every thing I know but no way ,to say the truth Im not expert
> with ant so I hope any one can give me  some help
>
> thank you in advance
>
> _________________________________________________________________
> Get a preview of Live Earth, the hottest event this summer - only on MSN
> http://liveearth.msn.com?source=msntaglineliveearthhm
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to