Hallo,
these are my first steps with inline::java and there are my first
Problem:

When I call the Skript in a DOS-Box everything works fine, but when I
call it on the Web-Server (IIS 6.0), I get the following Errormessage:

A problem was encountered while attempting to compile and install your
Inline
Java code. The command that failed was:
 "C:\Programme\java\jdk1.6.0_01\bin\javac.exe" -deprecation -d
"C:\fa_zsv\_inline\lib\auto\jTest3_pl_0bf2" Hi.java > cmd.out 2>&1

The build directory was:
C:\fa_zsv\_inline\build\jTest3_pl_0bf2

The error message was:

To debug the problem, cd to the build directory, and inspect the output
files.

 at C:\FA_ZSV\cgi-bin\jTest3.pl line 13
BEGIN failed--compilation aborted at C:\FA_ZSV\cgi-bin\jTest3.pl line
38.
  For help, please send mail to this site's webmaster, giving this error
message and the time and date of the error. 

### END Errormessage  #######

 ### Skript #######

use strict;
use warnings;
use CGI::Carp qw(fatalsToBrowser);

use Inline (

Java => <<'EOJ', 

public class Hi {

      String greeting;
    
    public Hi (String greeting) {
        this.greeting = greeting;
    }
    
    public void setGreeting (String newGreeting) {
        greeting = newGreeting;
    }
    
    public String getGreeting() {
        return greeting;
    }
}

EOJ
        
SHARED_JVM => 1,
      DIRECTORY => 'c:/fa_zsv/_inline/'
   ) ;    
    
    
print "Content-type: text/html\n\n";
print "<HTML>\n<HEAD>\n<TITLE>inline::Java TEST</TITLE>\n</HEAD>\n";
print "<BODY bgcolor=\"#CCCCCC\">\n";
print "<h1>Ein Gruß</h1>\n"; 

my $greeter = Hi->new("howdy");
print $greeter->getGreeting()."\n";

print "</BODY>\n</HTML>";  

####END Skript ###########



 The hi.java File was build in c:\fa_zsv\_inline\build\jTest3_pl_0bf2 .

Thanks for your help!

Matthias

  


Reply via email to