File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to compile this type of code.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to compile this type of code.." Watch "how to compile this type of code.." New topic
Author

how to compile this type of code..

sathya mayil
Greenhorn

Joined: Aug 05, 2009
Posts: 2
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

Joined: Jun 16, 2009
Posts: 52
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..

At the center of non-violence stands the principle of love
.... Martin Luther King, Jr.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
sathya mayil
Greenhorn

Joined: Aug 05, 2009
Posts: 2
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to compile this type of code..