Comment 3 for bug 254587

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.
>