×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Question Bluetooth tutorials problem

    Hi.

    I'm newbie in Java (ME too). I want to write my own application that will communicate between two phones via bluetooth.

    I have download and Install :
    - Eclipse 3.2
    - Carbide.j 1.5 into Eclipse
    After installation Carbide i have download and install updates :
    nptsdk_jme_v4_0.zip
    and S40_DP20_SDK_6230i_WorldLang_installer.exe (suggested in Nokia update manager).

    Then i download Examle -> MIDP: Bluetooth OBEX Example - Business Card Exchanger from http://www.forum.nokia.com/main/1%2C...ge_v1_0_en.zip

    I want to start that *.jad application in Emulator.

    They write in instruction of that example

    - Import BCExchanger project into your Eclipse workspace.
    - Open BCExchanger project in the Package Explorer.
    - Create a run configuration:
    1. Right click MediaSampler.jad (I made that on "BCExcanger.jad)
    2. Select "Run As | Run..."
    3. Select Nokia SDK Plug-in from the Configurations and press the "New" button.
    4. Select the SDK (eg. Prototype_4_0_S60_MIDP_Emulator)
    5. Press the "Run" button.


    After 3. "press the "New" button" i got 2 errors in Eclipse log.

    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
    Command-line arguments: -os win32 -ws win32 -arch x86

    Error
    Tue Sep 05 15:41:56 CEST 2006
    Unhandled event loop exception
    ---------------------------------
    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
    Command-line arguments: -os win32 -ws win32 -arch x86

    Error
    Tue Sep 05 15:41:56 CEST 2006
    org/eclipse/jdt/internal/debug/ui/launcher/MainTypeSelectionDialog

    java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/debug/ui/launcher/MainTypeSelectionDialog
    at com.nokia.phone.tools.sdk.ide.eclipse.common.properties.UEILaunchTabGroup.createTabs(Unknown Source)
    at org.eclipse.debug.internal.ui.launchConfigurations.CreateLaunchConfigurationAction.performAction(CreateLaunchConfigurationAction.java:70)
    at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction$1.run(AbstractLaunchConfigurationAction.java:103)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction.run(AbstractLaunchConfigurationAction.java:106)
    at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1086)
    at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:375)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:379)
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:321)
    at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:80)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)


    Have anybody some ideas what i'm doing wrong ?
    Last edited by jcsjacekj; 2006-09-05 at 14:55.
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Bluetooth tutorials problem

    it looks like there is something wrong with your eclipse installation
    can you create j2me projects, add classes, define the target and run an emulator normally ?

  3. #3
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Bluetooth tutorials problem

    hi Jacek,

    probably you will need to downgrade your eclilpse to meet lowest supported tools: Carbide.j was tested againts 3.1.*,
    relevant thread:
    http://discussion.forum.nokia.com/fo...hlight=eclipse

    and first just install most recent SDKs: S40 3rdEdition FP1 SDK and S60 3rdEd SDK (you will have Nokia Prototype 4 SDK already installed with carbide.j),
    then only if you need specific SDK/Emulator add additional platforms to your configuration,

    regards,
    Peter

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Re: Bluetooth tutorials problem

    Quote Originally Posted by peterblazejewicz
    hi Jacek,

    probably you will need to downgrade your eclilpse to meet lowest supported tools: Carbide.j was tested againts 3.1.*,
    Thanx, I'm downloading Eclipse 3.1.2 (Latest 3.1 version) and trying again.

    Update: Yes ! Eclipse 3.1.2 works fine with Carbide 1.5
    Last edited by jcsjacekj; 2006-09-06 at 23:48.
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Re: Bluetooth tutorials problem

    Hi.

    Eclipse with Nokia prototype SDK works fine.
    But ... in Nokia Conectivity Framemowrk cannot start any apliication using bluetooth in 6230i emulator.

    Have anybody some Java cource example with bluetooth communication, working on 6230i Emulator ?

    Here is one of my problems running bluetooth emulation ...

    http://discussion.forum.nokia.com/fo...09&postcount=5
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  6. #6
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Re: Bluetooth tutorials problem

    Hi.

    My notebooks don't have bluetooth device.

    Is it possible emulate bluetooth application in NCF without bluetooth in PC/Notebook ?

    I want to simulate communication between 2 mobiles via BT in NCF.

    Is it possible ? If yes - please can anybody tell mi how ?
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  7. #7
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Bluetooth tutorials problem

    hi Jacek,

    http://discussion.forum.nokia.com/fo...ight=bluetooth

    in short:
    either use:
    #1
    Nokia Prototype 4 SDK emulators (which ships with carbide.j or as standalone download) + Nokia Connectivity Framework

    #2
    Sun WTK Emulator which also support bluetooth emulation
    (however NFC offer better "WYSIWYG" for playing with bluetooth emulation I think)

    both do not require any bluetooth card/dongle/etc installed, thats just fully emulated environment,

    hth,
    regards,
    Peter

  8. #8
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Re: Bluetooth tutorials problem

    On page http://www.forum.nokia.com/main/reso...tooth/faq.html i found

    # How can I test Bluetooth MIDlets on the emulator?
    #

    There are two options. When using a MIDP Concept SDK emulator, you can execute two emulators on the same PC and simulate Bluetooth traffic between them. This is useful when you are developing, for example, a multiplayer game.

    When using a MIDP SDK, you can test applications between the emulator and real Bluetooth devices.


    There are 2 SDKs ?

    "MIDP SDK" and "MIDP Concept SDK emulator" ?

    If i don't have bluetooth device in PC i should use "MIDP Concept SDK emulator".

    But i have "Nokia Prototype SDK 4.0".

    I feel confused :
    - MIDP SDK
    - MIDP Concept SDK emulator
    - Nokia Prototype SDK

    Any links with explanation what is diffrence ?
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  9. #9
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Bluetooth tutorials problem

    hi Jacek,

    that's question to Nokia documentation team, however it seems that they recently performed some clearance in terminology,
    Nokia provides two different sets of SDKs: 1) SDKs and 2) Prototype SDKs. SDKs emulate the phone behavior of Nokia devices as closely as possible, because their emulators are based on the same software as the specified Nokia devices. The emulators of a prototype SDK are based on the reference implementation of the Java™ APIs of the corresponding Platform. The main benefits of prototype SDKs are early availability and fast performance. Each prototype SDK package contains several Platform emulators to create and compile an application and verify its functionality for different Platforms and devices.
    http://www.forum.nokia.com/info/sw.n...o_Edition.html
    I could bet that "concept" - when talking of most recent tools - has the same meaning as "prototype".
    Although both has slightly different meanings "prototype" is "proof of concept" I think

    regards,
    Peter

  10. #10
    Registered User
    Join Date
    Sep 2006
    Location
    Europe/Poland/Olsztyn
    Posts
    21

    Re: Bluetooth tutorials problem

    Maybe "concept" was a "idea" of mobile (demo), something like "concept cars" ?
    "Prototype" i working "concept" before producting of mobiles.
    "normal SDK's" are full implemented emulator ...
    >> Jacek J. <<

    "70% of people would give up their password for a chocolate bar."

  11. #11
    Registered User
    Join Date
    Sep 2006
    Posts
    13

    Re: Bluetooth tutorials problem

    Hi,

    I had the same problem as you, but I am using NetBeans instead of Eclipse. You can see this thread:

    http://discussion.forum.nokia.com/fo...ight=bluetooth

    I hope that you can solve the problem.

    regards,

    Gonzi

  12. #12
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Bluetooth tutorials problem

    Quote Originally Posted by jcsjacekj
    Maybe "concept" was a "idea" of mobile (demo), something like "concept cars" ?
    "Prototype" i working "concept" before producting of mobiles.
    "normal SDK's" are full implemented emulator ...
    Hi Jacek,
    I've found that today while reading Nokia book ("Developing scalable S40 ...."):
    http://www.forum.nokia.com/main/plat...s40/books.html
    [quote]Some Nokia device SDKs are labeled as "concept SDK". The Java runtime in a concept SDK i not ported from the software on actual devices. Instead it is adapted from the SUN MIDP reference implementation with a "skin" that emulates the device UI. So, the behavior of the concept emulator might differe from that of the real device. Developers must test all MIDlets developed on a concept SDK on the real device[/code]

    regards,
    Peter

Similar Threads

  1. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Bluetooth Technology
    Replies: 9
    Last Post: 2009-07-17, 02:33
  2. Replies: 5
    Last Post: 2007-04-13, 12:59
  3. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-07-25, 00:14
  4. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-25, 00:12
  5. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×