Matthew,

Maybe there is already a program using port 7890 (the default Inline::Java port), or
maybe an Inline::Java process is stuck there from a previous failed run (unlikely but possible).
Check with the 'netstat' command to see.


If you want you can use the PORT configuration option to set a different port
number:


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
PORT => 1234
) ;

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


Good luck,


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




From: "matthew padilla" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: inline::java problems, newbie question
Date: Mon, 24 Nov 2003 15:56:41 -0600

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


Mathew

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca




Reply via email to