How to include jars in lib into project jar file in Netbeans?

后端 未结 5 1582
生来不讨喜
生来不讨喜 2020-12-04 10:33

I\'m using some apache HttpClient jars, so I put them in my project\'s lib directory, when Netbeans compiles the project, it copies the lib and generated a project jar into

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 10:48

    1. check MainClass main file is updated as main file in Properties>run
    2. Update Build.xml with following code before project tag closes

    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
        
    
        
            
        
    
    
    
    
    
        
    
    
    
    

    1. Properties>packaging> tick all
    2. clean and build
    3. Upload to server.

提交回复
热议问题