java.io.IOException after launching the Hello World C++ Project [message #222699] |
Tue, 26 August 2008 12:55  |
Eclipse User |
|
|
|
Hello,
After creating a new Hello World C++ Project and running the executable,
The following error appears in the Error Log:
Error logged from Debug Core:
java.io.IOException: read error
at org.eclipse.cdt.utils.spawner.SpawnerInputStream.read0(Nativ eMethod)
at
org.eclipse.cdt.utils.spawner.SpawnerInputStream.read(Spawne rInputStream.java:60)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:2 54)
at java.io.BufferedInputStream.read(BufferedInputStream.java:31 3)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at
org.eclipse.debug.internal.core.OutputStreamMonitor.read(Out putStreamMonitor.java:144)
at
org.eclipse.debug.internal.core.OutputStreamMonitor.access$1 (OutputStreamMonitor.java:134)
at
org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(Ou tputStreamMonitor.java:207)
at java.lang.Thread.run(Thread.java:595)
I'm using CDT 4.0.3, g++ 3.3, Eclipse 3.3.2 on Ubuntu 8.04.
Any ideas?
|
|
|
Re: java.io.IOException after launching the Hello World C++ Project [message #222717 is a reply to message #222699] |
Wed, 27 August 2008 07:45  |
Eclipse User |
|
|
|
I have a rather similar problem. A simple C-Program has a routine that
uses a text-file for output. When I try to run this program from within
Eclipse, I get the error message:
An internal error occured during: "Launching printmsg"
java.lang.NullPointer.Exception
The same when I start a debugging session. But launching the program
manually - outside eclipse - works fine.
Then I comment the code out in that routine that performs file-io. Now its
a dummy routine which does nothing. But I left all imports unchanged. No
NullPoint.Exception any more!
My System: Debian etch, Eclipse 3.3.2, CDT 4.03, Java jre1.6.0_03
Robert
|
|
|
Powered by
FUDForum. Page generated in 0.03650 seconds