Question: how to use jsr223 preprocessor in jmeter?
Answer: First of all you need to choose a scripting language. ... 
Add HTTP Request and put google.com into "Server Name or IP"
Add JSR223 PreProcessor as a child of the HTTP Request and put the following line into "Script" area: sampler.setDomain("example.com");
Add View Results Tree listener and run the test.