Use parameters on setOption 

By using string concatenation it's adding -Jthreads=1 -Jthreads=2 etc to the options instead of replacing the -Jthreads option value.