how to create a bundled runnable jar using Ant

后端 未结 4 1810
滥情空心
滥情空心 2020-12-03 06:06

I looked at this question, but it didn\'t really solve my problem, so I figured I\'d post a new one.

I need to create a runnable jar (runnable simply by double click

4条回答
  •  醉话见心
    2020-12-03 06:42

    This is more of a general solution for making executable jar files but this is the code I use:

    
    
    
    
    
        
        
    
        
        
    
        
        
    
        
        
    
        
        
    
        
        
    
            
            
    
            
            
        
    
        
        
    
            
            
        
    
        
        
    
            
            
                
    
                    
                    
    
                    
    
                    
                    
    
                    
    
                
            
    
            
            
        
    
    

    I've used this structure to make many different executable jar files, plus it is simpler than what you had :-)

    All data put in the manifest tags under the jar tags will become an automatically generated manifest file with the given data.

提交回复
热议问题