• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Eclipse cannot execute binary file.

 
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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!