Problems with includes and class paths

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Squla
Posts: 3
Joined: 17 Nov 2010, 13:50
Location: Netherlands
Contact:

Problems with includes and class paths

Post by Squla »

Hi all,

first of all, smartfox is really great!! I enjoy working with it!
But ... we have choosen the 1.6.9 version of SFS, because of the AS extensions.

Now i have all my code in 1 file for an extension. But this horrible to work with :-)

So i tried to #include a file in my extension. But everytime i get the same error: Can't include file, not in classpath.

It's just another .as file and i tried several paths, but it is still not working.
The files 'm trying to include are just in the sfsExtension directory.

What am i doing wrong here? :)
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

It should be something like:

Code: Select all

@include "example.as"
Smartfox's forum is my daily newspaper.
Squla
Posts: 3
Joined: 17 Nov 2010, 13:50
Location: Netherlands
Contact:

Post by Squla »

Hi BigFish

thanks for your reply, but that is what i do. That's when i get the error message.
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Are both of the files located inside the same directory - that is ..\Server\sfsExtensions\ ?

Also, the file names are case sensitive.

Furthermore, please include the full error dump.
Smartfox's forum is my daily newspaper.
Squla
Posts: 3
Joined: 17 Nov 2010, 13:50
Location: Netherlands
Contact:

Post by Squla »

sorry for the late reply with the holidays and all.
But i checked everything. Case sensitive, same directory (i tried it in several places)

and i still get this error:

2010/12/29 09:43:07.503 - [ SEVERE ] [id: 16] (JavascriptExtension.loadScript): Error loading extension. Can't load include file: Shared/results.as; -> 18
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Replied via pm
Smartfox's forum is my daily newspaper.
Post Reply