Hi,

I've just installed inline::java on my Windows 2000 desktop, and am trying to run a very basic program, copied pretty much verbatim from an on-line tutorial:

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


my $v = Hi->new("howdy");


When I run this, the following is generated:
Can't exec JVM: open3: Can't call method "close" on an undefined value at C:/Perl/lib/IPC/Open3.pm line 338.
at C:/Perl/site/lib/Inline/Java.pm line 411
BEGIN failed--compilation aborted at C:\projects\software\library\disc\perl\inline\java\inline_java.pl line 27.
Can't open server socket on port 7890: Address already in use: JVM_Bind


Why is the "Address already in use", and how can I fix this?

Thanks -
Matt P.

_________________________________________________________________
Set yourself up for fun at home! Get tips on home entertainment equipment, video game reviews, and more here. http://special.msn.com/home/homeent.armx




Reply via email to