user12585153
user12585153

Reputation:

Can Mac and Window users work together with openJDK8 using Eclipse?

Our team wants to use openJDK 8 (javac 1.8.0_265) on both mac and windows using Eclipse(2018-09).

Will there be any problems when sharing files etc?

Upvotes: 3

Views: 77

Answers (2)

Stephen C
Stephen C

Reputation: 719299

You could run into problems if you use the tab (HT) character for indentation. The default tab width on Mac OS is 8 spaces, but on Windows it is default. If you don't necessary steps, code written on Mac OS will look mis-indented on Windows and vice versa.

A solution: Make it part of your coding conventions that only space (SP) characters shall be used for indentation. Get everyone to adjust their IDE / editor settings to do this automatically.

Upvotes: 2

7u5h4r
7u5h4r

Reputation: 457

Java is compile once run anywhere compilation depends upon JDK. As it's same there won't be any issues

Upvotes: 0

Related Questions