DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Easy problem?

  1. #1
    Join Date
    Oct 2005

    Easy problem?


    I am trying to implement BeanShell, but get an error stating that the "package bsh does not exist" when compiling. I'm sure I've put the bsh .jar file in the correct folder (java home/jre/lib/ext), so I'm a bit perplexed.

    When I write "import bsh." the only thing that pops up is "*" (entire package). If I write "import bsh.Interpreter", I get no complaints. Either way (ie "import bsh.*" or "import bsh.Interpreter") I can create an interpreter:

    Interpreter i = new Interpreter();

    If I remove the import statement all together, I can't create the Interpreter. From this I gather that java finds the package, but when I compile it tells me that the package is missing. Am I an idiot or is this a bug of some strange sort? I know this has some easy fix and that I'm probably a stupid newbie, but please help me if you can. I've been at it all day and I'm going nuts.

  2. #2
    Join Date
    Oct 2005
    I'm an idiot of course. I just needed to add the bsh package to the project. Sometimes the brain just shuts down...

Similar Threads

  1. Problem with Search
    By Irina in forum ASP.NET
    Replies: 0
    Last Post: 11-29-2002, 10:47 PM
  2. Replies: 0
    Last Post: 12-13-2001, 12:06 PM
  3. a problem with font and language
    By Roseta in forum VB Classic
    Replies: 0
    Last Post: 11-14-2001, 03:24 AM
  4. Arabic problem view
    By Ayman in forum VB Classic
    Replies: 0
    Last Post: 04-03-2000, 01:08 AM
  5. Problem with CryptoAPI and JCE
    By Jason Bock in forum VB Classic
    Replies: 0
    Last Post: 03-21-2000, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.