Thank you for your question.
To be qualified to take the California bar exam, you need to have either gone to an accredited law school, or go to a registered unaccredited school and studied law diligently and in good faith for at least four years in a law school registered with the Committee; in a law office; in a judge’s chambers; or by some combination of these methods.
To be admitted to practice law in California, an applicant must:
1. Complete the necessary general education;
2. Register with the Committee of Bar Examiners as a law student or attorney
3. Complete the requisite legal education;
4. File an application to take the First-Year Law Students' Examination and
pass, or establish exemption
from the examination;
5. File an application to take the California Bar Examination and after eligibility
has been confirmed, take and pass the examination;
6. File an application for a moral character determination and receive a positive
moral character determination from the Committee of Bar Examiners;
7. File an application, take the Multistate Professional Responsibility
Examination and achieve a minimum scaled score as determined by the
Committee of Bar Examiners, which examination is administered and graded
by the National Conference of Bar Examiners (www.ncbex.org);
8. Be in compliance with California court ordered child or family support
9. Meet all admission requirements and take the attorney's oath of office no
later than five years from the last day of administration of the California Bar
Examination the applicant passes.
In short, you do have to have studied law either at a school, or under the care of a lawyer. Degrees from non-accredited law schools are not well respected by other lawyers or judges, so choosing to do that will cause you to always have to deal with this sort of issue, which could make it hard to get a job in a law firm after you pass the bar.