# Error when installing JRuby

**URL:** <https://www.ruby-forum.com/t/error-when-installing-jruby/142137>\
**Category:** Rails\
**Created:** [July 3, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/error-when-installing-jruby/142137 "2008-07-03T19:34:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phseth2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@phseth2001](https://www.ruby-forum.com/u/phseth2001)\
**Post date:** [July 3, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/error-when-installing-jruby/142137/1 "2008-07-03T19:34:05Z")

</div>

Whenever I try to install JRuby, I get the following error. This is on  
AIX 5.3-5.

root@nycserv-deva-app1nim:/usr/local/bin/ruby\_inst/jruby-1.1.2\>bin/jruby  
rubyfile.rb  
The java class is not found: org.jruby.Main

The only pre-req I am missing is Apache Ant. When I go to install that,  
I get the following.

/usr/local/bin/apache\_inst/apache-ant-1.7.0\>sh build.sh install-lite

src/main/org/apache/tools/ant/taskdefs/Delete.java:583: cannot find  
symbol  
symbol : method add(org.apache.tools.ant.types.resources.Restrict)  
location: class org.apache.tools.ant.types.resources.Sort  
s.add(exists);  
^  
src/main/org/apache/tools/ant/util/ResourceUtils.java:181: incompatible  
types  
found : org.apache.tools.ant.types.resources.selectors.Or  
required:  
org.apache.tools.ant.types.resources.selectors.ResourceSelector  
r.add(new And(new ResourceSelector[] {Type.FILE, new Or(  
^  
src/main/org/apache/tools/ant/util/ResourceUtils.java:181: cannot find  
symbol  
symbol : method add(org.apache.tools.ant.types.resources.selectors.And)  
location: class org.apache.tools.ant.types.resources.Restrict  
r.add(new And(new ResourceSelector[] {Type.FILE, new Or(  
^  
src/main/org/apache/tools/ant/types/resources/selectors/Or.java:50:  
cannot find symbol  
symbol : method getSelectors()  
location: class org.apache.tools.ant.types.resources.selectors.Or  
for (Iterator i = getSelectors(); i.hasNext()😉 {  
^  
src/main/org/apache/tools/ant/types/resources/selectors/And.java:50:  
cannot find symbol  
symbol : method getSelectors()  
location: class org.apache.tools.ant.types.resources.selectors.And  
for (Iterator i = getSelectors(); i.hasNext()😉 {  
^  
Note: \* uses or overrides a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.  
Note: Some input files use unchecked or unsafe operations.  
Note: Recompile with -Xlint:unchecked for details.  
47 errors  
… Failed compiling Ant classes !  
Bootstrap FAILED

Has anyone seen this before.  
Param

---

<div class="post-metadata">

**Author:** ![phseth2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@phseth2001](https://www.ruby-forum.com/u/phseth2001)\
**Post date:** [July 3, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/error-when-installing-jruby/142137/2 "2008-07-03T20:17:16Z")

</div>

On Thu, Jul 3, 2008 at 12:34 PM, Param Seth  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Whenever I try to install JRuby, I get the following error. This is on  
> AIX 5.3-5.
> 
> root@nycserv-deva-app1nim:/usr/local/bin/ruby\_inst/jruby-1.1.2\>bin/jruby  
> rubyfile.rb  
> The java class is not found: org.jruby.Main

Have you considered using the binary distribution?

[http://dist.codehaus.org/jruby/jruby-bin-1.1.2.tar.gz](http://dist.codehaus.org/jruby/jruby-bin-1.1.2.tar.gz)

Ant is not required to get up and running with it.

/Nick

---

<div class="post-metadata">

**Author:** ![phseth2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@phseth2001](https://www.ruby-forum.com/u/phseth2001)\
**Post date:** [July 3, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/error-when-installing-jruby/142137/3 "2008-07-03T20:27:08Z")

</div>

I did, but I am still getting this error:

root@nycserv-deva-app1nim:/usr/local/bin/apache\_inst2/jruby-1.1.2/bin\>jruby  
rubyfile.rb  
The java class is not found: org.jruby.Main

JAVA\_HOME is set to /usr/java5

Any ideas?

Nick S. wrote:

> On Thu, Jul 3, 2008 at 12:34 PM, Param Seth  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Whenever I try to install JRuby, I get the following error. This is on  
> > AIX 5.3-5.
> > 
> > root@nycserv-deva-app1nim:/usr/local/bin/ruby\_inst/jruby-1.1.2\>bin/jruby  
> > rubyfile.rb  
> > The java class is not found: org.jruby.Main
> 
> Have you considered using the binary distribution?
> 
> [http://dist.codehaus.org/jruby/jruby-bin-1.1.2.tar.gz](http://dist.codehaus.org/jruby/jruby-bin-1.1.2.tar.gz)
> 
> Ant is not required to get up and running with it.
> 
> /Nick
