Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:40:49+00:00 2026-05-26T12:40:49+00:00

I was looking for automating windows applications and was asked to explore with rautomation,

  • 0

I was looking for automating windows applications and was asked to explore with rautomation, which I just started using it.

Now, after going thru’ documentation on github and Jarmo’s few blogs, I am posting a very simple problem here and I am sure I am doing something very basic wrongly.

Here is my code –

>> require "rubygems"
=> true
>> require "rautomation"
=> true
>> @window = RAutomation::Window.new :title => "System Volume (C:)"
RuntimeError: unsupported platform for RAutomation: java
    from C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rautomation-0.6.3/lib/rautomation/adapter/helper.rb:16:in `default_adapter'
    from C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rautomation-0.6.3/lib/rautomation/window.rb:65:in `initialize'
    from (irb):10:in `new'
    from (irb):10

So, question is – what am I doing wrong?
Here, I am trying to get handle on windows explorer.

Done –
Done. The problem is with Jruby usage. If I use (plain) ruby with rubymine then I don’t get any problem.
Stackoverflow won’t allow me to close my question until I have 100 reputation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:40:50+00:00Added an answer on May 26, 2026 at 12:40 pm

    This happens because RAutomation was determining compatibility from the RUBY_PLATFORM. Next version will use OS Environment variable instead:
    https://github.com/jarmo/RAutomation/commit/dd825b04aab6d90cfedf385a620095c17da92644

    But, you could also use it with JRuby (it’s untested though, but it should work) right now by specifying the adapter itself so that #default_adapter method won’t be executed. You can do that in two ways:

    1) Specify the adapter to the Window.new method:

    RAutomation::Window.new(:title => //, :adapter => :win_ffi)
    

    2) Specify the adapter in the environment variable:

    set RAUTOMATION_ADAPTER=win_ffi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for information [I hesitate to infer Best Practices] for Automating Applications. I'm
I've just created a new rails application using command: rails blog Now I'm following
After looking through the code for building custom credential providers for Windows 7, I
I am looking for a good application that have capability for automating the Windows
The issue is that it's looking for the OLE Automation reference in C:\Windows\SysWOW64\stdole2.tlb Which
I am looking for a good GUI testing framework/automation testing tool for windows forms
I'm looking for some Best Practices for automating the deployment of Stored Procedures/Views/Functions/Table changes
I want to start automating more of my web development process so I'm looking
In the process of automating some code, I am looking to call upon a
It is pretty standard practice now for desktop applications to be self-updating. On the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.