How to use eclipse??? Javaw.exe? - Android Q&A, Help & Troubleshooting

How do i use eclipse? It keeps asking for something called javaw.exe?

For some reason the 32 bit version works instead of 64 bit. The adt plugin needs to be installed to use eclipse on android.

ri123 said:
For some reason the 32 bit version works instead of 64 bit. The adt plugin needs to be installed to use eclipse on android.
Click to expand...
Click to collapse
Yeah, ADT plugin connects Eclipse with android-sdk. And you should download developer tools too in order to start projects on Android. Before opening Eclipse, you should install JDK, and set the environment variables.
There are various videos on Youtube which illustrates the whole procedure.
Good Luck!

Related

Android SDK Setup - Java is not found in your PATH.

Hi,
I am new to Android. I have downloaded and installed every necessary component in order to start working with Android. The issue I am having is that in Command Prompt, anything I type in related to the Android SDK (for example: adb, or even just android) comes back with "Java was not found in your path". Now, I have changed all my PATH variables under "User" to the EXACT locations of where these folders are, but no dice. It keeps telling me to go and edit my PATH variables. Even running SDK Setup, gives me the same error, and tells me to add where Java was found (even though I have!).
I am starting to get really fed up with this, because Eclipse can't find the "jre" folder inside the Java JDK, either (that is, of course, until I copy the entire jre folder inside of the eclipse folder, or put eclipse inside of the JDK folder)...
I just know it shouldn't have to be this tedious to set everything up and I would really appreciate it if someone can help with this
I am running Java JDK 1.6.0_21 (x64), Eclipse Helios (3.6) IDE for Java EE Dev., Android SDK Revision 6, all on Windows 7 Ultimate x64.
Something to note: I have not encountered any problems with Eclipse Helios and the ADT plugin as stated on the Android Developers website. I can use Eclipse and the SDK to create and run the"Hello, Android!" application on the emulators without issues. I just want to be able to run everything from the command prompt, too. Now, if I can only get my phone to be recognized after I get this resolved.
I also need this for rooting and unlocking the phone.
Bazz44 said:
Hi,
I just know it shouldn't have to be this tedious to set everything up and I would really appreciate it if someone can help with this
I am running Java JDK 1.6.0_21 (x64), Eclipse Helios (3.6) IDE for Java EE Dev., Android SDK Revision 6, all on Windows 7 Ultimate x64.
Click to expand...
Click to collapse
In the SDK tools folder go to libs and edit find_java.bat.
Change all instances of %PROGRAMFILES% to %PROGRAMFILES(X86)% .
I had to do this for my SDK.
Your java will probably still resides in c:\program files (x86)\java or the likes.
To test if it works open DDMS.bat(May need to open twice).
I ran "ddms.bat" before changing the "find_java.bat", and it just came up that it could not find the path > checking if it is installed elsewhere. I did what you suggested (I found three instances of where I needed to add the (x86)), ran "ddms.bat", and got the same error. However, this time it also opened the Dalvik Debug Monitor. Eclipse still won't run without its own copy of the "jre" folder from the JDK at the same folder level as the "eclipse.exe"...
any luck with this? I'm also having same trouble in Win7x64
Gonna give in otherwise n reboot my ubuntu system see if thats any easier
i know i can't use OpenJDK or something so ill have to swap that but fingers crossed
=]
Solution
Install any JRE Java, Copy the java folder at program files/Java/jre6 Paste it inside MOTODEV´s folder program files/Motorola/MOTODEV Studio for Android 1.2/ and rename it to jre
Done
Edited the eclipse .ini works a treat now wi java x64...
time to whip out the olde java books from college an see if any of it comes back to me
Is it possible to install the android sdk platforms & extras offline manually, my only net atm is my desire tethered, unlimited data but I don't wanna push my luck
I'm not sure if it may be related or not but according to the android dev page, you should be using eclipse 3.5 because they have been having problems with 3.6
May or may not be related but worth a shot.
I'm not sure if it may be related or not but according to the android dev page, you should be using eclipse 3.5 because they have been having problems with 3.6
May or may not be related but worth a shot.
i need help http://forum.xda-developers.com/showthread.php?p=24028502#post24028502
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Make nu system path
Try making new system path named PATH (all caps). its an issue with Win7 64. Hope it helps. and yes Installing the Android sdk is a giant head****. I have it all put as fare as the link to abandroid put it doesn't make plug-in available in the plug-in list. I'm at a loss...
As i said, hope it works.
Having just had this issue myself on a new install of eclipse, the sdk and adt, here's what finally helped me: making sure the java\sdk1.6.x.x\bin directorywas in front of the windows\sys32 directory in the PATH statement of the environmental variables.
I did already add the JAVA_HOME and such, but the above was the step that finally allowed me to finish the setup.
Fix for Win7 64bit and Android SDK/Java install
MacDegger said:
Having just had this issue myself on a new install of eclipse, the sdk and adt, here's what finally helped me: making sure the java\sdk1.6.x.x\bin directorywas in front of the windows\sys32 directory in the PATH statement of the environmental variables.
I did already add the JAVA_HOME and such, but the above was the step that finally allowed me to finish the setup.
Click to expand...
Click to collapse
I had to finally use JAVA_HOME C:/PROGRAM FILES/JAVA/JDK1.7.0_05 That finally allowed me to instal the Android SDK
best answer
rowdyvc said:
I had to finally use JAVA_HOME C:/PROGRAM FILES/JAVA/JDK1.7.0_05 That finally allowed me to instal the Android SDK
Click to expand...
Click to collapse
Thank you you solve my prob man

