Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to compile this type of code..

 
sathya mayil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai..
i m completely new to j2me..
when i was trying to learn i came across the following code..
i dont know how to compile this... could anyone help me.. i downloaded it from net.. i had a jar file for that runs fine..
but i don noe what type of program it is?...j2me/j2se..
 
Ramses Butarbutar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sathya mayil,

I haven't try to compile that source code.. But as i know if you use IDE (such as NetBeans) just load the library for javax.blutooth and microedition. (jsr-82.jar perhaps ).

The wireless toolkit is actually a collection of APIs, of which not all of it are for J2ME.
If you're to look at the list of available APIs on that list, you'll find that the Java API for bluetooth is among them.

Furthermore, those APIs for J2ME will be marked accordingly (with the 'for J2ME' suffix at the back of it). The Bluetooth API for Java on that list is not marked as such, which means its for PC use, not J2ME so you don't have to a j2me environtment for use it.

So once again try to download the jar from here
Download it, install it, then look for the .jar file for the bluetooth APIs in there. Load to your project library and run..
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sathya,

Welcome to the Ranch.
Since this is more of a general question, rather than being UI specific, I will move it to a more appropriate forum for you.
 
sathya mayil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramses Butarbutar wrote:Hi sathya mayil,

I haven't try to compile that source code.. But as i know if you use IDE (such as NetBeans) just load the library for javax.blutooth and microedition. (jsr-82.jar perhaps ).

The wireless toolkit is actually a collection of APIs, of which not all of it are for J2ME.
If you're to look at the list of available APIs on that list, you'll find that the Java API for bluetooth is among them.

Furthermore, those APIs for J2ME will be marked accordingly (with the 'for J2ME' suffix at the back of it). The Bluetooth API for Java on that list is not marked as such, which means its for PC use, not J2ME so you don't have to a j2me environtment for use it.

So once again try to download the jar from here
Download it, install it, then look for the .jar file for the bluetooth APIs in there. Load to your project library and run..



hai...
thanks a lot...
i tried using netbeans.. it worked well..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic