Your jvm does not support the architecture required for the version of eclipse you have installed: -d64

78 views
Skip to first unread message

Matara Ma Sukoy

unread,
Apr 28, 2018, 2:09:20 PM4/28/18
to eclim-user
Hi all,

I built eclim from source (following the steps on http://eclim.org/#how-do-i-get-install-it) However, when I try to run eclimd, I get the following error:

Your jvm does not support the architecture required for the version of eclipse you have installed: -d64

eclim version: 2.7.2
eclipse version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
java -version: "10.0.1" 2018-04-17
                        Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
                        Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
OS: Ubuntu 16.4 LTS 


An ugly fix: It turns out, oracle jdk doesn't have a -d64 option (but openjdk-1.8 does). So, I commented following lines 215-220 in eclimd and changed the last line to not use architecture flags. 

    # if ! $($JAVA $ARCH -version 2> /dev/null) ; then
    #   echo "Your jvm does not support the architecture required " \
    #     "for the version of eclipse you have installed: $ARCH"
    #   exit 1;
    # fi
    # ECLIM_VMARGS=($ARCH "${ECLIM_VMARGS[@]}")
    ECLIM_VMARGS=("${ECLIM_VMARGS[@]}")


Hope this helps.


Eric Van Dewoestine

unread,
Apr 28, 2018, 2:19:17 PM4/28/18
to eclim...@googlegroups.com
Can you post the result of running:

$ java -version

Oracle jdk use to support architecture flags, but it looks like they
dropped them in jdk 10:
https://bugs.java.com/view_bug.do?bug_id=JDK-8180286

On 2018-04-28 11:09:20, Matara Ma Sukoy wrote:
> Hi all,
>
> I built eclim from source (following the steps
> on http://eclim.org/#how-do-i-get-install-it) However, when I try to run
> eclimd, I get the following error:
>
> *Your jvm does not support the architecture required for the version of
> eclipse you have installed: -d64*
>
> *eclim version: 2.7.2*
> *eclipse version: Oxygen.3a Release (4.7.3a) **Build id: 20180405-1200*
> *java -version: "10.0.1" 2018-04-17*
> * Java(TM) SE Runtime Environment 18.3 (build
> 10.0.1+10)*
> * Java HotSpot(TM) 64-Bit Server VM 18.3 (build
> 10.0.1+10, mixed mode)*
> *OS: Ubuntu 16.4 LTS *
>
>
> *An ugly fix:* It turns out, oracle jdk doesn't have a -d64 option (but
> openjdk-1.8 does). So, I commented following lines *215-220 in eclimd* and
> changed the last line to not use architecture flags.
>
> # if ! $($JAVA $ARCH -version 2> /dev/null) ; then
> # echo "Your jvm does not support the architecture required " \
> # "for the version of eclipse you have installed: $ARCH"
> # exit 1;
> # fi
> # ECLIM_VMARGS=($ARCH "${ECLIM_VMARGS[@]}")
> ECLIM_VMARGS=("${ECLIM_VMARGS[@]}")
>
>
> Hope this helps.
>
>
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to eclim-user+...@googlegroups.com.
> To post to this group, send email to eclim...@googlegroups.com.
> Visit this group at https://groups.google.com/group/eclim-user.
> For more options, visit https://groups.google.com/d/optout.


--
eric

Matara Ma Sukoy

unread,
Apr 28, 2018, 2:43:28 PM4/28/18
to eclim-user
Yeah, look like it. 

Here it is:

~$ java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)



28 Nisan 2018 Cumartesi 21:19:17 UTC+3 tarihinde Eric Van Dewoestine yazdı:

Matara Ma Sukoy

unread,
Apr 28, 2018, 2:49:57 PM4/28/18
to eclim-user
Forgot to add:

~$ java -d64
Unrecognized option: -d64
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


28 Nisan 2018 Cumartesi 21:43:28 UTC+3 tarihinde Matara Ma Sukoy yazdı:

Eric Van Dewoestine

unread,
Apr 30, 2018, 11:54:58 AM4/30/18
to eclim...@googlegroups.com
Should be fixed on master.

https://github.com/ervandew/eclim/commit/3b04188ef4849006cc0bd66e648efdeb4deb40d7

On 2018-04-28 11:43:28, Matara Ma Sukoy wrote:
> Yeah, look like it.
>
> Here it is:
>
> *~$ java -version*
> > an email to eclim-user+...@googlegroups.com <javascript:>.
> > > To post to this group, send email to eclim...@googlegroups.com
> > <javascript:>.
Reply all
Reply to author
Forward
0 new messages