This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

how to compile this type of code..  RSS feed

 
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..
 
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..
 
Bartender
Posts: 11445
18
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..
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!