Hi Veda,

If your JAVA_HOME or java path is a Windows version of Java rather than one 
compiled specifically for Cygwin, then it will expect a ";" to separate out 
components of the CLASSPATH, rather than a ":".

Likewise, you will get into trouble if DIRECTORY is specified as a Windows path 
but interpreted by Cygwin as a UNIX path, or vice-versa.

You can try specifying a more Cygwin-friendly path like "/cygdrive/d/Temp", but 
you are probably better off using a JDK/JRE compiled under Cygwin if you want 
to run Perl under Cygwin.

I don't have any experience with Inline::Java under ActiveState, but that might 
be a better option for you if you need to use a Windows version of Java.

Personally, I just run everything under Linux/UNIX to avoid this problem.  :-P

Best of luck.

Scott

From: Vedananda Gowd [mailto:vedananda.g...@gmail.com]
Sent: Wednesday, February 02, 2011 7:27 AM
To: Jason Stelzer
Cc: inline@perl.org
Subject: Re: Inline issue : please advise your inputs


Dear Jason,

Thank you very much for your reply and kind suggestion.

I tried your suggestion by giving specifying the PERL_INLINE_DIRECTORY in the 
environment variables. This i directed to a folder namely D:/temp which is 
without any spaces.

still i see the same results.

> Couldn't find an appropriate DIRECTORY for Inline to use.
>  at DSS_SCRIPTING.pm line 72
i have attached the DSS.pm scripting file where the error occurs on line 72. 
This is just a function call.

is there any other thing which i need to take care while executing the inline 
function.

I have the JDK installed in D:\JdkInstallCcs\Java\jdk1.6.0_23
           JRE is in C:\Program Files\Java\jre6

Please advise.

Best regards, Veda



On Tue, Feb 1, 2011 at 3:25 PM, Jason Stelzer 
<men...@neverlight.com<mailto:men...@neverlight.com>> wrote:
This reads like perl couldn't decide were to build the class files.
Try specifying a DIRECTORY directive. It could be a permissions
problem, but we'd need more information to really say. This could be
compounded by paths with spaces in them, but i'm not sure. Try
specifying a directory with no spaces in the path and see what you
get.

http://search.cpan.org/~ingy/Inline-0.44/Inline.pod#The_Inline_DIRECTORY

On Tue, Feb 1, 2011 at 7:41 AM, Vedananda Gowd 
<vedananda.g...@gmail.com<mailto:vedananda.g...@gmail.com>> wrote:
> vgowd@DESTGD0D02107 /cygdrive/d/Program Files/Texas
> Instruments/ccsv4/scripting/examples/DebugServerExamples/perl_inlinejava
> $ perl dss_simple.pl<http://dss_simple.pl/> 
> ../../c64/interpreter/Debug/interpreter.out
> ../../C64/tisim_c64xple.ccxml
> Couldn't find an appropriate DIRECTORY for Inline to use.
>  at DSS_SCRIPTING.pm line 72
> BEGIN failed--compilation aborted at DSS_SCRIPTING.pm line 72.
> Compilation failed in require at dss_simple.pl<http://dss_simple.pl/> line 49.
> BEGIN failed--compilation aborted at dss_simple.pl<http://dss_simple.pl/> 
> line 49.
>
>
> it fails at the inline function usage below
>
> use Inline  ( Java  => 'STUDY',
>             STUDY =>
> ['com.ti.ccstudio.scripting.environment.ScriptingEnvironment',
>                       'com.ti.ccstudio.scripting.environment.TraceLevel',
>                       'java.lang.System',
>                      ],
>             AUTOSTUDY => 1,
>  #             DEBUG => 5,
>           );
>
>
> Could you please help me understand this problem and provide a pointer so
> that i can resolve this issue.
>
> Currently i have installed the inline::java (before this i had to install
> Parse-RecDescent-1.965001, Digest-MD5-2.51, Inline-Java-0.53)
>
> Awaiting your response.
>
> Best regards, Veda
>

Reply via email to