title: java.lang.SecurityException: class "org.eclipse.emf.ecore.resource.URIConverter$Loadable"'s
body: <p>Someone help me why I am getting this error?</p>
  
  <pre><code> java.lang.SecurityException: class "org.eclipse.emf.ecore.resource.URIConverter$Loadable"'s signer information does not match signer information of other classes in the same package  at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
  </code></pre>
  
  <p>I want to load a metamodel (dart.ecore) file and a model file (dartlang.dart).</p>
  
  <pre><code>ResourceSet resourceSet = new ResourceSetImpl(); 
  resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("ecore", new EcoreResourceFactoryImpl());
  resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", new  XMIResourceFactoryImpl());
  Resource myMetaModel= resourceSet.getResource(URI.createFileURI("./metamodel/dart.ecore"), true);
  EPackage univEPackage = (EPackage) myMetaModel.getContents().get(0);
  resourceSet.getPackageRegistry().put("http://gholizadeh.org", univEPackage);
  Resource myModel = resourceSet.getResource( URI.createURI( "./model/dartlang.dartspec"), true);
  </code></pre>
  
  <p>import : </p>
  
  <pre><code>import org.eclipse.emf.common.util.URI;
  import org.eclipse.emf.ecore.EPackage;
  import org.eclipse.emf.ecore.resource.Resource;
  import org.eclipse.emf.ecore.resource.ResourceSet;
  import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
  import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
  import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
  </code></pre>
  
  <p>Thank you !</p>