Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » java.io.IOException after launching the Hello World C++ Project
java.io.IOException after launching the Hello World C++ Project [message #222699] Tue, 26 August 2008 12:55 Go to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
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 Go to previous message
Robert Brusa is currently offline Robert BrusaFriend
Messages: 55
Registered: July 2009
Member
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
Previous Topic:Exporting PDOM data
Next Topic:libtool / mingw/msys eclipse 3.4 problem
Goto Forum:
  


Current Time: Tue Nov 12 19:51:00 GMT 2024

Powered by FUDForum. Page generated in 0.02742 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top