<?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>1526</bug_id>
          
          <creation_ts>2025-08-22 08:00:14 +0200</creation_ts>
          <short_desc>JarUtil::getJarBasename: Remove &apos;.jar&apos; suffix check of result</short_desc>
          <delta_ts>2025-08-22 08:06:58 +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.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>978a9661c1b9e28ecd02612d85a9ded7bde1878c</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7243</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-22 08:00:14 +0200</bug_when>
    <thetext>PLarsson reported incompatibility using jogamp&apos;s fat jar wrapped in an exe by launch4j.
See https://forum.jogamp.org/No-Jar-name-in-Errors-tp4028798p4043856.html

This code...
```
if(0 &gt;= ssp.lastIndexOf(&quot;.jar&quot;)) {
    throw new IllegalArgumentException(&quot;No Jar name in &lt;&quot;+classJarUri+&quot;&gt;&quot;);
}
```
... checks that the archive file name contains &quot;.jar&quot;, not that it actually ends in &quot;.jar&quot;. This has the interesting side effect that if I just rename my ReallyAwesomeProgram.exe to f.ex. ReallyAwe.jarsomeProgram.exe, everything suddenly works!

So... my usecase technically works, but is hindered by this file name check, which is incorrect so I can bypass it in ugly ways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7244</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-22 08:06:58 +0200</bug_when>
    <thetext>commit 978a9661c1b9e28ecd02612d85a9ded7bde1878c
fixed as described.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>