AdoptOpenJDK 8 issue on Windows 10 Enterprise

Lukasz S 1 Reputation point
2020-12-18T17:40:43.887+00:00

When I try to start Cassandra, I get this error message:

Exception (java.lang.UnsatisfiedLinkError) encountered during startup: C:\Users\<username>\AppData\Local\Temp\jna-3556498\jna1751679194795389333.dll: Can't find dependent libraries

\jna-3556498 folder is empty. There is only one account in the system, so its type is Administrator. I tried to run it as a built-in Administrator, but I have no access to this account. It was disabled by default, and when I activated it there should be no password configured, as far as I know.

When I try to run cmd as Administrator without providing the password the result is:

C:\Users\username>runas /user:Administrator cmd
Enter the password for Administrator:
Attempting to start cmd as user "DESKTOP-11O2F6G\Administrator" ...
RUNAS ERROR: Unable to run - cmd
1327: Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.

Was there any change to the built-in Administrator account recently? My company's IT support claims that the Windows image file was downloaded from Microsoft and hasn't been edited by them.

Please share any ideas how to start Cassandra with AdoptOpenJDK. It works fine with Amazon Corretto 8. Maybe it is because it does not use JNA.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. EckiS 916 Reputation points
    2020-12-21T17:48:44.597+00:00

    when your account already has admin rights, why would you need to run the app as the build in Administrator?
    did you see this: "unable to start the cassandra on windows 10 machine"
    CASSANDRA-15950

    1 person found this answer helpful.

  2. AliceYang-MSFT 2,106 Reputation points
    2020-12-21T09:08:23.317+00:00

    Hi,

    Sorry but AdoptOpenJDK 8 is not supported in Microsoft Q&A and in any Microsoft Own forums. I will remove our product tags and add the non-supported tag.

    Because I know nothing about AdoptOpenJDK and my colleagues also have no idea, I couldn't provide you with a third party forum which deals with this issue.

    As to build-in Administrator account, I’m not sure about what’s the meaning of “there is only one account in the system”. But if you have a work account, you can add it to the Administrators group. Then you can try whether running as administrator could help.

    • Search for Local users and groups, then open
    • In Groups, right click Administrators, then choose Properties
    • Add your work account

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. AliceYang-MSFT 2,106 Reputation points
    2020-12-23T03:31:06.547+00:00

    Hi,

    Sorry I was wrong. Built-in administrator account can be used to sign in the computer. It is an account, not a type.

    From the information you provided, your account is inactive so you cannot use it. Account active No

    You can use Get-LocalUser –Name “Administrator” | Enable-LocalUser to enable built-in administrator account.
    50596-account-active-yes.png

    If the result is Access Denied, you can use GUI to enable it.

    • Search for Local users and groups then open
    • In Users, right click on Administrator, choose Properties
    • Uncheck Account is disabled.
      50597-account-is-disabled.png
    • Apply

    Thank you for correcting me.

    Regards

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. Lukasz S 1 Reputation point
    2020-12-23T15:45:39.547+00:00

    I figured this out. net user commands on Administrator account do not work in cmd.exe although my user's account type is administrator. They have to be run in Windows PowerShell (Admin). Please explain this behavior.

    Starting Cassandra from a cmd with Administrator privileges didn't solve the issue with AdoptOpenJDK 8. It might be a library compatibility problem.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.