Showing posts with label eclipse mac os x. Show all posts
Showing posts with label eclipse mac os x. Show all posts

Wednesday, March 18, 2015

How to identify mac os Eclipse is 32 bit or 64 bit ?

These are the flags you can look at to identify whether your Mac Eclipse is 32 bit or 64 bit ?

Navigate to this menu:
Eclipse ->About Eclipse -> Click on "Installation Details" -> Click on "Configuration" tab->

And look for these parameters:

macosx
-ws
cocoa
-arch
x86_64

Here x86_64 represents 64 bit eclipse.

For 32 bit eclipse, you will find only x86. 
macosx
-ws
cocoa
-arch
x86


There are few more parameters that also represent the same.
org.osgi.framework.processor=x86-64
osgi.arch=x86_64

Friday, December 12, 2014

Editing PATH and JAVA_HOME variables in Mac OS X


Step 1: Open up a Terminal window (this is in your Applications/Utilites folder by default)

Step 2: Enter the follow commands:

touch ~/.bash_profile; open ~/.bash_profile

This will open the .bash_profile file in Text Edit (the default text editor included on your system). The file allows you to customize the environment your user runs in.

Step 3: Add the following line to the end of the file adding whatever additional directory you want in your path:

PATH=/Applications/Kony_Studio/Kony/Java/jdk1.7.0_67.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin

export JAVA_HOME=/Applications/Kony_Studio/Kony/Java/jdk1.7.0_67.jdk/Contents/Home


Resources:
http://hathaway.cc/post/69201163472/how-to-edit-your-path-environment-variables-on-mac

Monday, October 13, 2014

-vm in eclipse.ini is not considered during the eclipse launch in mac os x

I was facing this issue, I have multiple Java versions installed in my Mac system and I wanted to change my eclipse default Java version.

I have configured -vm parameter in eclipse.ini file in mac os x, but some how this parameter didn't take effect.
-vm
Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java

To resolve this issue, I have followed the below link.
http://stackoverflow.com/questions/10352715/how-do-i-run-eclipse-using-oracles-new-1-7-jdk-for-the-mac

What worked for me is, configuring libjvm.dylib path in the eclipse.ini file and info.plist file.

eclipse.ini
-------------
-vm
Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/server/libjvm.dylib

info.plist
----------
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/server/libjvm.dylib</string>
</array>

Add above entry in the last.

info.plist file can be found in below location:
Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents

Where can I find configured default Java/JRE in my Mac OS X system

Go to below location to find the installed JDK versions in your mac machine.

/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/

Thursday, September 11, 2014

eclipse -clean option in mac os x


1. Go to eclipse directory
2. Find Eclipse Application
3. Right click on  Eclipse Application
4. It will show "Show Package Contents" menu option
4. Click on Show Package Contents
5. Go to Contents folder
6. Go to MacOS folder
7. Open the terminal
8. Drag the MacOS directory to terminal for change directory(ex: cd <macos directory>)
8. execute this " ./eclipse -clean"

eclipse.ini file in Mac os x

1. Go to eclipse directory
2. Find Eclipse Application
3. Right click on  Eclipse Application
4. It will show "Show Package Contents" menu option
4. Click on Show Package Contents
5. Go to Contents
6. Go to MacOS
7. Look for eclipse.ini file


Tuesday, November 26, 2013

Eclipse Mac: Cocoa SWT

Recently I started working on Mac eclipse, and i was trying to understand what is the underlying SWT library.

They are using Cocoa SWT.

Cocoa is Apple's native object-oriented application programming interface (API) for the OS X operating system.

More @ http://en.wikipedia.org/wiki/Cocoa_(API)


SWT will have 2 plugins:

org.eclipse.swt  => swt core plugin
org.eclipse.swt.cocoa.macosx => Native interface calls to Mac OS X


Seems to be cocoa is supported from eclipse 3.5 version
More @ http://www.eclipse.org/swt/cocoaport.php

Download @ http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.3-201306052000/swt-4.3-cocoa-macosx.zip

Wednesday, November 6, 2013

SAP JCo libraries for Mac OS

SAP JCo(Java Connectors) libraries would be required to connect to the SAP server.  Basically it will have sap JCo ‘jar’ file as well as sap JCo native library file.
For example. If you are connecting using JCo3 jars, below would be required based on the operating system.
§  sapjco3.jar: JCo Java runtime libraries – This would be same for 32 bit and 64 bit systems
§  [prefix]sapjco3.[extension]: JNI runtime library that contains JCo native code. The target operating system determines the prefix and file name extension:
§  Windows: sapjco3.dll
§  MacOS: libsapjco3.jnilib

Note: Ensure that the libraries you use are correct for your 32-bit or 64-bit system.
.


Navigation view scrollbar is not visible in Eclipse Mac OS but visible in windows OS

Have you ever encountered an issue with scrollbars in eclipse, especially in navigation views or application views, which is visible in windows or but does not appear in Mac OS system.

Then reason could be with the Mac system preferences. Please follow below steps to enable the scrollbar in Mac.

1. Go to Mac Menu( Apple icon), you will find this in the top left corner of the system.
2. Click on 'System Preferences'.
3. Click on 'General' item from the ‘Personal’ section.
4. You can find 'Show scroll bars’ section.
5. Select ' Always' radio button.

This will enable the scrollbar in the navigation view, without this option also scrollbar will be there, just that you will not be able to realize that there is a scrollbar unless you start dragging in navigation view.


Please find the screenshot for system preferences configuration.


Friday, October 18, 2013

Eclipse Mac OS: Hyperlinks are not working in welcome page

Have you ever come across the issue, where hyperlinks is not working in Mac OS Eclipse but it works in Windows OS.

We had faced this issue with the welcome page, where hyper links are not working. The reason was, href links with target=”_blank” is causing the issue.

We couldn't see any other solution other than removing it.


To understand about target attribute in html @ http://www.w3schools.com/tags/att_a_target.asp

Similar thread on the same topic @  https://code.google.com/p/android/issues/detail?id=41109