I downloaded and installed the go1.1.2.windows-amd64.msi from the Go distribution page and set it up on eclipse with the goclipse plugin.
The baffling thing is that in the goclipse settings, the GOARCH settings don't seem to matter. I can start a new project with the GOARCH settings set to arm, 386 or amd64 and the project will still compile and run just fine.
Is there a setting i'm supposed to conform to or does the GOARCH setting not matter at all?
Additionally, are the Go distributions with the suffix amd64 supposed to be for 64bit AMD chips and not intel ones? (the naming convention was a little confusing)
My Current Setup:
Eclipse Keplar 64bit
Goclipse 0.7.6
go version go1.1.2 windows/amd64
running on windows 7 64-bit on a Intel i7-3630QM
Don't know about goclipse, but as to suffix on windows
GOARCH=386 will generate 32 bit OS exe
and
GOARCH=amd64 will make 64 bit exe.
Go generated programs will run on any modern CPU that your Windows runs (excluding ARM).
Alex
Related
I am trying to run EasyPHP on Windows 10 (64 bit) system. Initially the error was regarding msvcr110.dll missing, which I resolved somehow. Now its showing the error of 0xc00007b unable to start program correctly. I have tried to run the compatibility troubleshoot as well as run as administrator option. Its just not working. Any other effective solutions ?
This usually happens when you have mix of x86 and x64 libraries installed. You should probably uninstall all x86 versions of Microsoft Visual C++ Redistributables and install their x64 bit counterparts (just google them and make sure you download 64 bit version of that library).
I'm trying to run Eclipse 4.2 (latest from website: eclipse-SDK-4.2-macosx-cocoa-x86_64) on Mac OS X 10.8 (Mountain Lion).
I have Java 7 installed, but I keep getting prompted to install Java 6. When I choose to forgo the install by clicking "Not Now", Eclipse exits.
$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
$ whereis java
/usr/bin/java
Any ideas on how to get Eclipse to work with the latest version of Java? README is lacking any useful information (and even claims Eclipse was tested with Java 7 on some platforms).
UPDATE:
Running sudo /Applications/.Eclipse/Eclipse.app/Contents/MacOS/eclipse works fine. After running under sudo and then switching back to lowly me with /Applications/.Eclipse/Eclipse.app/Contents/MacOS/eclipse results in a lock file error (permission denied).
It appears I have two problems:
Running through icon click results in "Need Java 6"
Running from command line results in "Permission Denied"
UPDATE: It appears to be more junk from Cupertino:
Apple Radar: 12082976
Here's the text that Apple wants to hide from the world:
I purchased a new Mac Book Pro. I immediately upgraded to Mountain Lion. I installed Java 7 from Sun [Oracle]:
$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
$ whereis java
/usr/bin/java
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
When I attempt to run the Java Preferences (in /Applications/Utilities) and Eclipse, I get prompted to install Java (see attachment).
This outdated article was no help (adding environment.plist): https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html. I thought the problem might be $JAVA_HOME was not set, but I was wrong.
I think I got more useful information from Stack Overflow rather than the vendor (Apple), but its still not solved. https://apple.stackexchange.com/questions/58203/mountain-lion-with-java-7-only and https://apple.stackexchange.com/questions/57986/multiple-java-versions-support-on-os-x-and-java-home-location.
Please fix this. I spends thousands on Apple hardware and hundreds on Apple software, and this sort of thing is not acceptable. I have personally wasted hours on this issue, as have others. How can the Apple QA department miss another gapping hole?
From here.
JDK 7 will be installed under /Library/Java/JavaVirtualMachines/1.7.0.jdk, JDK 6 under /System/Library/Java/JavaVirtualMachines.
To trick OS X to accept Java 7 instead of proposing to install Java 6 a simple symlink is enough:
sudo mkdir /System/Library/Java/JavaVirtualMachines
sudo su ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
Most Java Programms will run with this little hack without the need to install Java 6.
Note that the OP in the above question specifically talks about Eclipse not working with Java 7.
Also this might be worthwhile read.
I'm rather embarrassed but one of my students helped me solve this issue.
If you have Java 7 installed then you should be using the 64 bit version of Eclipse. I had downloaded the 32 bit version and it was asking me to install Java 6 when I had version 7 installed. Downloaded the 64bit version and it works like a dream. I run Mac os 10.8
Installing this update from apple fixed it for me:
http://support.apple.com/kb/DL1572
Note that's the update that's trying to install automatically.
Can you imagine that? You have to install a JDK 1.6 to get eclipse ran properly, even if you already have jdk 1.7 installed, and set the JAVA_HOME properly.
To resolve your issue, you just need to download the jdk1.6 from http://support.apple.com/kb/DL1572?viewlocale=en_US, and install it, later you will be able to run eclipse, and you can set the JAVA_HOME to JDK1.7, and you will be able to find the JDK1.7 from eclipse "Preferences".
The MAC OS offers the Java Preferences tool under Applications.
If you don't have this tool you can edit the eclipse.ini and manually specify the JVM that you want to use.
Of course remember that Java 7 is the only Java official release for MAC and is probably not the best for developing applications. I would go for the 1.6 release but you are forced with this one due to OS restrictions if you want to stick with the standard.
I have just watched the bug report http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6972329 so I want to ask... Is there a JDK upgraded version which handles the problem? Because if I develop an app with 32-bit JDK 6 will it work on 64-bit linux?
I have compiled my project with jdk 1.6.0_05 so I am not sure will it work for 32 or 64 bit linux ... won't it be the user.home as '?'
Thanks
The bug has absolutely nothing to do with the JDK used to compile Java code - Java bytecode is completely platform independant. The bug only occurs when you run a Java app on a 32bit JVM on a 64bit Linux, and even then it seems to depend on a specific (and possibly faulty) LDAP configuration.
I want to have the same distribution of SWT-based application for Windows 32 and 64bit environments. Is it at all possible?
UPD: I want to have a single jar dependency, that can be used both on Windows 32 and 64bit bit environments.
Yes; see Eclipse's SWT deployment guide for example. Note that it's not just a 32-bit vs 64-bit problem, you must also take into account different platforms (Windows, OS X, Linux).
As far as I know you can not have two different target environments i.e. x32 and x64, with the plain vanilla version of SWT (i.e. the unmodified version).
If you are willing to change the SWT code itself then theoretically it is possible to load different versions of DLL as per the target environment. But you might introduce some bugs and have to keep your version updated with the new releases and bug fixes (that are released by eclipse).
Also there is another way of having two different set of jars (which you don't want). And depending on the architecture ( x32 or x64) include the respective SWT jar in the class path.
I want to install additional software for Eclipse (I use 3.5 because 3.6 is not yet for Scala and Android).
Problem is:
The downloads / installations are INSANELY slow, I didn't get past 5% on the ADT plugin (for example) in one hour - same for everything else I tried
Firefox (no other software so far, IE works fine, etc...) is slowed down when it comes to Internet connectivity as long as "install new software" is running
I'm running Windows 7 Ultimate 64 Bit here on a quadcore machine with 4 GB of RAM and an 8 MBit / sec DSL.
Is this a known issue, are there any fixes or will I have to stop considering developing for Android phones?
And yes, I disabled everything - firewall, Skype, etc...
Nothing helped.
JDK installed is 6u21, latest release (installed it today).
Try to uncheck the option 'Contact all update sites during install to find required software' when installing ADT. But you must install all plug-ins required by ADT firstly, such as GEF.
That 6u21 may be your problem, depending on how recently you downloaded it (and, if from a mirror, how up to date the mirror is). They changed "Sun Microsystems, Inc" to "Oracle", and Eclipse was relying on that string for resolution of a bug:
http://m.zdnet.com/blog/burnette/oracle-rebrands-java-breaks-eclipse/2012
From the article: "If you downloaded Java for Windows 32-bit or 64-bit recently, be sure you have the 1.6.0_21-b07 version and not b06."