IntelliJ Java IDE
The moose likes IDEs, Version Control and other tools and the fly likes Associate Eclipse with src files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Associate Eclipse with src files" Watch "Associate Eclipse with src files" New topic
Author

Associate Eclipse with src files

Fintan Conway
Ranch Hand

Joined: Apr 03, 2002
Posts: 141
Hi All,
Is there a way that I can associate Eclipse with the file extension .java in Windows?
It would be very handy to dbl click a source file and have it load Eclipse (or appear in Eclipse if already loaded). Is there any reason for not doing this?

Many thanks,
Fintan
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Fintan
What you need to do is open up an explorer window. Click the tools menu, then select 'folder options'. When the window opens up select the 'file types' tab.
On that tab scroll down until you find java in the list, select it, and click 'change'. You'll have to browse to find eclipse but once you do just double click the eclipse exe file and everytime you open a .java file it'll open in eclipse.
If java is not already listed in your list of file types just click new to add it.
Hope that helps


Dave
Ed Burnette
Author
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
Doesn't work that way, but I wrote a plug-in that lets you do it. See the Fileopen plug-in at www.eclipsepowered.org > Download area.


Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
 
 
subject: Associate Eclipse with src files
 
Threads others viewed
Weblogic Portlet and JSP
Classpath Build Order Changes (entries in .classpath file keep becoming reset)
Developing servlets using Eclipse 3.3.2
Issue with JavaDoc, Code Assist and Eclipse
How can I disassociate .java extension from VJ#?
IntelliJ Java IDE