Re: The RMI Newbie problem - RMI binding bug

1999-11-01 Thread Peter Pilgrim



[EMAIL PROTECTED] wrote:
> 
> Hi RMI Gurus
> 
> I was heartened to see most of the names dealing with this question
> previously once again active in the search for an RMI Registry.
> 
> I would appreciate whatever light you can throw on my problem:
> 
> "Registry.[re]bind localhost/127.0.0.1 != spin.sgh-net.de/127.0.0.2"
> 
> Steps taken so far:-
> 
> 1. Reverse order of entries in '/etc/hosts' as in FAQ
> 
> 2. Using hostname in bind/rebind statement instead of localhost
>as recommended in the mail archive.
> 
> 3. a) getByName(null)   -> localhost/127.0.0.1
>   getByName(nick)   -> nick/127.0.0.2
>   getByName(hostname)   -> hostname/127.0.0.2
> 
>b) InetAddress.getLocalHost()-> hostname/127.0.0.2
> 
>c) getAllByName(localhost)   -> localhost/127.0.0.1
>   getAllByName(nick)-> nick/127.0.0.2
>   getAllByName(hostname)-> hostname/127.0.0.2
> 
> This problem disappears if I make hostname also 127.0.0.1, but I don't
> know what the ramifications will be.
> 

Why are using 127.0.0.2 as an IP address. Is this meant to be
a alternate IP for the same physical machine?

