can't find javah on mac

315 views
Skip to first unread message

Clebert Suconic

unread,
Nov 18, 2013, 5:24:29 PM11/18/13
to mave...@googlegroups.com
Hello, I'm trying to contribute some native code to Netty, and Norman Maurer (one of the Netty devs) has used nar-maven-plugin to build it...


I'm at the moment using Mac, and I have my JDK installed. I have define JAVA_HOME and JAVA_HOME/bin on the path... and still:


[INFO] Running /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/javah compiler on 2 classes...

[ERROR] /bin/sh: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/javah: No such file or directory


No matter what I do it's getting javah from /jre...  



It seems this is cool BTW. I have used maketimes and automake for HOrnetq/libaio.. and this seems much easier.. so if someone could help me go through this pitfal I would appreciate it.



Thanks,


Clebert

Curtis Rueden

unread,
Nov 18, 2013, 6:01:16 PM11/18/13
to Clebert Suconic, NAR Maven plugin
Hi Clebert,

No matter what I do it's getting javah from /jre...  

This is a known issue with some versions of Java on OS X, and/or newer versions of OS X itself:

The javah issue is biting us too, so I will work on resolving it tomorrow, and reply back again when I have something to report.

Regards,
Curtis


--
You received this message because you are subscribed to the Google Groups "NAR Maven plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-nar+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Curtis Rueden

unread,
Nov 20, 2013, 2:09:18 PM11/20/13
to Clebert Suconic, NAR Maven plugin
Hi Clebert,

> No matter what I do it's getting javah from /jre...

This issue has now been fixed on the nar-maven-plugin master branch:

It was a problem with how JAVA_HOME was calculated on OS X with Java7.

Care to try building your project again with a new SNAPSHOT and see how it goes?

Regards,
Curtis

Clebert Suconic

unread,
Nov 20, 2013, 2:42:56 PM11/20/13
to Curtis Rueden, NAR Maven plugin
Awesome.. that's fixed.. thanks a lot..


Any idea when this will be released on maven repository?

I'm good for now, but soon after I apply the patch I will need other devs to also compile it.


(sending again as I sent just to Curtis before by accident)

Clebert Suconic

unread,
Nov 20, 2013, 2:57:42 PM11/20/13
to Curtis Rueden, NAR Maven plugin
I liked this so much that I'm thinking of changing HornetQ's native build from autobuild (which sucks) into nar-maven...


the only thing I require on HornetQ is to be able to specify libaio-devel as a package... I'm still finding my way on this configuration...

So, I will need this deployed / uploaded.. any idea on the release schedule?

Curtis Rueden

unread,
Nov 23, 2013, 1:39:52 PM11/23/13
to Clebert Suconic, NAR Maven plugin
Hi Clebert,

I will need this deployed / uploaded.. any idea on the release schedule?

We are planning to release 3.0.0-rc-1 to Sonatype Central before Friday.

Regards,
Curtis

Norman Maurer

unread,
Nov 23, 2013, 1:42:29 PM11/23/13
to Curtis Rueden, Clebert Suconic, NAR Maven plugin
@Clebert: Seems like we can make great use of it in HornetQ and Netty then :)

@Curtis: Keep up the awesome work!

-- 
Norman Maurer
Reply all
Reply to author
Forward
0 new messages