I'm using the android_sdk.zip version, since I don't feel comfortable using installers on Windows systems. However, I understand that I need to set the Home variable in order for the SDKManager.exe to run properly. I tried another method posted on stackoverflow, but if I do that, then both Eclipse and Netbeans, won't find Java anymore.
"C:\Program Files\Java\jdk1.6.0_25\bin';'"
Any ideas?
Thanks!
I believe there may be a bug in the installer for Windows, as I haven't seen it work properly at detecting a JDK on Windows 7 at all.
If you are planning on developing in Eclipse, it isn't even required. You'll save yourself a lot of time and headache if you just download and install the SDK zip file (instead of the installer EXE).
Download and unpack this file somewhere on your machine
Install the ADT plugin into Eclipse
Point ADT to the location you unzipped the SDK in Preferences
HTH
Related
I installed Eclipse portable and installed it on a drive. Everything worked fine. On the same disk is a Java Version.
If I start Eclipse and want to create a Java Project how I did it in the past, it will not work. There is no jdk set. I looked up the problem on the internet and just found a fix where you have to set the jdk file in the setings under the bulletpoint Java but it's not there.
Does anybody know a fix? Any suggestions? - Thanks!
In the portable version of Eclipse, inside eclipse folder open the file eclipse.ini in notepad or notepad++ and add the following in the last. Before this, you have to close the eclipse.
-vm C:\Java\JDK\1.8.0\bin\javaw.exe
After making changes, you can start eclipse. For more details, refer this link.
https://wiki.eclipse.org/Eclipse.ini
I am running Windows 7 and just upgraded my Android Studio and it is not working anymore. I get a dialog that says it cant find the jdk. I have version .9 now. I do not have admin rights so I can not edit my Enviroment Variables. Is there a way I can tell Android Studio where the JDK is. Maybe command line args? I havent found any source that outlines if there are any.
Please note that I can not run Android Studio, so I cant update it from inside the application.
Also, I do have Cygwin.
Since, Android Studio was working before and only broke after the update, please check the Studio shortcut you're using to launch the IDE. By default, Android Studio points it to studio64.exe. If you have a 32-bit Java JDK installed use the studio.exe to launch the IDE.
If that doesn't help, see if you can create a JAVA_HOME user variable? You maybe able to do that even though you have a limited account. If you are unable to do so, as a last resort, move/copy the JRE (not JDK) into the Android Studio install location (right next to bin). You need to name the folder jre or jre64 depending on which launcher you use studio.exe or studio64.exe.
I solved this. I download the Server JRE from the Oracle page. I then decompressed the gzip and untared it. I then then added to my ~/.bashrc file in cygwin "export JAVE_HOME=". Studio was able to find this.
I just bought new laptop and I have problems with running android studio. I have read over 20+ questions/answers about this but exact problem but with me it's not working. The problem: After installing the studio (successfully), when I try to run it it sais: No JVM installation found. Please install 64-bit JDK. Note that I have already installed JDK, specified JAVA_HOME, and JDK_HOME as a variable (100%) that the path is correct ("C:\Program Files (x86)\Java\jdk1.7.0_25"). I have also java installed. I have tried reinstalling the studio, reinstalling java and almost everything that I could find on google, but nothing works. Eqlipse, works just fine though. It is not my first time trying to install Android Studio, but I can't figure this one out. I have read from here: Click and here Click mostly, and from a lot more like threads like this, but I cant solve my problem. Any ideas?
What you have installed seems to be 32 bit version as it is getting Installed in "Program Files (x86)",Download and install 64bit JDK and that should automatically get installed in "Program Files" folder and not in "Program Files (x86)".
Download 64bit installer of JDK
This might solve the problem.
I'm not able to run a majority of programs from my work computer due to JRE <= 1.6 does not support switch statements for Strings. As I'm not able to install or update due to admin restrictions, would it be possible to create a portable Eclipse on a USB that incorporates the JRE (1.7) as well?
The Eclipse part is easy. Just unzip Eclipse on your USB.
You'll have to install Java to your USB. Afterwards, go into Eclipse Window -> Preferences; Java -> Installed JREs and make sure your Java JRE or JDK is listed and the default.
Create your workspace on the USB, and you should be ready to go.
It's fairly easy to run Eclipse on a USB drive. You just need to make sure it knows to look for Java on your USB drive rather than on the host computer.
If you have Java Portable installed on your drive, you can tell Eclipse to use it by adding the following to your eclipse.ini file.
-vm
/PortableApps/CommonFiles/Java64/bin/javaw.exe
Note that Eclipse Portable stores the file as EclipsePortable\App\eclipse\eclipse.ini.
In my experience, since Eclipse upgraded from Indigo to Juno, the .zip they provide is already portable. It no longer creates any folders or files in the Windows user data folder.
Just put your eclipse and jdk7 on the flash and run from flash. Set JDK in eclipse: Window->Preference->Java->Installed JRE...
How can i make up am installer for my java application (jar file) . The same as that of windows installer which proceeds by clicking next and installs the application. What i want with my java app is, the open source library xuggler to get installed if it is not already present in the system.Then i want JRE to get installed if it is not already present in the system.
If the user does not have xuggler or JRE installed , installer should automatically install the xuggler and JRE. Or it should tell the user to get that version of libraries from the given URL and then continue.
Your question is similar to this one:
how to package a java application
Advanced Installer has a separate edition especially for creating installers for Java apps, so this might be what you are looking for. I would recommend other tools but since they're scriptable, they're a hassle to work with, lots of things can go wrong.
Hope this helps
If your app. has a GUI, use deployJava.js for the JRE and then Java Web Start to install/launch the app.
An installer-desc can be specified in the JNLP file to install Xuggle. JWS can partition the download between OS.
JWS is supplied by the makers of J2SE JREs for desktop PCs (e.g. running Mac OSX, *nix or Windows).
NullSoft have a very good scriptable, opensource installer called NSIS.
http://nsis.sourceforge.net/Main_Page
I'm not aware of a cross platform way to do this. In the Windows world, you can use Wix to generate an MSI file, and in that file you can specify dependencies such as the JRE. In the Linux world you can generate a file with the dependencies read by the package manager, a deb file for Debian based releases for example. It's a bit of a faff to set things like this up separately, but once it's done you can just integrate it into your ant script and build everything automatically.