It's not a secret anymore!
The moose likes Java in General and the fly likes Eclipse cannot execute binary file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Eclipse cannot execute binary file." Watch "Eclipse cannot execute binary file." New topic

Eclipse cannot execute binary file.

Jeff Yan
Ranch Hand

Joined: Nov 05, 2009
Posts: 42
hey, im trying to run a program using JRE 1.4 and when i go to run the main class it comes up with:
/Users/stephensmith/Desktop/SWANS stuff/j2sdk1.4.2_14/jre/bin/java: /Users/stephensmith/Desktop/SWANS stuff/j2sdk1.4.2_14/jre/bin/java: cannot execute binary file

what can i do?

~ Jeff Yan ~
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

On what operating system is this?

Does the file /Users/stephensmith/Desktop/SWANS stuff/j2sdk1.4.2_14/jre/bin/java exist?
Does it have the right permissions set (i.e. do you have execute permission)?

Are you trying to run a Linux or Windows JDK on Mac OS X? That's not going to work. Mac OS X comes with its own installed version of Java - you don't need to install Java on Mac OS X. Also, you need a Mac OS X-specific version of Eclipse.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Eclipse cannot execute binary file.
It's not a secret anymore!