[Q] portable development install on USB stick

Is it possible to install everything you need for app development (Java, Android SDK, eclipse, etc) on a USB stick or some other portable media? So that I could develop anywhere I go?
Has anyone done this yet?
I think the android sdk would be possible as well as an ide, but java needs to be a specific version for what os you are going to be running the vm on. Like one for linux, osx, and windows
From something awesome
What about a bootable linux distro on a usb stick with everything you need : java sdk, android sdk, and an ide
Plug, boot, and develop
From something awesome
killersnowman said:
I think the android sdk would be possible as well as an ide, but java needs to be a specific version for what os you are going to be running the vm on. Like one for linux, osx, and windows
From something awesome
Click to expand...
Click to collapse
so I take it this hasn't been done?
I guess I should look into maybe running a vm from a usb stick so I can get the java sdk to work.
I don't like the idea of a bootable usb stick.
Running a VM from a USB stick might be somewhat slow, but it should work very well. Just make sure to enable all of the USB and internet options for the VM
Kronia said:
Running a VM from a USB stick might be somewhat slow, but it should work very well. Just make sure to enable all of the USB and internet options for the VM
Click to expand...
Click to collapse
yeah, i'm reading about vm on usb stick. Maybe I shouldn't do that.
What is so hard about java sdk on a usb stick? I don't think I need it as a service or to change the registry. Probably all I need is directory to be added to the PATH.
Thats why i think a self contained os, java vm, java/android sdk, and ide would be the way to go. I think it would take away the issues of having the java runtime be separated from the os
From something awesome
sdxda said:
Is it possible to install everything you need for app development (Java, Android SDK, eclipse, etc) on a USB stick or some other portable media? So that I could develop anywhere I go?
Has anyone done this yet?
Click to expand...
Click to collapse
I believe Android SDK technically is portable need to test and for the IDE and JDE you can use this X-Eclipse.

Problems re-installing SDK

I had to do a system recovery on my laptop because of sound issues. Now when i try to install android sdk its telling me that that java jdk is not found. Ive installed jdk, uninstalled, reinstalled, etc. But its still telling me its not found and will not let me install sdk. Any ideas on what i could do to fix this.
Check to make sure the path to the Java is found. If not, add the path to it to your systems path default, OR, use a script which you run first, that sets it for you.
One of many articles on the net on ways you can do this...
http://www.phoons.com/john/classes/aboutpath.html
Video:
http://www.youtube.com/watch?v=FzlIiQtMP9M
Also make sure you are installing the right version... 64bit vs 32bit etc...
Thanks for the help. Got it straightened up. I have windows 7 64 bit so i was using jdk 64 no problem. After i did the system recovery 64 bit jdk wouldnt work i had to run 32 bit. Strange, but at least its working now.

[Q] How to install Java or plugins in Firefox of ICS?

