Port of JDK 1.2

1998-09-10 Thread Jim Negro

Have you made plans for the 1.2 port?  If so, so you have an anticipated
release date?

Thanks for your efforts!  Java on Linux is great.

Jim



RXTXPre4 update

1998-09-10 Thread david . atkinson

To those who have played with my previous update to RXTX and anyone else
I have now updated what I have done to javacomm2 specs. It is now
bundled as an update to pre4 of rxtx. basically there are about 8 files
you need to update to rxtxpre4 before running ./configure. 

This version is much cleaner than my last attempt, thanks to the
availability of the minicom source code (don't you just love linux!)
and implements most events, hardware flow control (tested with a 
fussy modem).

Anyone interested can email me. I am also trying to contact the keepers
of the rxtx page.

Cheers
Dave Atkinson



Java on Linux... bug in InetAddress ??? please help!

1998-09-10 Thread Masuda, Bond

Hello,

I am having trouble getting reverse DNS lookups to work on Linux.
Following is a snip of the code... this works on Windows 95, Windows NT,
but not on Linux. The problem is that the getHostName method returns the
ipString instead of the hostname... i.e., it returns something like
10.2.6.15 instead of whatever.home.edu. The JDK version seems to not
matter in this particular case... so I don't believe that is an issue. I
am wondering if this might be a bug in the port of Java to linux.

public class revDNS
{
public static void main( String args[] )
{
String ipString = args[0];
String hostName;
InetAddress host;

try{
host = InetAddress.getByName(ipString);
}catch(UnknownHostException ex){
System.out.println("Fucked!");
return;
}

hostName = host.getHostName();
System.out.println("Hostname is :"+hostName);
return;
}
}

I would appreciate any help on this issue. Thanks in advance.

Bond Masuda
Global Integrity Corp. (an SAIC company)



Re: Java on Linux... bug in InetAddress ??? please help!

1998-09-10 Thread Michael Sinz

On Thu, 10 Sep 1998 13:34:08 -0700, Masuda, Bond wrote:

>Hello,
>
>I am having trouble getting reverse DNS lookups to work on Linux.
>Following is a snip of the code... this works on Windows 95, Windows NT,
>but not on Linux. The problem is that the getHostName method returns the
>ipString instead of the hostname... i.e., it returns something like
>10.2.6.15 instead of whatever.home.edu. The JDK version seems to not
>matter in this particular case... so I don't believe that is an issue. I
>am wondering if this might be a bug in the port of Java to linux.

First - have you tried that address in nslookup?

Just type:

nslookup 10.2.6.15

If this does not return the name of the host then the problem is that
you either do not have the DNS setup or it is set up wrong or the host
really does not have a name.

[...]

>I would appreciate any help on this issue. Thanks in advance.

I wish I could help you more but on my machine your address does not
work but address on the net, such as 204.146.18.33 do work.  (That
should return something like www.ibm.com if I remember correctly...)


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] - http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz




RE: Java on Linux... bug in InetAddress ??? please help!

1998-09-10 Thread Masuda, Bond

Hello Michael,

Thank you for replying so quickly..

The particular address in my message was a bogus address.. I was
assuming that would be clear when I mentioned the whatever.home.edu. In
anycase, yes, my DNS is setup properly, as 'nslookup' and 'host' both
return a hostname and address... in particular,

for IP = 206.19.60.13 I get
hostname = chinook.tenthmtn.com

but the Java program in my previous message does not work. I believe it
is capable of doing the reverse lookup... as is my understanding...
instantiation of the InetAddress object fails if reverse lookup is to
fail. However, my program continues to execute to the point where it
calls the getHostName() method. So, to me that means that the object was
successfully instantiated... which leads me to conclude that reverse
lookup was successful. However, the getHostName method returns the ip
address in string representation instead of the hostname. It seems to me
that the InetAddress object is instantiated, the ipString accepted, the
reverse lookup successful, but the hostname is not stored in
InetAddress. 

In case this matters, I am on Redhat 5.1 Linux kernel 2.0.35. I've used
both JDK 1.0.2 and JDK 1.1.5. 

