Eclipse AVRDude Error - Mac OS X Yosemite - eclipse

i'm using Eclipse Indogo on Mac OS 10.10 and i'm tryig to program an avr atmega 16.
While setting up eclipse I installed all dependencies like Elcipse CDT, avr-elcipse plugin and the CrossPack AVR Development Tools.
But when I try to add a nex Programmer configuration in Eclipse->Preferences->AVRDude I get this Error:
AVRDude executable can not be found.
Cannnot run AVRDude executable.
Why is this? Seems like there is a problem running AVRDude on Yosemite?

You can change the path that the Eclipse IDE uses to execute avrdude. Click on the "Paths" tab right below "AVRDude", click on the avrdude path, edit, then choose custom.
Mine was in "/usr/local/CrossPack-AVR/bin" and that worked for me.

Related

Menu options in eclipse are disable

Options in the eclipse menu drop down are disabled like shown below.
Couldn't find a way to enable them. Is there any way other than using new eclipse instance.
I think this issue can be solved with the following:
Quit eclipse.
Open your Terminal.
Navigate to Eclipse.app/Contents/MacOS (cd Eclipse.app/Contents/MacOS).
Run ./eclipse -nl en.
Update to Eclipse Oxygen.1a (where this bug is fixed): Help > Check for Updates.
See also Eclipse announcement: Special Notice for Eclipse IDE Users on macOS 10.13 in non-English mode (which was written before Oxygen.1a was released)
For MacOS High Sierra 13.1 , this workaround works. https://bugs.eclipse.org/bugs/show_bug.cgi?id=520176#c152
1. Find java.home used by your Eclipse (look for java.home in "About Eclipse" > "Installation Details" > "Configuration")
2. If your java.home is, for example, /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre , go to /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home and create the subfolders Resources/English.lproj
3. Copy the DefaultApp.nib file from a 10.13 or older Mac to /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/Resources/English.lproj (DefaultApp.nib can be found under /System/Library/Frameworks/JavaVM.framework/Resources/en.lproj or /System/Library/Frameworks/JavaVM.framework/Resources/English.lproj on Mac OS version < 10.13.1)
For the macos versions before 10.13.1, https://www.eclipse.org/org/press-release/20170925criticalbug.php this should work

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

QML Preview compatibility check failed. QML preview is disabled

I am on Mac 10.8.2, i have both java 1.6 (32/64bit enabled) and java 1.7 on my machine and the JAVA_HOME is pointed to java 1.6, but whenever I try to enable QML previewing in my momentics ide (QNX® Momentics® IDE for BlackBerry® 10 Native SDK, Version: 10.0.9), I get the error in the Title. looked a bit into the log under workspace/.metadata/.log, and it logged the following:
!MESSAGE QML Preview compatibility check log.
Error: This Java instance does not support a 32-bit JVM.
How can I get the ide to point to java 1.6? Is it somewhere in the startup script of the application that I can change?
Thanks
QNX Momentics is based on Eclipse, so you should be able to change the JVM used by editing the .ini file for the IDE. If your Momentics is installed in the default location, in Finder navigate to:
/Applications/bbndk/ide/macosx/x86/eclipse/
Right click on qde.app (if you have extension hidden it might just be qde with the momentics icon) and choose Show Package Contents.
Under /Contents/MacOS/ edit the qde.ini file in TextEdit.
At the top of the file, before -vmargs add the following:
-vm
/path/to/your/java/jvm/here
ie.
-vm
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
Save the file and launch Momentics, and it should now be using the JVM you specified. Check your workspace/.metadata/.log after the startup to confirm this.
I've met the same problem with you, I've tried #nonesuchnick 's answer but unfortunately that did not work for me.
And I've similar environment with you: I've got Java 1.7 (the Oracle one) and 1.6 (the Apple one) installed on my Mac (10.8.2).
I resolved my problem via this way:
Delete Java 1.7 completely
Check your NDK installer's md5 to ensure you've got the correct one.
To delete Java 1.7 completely, you'll need to delete the jdk1.7 folder under
/Library/Java/JavaVirtualMachines/
and delete the internet plugin JavaAppletPlugin.plugin under
/Library/Internet Plug-Ins
Then open terminal and type java -version to make sure that your PATH variables is correctly set to your java 1.6 path (I mean the Apple one).
Upon finish this, you can try to uninstall the BB10 NDK and reinstall it, then try to enable the QML Preview, this time it should work.
Reference:
How do I uninstall Java 7 for my Mac?

Cannot run the project in Eclipse on Mac

Exception occurred executing command line.
Cannot run program "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java"
(in directory "/Users/zhangstudyro/Developer/Java/HiWorld"): error=2, No such file or directory
Hi, I'm new to mac.
The report above is the problem details given by eclipse when I tried to run "HiWorld".
I can "javac" and "java" the code in Terminal. And in eclipse, I've added JDK1.6.0 which is the default JDK version to the Build Path Libraries.
Googled and SOFed for hours, but I'm still perplexed with my Eclipse on Mac.
I had the same issue with Intellij. I fixed it by changing the path to the JDK.
For me, the issue was cause by Apple changing the JDK's location when my work computer got upgraded to the latest version of Mac OS X. The new path for my JDk looks the same, but doesn't start with "/System".

'(Cannot run program "make": Launching failed) .' in Eclipse

I am using Eclipse for Windows and have this error:
Build of configuration Debug for project helloworld
(Cannot run program "make": Launching failed)
What do I do to solve this?
Eclipse CDT on Windows depends on 3rd party tools.
You may find this useful: Setting up a compiler
I faced the same problem while installing Eclipse for c/c++ applications .I downloaded Mingw GCC ,put its bin folder in your path ,used it in toolchains while making new C++ project in Eclipse and build which solved my problem. Referred to this video