Remote Windows Run Target
已回答
Hi,
I'm trying to setup a run target on a windows machine and I'm having a few issues.
I'm using mac to develop a jar with JNI bindings to a windows dll. So I want to write code on my mac and run it on a windows VM.
I am trying to leverage ssh and run targets.
What I have done so far:
- Created an SSH configuration to the Windows VM
- Created a Java run target using the SSH configuration
- Installed cygwin with sshd and rsync on the Windows VM
- Tried to run it from intellij
I encountered 2 issues:
- When rsyncing files, intellij syncs the maven dependencies and the project classes to the same directory even though I have setup different folders for “project path on target” and “classpath folder” in the run target configuration. What happens is that first intellij syncs all the jars from maven dependencies to the remote folder. Than, intellij runs rsync for project files to the same folder and this deletes the maven jars (because the project compiled classes folder is synced with --delete). I fixed this by unchecking “use rsync” but this makes the sync very slow (mainly it copies all the files on each run, even if they didn't change)
- When intellij tries to run the program, it uses linux style paths in the java classpath. E.g. java -classpath /cygwin/c/deployment/example.jar… Since this is actually a windows machine and the installed JVM is a windows executable, this does not work. I tried using openssh on the vm without cygwin but this fails with ssh error.
Has anyone tried to create such a setup (run target on windows machine)?
请先登录再写评论。
Hello, Doron Tohar. Unfortunately, Windows targets are not properly supported for now. Please consider upvoting this bug report to show you're affected by this problem.