Opened 16 years ago
Closed 8 years ago
#2469 closed defect (worksforme)
Java bindings fail to build due to bad JAVA_HOME
Reported by: | mnidel | Owned by: | aaime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | JavaBindings | Version: | 1.5.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
Ant build fails on Windows XP (VC 9.0) for java bindings due to extra quotes around path with spaces.
Error message:
set JAVA_HOME="C:\Program Files\Java\jdk1.5.0_14" C:\apache-ant-1.6.3\bin\ant
Files\Java\jdk1.5.0_14"" was unexpected at this time. NMAKE : fatal error U1077: 'C:\apache-ant-1.6.3\bin\ant.BAT' : return code '0xff '
Removing the following line from swig/java/makefile.vc solves the problem:
set JAVA_HOME="$(JAVA_HOME)"
It appears that some other step in the build initialization is adding quotes to the JAVA_HOME, and this line doubles the quotes to a string like
""C:\Program Files...""
A patch is attached.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | makefile.vc.javahome.patch added |
---|
comment:1 by , 10 years ago
There is still the row set JAVA_HOME="$(JAVA_HOME)" as row 16 in http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/makefile.vc
I believe that people have still built java bindings with java in Windows "program files" during these six years. Perhaps the issue has been corrected in some other way?
comment:2 by , 8 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Java bindings can't have been broken all these years, let's say "worksforme", read "worksforsomebody".
patch to fix this issue