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 8440057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:10:50+00:00 2026-06-10T08:10:50+00:00

I created a simple app to demonstrate my issue. In this system, I updated

  • 0

I created a simple app to demonstrate my issue.

In this system, I updated the application.rb to allow me to update System properties by adding the lines

require 'java'
include Java
import Java::JavaLang::System

This has no impact when running typical rails tasks like rails server or rails console, but rake tasks fail.

rake java_system:test

results in

rake aborted!
can't convert Class into String

Any ideas on how to get rake working?

  • 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-06-10T08:10:52+00:00Added an answer on June 10, 2026 at 8:10 am

    Pretty simple solution. Apparently rake defines its own import method which messes with import in jruby. Calling java_import instead fixes the issue!

    source

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Starting from an issue I had on my code, I've created this simple app
I have created a simple app and this is my folder structure lib/book.rb lib/user.rb
Here's a simple android app I've created to demonstrate my problem: public class OptionMenuTest
I have created very simple app with persistence context (hibernate as provider) to read
Could anyone guide me in created a simple app in JS? What the app
I've created a simple iPhone app which has two .xib files. In the app
I have created a simple web app/form using google app engine. the site is
Hy guys. I've created a simple blog app with the usual CRUD actions. I've
I created a simple private messaging app through rails, but I am trying to
I have created a small and simple android app. I tried installing it on

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.