A bit more information is needed.
Four or two door? What year of jeep?
What type of top do you have? I'm assuming it's OEM, however over the years of the JK there were a few different tops but until I get answers to the above I will just talk about the two primary ones.
2007-2010 tops had a plastic strip that tucked into the door surrounds, similar to the way the rear side windows work on the bottom. This is also the way TJ (1997-2006) tops worked.
2011-2018 tops use a tensioning cable (hidden from view) to hold the edges down. The rear window is also wider.
Each version has it's own type of door surround and hardware. These are not interchangeable at all. It doesn't matter what year jeep anything goes on, but the tops must use the hardware from the specific version.