Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with the OpenJDK class library on windows #517

Open
manvir-singh opened this issue Jan 28, 2017 · 1 comment
Open

Building with the OpenJDK class library on windows #517

manvir-singh opened this issue Jan 28, 2017 · 1 comment

Comments

@manvir-singh
Copy link

manvir-singh commented Jan 28, 2017

How can I build with the openjdk classlibrary on windows? I've been able to successfully compile avian without openjdk, but avian is missing some classes I need so i want to use openjdk. But I can't get openjdk to work. Running the below command
make openjdk=path-to-openjdk
Gives me class not found error. I don't even know where to get openjdk for windows from. I was able to find a version by Red Hat, but it seems to not work.

I'm using MSYS2

@dicej
Copy link
Member

dicej commented Feb 6, 2017

Hi. I just successfully built and ran an OpenJDK build on Windows using Cygwin:

mkdir /work
cd /work
git clone [email protected]:dicej/avian
git clone [email protected]:readytalk/win64
wget https://github.com/ojdkbuild/ojdkbuild/releases/download/1.8.0.121-1/java-1.8.0-openjdk-1.8.0.121-1.b13.ojdkbuild.windows.x86_64.zip
# extract the above using Windows Explorer's "Extract All..." command; using Cygwin's unzip will give incorrect file permissions
cd avian
export JAVA_HOME=/work/java-1.8.0-openjdk-1.8.0.121-1.b13.ojdkbuild.windows.x86_64/
make openjdk=$JAVA_HOME test

Sorry, I don't use MSYS2, so I don't have any advice there. If you want to try Cygwin, be sure to install the git, wget, mingw64-i686-gcc-g++, and mingw64-x86_64-gcc-g++ packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants