According to the relevant provisions of the Measures for the Implementation of the National Judicial Examination, people who meet the following conditions can register for the National Judicial Examination: (1) have China nationality; (two) support the constitution of People's Republic of China (PRC), enjoy the right to vote and be elected; (3) Having full capacity for civil conduct; (4) Graduated from a law major in an institution of higher learning or a non-law major in an institution of higher learning with legal professional knowledge; (5) Good conduct.
Therefore, you can only apply if you meet the conditions of "graduated from a non-law major in an institution of higher learning with legal professional knowledge".