×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    25

    Sun ONE Studio 5 Mobile Edition + Nokia Developer's Suite for J2ME, Linux editions

    Hello,

    I installed Sun ONE Studio 5 Mobile Edition, Linux version, which
    included Sun's Wireless Toolkit v2.1 (WTK). I am able to write MIDP
    1.0 MIDlets and successfully load them onto a phone and execute them.

    I want to write MIDP 2.0 applications that use the Bluetooth adapter
    on a Nokia 6600. It is my understanding that Sun's WTK 2.1 supports
    MIDP 2.0. In fact, I am able to write a MIDP 2.0 MIDlet and emulate

    it with Nokia's Developer Suite for J2ME for Linux, installed
    stand-alone. However, Sun ONE Studio 5 tells me "package
    javax.bluetooth does not exist" if I try to import it in a MIDlet.

    I do not know why javax.bluetooth is not included in Sun's WTK 2.1.

    My first thought was that it is vendor specific and I should integrate
    Nokia's Developer Suite for J2ME, for Linux, with Sun ONE Studio 5.
    However, after following the steps in
    NDSforJ2ME_InstallationGuide_v2_0_Linux.pdf , Sun ONE Studio 5 gives
    me an exception when I start it up. The error output is listed at the
    end of this message. Other than this error, Sun ONE Studio 5 appears
    to function normally, with one exception. The Nokia Developer Studio
    installation guide says that, following successful installation, there
    should be a new menu item in the Tools menu: "Nokia Developer's Suite
    for J2ME". The errors listed below seem like a reasonable explanation
    for why it does not appear (notice the com.nokia... classes towards
    the bottom). Does anybody know how to fix it?

    Does anybody know if this will give me javax.bluetooth in Sun ONE Studio 5?

    I think I'm going to try installing Sun ONE Studio 4 Update 1, in
    accordance with the Nokia instructions for installing the Nokia
    Developer's Suite for J2ME, if I cannot solve this problem.

    Thanks!

    -Jon McCune




    java.lang.ClassNotFoundException: java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
    at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:212)
    at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1146)
    at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:670)
    at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:488)
    at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:962)
    at org.openide.awt.MenuBar.allInstances(MenuBar.java:132)
    at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:416)
    at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:705)
    at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:69)
    at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:592)
    at org.openide.util.Task.run(Task.java:136)
    at org.openide.awt.AWTTask.run(AWTTask.java:29)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Caused by: java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
    at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:452)
    at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:198)
    [catch] ... 18 more
    ==>
    java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
    at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:452)
    at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:198)
    at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1146)
    at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:670)
    at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:488)
    at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:962)
    at org.openide.awt.MenuBar.allInstances(MenuBar.java:132)
    at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:416)
    at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:705)
    at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:69)
    at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:592)
    at org.openide.util.Task.run(Task.java:136)
    [catch] at org.openide.awt.AWTTask.run(AWTTask.java:29)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    ==>
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:532)
    at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:907)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:449)
    at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:198)
    at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1146)
    at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:670)
    at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:488)
    at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:962)
    at org.openide.awt.MenuBar.allInstances(MenuBar.java:132)
    at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:416)
    at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:705)
    at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:69)
    at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:592)
    at org.openide.util.Task.run(Task.java:136)
    at org.openide.awt.AWTTask.run(AWTTask.java:29)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Caused by: java.lang.NoClassDefFoundError: javax/help/HelpSet
    at com.nokia.phone.tools.midp.ui.Help$Entry.<init>(Unknown Source)
    at com.nokia.phone.tools.midp.ui.Help.createEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.IdeToolManager.createHelpEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.sun1studio.Sun1StudioToolManager.createHelpEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.IdeToolManager.initialize(Unknown Source)
    at com.nokia.phone.tools.midp.mm.ToolManager.createToolManager(Unknown Source)
    at com.nokia.phone.tools.midp.ide.sun1studio.NDSforJ2MEIntegration.<init>(Unknown Source)
    [catch] ... 27 more
    ==>
    java.lang.NoClassDefFoundError: javax/help/HelpSet
    at com.nokia.phone.tools.midp.ui.Help$Entry.<init>(Unknown Source)
    at com.nokia.phone.tools.midp.ui.Help.createEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.IdeToolManager.createHelpEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.sun1studio.Sun1StudioToolManager.createHelpEntries(Unknown Source)
    at com.nokia.phone.tools.midp.ide.IdeToolManager.initialize(Unknown Source)
    at com.nokia.phone.tools.midp.mm.ToolManager.createToolManager(Unknown Source)
    at com.nokia.phone.tools.midp.ide.sun1studio.NDSforJ2MEIntegration.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:532)
    at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:907)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:449)


    ======== exception listing cut short to fit in post ================

  2. #2
    Registered User
    Join Date
    Feb 2004
    Location
    TLV
    Posts
    20
    hi there,

    i also had a similar problem a few days ago:

    - trying to have Sun One Studio 5 ME working with Nokia NDS 2.0, on win2000, and getting a nice exception at startup...

    surprinsingly, google was very quiet on the subject (either it's obvious for everybody, or no-one is really using Sun One version 5), but i got to the conclusion that these 2 are simply not compatible.

    (note: i'm an extreme j2me newbee, so i may miss something...)

    hth

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    25
    I am able to use the emulators with NDS with no problems if I install it stand-alone... it's just the IDE integration that is broken. I agree that google is surprisingly quiet on the subject. I was surprised to hear that you have a similar problem under Windows, although I suppose that's the point with Java. :)

    I'll let you know if I find a solution, and I would appreciate it if you would do the same.

    Cheers,

    -Jon

  4. #4
    Registered User
    Join Date
    Feb 2004
    Location
    TLV
    Posts
    20
    jon,

    the following post in this forum could be helpful (since SunOne Studio 5 ME is based on netbeans 3.5):

    http://discussion.forum.nokia.com/fo...=%2Aeclipse%2A


    i didn't test the proposed solution, since i quickly switched to eclipse + antenna as my j2me "discovery" platform (never liked sun's ide anyway!)

    good luck

    a+

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    25
    That looks to be a solution to a very similar problem. I installed the JavaHelp stuff and set the JHHOME environment variable, but I'm still not having any luck.

    Thanks for you suggestions though.

    -Jon

Posting Permissions

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