NetBeans installer asks where to look for the JVM during the install. Or you could use the Snap package, for the most carefree installation on Ubuntu (and other Linuxes as well)

sudo snap install netbeans --classic

On 12/26/20 9:04 AM, Bayless Kirtley wrote:

This is how Netbeans installed by default. I made no changes or specifications.


On 12/26/20 10:30 AM, Laszlo Kishalmi wrote:

NetBeans "works" with that setting as it finds the /usr/bin/java symlink to run the IDE with, but then the (Default) platform won't able to resolve the bootstrap libraries (mods or rt.jar)

It is the best to leave netbeans_jdkhome unspecified or set it to a real JDK directory like /usr/lib/jvm/java-14-openjdk-amd64

On 12/26/20 5:35 AM, Bayless Kirtley wrote:

That's very interesting. I just checked my netbeans.conf file and it shows

netbeans_jdkhome="/usr"

I am running Netbeans 12.0 on Mint 20.0 and I don't have any problems with it.

Bayless


On 12/26/20 3:18 AM, Owen Thomas wrote:
No. Now that you mention it, the value doesn't seem reasonable to me either. So, I changed it to /usr/lib/jvm/java-14-openjdk-amd64 and the problems go away. Thanks Geertjan - hopefully that's the end of that.

I'm sure I just downloaded and installed NetBeans without thinking too hard, so I don't know how that could have been set.

On Sat, 26 Dec 2020 at 19:55, Geertjan Wielenga <[email protected] <mailto:[email protected]>> wrote:

    netbeans_jdkhome="/usr"

    That's what I see in your file above and that can't be right,
    can it?

    Gj


    On Sat, Dec 26, 2020 at 8:19 AM Owen Thomas
    <[email protected]
    <mailto:[email protected]>> wrote:

        Sure Geertjan, here is netbeans.conf from
        ~/netbeans-12.2/netbeans/etc which is the default directory
        in which NetBeans was installed.

        On Sat, 26 Dec 2020 at 16:37, Geertjan Wielenga
        <[email protected]
        <mailto:[email protected]>> wrote:

            Can you send your netbeans.conf file here so we can see
            what is in there?

            Gj

            On Sat, 26 Dec 2020 at 06:10, Owen Thomas
            <[email protected]
            <mailto:[email protected]>> wrote:

                On Mon, 30 Nov 2020 at 19:32, Peter Hull
                <[email protected]
                <mailto:[email protected]>> wrote:

                    I would check:
                    1. Does your Java platform setup look
                    reasonable? (in Tools | Java Platforms )
                    2. Does this error occur for a new project or
                    just existing ones? (e.g. set up a new "Java
                    with Ant" application)
                    I think I've seen something like this before
                    and it was down to the Java platform
                    configuration.


                Hello again. Having acquired my new laptop, I am
                setting it up and have encountered the same problem
                that I was having when I earlier installed NetBeans
                12.2 on another computer. The other was, and the
                new one is running Ubuntu 20.04.

                I tried to create a new project, and I found that
                the error was also occurring; namely that java.lang
                could not be found on almost every line of source code.

                When I look at the Java Platforms dialogue as
                advised by Peter, it presents two entries: "Java
                14" and "Java 14 (Default)". The first entry looks
                fine, but the second one appears to be amiss
                because as the attached screenshot shows that it is
                missing apparent details. The remove option also
                appears to be disabled, so I'm currently at a loss.
                How do I get rid of this second entry?

                  Owen.

                
---------------------------------------------------------------------
                To unsubscribe, e-mail:
                [email protected]
                <mailto:[email protected]>
                For additional commands, e-mail:
                [email protected]
                <mailto:[email protected]>

                For further information about the NetBeans mailing
                lists, visit:
                
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to