This paper proposes a model-free control framework for the path planning of the rigid and soft robotic manipulator using an intelligent algorithm called Weighted Jacobian Rapidly-exploring Random Tree (WJRRT). The optimization approach is used to model the path planning problem, which is independent of the robotic model, and then used the WJRRT algorithm to solve it. WJRRT algorithm not only explores the cartesian space for the end-effector of the robotic manipulator randomly but also directs it towards the goal-position when required. It is robust enough to tackle the uncertainties in the manipulator and make the computation of path planning more efficient. WJRRT assigned a fitness value to each node of the tree. Based on the fitness values algorithm computes the final path, which is a trade-off between efficiency and safety of the path. The simulation results of two, three, and seven degrees of freedom (DOF) robotic manipulators are presented and compared with JT-RRT, Bi-RRT, and TB-RRT algorithms. Experimental results are verified using a soft manipulator made from flexible materials, i.e., polypropylene and polychloroprene. Their flexible structure makes their control complex and creates uncertainties in the model. The simulation and experimental results demonstrate that WJRRT can efficiently and accurately control the motion of manipulators.