Results 1 to 8 of 8

Thread: Java version problems

  1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    15
    Answers
    1

    Default Answered: Java version problems

    I have Java 1.8 installed and when I start Architect it gives me an error that 1.7 is required. WTF?

  2. I see.

    That means that there is an error with Sencha Cmd itself.
    Cmd should be fully compatible with version Java 1.8.

    So you installed manually Sencha Cmd at:
    Code:
    C:/Users/sm0396/bin/Sencha/Cmd/6.1.3.42/
    Please navigate to this folder via terminal (windows cmd) and try to run command:
    Code:
    sencha.exe service start
    If it runs correctly (no errors shown) - it means that your manually installed Cmd works but the one bundled with SA for some reason does not work on your system.

    So if it runs correctly - delete the folder
    Code:
    C:/Users/sm0396/bin\Sencha\Architect/Cmd/6.1.3.42/
    And copy there the Cmd folder from your default installation
    Code:
    C:/Users/sm0396/bin/Sencha/Cmd/
    Or you could in SA preferences set the path for the Cmd folder as this:
    Attachment 54911

  3. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Hi

    Are you on OS X? On OS X there might be default Java 1.6 in the system. The SA might be picking this java instead of the installed one.

    Could you check the java version in your terminal?
    Code:
    java -version
    Also the newest installers for Java can automatically set the java path correctly. I would try to install latest 1.8 JRE installer if it does not any trouble to you.

    Regards
    Petr

  4. #3
    Sencha User
    Join Date
    Mar 2014
    Posts
    15
    Answers
    1

    Default

    Actually I'm on Windows 7.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    java -version:
    java version "1.8.0_91"
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
    Last edited by Valdhor; 6 Aug 2016 at 7:31 AM. Reason: Add Java Version info

  5. #4
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Btw and where are you getting this error? The installer?

  6. #5
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    If it's the installer there should be an option to locate the java binary file.

    Also make sure that if you have SA 64bit installer that you have 64bit java and if you have SA 32 bit installer that you have 32 bit java.
    FYI 64 bit SA installer is highly recommended.

    I tried the installer without java and after installing latest JRE and it runs fine on my windows machine.

    Code:
    java -versionjava version "1.8.0_101"
    Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

  7. #6
    Sencha User
    Join Date
    Mar 2014
    Posts
    15
    Answers
    1

    Default

    I updated my Java to the latest version:

    Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    java -version
    java version "1.8.0_102"
    Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

    I have installed Sencha Architect 4.0.0 Build 112 for 64-bit Windows. When I start SA I get:
    =============================================================================
    Architect cannot start one of its internal parts. Sencha cmd used by Architect should be located at:

    C:\Users\sm0396\bin\Sencha\Architect\Cmd

    See the output from the Cmd service:

    C:\Program Files\Sencha\Sencha Architect 4.0.0>"C:/Users/sm0396/bin\Sencha\Architect\Cmd/6.1.3.42/sencha" service start error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required. Error: could not find java dll Error: Could not find Java Runtime Environment. =============================================================================

    Note that I also have Sencha cmd installed at:

    sencha which
    Sencha Cmd v6.1.3.42
    C:/Users/sm0396/bin/Sencha/Cmd/6.1.3.42/
    Last edited by Valdhor; 6 Aug 2016 at 8:33 AM. Reason: Formatting

  8. #7
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    I see.

    That means that there is an error with Sencha Cmd itself.
    Cmd should be fully compatible with version Java 1.8.

    So you installed manually Sencha Cmd at:
    Code:
    C:/Users/sm0396/bin/Sencha/Cmd/6.1.3.42/
    Please navigate to this folder via terminal (windows cmd) and try to run command:
    Code:
    sencha.exe service start
    If it runs correctly (no errors shown) - it means that your manually installed Cmd works but the one bundled with SA for some reason does not work on your system.

    So if it runs correctly - delete the folder
    Code:
    C:/Users/sm0396/bin\Sencha\Architect/Cmd/6.1.3.42/
    And copy there the Cmd folder from your default installation
    Code:
    C:/Users/sm0396/bin/Sencha/Cmd/
    Or you could in SA preferences set the path for the Cmd folder as this:
    6Jz028URswKCyj4KHAT9jIw1EHVxE.jpg

  9. #8
    Sencha User
    Join Date
    Mar 2014
    Posts
    15
    Answers
    1

    Default

    Excellent. Thank you. I did the first part (Delete non working folder and copy working folder). Worked like a charm.

Similar Threads

  1. Replies: 16
    Last Post: 7 Mar 2013, 8:26 AM
  2. Java version to use with Windows 1.2.3 SDK on WIn 7 x64
    By fordprefect in forum Sencha Cmd
    Replies: 1
    Last Post: 23 Mar 2012, 2:33 PM
  3. Java Version Support?
    By tdiehl in forum Sencha GXT Q&A
    Replies: 7
    Last Post: 24 Jan 2012, 9:47 AM
  4. Replies: 1
    Last Post: 23 Aug 2009, 1:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •