开发者

Get the eclipse version on Mac OS X

开发者 https://www.devze.com 2023-01-29 17:25 出处:网络
How can I get the version of eclipse(x32 or x64 ) in 开发者_运维百科OS X?You can use the file command to get more information about a file:

How can I get the version of eclipse(x32 or x64 ) in 开发者_运维百科OS X?


You can use the file command to get more information about a file:

$ file /Applications/Preview.app/Contents/MacOS/Preview 
/Applications/Preview.app/Contents/MacOS/Preview: Mach-O universal binary with 2 architectures
/Applications/Preview.app/Contents/MacOS/Preview (for architecture x86_64): Mach-O 64-bit executable x86_64
/Applications/Preview.app/Contents/MacOS/Preview (for architecture i386):   Mach-O executable i386

As you can see, /Applications/Preview.app/Contents/MacOS/Preview (the executable file for Preview) is both 32- and 64-bit. Substitute the path to Eclipse’s executable and you should be able to find out.


Run Activity Monitor while Eclipse is running. There is a column called 'Kind' which shows whether an app is running in 32 or 64-bit mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号