Jump to content
Excelsior Forums
Jane

Unable to run binary

Recommended Posts

Hello, 

I am using the trial version of excelsior jet. I am working on mac and have downloaded the version for it. However, my compiled binaries should work on aws unix. 

I have compiled my jar to a binary ( selected server in the distribution type ) and packaged it as single folder. However, I am not able to run it on my aws machine.

I am getting the error of 

Quote

cannot execute binary file

When running file <filename> I am getting the following:

Quote

Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL>

So the question is, how can I generate a binary of my jar for unix while I am running on mac. 

Thank you

 

Share this post


Link to post
Share on other sites

Hello Jane,

Currently Excelsior JET doesn't support cross-platform builds.
So in order to compile application for target Linux machine, you will need to use Excelsior JET for Linux, on a Linux building machine (either hardware or virtual machine can work).

Note however, that Excelsior JET doesn't support Unix targets except for OS X.
So if you are trying to compile for Unix (e.g. FreeBSD-based system), you can try compiling for Linux and running the application in Linux Binary Compatibility mode (see https://www.freebsd.org/doc/handbook/linuxemu.html).

We have not tested this approach, so it may or may not work for you or target Unix system.

Best Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×