An Austrian court has found a 14-year-old boy guilty of planning to blow up Vienna's main railway station after being radicalized by Islamic extremists.

The court also found the defendant guilty of planning to join extremist fighters in the Middle East, a punishable offense in Austria.

The unidentified youth was sentenced to two years in juvenile detention, with 14 months of the term suspended. That leaves 10 months to serve, and with seven months already spent in investigative custody, he will only be behind bars for three more.

The proceedings Tuesday were in the city of St. Poelten, west of Vienna. Police say they found plans for such an attack on the boy's computer and defense lawyer Rudolf Mayer said his client acknowledges his guilt.