<?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>1034</bug_id>
          
          <creation_ts>2014-07-21 23:03:53 +0200</creation_ts>
          <short_desc>example scripts in &quot;doc&quot; area do not run from source in mingw environment</short_desc>
          <delta_ts>2014-07-21 23:03:53 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Peter Kennard">peterk</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <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>4029</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kennard">peterk</who>
    <bug_when>2014-07-21 23:03:53 +0200</bug_when>
    <thetext>I am just starting to explore using gluegen to C&lt;--&gt;java binding and started looking at the example[1 .. n] scripts in the &quot;doc/manual&quot; area in the source distribution.

The shell script for doc/manual/example1/gen.sh did not run under the mingw bash shell.

To get it to run on a mingw shell on a windows machine this is what I encountered:

#!/bin/ksh doesn&apos;t exist in the mingw install so it wont run from mingw bash shell (I switched it to #!/bin/bash)

- The classpath wasn&apos;t in quotes.
- The path to the antlr jar file was wrong.
- The GlueGen package path has changed. (it&apos;s now com.jogamp.gluegen instead of com.sun.gluegen)

I also set it to look at JAVA_HOME to find java as it wasn&apos;t in my base path in the shell. *(I need to switch between 32 and 64 bit at times)

Once I fixed the above the gluegen I built ran and output code properly when running the sample script.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>