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

build in Windows 7 #21

Open
NeilMelb opened this issue Dec 10, 2018 · 8 comments
Open

build in Windows 7 #21

NeilMelb opened this issue Dec 10, 2018 · 8 comments

Comments

@NeilMelb
Copy link

Hi every-one

I'm having trouble building Openccg in Windows 7.

I have downloaded the most recent Java Development Kit. I have tried setting the CCG_HOME path to either the higher level openccg directory or the openccg/bin directory without success. I have located the javac file and pointed the JAVA_HOME path to that directory.

Whenever I try to run ccg-build at the cmd prompt (from either the bin or openccg directory) I get an error message that the system cannot find the path specified.

Any ideas?

many thanks

Neil

@dmhowcroft
Copy link
Contributor

Are you literally setting a variable named CCG_HOME or are you setting OPENCCG_HOME? I believe the latter is the one that OpenCCG expects to find.

Could you please copy and paste the error message that you're getting? (Anonymizing any directory names, etc, that you don't want shared, of course.)

Thanks!

@NeilMelb
Copy link
Author

NeilMelb commented Dec 11, 2018 via email

@dmhowcroft
Copy link
Contributor

Hi Neil,

I don't think your attachment got transferred to GitHub. I've never used the email interface before, but my guess is that you have to add attachments in the web view rather than emailing them.

The ccg-build.bat file probably doesn't work because it's trying to call ccg-env.bat at the start of the script, but you've moved the file down to OPENCCG_HOME. When you tried to run ccg-build before, were you running .\bin\ccg-build.bat from OPENCCG_HOME?

Cheers,
Dave

@NeilMelb
Copy link
Author

NeilMelb commented Dec 11, 2018 via email

@shoeffner
Copy link
Contributor

Hi Neil,

unfortunately, your attachment is still missing.

Please try not to move the build.xml to the bin directory, instead, go to your OPENCCG_HOME directory and run that command as @dmhowcroft mentioned above:

.\bin\ccg-build.bat

The reason is that

  • ccg-build expects some files to be in the right place
  • the build.xml contains path information relative to its current location, so if you move it, this information would also need to be changed.

If it still does not work, please try to attach your error log using the GitHub user interface or just copy it verbatim to your email text, not as an attachment.

Sebastian

@dmhowcroft
Copy link
Contributor

Hey Neil,

Just did a clean install of Python and Java 8 on my old Windows 7 laptop and was mostly able to follow the instructions in my tutorial. What I had to change:

  1. Small edit to ccg-build.bat
  2. Adding Python to the Path

For (1), I had to change the line call ccg-env to call .\bin\ccg-env. I think this is because my tutorial does not say to add $OPENCCG_HOME\bin to the system path and the ccg-build.bat script is looking for ccg-env.bat relative to the location where it's being called.

For (2), I right clicked on "My Computer" and opened properties, chose the "Advanced" tab and then "Environment Variables" to add ;C:\Python27 to the end of the Path variable (since that's where my python.exe is).

Please let me know if these solutions help you as well.

Cheers,
Dave

@NeilMelb
Copy link
Author

NeilMelb commented Dec 17, 2018 via email

@dmhowcroft
Copy link
Contributor

Hey @NeilMelb, have you had any luck with this?

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

3 participants