Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  writing onto java console  (Read 417 times)
0 Members and 1 Guest are viewing this topic.
Offline Malek

Jr. Member
**

Posts: 70


Java games rock!


« on: 2005-02-10 03:13:01 »

Hi, i am still struggling to face my freezing problem from thread http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1107110083

I noticed that the workaround suggested has at least solved something.

If i use the appletviewer command from the command prompt and do
1  
appletviewer mywebpage

then it load wihtout any problem.

But when running it either throught mozilla or IE it still freezes online and locally i got a nullPointerException displayed in the java console, so to see what is the problem with my code i need to catch this exception to write some information about my object.

The problem is How to write there?? it seems it is neither the standard
1  
system.out
or
1  
system.err
.

Does anyone knows?
Offline senordingdongdos

JGO n00b
*

Posts: 11


Java games rock!


« Reply #1 on: 2005-03-27 11:41:21 »

why not just add a try/catch statement
try
{........}
catch(Exception e)
{
System.out.println(e);
}
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.094 seconds with 21 queries.