Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Chisisi Massri   on Jun 06 In Java Category.

  
Question Answered By: Marc Anderson   on Jun 06

First of all, never eat (ignore) exceptions*. In other words, don't do
this:


try {
// some code
catch  (AnException e) {}

Besides that never catch Exception:

try {
// some code
} catch (Exception e) { // handle e }

In your code you are doing both together:

try {
// your code
} catch (Exception e) {}

Now your question. Please fix your code and when you catch the
exception, log its stack trace or print it to System.out. Besides that
what is your Java version (the output of java -version)?

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on problem with java2d in linux vps Or get search suggestion and latest updates.


Tagged: