title: GlassFish Starting Up Java SE Client - No Initial Context Exception
body: <p>I have developed a java se client that calls some session beans on a glassfish server v3. I connect to the bean remote interface like this.</p>
  
  <pre><code>context = new InitialContext();
  em = (ICrudService) context.lookup("java:global/BackITServer/CrudServiceImpl");
  </code></pre>
  
  <p>This works fine from inside eclipse (gf-client on build path). When I export my project as a runnable jar and call it on the console with</p>
  
  <pre><code>java -jar BackItClient.jar
  </code></pre>
  
  <p>I get a NoInitialContextException. </p>
  
  <pre><code>javax.naming.NoInitialContextException: Need to specify class name 
  in enviroment or system property, or as an applet parameter, or in an application resource file
  </code></pre>
  
  <p>MMMM. I would very much appreciate some help. </p>
  
  <p>Thank You</p>
  
  <p>Greetings Marcel</p>
  
  <p>PS: Do I really have to pack all the jars which gf-client is referencing into my jar?</p>