File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Eclipse cannot execute binary file." Watch "Eclipse cannot execute binary file." New topic
Author

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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse cannot execute binary file.
 
Similar Threads
ksh: ./java: 0403-006 Execute permission denied.
what's JRE for ?
Could not find the main class
compiling servlet
I've downloaded eclipse for linux. Now how do I start it?