# Help finding "JRE" to run Netbeans in Linux

**URL:** <https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006>\
**Category:** Rails\
**Created:** [January 14, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006 "2008-01-14T17:04:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/1 "2008-01-14T17:04:35Z")

</div>

I’ve spent the last year developing a large Ruby on Rails 2.0  
application with over a 100 tables and controllers and hope to be  
deploying it soon.  
Before I moved from my Windows XP computer to deployment, I wanted to  
run it in a local Linux environment to sort out:

1. Amazon S3 files
2. RMagick (went south when I upgraded to Rails 2.0)
3. ARMailer (mail spooling program)

I’ve installed Ubuntu 7.10 and feel running the scripts to install  
Ruby and Rails are reasonable straightforward. I plan to run an Nginx  
server with multiple Mongrel clusters using Capistrano.  
What’s killing me is installing a graphic development environment such  
as Radrails (which I love on Windows XP) or Netbeans.  
Understand that I’ve been through the routine of installing “sudo apt-  
get install sun-java6-jre” many times. Once, for some unknown reason  
my Netbeans 6.0 came up fine (as it found the JRE location on its  
own), but I was unsure how it happened and elected to re-install my  
Ubuntu and try again.  
Anyway, I’m able to install the Netbeans to the point where it asks  
for the location of the “JRE”. The one time that it worked, this value  
was automatically filled in when Netbeans started for the first time.  
When I run “java -version” I get the latest 1.6 installation but  
can’t find out where the “JRE” is located. I’ve looked MANY places.  
Anyway, I’m desperate to move this project along and am happy to hire  
someone to consult on this matter.  
I am grateful for your reply.  
Kathleen Kennedy  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/2 "2008-01-14T17:46:24Z")

</div>

Your Java Runtime Edition should be somewhere in:

/usr/java/jre1.6.0\_??/

It MIGHT instead be somewhere around here:

/usr/lib/jvm/java-6-sun-1.6.0.00

If that doesn’t work… then I’m out of ideas, 🙂

-Ryan

On Jan 14, 10:03 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 14, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/3 "2008-01-14T18:11:05Z")

</div>

> On Jan 14, 10:03 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:

> > Understand that I’ve been through the routine of installing “sudo apt-  
> > get install sun-java6-jre” many times.

…which I previously pointed out is the wrong approach. But maybe  
you’re just a glutton for punishment 🙂 whatever.

> > Anyway, I’m able to install the Netbeans to the point where it asks  
> > for the location of the “JRE”. The one time that it worked, this value  
> > was automatically filled in when Netbeans started for the first time.  
> > When I run “java -version” I get the latest 1.6 installation

So what does running `which java` produce?

Have you tried the `find` command at all?

Again, you wouldn’t be wasting time on this if you installed using the  
simple, straightforward Sun installer.

## FWIW,

Hassan S. ------------------------ removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 1:43am UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/4 "2008-01-15T01:43:45Z")

</div>

Netbeans requires JDK not JRE. You will need the java sdk download  
rather  
than the runtime.

-A

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/5 "2008-01-15T23:39:12Z")

</div>

Another point. NetBeans 6.0 is not compatible with Rails 2.0. You  
are using 2.0 right?  
It seems like you have two options:

1. Install the pre-release version of 6.1 which has everything needed  
to run Rails 2.0. But Tor warns that since this is a pre-release  
version, anything goes.
2. Install JRuby 1.0.3 I believe and point NetBeans 6.0 to it.  
How? I don’t know. I am new to NetBeans and Rails 2.0 myself.

Bharat

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 16, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/help-finding-jre-to-run-netbeans-in-linux/126006/6 "2008-01-16T20:07:31Z")

</div>

You need the java JDK not the JRE. Also netbeans can be used with the  
ruby  
sdk and hence all gems (including rails) that you will be available.

You don’t need Jruby and you don’t need 6.1 netbeans. Though the  
scaffolding  
would not work because of the change in args. You can however use the  
console for that.

-A
