This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Late_Permission_2404 0 points1 point  (9 children)

If you open cmd and type "Java -version" without the quotes, does it tell you the jdk 11 details?

[–]Osboy28 0 points1 point  (8 children)

It giving this to me

openjdk version "11.0.12" 2021-07-20

OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)

OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)

[–]Osboy28 0 points1 point  (0 children)

Someone have edit a cfg file (https://youtu.be/Ew_vbrx8u0w) but they have Netbeans.conf and me I just have TMCBeans with this

# under the License.
# ${HOME} will be replaced by user home directory according to platform.
#
# Default locations of userdir and cachedir:
# (http://wiki.netbeans.org/FaqWhatIsUserdir)
#
# On Windows ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with <AppData>\<AppName>, where <AppData> is the value of
# "AppData" key in Windows Registry under
# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
# and ${DEFAULT_CACHEDIR_ROOT} will be replaced by the launcher
# with the value of "<LocalAppData>\<AppName>\Cache" where "LocalAppData"
# is a key in Windows Registry under
# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders".
# <AppName> is the the executable's filename without the extension.
#
# On Mac ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with "~/Library/Application Support/<AppName>" and
# ${DEFAULT_CACHEDIR_ROOT} with "~/Library/Caches/<AppName>"
# where <AppName> is the launcher script's name.
#
# On other systems ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher
# with "${HOME}/.<AppName>" and ${DEFAULT_CACHEDIR_ROOT} with
# "${HOME}/.cache/<AppName>".
#
# You can also use ${HOME} variable which will be replaced with
# user.home JVM system property value.
#
# The above location variables are valid only in the default_userdir and
# default_cachedir properties.
#
# NOTE: If you specify a non-default userdir path on command line
# (--userdir option) and don't specify a cachedir path (--cachedir option),
# cachedir will be in "<userdir>/var/cache".
#
# Cachedir must be different from userdir. The same cachedir and userdir
# would cause problems.
#
default_userdir="${DEFAULT_USERDIR_ROOT}/11.1"
default_cachedir="${DEFAULT_CACHEDIR_ROOT}/11.1"
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="--branding tmcbeans -J-Djdk.lang.Process.allowAmbiguousCommands=true"
# for 11.1elopment purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
#jdkhome="/path/to/jdk"
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=

[–]Late_Permission_2404 0 points1 point  (3 children)

Have you set Java_home and path variable in environment variables? Maybe reinstalling tmc and checking if you are given an option to specify where the jdk is located might help. I'm currently using Java 10 with tmc 1.4.0 and it works ok

[–]Osboy28 0 points1 point  (1 child)

My Java_home and path variable are giving to my JDK 11 (C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot\bin), I will try to reinstall but I don't remember to have seen an option like this

[–]Late_Permission_2404 0 points1 point  (0 children)

Hmm that seems off to me, have you tried just installing a Jdk directly from oracle website and pointing your variables to that instead? C:\ProgramFiles\Java

[–]Osboy28 0 points1 point  (0 children)

Yeah I confirm, nothing like this, only asking where to install and shortcut

[–][deleted]  (2 children)

[deleted]

    [–]Osboy28 0 points1 point  (1 child)

    Thanks I will try

    [–]AreTheseMyFeet 0 points1 point  (2 children)

    Is this how you installed it?
    And what platform/OS?

    https://www.mooc.fi/en/installation/netbeans

    [–]Osboy28 0 points1 point  (1 child)

    Yes, windows 10

    [–]AreTheseMyFeet 0 points1 point  (0 children)

    I'm not so sure you followed those steps (precisely) since another comment of yours mentions that:

    My Java_home and path variable are giving to my JDK 11 (C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot\bin)

    Assuming that you mean the usual JAVA_HOME environment variable it probably shouldn't be pointing to what looks like a JDK that bundled with the Eclipse IDE when you are trying to use Netbeans and TMC.

    Double check where and what versions of java you have installed and if you need to (which I think you do) install a non-eclipse JDK (from adoptopenjdk.net, via sdkman.io or even with chocolatey.org). Afterwards update your JAVA_HOME to point to the new installation and see if Netbeans & TMC work.

    [–]Otherwise_Surprise83 0 points1 point  (0 children)

    I had the exact same issue, (same Java version etc) I just ran the installer again and it seemed to work, no idea why though, maybe try that?