From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Henri Fischer Newsgroups: gmane.emacs.help Subject: java.lang.NullPointerException in Emacs but not in terminal Date: Sun, 26 Apr 2009 03:27:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240774715 14197 80.91.229.12 (26 Apr 2009 19:38:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Apr 2009 19:38:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 26 21:36:33 2009 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ly1oM-0003nk-TR for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Apr 2009 12:42:15 +0200 Original-Received: from localhost ([127.0.0.1]:35431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ly1mx-0002VE-IB for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Apr 2009 06:40:47 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!d38g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 83.119.131.144 Original-X-Trace: posting.google.com 1240741664 14318 127.0.0.1 (26 Apr 2009 10:27:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 26 Apr 2009 10:27:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d38g2000prn.googlegroups.com; posting-host=83.119.131.144; posting-account=X7JwogoAAACP8PFLkqCKx34awu1aNwR6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168756 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64029 Archived-At: Hi all, I'm learning Java with the help of Head First Java. Using Emacs GUI. I made three classes for the SimpleDotComGame. When I run main in Emacs I get the NPE. When I run the code from terminal, it all works fine. The terminal waits for my input (a String value) and then proceeds as planned. But when I use the Shell Command to run the code from Emacs, it doesn't wait for my input, returns null and runs into the NPE (I guess). Why does my code behave like that in Emacs and not in terminal? I currently on "Emacs 22.3.1 (i386-apple-darwin9.6.0, Carbon Version 1.6.0) of 2009-01-03 on seijiz.local".