Software needed to compile and execute J2ME programs - java

I want to know the required software which is needed for J2ME programs
I am having the JDK 1.6.0
I do not want to use an IDE at this moment.

Now you need to install the J2ME Wireless Toolkit,
Have a look at this tutorial : J2ME Tutorial

If you don't want to go with the IDE then you only need mobile sdk from oracle for compiling your midlets avaliable here: http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html
I would strongly encourage you to switch into IDE like Netbeans for J2ME as it would get much easier for you to run/test and deploy your mobile applications

J2SDK1.6.0
Eclipse 3.7: one of the best Java IDE ;-)
J2ME Wireless toolkit 2.5
EclipseME 1.7: Eclipse plugin to help develop J2ME code
ProGuard 4.7: class file shrinker and obfuscator.

Related

Android SDK Config on Linux Prior to Eclipse/ADT Install?

I read Lars Vogel's Android Development tutorial and then headed directly to the Android SDK download page.
I already have the Eclipse Java EE IDE (Juno; 4.2) installed, and would like to only install the Android SDK and then the ADT Eclipse plugin so I can start working from my existing Eclipse instance. As such, I downloaded the 64-bit linux (I'm on Ubuntu) "SDK Only" .tgz and extracted it to the my ~/sandbox/android-sdk directory.
Before I go and install the ADT Plugin, are there any "setup"/config steps with the SDK that I need to do ahead of time? If so, what? I'm even interested in optional tuning here. I only ask because the article referenced above is targeted at Windows users, and so are most of the other tutorials I've found. I'm worried that there might be some out-of-the-box functionality that the Windows SDK provides that must be dealt with manually for us Linux denizens. Thanks in advance!
From my experience, I believe the answer is no, there is nothing else you need to do before installing the ADT Plugin. If you wanted, you could open the SDK manager from ~/sandbox/android-sdk/tools/android and install some of the SDKs, but there's no reason you can't just do that from Eclipse after you install ADT.

Add Java support to Eclipse

I have downloaded and installed Eclipse for PHP Developers from here:
http://www.eclipse.org/downloads/
I also need to write some Java applications. How can I add Java support to my PHP Eclipse version? Do I have to install second Eclipse for Java?
You should be able to install the JAVA components, using Help > Install New Software.
In the list of components, there should be Programming Languages > Eclipse Java Development Tools.
Here's a screenshot :
(source: pascal-martin.fr)
Because it is so trivial to have multiple Eclipse instances, I do just that to seperate php and java environments. This reduces the plugins loaded and you can somewhat keep Eclipse lean. Of course the choice is totally yours.
On my version of eclipse:
Help menu->install new software
Choose the download page for your version of eclipse
There is a category "programming language" which should have Java.
What you downloaded was basically the eclipse core project and a list of standard "addon" packages that might help in PHP development. According tho this comparison chart you're only missing two packages to now make eclipse ready for java development:
GEF
JDT
You could just download those two packages from eclipse by going to
Help->Install new software
to have the standard "Eclipse for Java Development" setup.

Developing CLDC or J2ME applications under Mac OSX?

I have noticed that Oracle now has released a Java Platform Micro Edition SDK for OSX. It works, it can compile the provided examples and the included phone emulator works too. But how do I compile my own J2ME project from Ant or Eclipse?
There are a lot of related jars but they are all inside the ".app" in the /Applications directory. Eclipse does not like it when I put a toolchain path to inside the ".app".
Have you tried using the EclipseME plugin? It helps integrate JavaME (J2ME) development into Eclipse. Here's a guide for getting it working with Eclipse:
Eclipse ME / Configuration
You'll find plenty of documentation and how tos.
If you don't like EclipseME, I personally found Netbeans very good for mobile development:
Netbeans JavaME Page
Also, you weren't specific in your question, but the link you've provided seems to indicate you want to use MTJ. In that case, use this documentation to guide you through:
Eclipse MTJ - Getting Started
If you want to use ANT I have simply copied over the required jars from the Windows SDK and just used the pre verifier and javac from the osx 3.0 sdk, works well!

Which Eclipse IDE version to choose?

How do I find which Eclipse version I have on my Ubuntu system?
This is what "About Eclipse SDK" says.
Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343
I am not sure if its the Eclipse IDE for Java Developers or the Eclipse Classic version.
What I would like to do is use Eclipse for
Java based Web Application Development
Ant Builds
Deploy using Tomcat
including HTML, CSS Editing
Please help me decide which version I should choose? I would like to upgrade my Eclipse setup from whatever version it is now to a version that supports all the above. Should I go for Eclipse IDE for Java EE Developers?
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Please suggest.
See Compare Eclipse Packages for a nice chart
What I would like to do is use Eclipse for (...)
The Eclipse IDE for Java EE Developers allows to do what you're asking for out of the box.
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Both would work, although it would be simpler to just get directly the Eclipse IDE for Java EE Developers (especially if you don't know exactly what plugin(s) you're looking for). Personally, I don't use the version you can get from the repository but download Eclipse from the official website and install it in user mode.
If you are using Eclipse for only Enterprise Development, then as everybody has recommended I would use the Eclipse Java EE version. If you plan on occasionally using it for other development purposes then I would consider downloading a separate classic version as well.
The reason for this is that everybody is well aware of eclipse's plugin capabilities. Unfortunately, Eclipse can get bogged down with too many plugins or add on tools. What I have experienced is that if you are using it for Enterprise Development(J2EE) it might be a good idea to keep that as a separate environment then your other Java Development. That way you can download the plugins,tools,libraries,etc for your enterprise development, and you can use your classic version for any other development you might need.
The downside is you will have two versions, but this is not a problem granted you do not run them simultaneously.
If you want to play with Web development, then the Eclipse java EE for Developers is for you. It is shipped with components to make Java Enterprise applications to create Enterprise Applications (and bundle it in an Enterprise ARchiver, known as EAR file or Web ARchive, known as WAR file).
The default Eclipse shipping with Ubuntu is the Classic version, and you can add more plugins.
I would recommend, however, to download th eJEE version manually and unzip it and run. Then you have a local installation outside the system files.

How can I develop for Android in Emacs?

I have gone through the Android guide for other IDEs, and I've got the basic build and install working fine using ant and a simple Emacs compile command. I'm aware of some of the existing tools for developing Java and XML in Emacs. I've also seen the EmacsWiki page recommending two Emacs packages, EmDroid and android-mode
I'd like to hear what people recommend, in terms of Emacs packages, small functions, or just workflows.
As a side note, I have decent familiarity with Eclipse, and I did setup the ADT plugin. However, emacs is my primary editor, and I'd like to see how I can use it here.
I too use Emacs for my Android development.
Although I do not use any Emacs packages for it.
Simply write in Emacs and then from a terminal use the android-sdk (ant, android, keytool, jarsigner, adb).
You can always use M-x compile from within Emacs, but I usually prefer a plain old bash shell for Android.
Sorry my work flow isn't really exciting.
Currently android-mode.el is in better shape, plus you can easily fork it to add your own submissions to the developers over Github.
Both of the modes are pretty basic however, and just give you a set of functions to call the various Android development tools.
You are probably aware of jde and ant-mode.el - if you're not, I've just mentioned them.
They'll help you with the general Java / Ant support you'll need for Android SDK development.
You can try Android-emacs-toolkit. http://code.google.com/p/android-emacs-toolkit/
Android-emacs-toolkit helps to build android development environment on emacs. It contains a emacs major mode which help to develop android sdk and ndk program.
It provides support for create new avd, launch avd, create new android project, build and rebuild Android sdk project, build and rebuild Android ndk project, install and uninstall apk, run executable ndk project, output emulator log on emacs.
This toolkit tested on WindowsXP/7, Ubuntu11 with android-sdk and android-ndk-r7.
For building Android itself (ie. AOSP, CyanogenMod...), look in the $(TOP)/development/ide/emacs directory. ATM, you'll find android-common.el, android-compile.el and android-host.el.
These can be used to make modules/packages inside Emacs, replacing commands like mm and mmp.

Categories

Resources