Access Keys:
Skip to content (Access Key - 0)
 

Openremote on Win 64Bit

Frank

On Mar 06, 2010 14:23

Hi
I am trying to setup Openremote on a Windows 2008R2 Server which is apparently 64Bit only.
After I figured out, that there are is a mistake in the setup document (like the Java Variable isn't named JRE_HOME but JAVA_HOME) and that Openremote seems to dislike a path with spaces (Like Program Files), I installed it to c:\openremote and tried to run \bin\openremote run. Result is a failure, reading
"Files was unexpected at this time"

Any ideas what went wrong ? Is Openhouse in general working on a 64 Bit System ?

Thanks a lot

Regards
Frank

 
Labels:
Participants: Administrator , Juha Lindfors , Matthias , Frank
  1. Mar 06, 2010

    Juha Lindfors says:

    "Files was unexpected at this time" This would seem to indicate you are still t...

    "Files was unexpected at this time"

    This would seem to indicate you are still trying to run something from "Program Files".

    1. Mar 06, 2010

      Frank says:

      Hi Juha Hm...could it be that the program has a problem with the JRE being ins...

      Hi Juha

      Hm...could it be that the program has a problem with the JRE being installed to "c:\program files(86)\java" ? (which is the default path on x64 systems)

      Thanks
      Frank

      1. Mar 07, 2010

        Juha Lindfors says:

        Possible. Does your JAVA_HOME env variable still contain spaces?

        Possible. Does your JAVA_HOME env variable still contain spaces?

      2. Mar 08, 2010

        Matthias says:

        Initially I had the same issue on my Win7 x64. Installation path of my JRE6 (64-...

        Initially I had the same issue on my Win7 x64. Installation path of my JRE6 (64-bit version) is C:\Program Files\Java\jre6. Problem was, that there were quotes around the variable string. I.e. if you type

        set JRE_HOME

        in the command line, it should say

        JRE_HOME=C:\Program Files\Java\jre6

        and not

        JRE_HOME="C:\Program Files\Java\jre6"

        If so, try changing it accordingly.

        Unfortunately, there does not seem to be a way to check on this inside a batch script (at least not that I know).

        1. Mar 09, 2010

          Frank says:

          Hi Matthias I've tried it with and without quotes. With them, I receive the "Fi...

          Hi Matthias

          I've tried it with and without quotes. With them, I receive the "Files unepectec" error, without it reads:

          "The JAVA_HOME environment variable is not defined correctly
          This environment variable is needed to run this program
          NB: JAVA_HOME should point to a JDK not a JRE"

          This is when the variable is either set to C:\Program Files (x86)\Java or to C:\Program Files (x86)\Java\jre6

          It looks like i'd need to install Java into the root of c:, so the path would read c:\java\jre6...

          What as well puzzles me is the hint that the variable needs to point to a JDK, not a JRE, whereas the install documentation refers to a JRE...

          Cheers
          Frank

          1. Mar 09, 2010

            Matthias says:

            Hi Frank! Here's a copy of the comments from the batch file: JAVA_HOME: M...

            Hi Frank!

            Here's a copy of the comments from the batch file:

            JAVA_HOME: Must point at your Java Development Kit installation. Required to run the with the "debug" argument.
            JRE_HOME: Must point at your Java Runtime installation. Defaults to JAVA_HOME if empty.

            Your JRE_HOME is probably empty, thus the script uses JAVA_HOME. You could try any of the following options:

            • Download a JDK from hereand install it. Then set the JAVA_HOME to its installation path.
            • Set JRE_HOME to C:\Program Files (x86)\Java\jre6 (without quotes) and set JAVA_HOME to empty.

            Setting any of JAVA_HOME or JRE_HOME to C:\Program Files (x86)\Java (without jre6 or jdk6) will not work (unless you changed the default path when you installed it, of course). Reinstalling the JRE in the root of C: might avoid other problems in the future, but most likely will also not fix this issue.

            Cheers
            Matthias

            1. Mar 09, 2010

              Frank says:

              Hi Matthias seems I wasn't able to describe what I did clearly, sorry for that:...

              Hi Matthias

              seems I wasn't able to describe what I did clearly, sorry for that: I've done all the stuff you mentioned above already, with no success so far.

              What helped finally, was CLEARING the JAVA_HOME variable and setting JRE_HOME as a user-variable instead of a system-variable.

              The reason I was setting the JAVA_HOME variable intially, was because of the output the batch script gave me (saying, JAVA_HOME was empty...). So this was missleading me.

              Anyway, now the script runs and I can go through the next steps. Thanks so far for your help and patience !

              Cu
              Frank

              1. Mar 09, 2010

                Administrator says:

                Glad to hear you got it working. I've somewhat limited capability to test thing...

                Glad to hear you got it working.

                I've somewhat limited capability to test things in Windows environment at the moment, so if there are any improvements that could be made to the batch scripts, please consider sending patches.

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license