Martin

Works fine on my system.

Seems Inline has problems creating or
using your it's working directory.

Check your environment vars (in particular HOME)
for that string (%USERPROFILE%). See

http://groups.google.ca/groups?q=%25USERPROFILE%25&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ffd662ea.0209240407.147a8475%40posting.google.com&rnum=4

To solve this you can always change/erase the HOME
env variable or force a specific
Inline dir by using the DIRECTORY option
or the PERL_INLINE_DIRECTORY env var.
See docs for more details, here's a quick
example for the Inline::Java test suite that
forces Inline to use ./Inline_test as it's work
dir:


use strict ;
use Test ;

BEGIN {
	plan(tests => 1) ;
	mkdir('./_Inline_test', 0777) unless -e './_Inline_test' ;
}

use Inline Config =>
          DIRECTORY => './_Inline_test' ;

use Inline (
	Java => 'DATA'
) ;


my $ver = types1->version() ;
print STDERR "\nJ2SDK version is $ver\n" ;

if ($ENV{PERL_INLINE_JAVA_JNI}){
	print STDERR "Using JNI extension.\n" ;
}

ok(1) ;



__END__

__Java__

class types1 {
	static public String version(){
		return System.getProperty("java.version") ;
	}
}

----------------------------------
| Patrick LeBoutillier
| [EMAIL PROTECTED]




From: "Martin Korb" <[EMAIL PROTECTED]>
To: "Patrick LeBoutillier" <[EMAIL PROTECTED]>
Subject: userprofile error
Date: Fri, 22 Nov 2002 12:46:20 -0800

this very short program gives me the following error:

can not chdir to %USERPROFILE% : No such file or directory in blib\lib\Inline.pm (autosplit into blib\lib\auto
inline\find_temp_dir.al) line 1155

- I never had this dir in the first place. Why is it looking for it?
- then I added this dir to the c:\ and rebuilt inline-java-0.33, no errors during the install but it still gives me the same error

Any help would be greatly appreciated.
Thanks Martin


use Cwd;
use strict;

my $taskId;
$taskId = 500;
print "$taskId\n";

use Inline (

Java => <<'END',
import java.lang.*;
import java.util.*;
import java.text.*;
import java.sql.*;
END
);

__END__


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

Reply via email to