• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse cannot execute binary file.

 
Jeff Yan
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15354
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic