Motorcycle Questions? Ask a Mechanic.
Hi and welcome to the site, I’m Louie. Sorry you had to wait awhile but I’ll do my best to help.
Initially, have you checked the spark plugs?
Still, let's check/review the basics. Proposed preliminary tests (if have not been done) after the "...runs for about 1 second then dies...":
The above would determine if the issue is electrical/ignition (least likely) or fuel delivery/starvation (most likely).
Considering that "...sat for 2 months...", it would be to your advantage to attempt cleaning of the fuel path all the way to the injectors. Try adding injector cleaner, allow to settle/mix, attempt to start a number of times or until the fuel mixed with cleaner reaches the injectors.
The alternative would be to test the fuel pump output pressure and the injectors (out-of-the bike).
Please post back how things turned up and/or should additional information be needed.