Netbeans startup/module-loading warning/error

Bug #254587 reported by Luka Marinko
10
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: netbeans

Using: Ubuntu 8.04.1 full updated (upgraded from gutsy)

Everything installs fine.
When trying to start the ide from menu I get the following error: (screen shot attached)

"""
Warning - could not install module JPDA Debugger API
 JPDA Debugger API - This module requires JDKHOME/lib/tools.jar to be accessible.
This file was not found. Usually this means you are trying to run the IDE with the JRE instead of the full JDK.
If so, please use the --jdkhome command line option to specify a JDK installation.
"""

Workaround
=======

If I start the program from cli with:

$netbeans --jdkhome /usr/lib/jvm/java-6-openjdk

everything works fine, no errors and ide works great.

Related branches

Revision history for this message
Luka Marinko (luka-marinko) wrote :
Revision history for this message
Marek Slama (mslama-email) wrote :

What is content of /etc/netbeans.conf? Postinstall step should detect either sun-java6 or openjdk-6 and set it in netbeans.conf.

Revision history for this message
Luka Marinko (luka-marinko) wrote : Re: [Bug 254587] Re: Netbeans startup/module-loading warning/error

Content of /etc/netbeans.conf :

BEGIN COPY:

~$ cat /etc/netbeans.conf
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.0"

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m
-J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none
-J-Dapple.laf.useScreenMenuBar=true"
# (Note that a default -Xmx is selected for you automatically.)

# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled
-J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="/usr/lib/jvm/java-6-sun"

# Additional module clusters, using ${path.separator} (';' on Windows
or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

END_PASTE

Looks like it detects java-sun package.

Could this be result of upgrading from Gutsy ? (I installed sun java in gutsy)

On Mon, Aug 4, 2008 at 5:51 PM, Marek Slama <email address hidden> wrote:
> What is content of /etc/netbeans.conf? Postinstall step should detect
> either sun-java6 or openjdk-6 and set it in netbeans.conf.
>
> --
> Netbeans startup/module-loading warning/error
> https://bugs.launchpad.net/bugs/254587
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "netbeans" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: netbeans
>
> Using: Ubuntu 8.04.1 full updated (upgraded from gutsy)
>
> Everything installs fine.
> When trying to start the ide from menu I get the following error: (screen shot attached)
>
> """
> Warning - could not install module JPDA Debugger API
> JPDA Debugger API - This module requires JDKHOME/lib/tools.jar to be accessible.
> This file was not found. Usually this means you are trying to run the IDE with the JRE instead of the full JDK.
> If so, please use the --jdkhome command line option to specify a JDK installation.
> """
>
> Workaround
> =======
>
> If I start the program from cli with:
>
> $netbeans --jdkhome /usr/lib/jvm/java-6-openjdk
>
> everything works fine, no errors and ide works great.
>

Revision history for this message
Marek Slama (mslama-email) wrote :

I assume you have folder /usr/lib/jvm/java-6-sun present on your system but package sun-java6-jdk is not installed. Problem is in netbeans postinstall step which has test for presence jdk but it is not specific enough. We will fix it in next release. As workaround you can use --jdkhome on command line or fix netbeans_jdkhome property in /etc/netbeans/conf.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netbeans - 6.1-0ubuntu1

---------------
netbeans (6.1-0ubuntu1) intrepid; urgency=low

  * New upstream release. (LP: #253016)
   - Updated Standards-Version to 3.8.0
   - Patches updated. (LP: #206324)
   - Cleaned up debian/rules
   - Updated postinstall script. (LP: #254587)

 -- Yulia Novozhilova <email address hidden> Tue, 29 Jul 2008 19:43:23 +0400

Changed in netbeans:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.