| JavaScript Class not found when using multiple files [message #537747] |
Thu, 03 June 2010 10:26  |
Mike Pelley Messages: 9 Registered: May 2010 Location: Ottawa, Ontario, Canada |
Junior Member |
|
|
I have created a project using Eclipse Galileo with PHP, HTML and JavaScript. In my js directory, I have multiple files that reference classes in each other. In Eclipse, my calls to "new MyClass" result in "MyClass cannot be resolved to a type".
After creating the PHP project, I right clicked on the project and selected "Configure -> Add JavaScript Support". I also added my js directory to the "Source" tab in "Project Properties -> JavaScript -> Libraries".
I've search for a while now and tried a few other things, but I cannot eliminate this error. Is it possible to get Eclipse to recognize my own classes?
Thanks,
Mike.
|
|
|
|
|
|
| Re: JavaScript Class not found when using multiple files [message #548711 is a reply to message #539448] |
Thu, 22 July 2010 13:02  |
 |
Nitin Dahyabhai Messages: 1878 Registered: July 2009 |
Senior Member |
|
|
On 6/10/2010 2:15 PM, Mike Pelley wrote:
> Yes, the classes are found when I copy them into the same file.
I think we're going to have to see the project attached to a bug report
to really understand what's going on.
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
---
Nitin Dahyabhai
Eclipse WTP, IBM
|
|
|
Powered by
FUDForum. Page generated in 0.04453 seconds