Dear all,
Some websites require to use Firefox and install JAVA or plugins to play movies. But when I use Chrome to open these webs and click on the guided link to download JAVA, it told me that there is no suitable version yet.
When I use Firefox to open these webs, it said there are no plugins, and didn't tell me what plugins.
But I can open these movies on webs using android 3.1 or lower.
So, is it because ICS 4.0.3 hasn't supported to open webs which require JAVA or there are other ways to open these movies?
thank you very much for your reply.
Oracle doesn't make plug-in for Android but you may use Adobe Flash Player. But it's strange
I've already installed Adobe flash player 11 before but it's no use.
Actually they require JAVA runtime or plugins or something like that.
Android has no Java support. In order to use a Java plugin, the installation of Java se runtime for arm CPU would be required (it worked like a charm on my old Nokia n900 debian based) but there would be no way to use the Java vm into the dalvik vm.
The only way (if your phone is a dual core, though it'd too slow) is running Java applet into an Ubuntu chrooted environment. In that case, it would be strongly suggestable to download the latest version of Java se from oracle site, which has jit and is very fast in comparison to the version you can find on current Ubuntu img.
Then, you'll just have to unpack it and put it somewhere in Ubuntu chrooted fs and make a symbolic link in order to jar to be launched via that Java se version. Besides, check inside Firefox configuration (always the chrooted one) and manually set the plugin path, though it could use the old version.
So you'll get a fully functional Java vm in android
wow, it's complicated. So it means that I have to install 'ubuntu installer' (the same as 'linux installer' in Play Market, is it right? ) and then install firefox with plugins to use, does it?
If do it this way, my phone will run 2 environments (Android and linux) at the same time and it'll become too slow then. I think my galaxy s2 with CPU 1.2ghz, ram 1g is not enough to do this . Should wait till Android supports JAVA then
thank you for your help, lucaoldb!
You are welcome
It is easier than it looks. Anyway, the Ubuntu chrooted img has already Java support, though it is a slower version. You can test it and see if fits to your needs. If you want an improved performance, you can follow the way I suggested above.
---------- Post added at 02:09 PM ---------- Previous post was at 02:03 PM ----------
By the way, your hardware is ok and Java se support in android will not very likely be avalaible in next years, because Oracle sued Google people for copyright violation and the whole thing is not yet over...
lucaoldb said:
Android has no Java support. In order to use a Java plugin, the installation of Java se runtime for arm CPU would be required (it worked like a charm on my old Nokia n900 debian based) but there would be no way to use the Java vm into the dalvik vm.
The only way (if your phone is a dual core, though it'd too slow) is running Java applet into an Ubuntu chrooted environment. In that case, it would be strongly suggestable to download the latest version of Java se from oracle site, which has jit and is very fast in comparison to the version you can find on current Ubuntu img.
Then, you'll just have to unpack it and put it somewhere in Ubuntu chrooted fs and make a symbolic link in order to jar to be launched via that Java se version. Besides, check inside Firefox configuration (always the chrooted one) and manually set the plugin path, though it could use the old version.
So you'll get a fully functional Java vm in android
Click to expand...
Click to collapse
I downloaded Java for ARM from Oracle site; these are the libs provided:
Code:
[email protected]:~/Downloads/ejre1.6.0_32/lib/arm# ls
client libhprof.so libjawt.so libnio.so
headless libinstrument.so libJdbcOdbc.so libnpt.so
jli libioser12.so libjdwp.so librmi.so
jvm.cfg libj2gss.so libjpeg.so libunpack.so
libawt.so libj2pcsc.so libjsig.so libverify.so
libcmm.so libj2pkcs11.so libjsound.so libzip.so
libdcpr.so libjaas_unix.so libmanagement.so native_threads
libdt_socket.so libjava_crw_demo.so libmlib_image.so
libfontmanager.so libjava.so libnet.so
I cannot find libjavaplugin_oji.so or libnpjp2.so to create the symbolic link for Firefox.
How can I do?
Regards
EDIT:
Solved, I downloaded headless version of JAVA SE instead of headful version:
ejre-1_6_0_32-fcs-b05-linux-arm-vfp-eabi-headful-05_apr_2012.tar.gz
ejre-1_6_0_32-fcs-b05-linux-arm-vfp-eabi-headless-05_apr_2012.tar.gz
in headful version the file libnpjp2.so is present.

[Q] Emulating Operating systems.

a guy on youtube did this. here.
can someone give me a tutorial please?
ross231 said:
a guy on youtube did this. here.
can someone give me a tutorial please?
Click to expand...
Click to collapse
Go HERE to find instructions for installing Windows XP on an Android tablet. Installing Windows 95 (as shown in the YouTube video you pointed to) on an Android tablet will require the same steps. I used the instructions to install TinyXP (a small-footprint version of Windows XP) on my Sony Tablet S and it successfully ran; however, it ran extremely slow, which was expected seeing how all Android tablets have limited CPU and memory resources and the Android OS was not created for running other OSes in an emulator or virtual machine. Good luck.
Cat McGowan said:
Go HERE to find instructions for installing Windows XP on an Android tablet. Installing Windows 95 (as shown in the YouTube video you pointed to) on an Android tablet will require the same steps. I used the instructions to install TinyXP (a small-footprint version of Windows XP) on my Sony Tablet S and it successfully ran; however, it ran extremely slow, which was expected seeing how all Android tablets have limited CPU and memory resources and the Android OS was not created for running other OSes in an emulator or virtual machine. Good luck.
Click to expand...
Click to collapse
would ubuntu run very well?
ross231 said:
would ubuntu run very well?
Click to expand...
Click to collapse
I do not believe you would have success running Ubuntu on Bochs for Android. I believe you would have better luck with Puppy Linux. However, take into consideration I am speaking from having no experience running either of those distros on Bochs for Android. AntiBillOS compiled a version of Linux specifically for Bochs for Android. You can find AntiBillOS's posting about it HERE.
Thanks for your help.
ross231 said:
Thanks for your help.
Click to expand...
Click to collapse
If you want to run Ubuntu, you're better off using Complete Linux Installer from the Play Store to run Ubuntu as a chroot environment. It's similar to emulation, but possibly a little faster than Bochs or QEMU. It's also vastly easier to install since there are already custom-built images included in the app.

Categories

Resources