File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed 
bindings/java/src/main/java/io/github/ggerganov/whispercpp Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1038,7 +1038,7 @@ jobs:
10381038          models\download-ggml-model.cmd tiny.en 
10391039          cd bindings/java 
10401040          chmod +x ./gradlew 
1041-           ./gradlew build 
1041+           ./gradlew build --info  
10421042
10431043name : Upload jar 
10441044        uses : actions/upload-artifact@v4 
Original file line number Diff line number Diff line change 88import  io .github .ggerganov .whispercpp .params .WhisperContextParams ;
99import  io .github .ggerganov .whispercpp .params .WhisperFullParams ;
1010
11+ class  JnaDebugHelper  {
12+     static  {
13+         System .out .println ("JNA Library Path: "  + System .getProperty ("jna.library.path" ));
14+         System .out .println ("Working directory: "  + System .getProperty ("user.dir" ));
15+ 
16+         if  (System .getProperty ("jna.library.path" ) != null ) {
17+             java .io .File  libraryFile  = new  java .io .File (System .getProperty ("jna.library.path" ), System .mapLibraryName ("whisper" ));
18+             System .out .println ("Library file exists: "  + libraryFile .exists () + " at "  + libraryFile .getAbsolutePath ());
19+         }
20+     }
21+ }
22+ 
1123public  interface  WhisperCppJnaLibrary  extends  Library  {
24+     JnaDebugHelper  DEBUG_HELPER  = new  JnaDebugHelper ();
25+ 
1226    WhisperCppJnaLibrary  instance  = Native .load ("whisper" , WhisperCppJnaLibrary .class );
1327
1428    String  whisper_print_system_info ();
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments