<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>819</bug_id>
          
          <creation_ts>2013-08-22 05:55:18 +0200</creation_ts>
          <short_desc>compilation fails to locate JavaVM.framework/Libraries</short_desc>
          <delta_ts>2013-10-05 02:16:33 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>macosx</component>
          <version>2</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ricardo Fabbri">rfabbri</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2903</commentid>
    <comment_count>0</comment_count>
    <who name="Ricardo Fabbri">rfabbri</who>
    <bug_when>2013-08-22 05:55:18 +0200</bug_when>
    <thetext>Compilation fails as follows

rfabbri@MacBook-Pro:~/src/jogl/make$ ant

...
BUILD FAILED
/Users/rfabbri/src/jogl/make/build.xml:71: The following error occurred while executing this line:
/Users/rfabbri/src/jogl/make/build-nativewindow.xml:740: The following error occurred while executing this line:
/Users/rfabbri/src/jogl/make/build-nativewindow.xml:681: /System/Library/Frameworks/JavaVM.framework/Libraries does not exist.



This is Mac OSX 10.8.4 and git branch master 2cb2845</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2915</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-08-29 15:44:09 +0200</bug_when>
    <thetext>(In reply to comment #0)
&gt; Compilation fails as follows
&gt; 
&gt; rfabbri@MacBook-Pro:~/src/jogl/make$ ant
&gt; 
&gt; ...
&gt; BUILD FAILED
&gt; /Users/rfabbri/src/jogl/make/build.xml:71: The following error occurred
&gt; while executing this line:
&gt; /Users/rfabbri/src/jogl/make/build-nativewindow.xml:740: The following error
&gt; occurred while executing this line:
&gt; /Users/rfabbri/src/jogl/make/build-nativewindow.xml:681:
&gt; /System/Library/Frameworks/JavaVM.framework/Libraries does not exist.
&gt; 
&gt; 
&gt; 
&gt; This is Mac OSX 10.8.4 and git branch master 2cb2845

Thanks. We should not rely on this particular directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3044</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-05 02:16:33 +0200</bug_when>
    <thetext>We only define (gluegen-cpptasks-base.xml):

+++

  &lt;target name=&quot;setup.java.home.dir.macosx&quot; if=&quot;isOSX&quot;&gt;
      &lt;!-- Java7 std location --&gt;
      &lt;condition property=&quot;java.home.dir&quot;
                 value=&quot;${java.home}/..&quot;&gt;
                 &lt;available file=&quot;${java.home}/../include/jni.h&quot;/&gt;
      &lt;/condition&gt;
      &lt;condition property=&quot;java.includes.dir&quot;
                 value=&quot;${java.home}/../include&quot;&gt;
                 &lt;available file=&quot;${java.home}/../include/jni.h&quot;/&gt;
      &lt;/condition&gt;
      &lt;!-- Fallback value Java6 --&gt;
      &lt;property name=&quot;java.home.dir&quot; value=&quot;/System/Library/Frameworks/JavaVM.framework/Home&quot; /&gt;
      &lt;property name=&quot;java.includes.dir&quot; value=&quot;/System/Library/Frameworks/JavaVM.framework/Headers&quot; /&gt;
  &lt;/target&gt;
  ...
      &lt;condition property=&quot;java.includes.dir.platform&quot;
                 value=&quot;${gluegen.root.abs-path}/make/stub_includes/jni/macosx&quot;&gt;
                 &lt;available file=&quot;${java.includes.dir}/darwin/jawt_md.h&quot;/&gt;
      &lt;/condition&gt;
      &lt;condition property=&quot;java.lib.dir.platform&quot;
                 value=&quot;${java.home.dir}/jre/lib&quot;&gt;
                 &lt;available file=&quot;${java.home.dir}/jre/lib/libjawt.dylib&quot;/&gt;
      &lt;/condition&gt;
      &lt;!-- Fallback value Java6 --&gt;
      &lt;property name=&quot;java.includes.dir.platform&quot; value=&quot;/System/Library/Frameworks/JavaVM.framework/Headers&quot; /&gt;
      &lt;property name=&quot;java.lib.dir.platform&quot;      value=&quot;/System/Library/Frameworks/JavaVM.framework/Libraries&quot; /&gt;

+++

.. hence if java7 is installed and PATH is set accordingly, i.e.:

JAVA_HOME=`/usr/libexec/java_home -version 1.7`
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH

and will use the proper &apos;java.home&apos; env. var and all shall work.
See e.g. gluegen/make/scripts/make.gluegen.all.macosx-clang.sh (similar script in jogl).

build-nativewindow.xml in jogl only uses:
  &lt;syslibset dir=&quot;${java.lib.dir.platform}&quot; libs=&quot;jawt&quot; if=&quot;@{output.lib.name}.useLibJAWT&quot;/&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>