This paper investigates the finite-time consensus for second-order multiagent systems under directed networks, where each agent is described by a non-identical nonlinear system. By using the reference trajectory-based method, two novel protocols are developed for the leader-follower and leaderless cases, respectively. It is noted that the dynamical evolutions of each agent's state and the reference trajectory are coupled, and the information of reference trajectories is not allowed to transmit in the communication channels. By the developed protocols, the relative state errors among agents can converge to the origin (instead of a neighborhood of the origin) within a finite time, though there are unknown parameters in agents' dynamics. The nonlinear terms in agents' dynamics are not required to be bounded by known constants or functions, which invalidates many consensus schemes based on the sliding mode control. Using the graph theory, Lyapunov functional method and finite-time stability theory, sufficient conditions are established for the finite-time consensus of considered multiagent systems. Finally, simulation examples are given to validate the effectivity of the proposed protocols.