java - Eclipse jar export and lib folder -


i've java project use external jar library, when export project eclipse (file-export-runnable jar file), select option "copy external libraries subfolder next main jar" , eclipse automatically create me folder named :

myjarname_lib 

i want export library in folder named lib , possible ? i've tried rename folder in lib don't work, because executable jar don't recognize library in folder. how can change name of external lib ?

here workaround: when run export wizard, there checkbox create ant buildfile. choose location buildfile inside project somewhere, finish export. open buildfile created (you might need hit "f5" refresh project). replace "myprojectname_lib" "lib". on, use "run -> ant build" exports instead of eclipse built-in.

the drawbacks buildfile independent of project , seems manage copying each dependency individually. if change dependencies of project, have manually update file correct exports.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -