http://www.perlmonks.org?node_id=938634

Lion-Tiger has asked for the wisdom of the Perl Monks concerning the following question:

I want to install Inline::Java, to embed perl code in java projects.
So I downloaded it and tried to install:
>perl makefile.pl J2SDK="c:\Java\jdk1.6.0_26" Welcome to the Inline::Java installation procedure. Default J2SDK for Inline::Java will be 'c:\Java\jdk1.6.0_26'. See module documentation for information on how to use a different J2S +DK or change this default value. Warning: prerequisite Inline 0.44 not found. Inline::Java can use a JNI extension that allows the Java Virtual Mach +ine (JVM) to be dynamically linked with Perl instead of running as a separ +ate process. The use of this extension is optional, and building it still allows Inline::Java to run the JVM in the default (separate process) fashion. Note: You need a C compiler to build the extension. Do you wish to build the JNI extension? [y] y Building JNI extension. Building with: C:\Java\jdk1.6.0_26\include\jni.h C:\Java\jdk1.6.0_26\include\win32\jni_md.h C:\Java\jdk1.6.0_26\lib\jvm.lib C:\Java\jdk1.6.0_26\jre\bin\server\jvm.dll Note: In order for Inline::Java to use the JNI extension, you will nee +d to use the JNI configuration option or set the PERL_INLINE_JAVA_JNI envir +onment variable to a true value. You will also need to add the following dire +ctories to your PATH environment variable: C:\Java\jdk1.6.0_26\jre\bin C:\Java\jdk1.6.0_26\jre\bin\server See README.JNI for more information. The PerlInterpreter extension allows Inline::Java to be loaded directl +y from Java using an embedded Perl interpreter. It is still EXPERIMENTAL and may not build or work properly on all platforms. See documentation for more details. Do you wish to build the PerlInterpreter extension? [n] n Note (probably harmless): No library found for -ljvm Writing Makefile for Inline::Java::JNI Writing Makefile for Inline::Java You can continue the installation with the following commands: % nmake % nmake test % nmake install >nmake Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. "C:\Java\jdk1.6.0_26\bin\javac.exe" -deprecation -g -d Java\cl +asses Java \sources\org\perl\inline\java\*.java Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. "C:\Java\jdk1.6.0_26\bin\jar.exe" cf Java\InlineJavaServer.jar + -C Java\c lasses org -C Java\classes InlineJava.properties "C:\Java\jdk1.6.0_26\bin\jar.exe" cf Java\InlineJavaUser.jar - +C Java\cla sses InlineJavaUserClassLink.class syntax error at -e line 1, next char ) Missing right curly or square bracket at -e line 1, at end of line Execution of -e aborted due to compilation errors. NMAKE : fatal error U1077: 'C:\strawberry\perl\bin\perl.exe' : return +code '0xff ' Stop.


====================

Inline::Java installed, thanks to ALL! =)

Used dmake instead of nmake ;)