Ticket #27680 (closed defect: wontfix)
db46: alternate solution for missing Java headers
| Reported by: | torstensteinert@… | Owned by: | blair@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | ||
| Port: | db46 |
Description (last modified by ryandesign@…) (diff)
Configuring db64 fails due to missing Java header files. The files are not really missing, but rather in a different directory than searched for. Here is the output:
---> Configuring db46 Error: db46 requires the Java for Mac OS X development headers. Error: Download the Java Developer Package from: <https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719> Error: Target org.macports.configure returned: missing Java headers Error: Failed to install db46 Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
After searching the web, the problem solves by creating a link:
sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers
Change History
comment:1 follow-up: ↓ 4 Changed 2 years ago by ryandesign@…
- Keywords missing java headers, db64 removed
- Owner changed from macports-tickets@… to blair@…
- Summary changed from Error: Target org.macports.configure returned: missing Java headers to db46: alternate solution for missing Java headers
- Port set to db46
- Description modified (diff)
comment:2 Changed 2 years ago by torstensteinert@…
As far as I understand, I already had the Java developer package installed. Else I would not have been able to fix this by creating the link (see ticket-description). Could the directory of the header files have changed in the last java version?
comment:3 Changed 2 years ago by jmr@…
- Status changed from new to closed
- Resolution set to wontfix
We're not going to modify /System. Yes, the last Java update removed the headers and you need to install the corresponding developer package update to get them back.
comment:4 in reply to: ↑ 1 Changed 2 years ago by cionzo@…
- Status changed from closed to reopened
- Resolution wontfix deleted
Replying to ryandesign@…:
The solution we have thus far recommended is the one you quoted in the error message, i.e., download and install the Java developer package from Apple.
Hi, I tried to apply the proposed solution, but it doesn't work. What should I do?
comment:5 Changed 2 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to wontfix
Ask for help via the appropriate channels (not the bug tracker).


The solution we have thus far recommended is the one you quoted in the error message, i.e., download and install the Java developer package from Apple.
P.S: Please remember WikiFormatting.