View
225
Download
0
Category
Preview:
Citation preview
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 119
OutlineIntro
Dev environmentMy rst J2ME Application
Developing J2ME Applications
Vidar Drageide
University of Bergen - Department of Informathics
March 4 2008
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 219
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 319
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 419
OutlineIntro
Dev environmentMy rst J2ME Application
Computer labs
If you are using the linux-computers here at HIB you only need toinstall the Wireless Toolkit and congure it with Eclipse to getstartedBut since many of you probably want to be able to do this at yourown computers as well we will go briey through the steps neededto install all the tools needed
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 519
OutlineIntro
Dev environmentMy rst J2ME Application
Java
A Java SE Development Kit is needed Java 5 or 6 should do just
ne At the computer-labs java 5 is currently installedInstalling Java on your own computers should be easy Justdownload the SDK fromhttpjavasuncomjavasedownloadsintcmp=1281 Allthough Iassume that you have worked with java before so you probablyknow all about how this is done
Vidar Drageide Developing J2ME Applications
l
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 219
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 319
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 419
OutlineIntro
Dev environmentMy rst J2ME Application
Computer labs
If you are using the linux-computers here at HIB you only need toinstall the Wireless Toolkit and congure it with Eclipse to getstartedBut since many of you probably want to be able to do this at yourown computers as well we will go briey through the steps neededto install all the tools needed
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 519
OutlineIntro
Dev environmentMy rst J2ME Application
Java
A Java SE Development Kit is needed Java 5 or 6 should do just
ne At the computer-labs java 5 is currently installedInstalling Java on your own computers should be easy Justdownload the SDK fromhttpjavasuncomjavasedownloadsintcmp=1281 Allthough Iassume that you have worked with java before so you probablyknow all about how this is done
Vidar Drageide Developing J2ME Applications
l
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 319
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 419
OutlineIntro
Dev environmentMy rst J2ME Application
Computer labs
If you are using the linux-computers here at HIB you only need toinstall the Wireless Toolkit and congure it with Eclipse to getstartedBut since many of you probably want to be able to do this at yourown computers as well we will go briey through the steps neededto install all the tools needed
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 519
OutlineIntro
Dev environmentMy rst J2ME Application
Java
A Java SE Development Kit is needed Java 5 or 6 should do just
ne At the computer-labs java 5 is currently installedInstalling Java on your own computers should be easy Justdownload the SDK fromhttpjavasuncomjavasedownloadsintcmp=1281 Allthough Iassume that you have worked with java before so you probablyknow all about how this is done
Vidar Drageide Developing J2ME Applications
l
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 419
OutlineIntro
Dev environmentMy rst J2ME Application
Computer labs
If you are using the linux-computers here at HIB you only need toinstall the Wireless Toolkit and congure it with Eclipse to getstartedBut since many of you probably want to be able to do this at yourown computers as well we will go briey through the steps neededto install all the tools needed
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 519
OutlineIntro
Dev environmentMy rst J2ME Application
Java
A Java SE Development Kit is needed Java 5 or 6 should do just
ne At the computer-labs java 5 is currently installedInstalling Java on your own computers should be easy Justdownload the SDK fromhttpjavasuncomjavasedownloadsintcmp=1281 Allthough Iassume that you have worked with java before so you probablyknow all about how this is done
Vidar Drageide Developing J2ME Applications
l
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 519
OutlineIntro
Dev environmentMy rst J2ME Application
Java
A Java SE Development Kit is needed Java 5 or 6 should do just
ne At the computer-labs java 5 is currently installedInstalling Java on your own computers should be easy Justdownload the SDK fromhttpjavasuncomjavasedownloadsintcmp=1281 Allthough Iassume that you have worked with java before so you probablyknow all about how this is done
Vidar Drageide Developing J2ME Applications
l
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 619
OutlineIntro
Dev environmentMy rst J2ME Application
Eclipse
At the computer lab you can nd Eclipse 33 alredy installed justtype rdquoeclipserdquo at the terminal and everything should work just neIf you are using your own computer you can nd a working versionof eclipse at httpwwweclipseorgdownloadsInstalling Eclipse is a simple matter of unzipping it and running theeclipse(exe) le
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 719
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 819
OutlineIntro
Dev environmentMy rst J2ME Application
EclipseME
Developing J2ME applications in eclipse is simplied using theplugin rdquoEclipseMErdquoThis plugin is already installed at the computers here at HIB If you are using your own computer simply follow the instructionsgiven at httpeclipsemeorgdocsinstallEclipseMEhtml
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 919
OutlineIntro
Dev environmentMy rst J2ME Application
Wireless Toolkit
If you are using the computer lab here at HIB this is the only thingthat you need to install Visithttpjavasuncomproductssjwtoolkitdownloadhtml and ndthe download-button there and download the Wireless toolkit forwindows or linux
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1019
OutlineIntro
Dev environmentMy rst J2ME Application
Installing the WTK on a linux-system
chmod +x sun java wireless toolkit-2 5 2-linuxbin sun java wireless toolkit-2 5 2-linuxbin Follow the instructions on screen note you should install theWTK somewhere in your prole and not in a folder on thelocal computer
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1119
OutlineIntro
Dev environmentMy rst J2ME Application
Conguring EclipseMEAfter installing the WTK we need to inform EclipseME about itrsquoslocation and which emulators to use
Window rarr Preferences Find the J2ME bar and press it In the rdquoWTK rootrdquo window enter the location where youinstalled the WTK ie homevidarWTK-25
In the rdquoDeployment Directoryrdquo You may specify a directorywhere eclipse should place your jadjar les
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1219
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1319
IntroDev environment
My rst J2ME Application
Figure Managing devices for emulat ionVidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1419
IntroDev environment
My rst J2ME Application
Expand the J2ME tab Press rdquoDevice Managmentrdquo Press rdquoImportrdquo
In the rdquoSpecify search directoryrdquo give the path to the binfolder in the WTK root directory iehomevidarWTK25bin
Press the rdquoRefreshrdquo-button Press rdquoFinishrdquo Press Apply and then OK
Vidar Drageide Developing J2ME Applications
Outline
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1519
IntroDev environment
My rst J2ME Application
Creating a new J2ME project
You are probably able to gure this out yourself but Irsquolldemonstrate it anyway
File rarr New rarr Project
Scroll down until you see J2ME and expand it Choose rdquoJ2ME Midlet Suiterdquo and press next Enter a project name ie rdquoHello Worldrdquo and press next In the next screen you can choose which emulator you wish touse The DefaultColorPhone is a OK choise
Pressing nish at this point is OK unless you wish to addsome additional libaries or change output-folders
Vidar Drageide Developing J2ME Applications
OutlineI
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1619
IntroDev environment
My rst J2ME Application
Hello World
Demo
Vidar Drageide Developing J2ME Applications
OutlineI t
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1719
IntroDev environment
My rst J2ME Application
The stucture of an J2ME application
If you browse to your WTK folder it contains a subfolder namedrdquoappsrdquo looking at some of these applications will give you valuableinformation about how you should structure your aplicationsThere is also a simple demonstration of a Bluetooth Imageserverclient there
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1819
IntroDev environment
My rst J2ME Application
Image serverclient
Demo
Vidar Drageide Developing J2ME Applications
OutlineIntro
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
8122019 Developing J2ME apps
httpslidepdfcomreaderfulldeveloping-j2me-apps 1919
IntroDev environment
My rst J2ME Application
Contact
Should there be any questions feel free to contact me at any timeEither by mail vidariiuibno or by droping by my office in the 5thoor Where you can nd me at room 5160
Vidar Drageide Developing J2ME Applications
Recommended