PDA

View Full Version : Simple Java error



chuuk
January 31st, 2009, 08:44 PM
I'm a newbie to Java, and have just been getting the hang of things, when I came across this error when I tried to run a small program in Eclipse:

"Unable to load java.io.BufferedInputStream@12dacd1"

Why would this error arise and how would I be able to fix it?

Thanks in advance.

shadylookin
January 31st, 2009, 08:51 PM
my guess is that you're using gcj instead of sun java

in synaptic do you have sun-java6-jdk installed?

chuuk
January 31st, 2009, 08:54 PM
Checked in terminal:

sun-java6-jdk is already the newest version.

Edit: And the problem also comes up while using NetBeans...

drubin
January 31st, 2009, 11:17 PM
my guess is that you're using gcj instead of sun java

in synaptic do you have sun-java6-jdk installed?

That error would have nothing to do with gcj or sun.

@op could you please post the example code so we can actually look at it. Just giving us a generic error like that isn't going to explain where/what we can help you with.

Also it might help to take a quick read through the link in my sig for how to ask questions to give us more information to help you.