microsoft / team-explorer-everywhere

Team Explorer Everywhere Plugin for Eclipse
Other
300 stars 96 forks source link

JDK 9 - No output on stdout/stderr #237

Closed spoorcc closed 11 months ago

spoorcc commented 6 years ago

With following versions:

When running ./tf with any command, there is no output whatsoever in the terminal. When downgrading to java 1.8.144 everything works as expected.

The command java -version does return output

niklashallenfur commented 6 years ago

Trying again: I had the same problem, has to do with Java 9. Problem and solution described here: TEE CLC not working on Mac

spoorcc commented 6 years ago

Thanks, that might solve it. I'm pressed for time, so I downgraded to Java 8 for now. This could then be fixed in clc-launcher if somebody wants to make the world a better place by adding --add-modules java.xml.bind to the exec java call.

axelgenus commented 6 years ago

This issue affects also the Windows version and the proposed solution linked by rcnicke works also on Windows.

My environment:

cypherfunc commented 6 years ago

I have the same env as @axelgenus , but I can't get @rcnicke 's fix to work. I added the flag java –-add-modules java.xml.bind -Xmx2048M -cp... but command prompt is throwing an error: Error: Could not find or load main class GÇô-add-modules Caused by: java.lang.ClassNotFoundException: GÇô-add-modules

EDIT: Worked it out, my PATH was pointing to java.exe in the JRE instead of the JDK.

YasserMojahed commented 6 years ago

I have upgraded my Android Studio to version 3 then I faced the same issue with TF. first I added this "--add-modules java.xml.bind" to "tf" but it still gave me the same exception. I added it to "tf.cmd" then it worked. I hope that wont has bad effects on "commit changes", "show diff" and other TFS - android studio functions should I go back and remove "--add-modules java.xml.bind" ? or it must work now?

eric-milles commented 11 months ago

java.xml.bind dependency removed in release 14.135.0