I FOUND THE SOLUTİON
I Was looking in Reddit ı see this post about the same issue ı tried and it worked for me right now the game is opened and worked give it a try and ı hope it will work for you:
In Windows desktop search bar, type "environment variables" and open the option that is displayed (i.e. "Edit the system environment variables"). Then, click the button at the bottom of the window that says "Environmental Variables...". If there's a Variable called GAME_DATA_DIR or a variable related to Battlefront 2015 or Battlefront II, delete it. It may not be needed, but it's a good idea to reboot your PC. Once back into Windows, try launching the game(s) that were affected and see if they start.