I'm trying to install Java::Swing on ActiveState Perl 5.8+ on windows. Is this an appropriate forum for soliciting for help on this?
After studying the source code for the failing test, I see the problem: In the test, we specify BEGIN { $ENV{CLASSPATH} .= 'java'; } This means we should be adding the sub-directory java to the places in which we look for .class files. I think this is in error: we should be adding ';java' (note the semi-colon used to separate directories in a java classpath) but making that change did not help. The next statements cause the problem: use Java::Swing; my $label = JLabel->new( { text => "Drag Here", horizontalAlignment => SwingConstants->RIGHT } ); It cannot find the constant RIGHT when it loads package swing constants with this code: package SwingConstants; use strict; use warnings; # Unlike most of the files in this directory, this one was hand coded. use Inline Java => 'STUDY', AUTOSTUDY => 1, STUDY => ['PerlSwingConstants']; The file PerlSwingConstants.class is in the java-sub directory but it is not finding it there. Do you know why? The tests for Inline::Java succeeded so I think the STUDY feature works. It should find it but it is not! Can anyone tell me why the install test failed and how to fix it? Below is the exact error message. Thanks, Siegfried t\01use........ok t\02label......Class PerlSwingConstants not found at C:/Perl/site/lib/Inline/Jav a.pm line 607 BEGIN failed--compilation aborted at C:\cygwin\home\Siegfried\.cpan\build\Java-S wing-0.03\blib\lib/Java/Swing/SwingConstants.pm line 8, <GEN7> line 5. Compilation failed in require at C:\cygwin\home\Siegfried\.cpan\build\Java-Swing -0.03\blib\lib/Java/Swing.pm line 28, <GEN7> line 5. # Looks like your test died before it could output anything. t\02label......dubious Test returned status 13 (wstat 3328, 0xd00) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay Siegfried