Go to your environment variable setting. Try to put Petrel and Eeclipse under same variable name

Example

Variable name=LM_LICENSE_FILE
Variable value=27007@LOCALHOST;c:\ecl\home\license.dat

Variable value 27007@LOCALHOST for Petrel and c:\ecl\home\license.dat for Eclipse. Don't use separate variable name for eclipse and Petrel