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

  • Home
  • SEARCH
  • 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 8589177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:59:17+00:00 2026-06-11T22:59:17+00:00

I am having an issue with Apache’s Buildr complaining about an invalid source release.

  • 0

I am having an issue with Apache’s Buildr complaining about an invalid source release. Whenever I try and build my project I get the following error message;

javac: invalid source release: 1.7
Usage: javac <options> <source files>
use -help for a list of possible options
Buildr aborted!
RuntimeError : Failed to compile, see errors above

One would assume I don’t have Java 7 installed on my system, but when I execute javac -version I get javac 1.7.0-u10-b08, which is the OpenJDK I just installed.

What is going on here? My first guess would be that Buildr is running the wrong version of Java but I have no idea how to fix or confirm that.

To give some background to this question, I am running Mac OS X version 8 (Mountain Lion) and have installed the OpenJDK from http://code.google.com/p/openjdk-osx-build/. I am using RVM to manage Ruby and installed Buildr using env JAVA_HOME=$JAVA_HOME gem install buildr as recommend in the documentation. My JAVA_HOME is set to /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home, which is where I installed the OpenJDK.

If anyone could help me here I would really appreciate it.

UPDATE:
It really looks like Buildr is just not respecting my JAVA_HOME. I went in and unchecked the system version (version 6) of Java in the Java Preferences and now I get a different error,

JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
Buildr aborted!
RuntimeError : can't create Java VM
  • 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-11T22:59:18+00:00Added an answer on June 11, 2026 at 10:59 pm

    I had a look at this and it looks to be a bug somehow related to the way that RJB on OSX works. RJB is the library that Buildr uses to interact with the JVM. Essentially RJB does not seem to allow the configuration of the JVM without setting some environment variables (possibly at build time?). See http://rjb.rubyforge.org/.

    There are two main ways to work around this;

    • use the external compiler by adding something like “compile.using(:externaljavac)” into your buildfile.
    • use JRuby.

    I will look into what is required to solve this correctly for the next release (1.4.8).

    Update

    Fixed in 1.4.8 – a work around for 1.4.7 is to set the JVM_LIB environment variable like

    export JVM_LIB=$JAVA_HOME/jre/lib/server/libjvm.dylib
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are having this issue with our production servers (apache-tomcat-7.0.6), which is running a
Moving my website to a new webhost, I'm having an issue with apache /
I am having a strange issue with apache and ssh, that I can correlate
I'm having an issue deploying my Flask app with Apache (mod_wsgi) and gevent on
Trying to set up a new spring project and im having this issue where
I'm having an issue with Apache (2.2) on Windows. I basically have 2 Wordpress
I´m having serious trouble to get Django to work with my Apache/mod_wsgi installation accessing
I'm having an issue with Railo 3.1.0 running under Apache on Windows Server 2003.
I'm having rewrite issues. http://test.bradp.com/drupal/Crocodile-Style/1 works OK. http://test.bradp.com/drupal/Crocodile-Style/ DOES NOT WORK. Apache throws a
Having issue with slider navigation. Works perfectly fine when there are no other unordered

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.