Results 1 to 4 of 4
  1. #1
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    251
    Rep Power
    3

    Default Importing packages and classes

    Hello everyone,
    step by step I'm starting to develop blackberry applications.
    I already read the basics and played a bit with the workspace(BlackBerry Java Plug-in 1.3.0).
    But unfortunately I could not import the swing class or the awt package.
    I opened the help section and choosed some example projects and they could import it!
    Copy the import line from the help class example to my code of course did not help.

    I'm new to all that smart phone applications I hope someone can help me.

    Thanks.

    edit:
    A picture for illustration:
    Attached Thumbnails Attached Thumbnails Importing packages and classes-.png  
    Last edited by tnrh1; 11-07-2011 at 01:33 PM. Reason: Adding an image

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,864
    Rep Power
    8

    Default Re: Importing packages and classes

    Are you sure blackberry supports Swing and AWT?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    251
    Rep Power
    3

    Default Re: Importing packages and classes

    God hates me
    Attached Thumbnails Attached Thumbnails Importing packages and classes-.png  

  4. #4
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    251
    Rep Power
    3

    Default Re: Importing packages and classes

    Ok I got it.
    The problem was on the JRE.
    As default the JRE is BlackBerry JRE 6.0.0 but changing it into execution enirnoment JRE (J2SE-1.4) solved this problem.
    Anyway thanks for your time.

Similar Threads

  1. Importing Packages
    By shadowfax57 in forum New To Java
    Replies: 3
    Last Post: 12-28-2010, 07:48 PM
  2. importing packages
    By mustachMan in forum New To Java
    Replies: 3
    Last Post: 01-20-2010, 05:07 AM
  3. help with importing packages
    By orrymr in forum New To Java
    Replies: 1
    Last Post: 08-07-2009, 08:18 PM
  4. importing external packages
    By bubbles in forum New To Java
    Replies: 3
    Last Post: 01-20-2009, 11:42 PM
  5. Replies: 3
    Last Post: 02-12-2008, 11:03 AM

Posting Permissions

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