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

huangapple go评论70阅读模式
英文:

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

问题

我们的团队希望在Mac和Windows上使用Eclipse(2018-09)来使用openJDK 8(javac 1.8.0_265)。

在共享文件等方面会有任何问题吗?

英文:

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?

答案1

得分: 2

你如果使用制表符(HT)进行缩进,可能会遇到问题。在Mac OS上,默认的制表符宽度为8个空格,而在Windows上则是默认设置。如果你不采取必要的步骤,用在Mac OS上编写的代码在Windows上看起来会缩进错误,反之亦然。

解决方法:将其作为你的编码约定的一部分,只能使用空格(SP)字符进行缩进。让每个人调整他们的IDE/编辑器设置,以便自动进行此操作。

英文:

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.

答案2

得分: 0

Java是一次编译,随处运行的语言,编译依赖于JDK。由于JDK相同,不会出现任何问题。

英文:

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

huangapple
  • 本文由 发表于 2020年9月27日 22:53:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/64089797.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定