How can I include external jar on my Netbeans project

后端 未结 12 2776
挽巷
挽巷 2020-11-27 06:25

When I run \"clean and build\" the .jar file that is being created only runs if the lib folder is at the same folder of the .jar file.

12条回答
  •  野性不改
    2020-11-27 07:22

    You can also use this (when the libraries are not in "dist/lib"), tested with NetBeans and ant-contrib:

    	
    		
    		  
    			
    			
    		  
    		
    
    		
    		
    
    		
    		
    		
    		
    		
    
    		
    		
    				
    		
    			
    		
    		
    		
    			
    				
    			
    		
    
    		
    		
    		
    		
    			
    				
    				
    			
    		
    
    		
    			
    			
    
    			
    				
    			
    		
    
    		
    
    		
    			
    		
    
    		
    
    	

提交回复
热议问题