A Josephson junction made of a generic magnetic material sandwiched between two conventional superconductors is studied in the ballistic semi-classic limit. The spectrum of Andreev bound states is obtained from the single-valuedness of a particle-hole spinor over closed orbits generated by electron-hole reflections at the interfaces between superconducting and normal materials. The semiclassical quantization condition is shown to depend only on the angle mismatch between initial and final spin directions along such closed trajectories. For the demonstration, an Andreev-Wilson loop in the composite position/particle-hole/spin space is constructed, and shown to depend on only two parameters, namely a magnetic phase shift and a local precession axis for the spin. In the last years the spin-orbit and spin-splitting effects in superconducting heterostructures [1,2] are receiving a great deal of attention in the context of an emerging superconducting spintronics [3,4] and in connection with possible realizations of Majorana bound states in nanowires [5]. A Josephson junction with a magnetoactive normal bridge exemplify a prototype structure hosting such kind of spin interactions. The physics of superconductor/normal metal/superconductor (S/N/S) ballistic Josephson junctions is mainly determined by the so called Andreev bound states (ABS) localized in the Nregion. These states, which carry a significant fraction of the Josephson supercurrent [6,7], have been extensively studied in ballistic superconducting point contacts [8][9][10].Theoretically the quantization of states trapped in some classically allowed region can be understood from the Bohr-Sommerfeld quantization rule [11,12] which requires the phase accumulated along a closed classical trajectory to be a multiple of 2π. In a ballistic S/N/S junction the trapping in the N-region occurs due to Andreev reflections with conversion of the incident electron to the reflected hole and vice versa at the S/N interfaces [13]. Each Andreev reflection brings a phase shift θ (E) = arccos (E/∆), where E < ∆ is the energy measured with respect to the Fermi level [14]. The classical loop trajectory is now defined in the space composed of the position and particle-hole subspaces. In the position subspace the electron and the reflected hole accumulate the phase equal to 2EL/v, where L is the distance between the S electrodes and v is the component of the velocity perpendicular to the junction plane. From the two Andreev reflections (shifts in the particle-hole subspace) the phase acquires the contribution 2θ (E) ± ϕ, depending on the propagating direction, where ϕ is the phase difference between the two S-electrodes (see Fig.1), [15]. Hence the quantization condition for ABS reads: 2E n L/|v| − 2θ (E n ) + sgn(v)ϕ = 2nπ. The spin-orbit coupling (SOC) and spin-splitting (exchange or Zeeman), possibly textured fields in a magnetic material, generate precession of the electron and hole spins, which should modify the properties of ABS. How the semiclassical condition is modified in th...