You mention that you are able to do reverse lookup on your machine. What
platform are you on? And did you use the code in my previous message or
some other Java program? My java program DOES work on windows 95 and
Windows NT platforms... it DOESN'T WORK ONLY ON Linux.

Thanks for any furthur help if you can.
Bond Masuda
Global Integrity Corp. (an SAIC company)
[EMAIL PROTECTED] 

-Original Message-
From: Michael Sinz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 10, 1998 2:11 PM
To: [EMAIL PROTECTED]; Masuda, Bond
Subject: Re: Java on Linux... bug in InetAddress ??? please help!


On Thu, 10 Sep 1998 13:34:08 -0700, Masuda, Bond wrote:

>Hello,
>
>I am having trouble getting reverse DNS lookups to work on Linux.
>Following is a snip of the code... this works on Windows 95, Windows
NT,
>but not on Linux. The problem is that the getHostName method returns
the
>ipString instead of the hostname... i.e., it returns something like
>10.2.6.15 instead of whatever.home.edu. The JDK version seems to not
>matter in this particular case... so I don't believe that is an issue.
I
>am wondering if this might be a bug in the port of Java to linux.

First - have you tried that address in nslookup?

Just type:

nslookup 10.2.6.15

If this does not return the name of the host then the problem is that
you either do not have the DNS setup or it is set up wrong or the host
really does not have a name.

[...]

>I would appreciate any help on this issue. Thanks in advance.

I wish I could help you more but on my machine your address does not
work but address on the net, such as 204.146.18.33 do work.  (That
should return something like www.ibm.com if I remember correctly...)


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] - http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz



RE: Java on Linux... bug in InetAddress ??? please help!

1998-09-10 Thread Michael Sinz

On Thu, 10 Sep 1998 14:44:50 -0700, Masuda, Bond wrote:

>Hello Michael,
>
>Thank you for replying so quickly..
>
>The particular address in my message was a bogus address.. I was
>assuming that would be clear when I mentioned the whatever.home.edu. In
>anycase, yes, my DNS is setup properly, as 'nslookup' and 'host' both
>return a hostname and address... in particular,
>
>for IP = 206.19.60.13 I get
>hostname = chinook.tenthmtn.com
>
>but the Java program in my previous message does not work. I believe it
>is capable of doing the reverse lookup... as is my understanding...
>instantiation of the InetAddress object fails if reverse lookup is to
>fail. However, my program continues to execute to the point where it
>calls the getHostName() method. So, to me that means that the object was
>successfully instantiated... which leads me to conclude that reverse
>lookup was successful. However, the getHostName method returns the ip
>address in string representation instead of the hostname. It seems to me
>that the InetAddress object is instantiated, the ipString accepted, the
>reverse lookup successful, but the hostname is not stored in
>InetAddress.

Here is what I ran on my machine:  (Linux 2.0.35 with JDK 1.1.6)

class test
{
public static void main(String[] args) throws Throwable
{
System.out.println(java.net.InetAddress.getByName(args[0]));
}
}

Running it with:

java test 204.146.18.33

produces:

www.ibm.com/204.146.18.33

>In case this matters, I am on Redhat 5.1 Linux kernel 2.0.35. I've used
>both JDK 1.0.2 and JDK 1.1.5. 
>
>You mention that you are able to do reverse lookup on your machine. What
>platform are you on? And did you use the code in my previous message or
>some other Java program? My java program DOES work on windows 95 and
>Windows NT platforms... it DOESN'T WORK ONLY ON Linux.

I have also run your program (with the addition of an import statement
that was not in your original posting) and it produced the correct answer:

java revDNS 204.146.18.33
Hostname is :www.ibm.com

Again, this is on Linux 2.0.35 kernel (x86 CPU) on my small network here.
I have also run both your program and my little test program and they
both produce the same results under Windows using the Sun 1.1.6 JDK.
(And I assume it is the same JDK you are using)

The same result also happens on my Linux 2.0.35 (Alpha 21164) system, but
that was running a JDK 1.1.5 variant.

Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] - http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz




[ANNOUNCE] Xsql-2.1.7 including *bummer*

1998-09-10 Thread Peter A. Pilgrim

