# Anyone use eclipse on Windows?

**URL:** <https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493>\
**Category:** Ruby\
**Created:** [February 8, 2008, 4:15am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493 "2008-02-08T04:15:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Day](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Day](https://www.ruby-forum.com/u/Day)\
**Post date:** [February 8, 2008, 4:15am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493/1 "2008-02-08T04:15:56Z")

</div>

If you saw my other post similarly titled, it may become apparent: I’m  
trying out various editors. I’ve installed eclipse and RDT and  
subclipse. Things are working well… except (had to be one). For some  
reason, for things I have checked out from the SVN repository, require  
seems to be broken. Even on very simple paths that point at files in  
the same directory, I get a “in `require’: no such file to load”  
error. Doesn’t matter what the file is. Locally, require works fine.  
When I run manually in the command line with ruby, it works fine. I  
did a bunch of googling and didn’t find any help. Maybe my Google Fu  
is weak. Anyone have any ideas? If I can’t get this solved, I guess  
I’m back to SciTE for editing and Tortoise for SVNing.

I’m running Eclipse 3.3.1.1 on Windows XP. let me know if further  
information would be helpful. Oh. Ruby version 1.8.6. Thanks!

Ben

---

<div class="post-metadata">

**Author:** ![Day](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Day](https://www.ruby-forum.com/u/Day)\
**Post date:** [February 8, 2008, 9:21am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493/2 "2008-02-08T09:21:00Z")

</div>

On Feb 8, 4:15 am, Day [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m back to SciTE for editing and Tortoise for SVNing.
> 
> I’m running Eclipse 3.3.1.1 on Windows XP. let me know if further  
> information would be helpful. Oh. Ruby version 1.8.6. Thanks!
> 
> Ben

I am using:  
Eclipse: Version: 3.3.1.1 Build id: M20071023-1652  
Subclipse: version 1.2.4  
Apatana PlugIn  
RadRails 0.8.0.200707021211

and haven’t encounter that kind of problems.  
Does it malfunction regarding requiring your files or in general?  
Perhaps you should use require File.expand\_path(File.dirname( **FILE** )

- your\_file\_relative\_path).

---

<div class="post-metadata">

**Author:** ![Day](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Day](https://www.ruby-forum.com/u/Day)\
**Post date:** [February 9, 2008, 3:37am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493/3 "2008-02-09T03:37:25Z")

</div>

On Feb 8, 2008 2:20 AM, Dejan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am using:  
> Eclipse: Version: 3.3.1.1 Build id: M20071023-1652  
> Subclipse: version 1.2.4  
> Apatana PlugIn  
> RadRails 0.8.0.200707021211

What’s Apatana?

> and haven’t encounter that kind of problems.  
> Does it malfunction regarding requiring your files or in general?  
> Perhaps you should use require File.expand\_path(File.dirname( **FILE** )
> 
> - your\_file\_relative\_path).

It complains about not being able to find the file. We’re using some  
init stuff that looks similar to that, but eclipse thinks it can’t  
find those, either. When I hand-add what you suggested, it works.  
But… I shouldn’t have to change my code to adapt to my IDE. That’s  
ridiculous. Does this maybe indicate that eclipse doesn’t… know  
where it is, sort of? Could it have to do with the fact that I added  
the .project and .loadpath to the SVN repository’s ignore list? That  
doesn’t seem to make sense.

Thanks for your suggestion, but I guess I’m still looking for the  
setting I need to twiddle to fix this.

Ben

---

<div class="post-metadata">

**Author:** ![Day](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Day](https://www.ruby-forum.com/u/Day)\
**Post date:** [February 9, 2008, 5:02am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493/4 "2008-02-09T05:02:26Z")

</div>

Nevermind my previous post, I misunderstood your problem.

---

<div class="post-metadata">

**Author:** ![Day](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@Day](https://www.ruby-forum.com/u/Day)\
**Post date:** [February 9, 2008, 5:00am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493/5 "2008-02-09T05:00:41Z")

</div>

Try adding:

require ‘rubygems’

at the beginning of your program, it won’t hurt your program when run  
in Linux, and will probably fix your problem on Windows.

Also check in the preferences, the paths to rake, rails and ruby.
