Link to home
Start Free TrialLog in
Avatar of dannertb
dannertb

asked on

Have import statements. Need links to packages involved

I have a project that is actually a VirtualMMS application for Nokia 6600. I don't know why but i can't get it to compile on my Eclipse. The most likely problem is that i have not installed the right packages.

Here are the import statements that are encountered throughout the source files of the project:

import java.util.*;
import java.io.*;
import java.io.InputStream;
import java.io.IOException;
import java.lang.*;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
import javax.microedition.lcdui.game.Sprite;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;
import javax.microedition.rms.*;
import javax.microedition.io.*;
import javax.microedition.io.HttpConnection;
import javax.microedition.io.Connector;
import javax.microedition.lcdui.TextBox;
import javax.microedition.io.StreamConnection;

import com.nokia.mid.ui.FullCanvas;
import com.nokia.mid.ui.*;

import javax.bluetooth.*;

I have visited the java.sun.com site but on the "microedition" page there are numerous packages that might be required and i don't know which one to install. So please, what i need is direct links to all the packages needed. Thank you in advance.



ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> import com.nokia.mid.ui.*;

For that you will need some API from Nokia, I guess. Not sure where to download that from, for free,.
Avatar of dannertb
dannertb

ASKER

>>Download the wireless toolkit from: http://java.sun.com/products/sjwtoolkit/download-2_3.html

>>To make life easier, download the Eclipse J2ME plug-in: http://www.eclipseme.org/

Ok. Both the wireless toolkit and the Eclipse j2me or only one?
You can download both.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>You can download both.
I am not interested in what i "can" download, but in what i "must" download.
The first one is essential. Second one is helpful for development in Eclipse since you are already using it.
>>you can download what you need from nokia at:

>>http://www.forum.nokia.com/main/0,6566,033_3-1,00.html

>>you'll also find lots of good info at:

>>http://www.forum.nokia.com/main/1,6566,40,00.html

There's lots of stuff there. What do i need? :-) Aren't the import statements and the phone type enough to decide what packages i need?
I haven't worked with Nokia API so I am not sure. I guess the easiest is to read the description of the APIs there and read the comments related to the Nokia classes being used in your code, to figure out to which API it can belong. Otherwise download all the JARs and just search the JARs for the classes - quite easy :)