With the license I have confirmed the Variable name(LM_LICENSE_FILE) and the Variable value(complete with the file name) and the path in quartus prime.I run lmutil lmdiag but there's only one line showing my license path.But I can't restart and launch the program and I'm anxious to find out why.
I'm also having this issue. Looking at the license file itself in a text editor, the file doesn't look populated with the relevant information for launching the QuestaSim simulator.
It seems other people are having the same issue. I found this a comment on a similar post that might fix your issue:
Basically, log back onto the self-service license website and re-generate the license file until you get a license file with more than just comments (it will look different from what was originally generated).