Opened 18 years ago
Closed 18 years ago
#102 closed defect (fixed)
Java API does not build against JNI headers for installed JDK
Reported by: | trevorwekel | Owned by: | trevorwekel |
---|---|---|---|
Priority: | medium | Milestone: | 1.2 |
Component: | Web API | Version: | 1.2.0 |
Severity: | major | Keywords: | |
Cc: | External ID: | 933120 |
Description
The Java API does build cleanly against an installed JDK on Windows. It will generate an error trying to find the "jni.h" header.
Change History (3)
comment:1 by , 18 years ago
Status: | new → assigned |
---|---|
Summary: | Java API build does not build against JNI headers for installed JDK → Java API does not build against JNI headers for installed JDK |
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in changeset http://trac.osgeo.org/mapguide/changeset/1648/
Note:
See TracTickets
for help on using tickets.
Further investigation has shown that the build setup requires hard coded paths in Visual Studio 2005 for both the Java jni include files and the Java binaries. This is completely different than the Linux build which simply uses JAVA_HOME.
I have switched the Visual Studio build to also use JAVA_HOME. It is a cleaner solution and consistent with the Linux build procedure.