Nathan Meyers? sent me a URL for a Ninja RMI Registry, 
which I have had time
to look at since `netstat -rn' checking on LISTEN on 1099 solved
my problem: how to find out when rmiregistry died?

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
"Give the man, what he wants. £££" [on Roy Keane, Quality Player]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: The RMI Newbie problem - RMI binding bug

1999-11-01 Thread Peter Pilgrim

[EMAIL PROTECTED] wrote:
> 
> Hi RMI Gurus
> 
> I was heartened to see most of the names dealing with this question
> previously once again active in the search for an RMI Registry.
> 
> I would appreciate whatever light you can throw on my problem:
> 


> "Registry.[re]bind localhost/127.0.0.1 != spin.sgh-net.de/127.0.0.2"
> 
> 
> Or will solving Ex 15-2 of "Java Examples in a Nutshell" help me to get
> round this?
> 
> Grateful for any hints in this area.

Doh!  No it was ``http://www.cs.berkeley.edu/~mdw/proj/ninja/''.
It was Mattie Welsh's URL

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
"Give the man, what he wants. £££" [on Roy Keane, Quality Player]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: java 1.1.7/Linux Thread switching

1999-11-01 Thread Patrick Taylor

My thanks to everyone for the replies about thread interleaving.  The
other thing I'm still trying to sort out is this issue with native
threads in jdk 1.1.7v3 and redhat 6.0 (with glibc 2.1).   There seems to
be a library mismatch or something.  A simple threaded program runs fine
with native threads on a system with glibc 2.0.7 but doesn't work
reasonable at all with glibc 2.1.1.  Are there any known conflicts, and
if so are there any known work-arounds?  Of course, it might be
something other than glibc that's conflicting... the symptom I see is
that a Thread.sleep(1l) returns much, much sooner than it should
with
no error thrown.  I can supply a program to demonstrate the problem if
anyone wants.

thanks again,
Rich
[EMAIL PROTECTED]

The native threads implementation is just plain broken
on glibc-2.1 systems.  See this bug report:

http://www.blackdown.org/cgi-bin/jdk/incoming?id=1302


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Java 2

1999-11-01 Thread Jacob Nikom

I think Blackdown port is Java 2. What specific package do you need?

Jacob Nikom

[EMAIL PROTECTED] wrote:
> 
> Does anyone know even roughly when Java 2 will be ported to Linux?
> 
> I am planing to start a project, and would prefer to wait for Java 2 if
> it won't be too long.
> 
> Thanks,
> Dick Kreutzer
> AmeriCom Inc.
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: JDBC newbie question

1999-11-01 Thread Eric vanberkel


Thanks to you too,

Stick to whatever suits you...


gr. Eric

--- Jalaluddin Riaz <[EMAIL PROTECTED]> wrote:
> hi,
>thanks for help. i think i have got it sorted now. and
> i'm gonna stick to 
> mysql, i've got used to it.
> thanks again.
> 
> 
> 
> 
> >I've been thru this.
> >
> >You go to check you have the 1.2.2 driver and not the
> >1.2.1, which did not work on my prev2 JDK + latest mysql
> >
> >Also for apps:
> >java -cp .:$CLASSPATH proggie
> >with a correct classpath set
> >
> >in applets $CLASSPATH won't work.
> >You'll want to put into your html:
> >
> >
> >..
> >..
> >
> >
> >put the mm jarfile in this tag and in the applet home
> dir.
> >If there is no jar, copy the mm.mysql level into the
> applet
> >home dir. I know it's a shame, butt...
> >
> >If you haven't got a jar you use the jar tools to pack
> the
> >mm.mysql classes into a jar file.
> >
> >This knowledge cost me a lotta sweat. I hope it pays off
> >for you brother...
> >
> >Oh,
> >I managed to step over the line to PostgrSQL. Support
> for
> >JDBC is much better. This might be a hint. They also
> >upgraded to JDBC2 faster then mysql usually does
> >
> >Good luck,
> >gr. Eric
> 
> __
> Get Your Private, Free Email at http://www.hotmail.com
> 

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Version snag

1999-11-01 Thread Eric vanberkel

Not all in this group.
Since you ported Java stuff to pre2, this is the place to
go lookin for answers.

If people drag you down, the energy wasted is theirs.

gr. Eric

--- Hartnett <[EMAIL PROTECTED]> wrote:
> This same package was installed on Solaris and its
> runtime and works fine.
> 
> This group seems to be quick to jump on someone if it is
> not JAVA Linux related in someone's opinion.
> I am running Blackdown JAVA 2 on Red Hat Linux 6, that
> sounds like this group to me. I don't see what the
> problem 
> is?
> I thought the idea of this list is to try to help others,
> not to try to make someone want not to use these
> products?
> 
> On Mon, 25 Oct 1999 18:19:15 -0700 (PDT), Dustin Lang
> wrote:
> 
> >
> >Hi,
> >
> >> I am just surprised that the software now states that
> the pre-release
> >> 2 is not JAVA 2, can anyone make a suggestion as to
> why?
> >
> >I would suspect that your program is checking for a
> version number string
> >in a particular format, and is not receiving an answer
> in precisely that
> >format, and is choking.  I would further suspect that it
> was written in
> >windows and not tested anywhere other than windows. 
> Blah.  I would also
> >suspect that your code is calling
> System.getProperty("java.version"), and 
> >calling something like
> "1.2".equals(System.getProperty("java.version")).
> >This would sugest that your code is to blame, not the
> Blackdown JDK (and
> >your message is therefore off-topic). I cannot make a
> further guess 
> >without seeing your code.
> >
> >Cheers,
> >dstn.
> >
> >
> 
> 
> 
> 
> --
> ICQ# 10073477 
> http://people.ne.mediaone.net/tardis/index.html
> 
> Space Corps Directive #1694
> During temporal disturbances, no questions shall be
> raised about any crew member whose time sheet shows him
> or her clocking off 187 years before he clocked on. -Red
> Dwarf
> 
> 
> 
>
--
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: GUI Design Question

1999-11-01 Thread Eric vanberkel

You might want a bit of help with GUI using the best IDE
I've ever seen ( & great perfomance)

AnyJ for Linux:

http://www.netcomputing.de/


gr. Eric

--- Riyad Kalla <[EMAIL PROTECTED]> wrote:
> Java-Linux,
> I've been getting deeper into UserInterface design
> recently and have noticed many design issues that I am
> comming up against as my interfaces/programs are getting
> larger and more complex. And I was hoping maybe some of
> you
> could point me in the right direction.
> 
> My GOAL is to be able to break my UserInterface down into
> smaller classes that can all be instantiated and used by
> the
> main interface. For example have a ButtonPanel,
> NavigationPanel, DisplayPanel and seperate listener
> classes
> for each of those different types of panels. Then have a
> UserInterface class that instantiates all of them and
> builds
> the UI. The problems I am running into, as you can
> imagine,
> is getting objects back and forth between these classes
> CLEANLY. For an example. Lets say I have these 3
> following
> classes, one of which is a listener:
> 
> /* Class Listener */
> public class iHearYou implements ActionListener
> {
>  actionPerformed( ActionEvent e )
>  {
>   // Do something complex, create a new graphical
> component as a result
>   // that needs to be added to the UI.
>   }
> }
> 
> /* Class Panel */
> public class controlMe extends JPanel
> {
>   JButton a = new JButton( "Hi!" );
>   iHearYou newEar = new iHearYou();
>   a.addActionListener( newEar );
>   add( a );
> }
> 
> /* Class UI */
> {
>  controlMe S&M = new controlMe();
>  getContentPane().add( S&M );
> }
> 
> No assuming I click that button, which is being contained
> by
> the UI class, that action propogates all the way down to
> the
> action listener, where a new UI components (lets say a
> JLabel)  is created, and consequently wants to be added
> to
> my UI WITH a specific layout directive (lets say
> BorderLayout.NORTH). some might say "create an add
> method",
> but the problem there that I percieve is lets say I have
> a
> 100 buttons that do something different and have to add
> there component someplace else depending on many
> different
> variables. Then my generic add() method has to either
> become
> insanely complex or I have to find another way around
> this.
> 
> None the less, how do I cleanly get my object back to the
> main UI class and have it be added to the UI?
> 
> More importantly, is THIS good design that I have
> outlined
> above? Or should I have the extended JPanel class
> listening
> to itself? I don't like that idea, because it doesn't
> inantely seem OOP to me. So I've tried to break things
> up.
> But now I am getting confused about which road to head
> down.
> 
> My goal would to be to create complex user interfaces so
> obviously I need to tackle this sooner or later.
> 
> --
> [  Riyad Kalla  ]
> [   [EMAIL PROTECTED]   ]
> [   CS - Major  ]
> [ University of Arizona ]
> 
> 
> 
> 
>
--
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



java mail API

1999-11-01 Thread John Louis



hi,
  I would like to know that JAVA MAIL API can run on 
linux or not?
 
Thanks
 
 
Louis


Re: java mail API

1999-11-01 Thread Brian Pomerantz

On Mon, Nov 01, 1999 at 10:37:02PM -, John Louis wrote:
> hi,
>   I would like to know that JAVA MAIL API can run on linux or not?
> 

Yup.  I wrote a mail client that used IMAP with it.  I never had time
to see about doing a local mailbox and POP support.  It is all
straight forward 100% Java code.


BAPper


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



[Q] Displaying large image with MemoryImageSource

1999-11-01 Thread Eric Chao

Hi everybody, I had problems displaying a large image constructed from a

big buffer of int's using MemoryImageSource.  The maximum size it can
display seems to be about 600x500. Anything bigger than that will just
give me a white window. I checked the buffer and is very sure that
there's valid data inside and also had tested it under Window95 and NT.
It works fine under the Windows.

The following is the code that I use: (buffer is about 1700x1200)
(Problem arises when width and height is over 600)

public construct_image() {
Constructing buffer and setting its values here.
  ..
image = createImage
   (new MemoryImageSource
 (width, height, buffer,
  0, width));
  .
}

public void paint (Graphics g) {
setBackground(Color.blue);

g.drawImage(image, 0, 0, this);
}


Any suggestions is greatly appreciated.


Chang-Cheng (Eric) Chao
Merlin Software Technologies Inc.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re:java mail API

1999-11-01 Thread Steve Nguyen

It runs perfectly well and though can not be better

Steve Nguyen
[EMAIL PROTECTED]
C.E.O.
KBMail Software & Java Hosting Service Provider
http://www.kbmail.com
http://www.ebpcs.net

"Plan - Do - Review --> Success"



 Original message 
From: "John Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: java mail API
Date: Mon, 1 Nov 1999 22:37:02 -
--








hi,
  I would like to know that JAVA MAIL API can run on 
linux or not?
 
Thanks
 
 
Louis


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



JDBC useing MySQL and mm.msql InstantiationError

1999-11-01 Thread tpeter


I'm trying to connect to MySQL 3.22 via JDBC and mm.mysql.jdbc-1.2b.
I can get a Connection object, however when I try to create a statement
useing this connection i get the following java.lang.InstantiationError:


[Loaded org.gjt.mm.mysql.Util] 
[Loaded org.gjt.mm.mysql.Statement] 
[Loaded java.lang.InstantiationError from /java/jdk1.2/jre/lib/rt.jar]
[Loaded java.lang.IncompatibleClassChangeError from /java/jdk1.2/jre/lib/rt.jar]
Exception in thread "main" java.lang.InstantiationError: org/gjt/mm/mysql/Statement
at org.gjt.mm.mysql.Connection.createStatement(Compiled Code)
at exps.jdbc.Test1.useConnection(Compiled Code)
at exps.jdbc.Test1.main(Compiled Code) 


Have any of you dealt with this?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]