# How to use webdriver to run java code from remote server

**URL:** <https://discuss.appium.io/t/how-to-use-webdriver-to-run-java-code-from-remote-server/38369>\
**Category:** Support\
**Created:** [January 25, 2023, 12:39am UTC](https://discuss.appium.io/t/how-to-use-webdriver-to-run-java-code-from-remote-server/38369 "2023-01-25T00:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yooj](https://discuss.appium.io/user_avatar/discuss.appium.io/yooj/32/10994_2.png) [@yooj](https://discuss.appium.io/u/yooj)\
**Post date:** [January 25, 2023, 12:39am UTC](https://discuss.appium.io/t/how-to-use-webdriver-to-run-java-code-from-remote-server/38369/1 "2023-01-25T00:39:53Z")

</div>

Hi, I want to develop this structure.

server-client  
server: has java code(test code)  
client: has appium server

1. client give http request to server
2. server give test code(.java or .jar) to client
3. client run this test code

Is this structure impossible?

Before, I have already develop similar structure.  
server: have client start appium server(through ssh) and then do test command (through ssh)  
client: has own test codes

These two structures differ depending on who has the test code.  
I can develop a structure that client has test code, but a structure that server has test code is difficult.

I would appreciate it if you could let me know if there is a solution 🙂 !!
