File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Starting Java on Mac, problem setting up eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Starting Java on Mac, problem setting up eclipse" Watch "Starting Java on Mac, problem setting up eclipse" New topic
Author

Starting Java on Mac, problem setting up eclipse

Andrew Sornborger
Greenhorn

Joined: Jun 07, 2012
Posts: 3
I've been trying to fix this problem by searching through the many posts, but still haven't been able to resolve it: I've downloaded the most recent Java Developer Package and installed it on my MacBook Pro with Mac OS X Lion 10.7.4. I've also downloaded Eclipse (IDE 1.4.2, Platform 3.7.2). It appears to be well-known that you have to change the Installed JREs in Eclipse to point to the correct location before Eclipse will know where to find the appropriate files for a build. I've made this change (along with several permutations, I am currently using /Library/Java/JavaVirtualMachines/1.6.0_32-b05-420.jdk/Contents/Home/), but still no joy creating a HelloWorld program. An error occurs when I try to create a new project:

"Archive for required library: '/Library/Java/Extensions/ctx.jar' in project 'HelloWorld' cannot be read or is not a valid ZIP file"

Does anyone out there have any experience with this problem? Any help would be appreciated.
Andrew Sornborger
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Many thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

My pleasure, hopefully someone using eclipse on a Mac can help you out. (I'm an IntelliJ guy, myself.)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Andrew Sornborger
Greenhorn

Joined: Jun 07, 2012
Posts: 3
Figured it out. Just had to turn the Error thrown by the compiler to a Warning. HelloWorld now appears to work.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Java on Mac, problem setting up eclipse
 
Similar Threads
Managing multi-module maven project inside Eclipse
Fedora 5, Eclipse, and jdk 1.5
JAVA on MAC OS 10.4
Setting up Eclipse
Compilation unit is not on the build path of a java project (Eclipse/Maven2)