SOFTWARE RELEASE ANNOUNCEMENT
===

Xenonsoft, South London, England is very pleased to announce the
availability of:


XenonSQL, the java based interactive SQL Editor, version 2.1.7.  
 The Personal End User Edition. 


This software allows you use connect to relational database like
MySql, Sybase, and Oracle and submit SQL queries and commands to the
target databases.

The XenonSql software can be obtain from the web site:
`http://www.xenonsoft.demon.co.uk/software.html'

The requires the Java Development Kit minimum version 1.1.3 and Swing also
known as the Java Foundation Classes miminum version 1.0.1.
These are available from SunSoft web site:
`http://java.sun.com/products/'

The software was developed on Linux with Blackdown's 1.1.6v3 port of the
JDK `http://www.blackdown.org/java-linux.html'


Yours
Peter Pilgrim


Fri Sep 10 02:48:35 BST 1998


[BUMMER]
 Fri Sep 11 02:01:09 BST 1998 

Unfortunately the jar archive `xsql20.jar' did not make it into the first
release! The wrong `Makefile' was copied and supplied in the distribution.
Now you should be able to successfully perform `make all', `make install'
 and also perform `make uninstall'.

Thanks for your attention

Please accept my apologies for not checking the final release.
Peter Pilgrim




-- 
Del Segno Al Coda

Pete

Powered By
__
   / /=  __ ___  __ __ __ __ __
  / /=  / //   |/ // // /  // /
 / /__ / // /| / // _/ / >  <==
//__//_/=|__///__/__/= Slackware 3.5
  == ==  ===   == ==
"... ,because Unix is the best!"



Java Non-Commercial License Question

1998-09-10 Thread Ed Huott

Hi,

I was just reading the "Java(tm) Internal NonCommercial Use Source
License" from Sun in preparation for applying to be part of the
Java-Linux development environment and it raised a couple of questions
in my mind.

The license states that binaries derived from the licensed (Sun's)
source code cannot be distributed for a fee or with any product for
which a fee is charged. It also states that the Licensed Software cannot
be used "for commercial or productive" use without getting a commercial
license from Sun.  

On the other hand, permission is given to distribute derived binaries
freely as long as it is done so "subject to a license agreement
containing terms and conditions at least as protective of Sun as those
included in the binary code license used by Sun for internet distribuion
of the Java binaries."  The license also expressly gives the right to
"create ports."

Taken together, does this mean the following are disallowed without
first getting a commercial license from Sun:

1) Distributing a Java product with a JRE produced by the Java-Linux
porting project?

2) Running a commercial web server with servlets running on a JVM from
the Java-Linux JDK or JRE?

3) Commercial Java product development using the Java-Linux JDK?

I'm assuming the above restrictions do not actually exist based on the
way the Java-Linux JDK seems to be being distributed and used.  The
license that comes with the Java-Linux (binary) JDK distribution seems
to be the same one that Sun distributes with its JDKs.  I'm just hoping
that someone on this list can definitively state that this assumption is
correct.

Please forgive me if this topic has been covered before or I am just
being unduly confused by the legalese.  (One thing I certainly am not is
a lawyer.)

Regards,




Re: ddd, gdb, jdb and java: debuging on linux

1998-09-10 Thread Darius Bacon

> Well, I went nuts, 'cause ddd is the cream of the crop, I personally
> think... And I went to try it for myself. After guessing a lot
> (couldn't find a straight documentation on ddd for this), I found that
> a "ddd --jdb &" does the first trick (i.e. to use jdb as back end for
> ddd).
> 
> It's somewhat cumbersome, as you have to restart things every time
> your program exits (and starting jdb takes quite some time), but the
> worst is: I could not display any variable... It tells me my variable
> is not valid in that context. But I could do breakpoints, "steps" and
> "nexts", etc...

You might try Metamata Debug.  From our ad at
http://www.metamata.com/products/debug.html:

 Access to all data: You can access data regardless of its access modifiers
 during a debugging session. For example, there are no restrictions with regard
 to access of private variables.

You can download an evaluation copy at
http://www.metamata.com/download/index.html

-Darius