Sorry but the TJ's and Rubicon's driveshafts are completely different designs with different ways of connecting to the transfer case output shaft. Your TJ has a splined slip joint between the t-case output shaft and driveshaft, the Rubicon's driveshaft connects via a flange.
Now if you're talking about the front driveshaft, their designs are closer but the TJ uses a 1310 size u-joint while the Rubicon uses a 1330 size u-joint. You'd have to swap in different adapter u-joints that are combination 1310/1330, or swap the yokes on both the axle and t-case.
You're probably better off just finding a driveshaft for a standard Wrangler and letting the Rubicon DS go.