Creating .complib file

Dear Everyone, Anyone, Someone

Can anybody tell me what is procedure for creating a complib file. I don't want the list of files to be added in to complib file.

I have already created .complib file using command prompt,

> jar -cf sample.complib a.jar b.zip

but when using complib file in Sun studio creator, it gave me error telling, "Unable to read specified complib file. Check the IDE Log for further Deatils......"

If any other nethod of creating complib file then please, do suggest.

Regards,

Ashish Samant.

[564 byte] By [ashishsamanta] at [2007-11-27 11:12:15]
# 1

Hi!

Try to read here:

http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries

I hope it will be helpful for You.

Thanks,

Roman.

-Grif-a at 2007-7-29 13:53:32 > top of Java-index,Development Tools,Java Tools...
# 2

Dear Gref,

I am Ashish Samant, i already tried the above site. It dint help.

Tell me one thing, we use same method for creating complib file as for jar file.

regards,

Ashish Samant

ajeeshpga at 2007-7-29 13:53:32 > top of Java-index,Development Tools,Java Tools...
# 3

Hi!

Yes, we use same method for creating complib file as for jar file.

But I think command given by You can be not quite correct:

'jar -cf sample.complib a.jar b.zip'

Command 'jar' create its own manifest file and rewrite that necessary for complib, so You should use 'jar cMf sample.complib a.jar b.zip' and in this case complib's manifest file won't be rewritten.

Thanks,

Roman.

-Grif-a at 2007-7-29 13:53:32 > top of Java-index,Development Tools,Java Tools...
# 4

thanks grif

it did work

Now i will try making my own custom component

Can i seek your help in it from time to eime

please sir

Custom component is troubling me a lot from days

ajeeshpga at 2007-7-29 13:53:32 > top of Java-index,Development Tools,Java Tools...
# 5

Dear Everyone, Anyone, Someone

I want to create a custom component consisting txtfld, button(For trial).

Classes Such as taglib, beaninfoclass, tag handler, etc are necessary.

Or the custom component can be created without using those.

My one more doubt is My .compib file gets created, it is also successfully imported in studio creator, it also appears in palette, but it is not showing its contents.

Please do help.

Regards,

Ashish Samant

ashishsamanta at 2007-7-29 13:53:32 > top of Java-index,Development Tools,Java Tools...