[ 
https://issues.apache.org/jira/browse/DERBY-4694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886347#action_12886347
 ] 

Kathey Marsden commented on DERBY-4694:
---------------------------------------

Removing the Header requirement did not help.

I will take a look and see why classes.jar is not getting picked up.  I think 
it knows it is a mac because  from antwithlibset.txt it sets:
setJdkProperties] Setting property java16compile.classpath to 
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/deploy.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/javaws.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/management-agent.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/plugin.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/sa-jdi.jar

but is missing classes.jar and the final fatal error is caused by the lack of 
it.
Fatal Error: Unable to find package java.lang in classpath or bootclasspath

It seems unhappy about the strange A directory
-> '/System/Library/Frameworks/JavaVM.framework/Versions/A'
[setJdkProperties] [verbose] rejected 
...
[setJdkProperties] [verbose] checking root 
'/System/Library/Frameworks/JavaVM.framework/Versions/A'
[setJdkProperties] Missing JDK directory: 
/System/Library/Frameworks/JavaVM.framework/Versions/A/Classes

Katherine-Marsdens-iMac:A kmarsden$ ls -l 
/System/Library/Frameworks/JavaVM.framework/Versions/A
total 160
lrwxr-xr-x   1 root  wheel      28 Jun 20 08:54 CodeResources -> 
_CodeSignature/CodeResources
drwxr-xr-x  42 root  wheel    1428 Jun 20 08:57 Commands
drwxr-xr-x   4 root  wheel     136 May 18  2009 Frameworks
-rwxr-xr-x   1 root  wheel  209888 May  6 22:20 JavaVM
drwxr-xr-x  32 root  wheel    1088 Jun 20 08:57 Resources
drwxr-xr-x   3 root  wheel     102 Jun 20 08:57 _CodeSignature
Katherine-Marsdens-iMac:A kmarsden$ pwd

Do you know what Versions/A is supposed to be?  Is it important to the build or 
can we just stick with the actual versions.  It doesn't look like a JDK in 
there.



> Build breaks on Mac OS X due to JDK classpath issues
> ----------------------------------------------------
>
>                 Key: DERBY-4694
>                 URL: https://issues.apache.org/jira/browse/DERBY-4694
>             Project: Derby
>          Issue Type: Bug
>          Components: Build tools
>    Affects Versions: 10.7.0.0
>         Environment: Mac OS X JDK 1.6
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>             Fix For: 10.7.0.0
>
>         Attachments: 1.6.0allfiles.txt, 1.6.0dirStructure.txt, 
> antPrintCompilerPropertiesVerbose.txt, antwithlibset.txt, 
> antwithpatch_diff.txt, derby-4694-1a.diff, derby-4694-2a-debugging.diff
>
>
> The Derby build breaks on OS X, apparently trying to use JDK 1.5/1.6  compile 
> classpath for JDK 1.4.
> A quick look indicates that PropertySetter is only using defaults when 
> configuring the classpaths, and this fails when OS X (?) creates symlinks 1.4 
> -> 1.6 and 1.5 -> 1.6.
> We should  investigate whether the current JAR inspection logic works on OS X 
> with Apple JDKs as well (it is currently used for Sun and IBM JDKs, as well 
> as for other / unknown JDKs).
> Issue was reported on derby-dev (see 
> http://db.markmail.org/thread/wqe73b27rknuezm7 ).
> See also this thread for a related issue that may affect OS X: 
> http://markmail.org/thread/7w24qwmvgxfctndi

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to