-
Easy problem?
Hi,
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.
-
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
-
By Irina in forum ASP.NET
Replies: 0
Last Post: 11-29-2002, 10:47 PM
-
Replies: 0
Last Post: 12-13-2001, 12:06 PM
-
By Roseta in forum VB Classic
Replies: 0
Last Post: 11-14-2001, 03:24 AM
-
By Ayman in forum VB Classic
Replies: 0
Last Post: 04-03-2000, 01:08 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks