Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shawnwich

macrumors 6502
Original poster
Oct 4, 2007
368
0
Houston, TX
I have a program due soon, and i have eclipse installed on my new mac, and i'm trying to compile and it wont work. For awhile it kept saying "Launch failed no binaries" but now its saying "java.langnullpointerexception"

ITS NOT EVEN A JAVA PROGRAM. I'm using C++. I even tried a simple helloworld and it did the same error thing. GAH.

I NEED HELP PLEASE. Visual Studio used to "just work" on windows, but i dont know why this thing doesent JUST WORK.
 
make a new workspace and project and drag over your source files (i.e. don't bring over any of the dot files, let eclipse re-create those). see if that unconfuses eclipse.
 
make a new workspace and project and drag over your source files (i.e. don't bring over any of the dot files, let eclipse re-create those). see if that unconfuses eclipse.

Nope. Now its back to

"Launch failed no binaries"

I'm so annoyed. Is there any other compiler I can try out that ill just work?
 
Use Apple's Xcode. Might be installed already under /Developer/Applications/Xcode/

Choose C++ Tool when you create a new project.

If it's not installed already, you must register an ADC Membership at http://developer.apple.com/ to download it.
 
Okay guys. i decided to ditch Eclipse, and install Xcode.

Works like a charm = ).

Thanks for all your help, guys!!
 
You already have a solution, and I'm still trying to figure out how Mitsubishi ruined your life...
 
I have a program due soon, and i have eclipse installed on my new mac, and i'm trying to compile and it wont work. For awhile it kept saying "Launch failed no binaries" but now its saying "java.langnullpointerexception"

ITS NOT EVEN A JAVA PROGRAM. I'm using C++. I even tried a simple helloworld and it did the same error thing. GAH.

I NEED HELP PLEASE. Visual Studio used to "just work" on windows, but i dont know why this thing doesent JUST WORK.

It seems like an installation issue. As an alternative, you could use Netbeans: http://www.netbeans.info/downloads/index.php?rs=22&p=7

Jochen

PS: My experience with with Visual Studio is the oposite. It contains a lot of bugs. The concept is from the early 18th century - not even close to XCode.
 
AFAIK the CDT, the C development tool plugin for eclipse, doesn't come with a compile like it does for java, altough off course it needs JRE to run, eclipse can compile it's own java using it's incremental compiler from the JDT plugin (basically before you run your program is already compiled to bytecode)

What you probably needed to do was install gcc standalone, or xcode which should also install the whole gnu development tool chain.

The binary he couldn't find was probably gcc, now that you have xcode installed you should try running the c program again in eclipse.

I haven't used xcode extensively, tried it for some java, but it was merely a fraction of what I have come to expect from eclipse, but I have to be fair, I didn't play with it all that long, I've read much about the cdt and it's getting more and more adoption, it has nice features and you should really give it a go again, I know that people on the firefox/mozilla tree use the cdt also sony uses it for it's development on the ps3 etc so hey it has to offer something right? :)
 
Can you please do what aquanutz asked.

Eclipse does not come with any C or C++ binaries so it should now work that you installed XCode which installs all said binaries.

Question? Why did you choose to install Eclipse when you have XCode?
 
I have a program due soon, and i have eclipse installed on my new mac, and i'm trying to compile and it wont work. For awhile it kept saying "Launch failed no binaries" but now its saying "java.langnullpointerexception"

ITS NOT EVEN A JAVA PROGRAM. I'm using C++. I even tried a simple helloworld and it did the same error thing. GAH.

I NEED HELP PLEASE. Visual Studio used to "just work" on windows, but i dont know why this thing doesent JUST WORK.

I hear you man. That's why I've created http://ihateeclipse.com
 
Still better than Javabeans. That #$#$!%$ slept with my mom and never called her again!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.