Re: Does Java apps has to have .class extension?

1998-10-06 Thread Paul Romanchenko

On Mon, 5 Oct 1998, Danny Lu wrote:

> But when I try to run a example program I wrote.. and I change
> the extension.. I got an error stating "Can't find class Example"
> 
> and I got Example.class... now I change the name of the Example.class to 
> Example:
>   mv Example.class Example
> 
> then I made the example executable:
>   chmod u+x Example
> 
> and then I ran it...
>   ./Example
> 
> I got the error message saying:
>   "Can't find class Example"
When kernel trying to start Example apps, it looking into Example file,
decide that it is java class and pass it to java loader like this 
'java Example', then java loader trying to load Example.class file and
fails.

With best wishes.
Paul Romanchenko, Russia, Omsk, Laboratory 321
[EMAIL PROTECTED], 2:5004/1.321, http://www.lab321.ru/~paul



Java and CVS

1998-10-06 Thread Travis Shirk

Hello All,

This post does not have anything to do with Linux, but some of you
may be able to help since you're Unix users.

---

I'm having some problems using CVS with a pretty large Java API.  The problem
is pretty basic, I want my CVS repository to contain only java source files.
This is necessary because (1) I don't want CVS to try and merge .class
files and (2) people working with the repository should need to do a cvs add
on only the source file and not the new .class file.  My problem is
with dependencies.  Many of the classes depend on other classes that
may not have been created yet in the 'make all' build process.  I've played
around with javac -depend but I don't think it likes how I organize
my source environment.  I have all .java files under a src directory
in each subpackage directory.  So if I have a package called foo.bar
the directory hierarchy would look like this:

foo/bar contains the .class files
and foo/bar/src contains the .java files

I refuse to mix the .java and .class files and think it is ridiculous how
java tools expect this.

Dependencies are not a problem once all the .class files are around, but
when a user checks out a new repository I don't want them to get any .class 
files.  Basically, the first thing that should be done after checking out the
repository is a 'make all' so that all the .class files are built.

Has anyone ever solved this problem.  This is the first time I've really
wished for header files, because C/C++ does not have this problem during
compile time.


Travis Shirk
[EMAIL PROTECTED]



Java and CVS

1998-10-06 Thread Paul Michael Reilly

Travis Shirk writes:
 > Hello All,
 > 
 > This post does not have anything to do with Linux, but some of you
 > may be able to help since you're Unix users.
 > 
 > ---
 > 
 > I'm having some problems using CVS with a pretty large Java API.  The problem
 > is pretty basic, I want my CVS repository to contain only java source files.
 > This is necessary because (1) I don't want CVS to try and merge .class
 > files and (2) people working with the repository should need to do a cvs add
 > on only the source file and not the new .class file.  My problem is
 > with dependencies.  Many of the classes depend on other classes that
 > may not have been created yet in the 'make all' build process.  I've played
 > around with javac -depend but I don't think it likes how I organize
 > my source environment.  I have all .java files under a src directory
 > in each subpackage directory.  So if I have a package called foo.bar
 > the directory hierarchy would look like this:

Your problem is not with CVS.  It is with understanding Makefiles,
packages and the various development tools.

You clearly want just the .java source files under CVS source control.
This is eminently reasonable.

You also do not want to use the default behavior of having source
files and class files in the same directory.  This is also reasonable.

How you implement your makefiles to realize your packaging structure,
of course, depends on your design.

I won't solve your problem, but I will illustrate how I solved a
similar problem.

Let's say I have an app named App1 which I want to release as
`com.pajato.App1' with source App1.java which uses two subpackages:
com.pajato.util and com.pajato.database.

I choose to put my class files in a separate directory tree from the
sources.  Let's say I use a directory hierarchy of:

.../App1
 /classes
/com/pajato
/com/pajato/util
/com/pajato/database
 /sources
/com/pajato
/com/pajato/util
/com/pajato/database

where I do my build's in the App1 directory.  My makefile will look something like:

ROOT_CLASSDIR = classes
ROOT_SOURCEDIR = sources

APP1_SOURCES = App1.java Class1.java Class2.java ... ClassN.java
APP1_CLASSES = $(ASC_SOURCES:.java=.class)
APP1_PACKAGEDIR = com/pajato
APP1_SOURCEDIR = $(ROOT_SOURCEDIR)/$(APP1_PACKAGEDIR)
APP1_CLASSDIR = $(ROOT_CLASSDIR)/$(APP1_PACKAGEDIR)

UTIL_SOURCES = Util.java Util1.java Util2.java ... UtilN.java
UTIL_CLASSES = $(UTIL_SOURCES:.java=.class)
UTIL_PACKAGEDIR = com/pajato/util
UTIL_SOURCEDIR = $(ROOT_SOURCEDIR)/$(UTIL_PACKAGEDIR)
UTIL_CLASSDIR = $(ROOT_CLASSDIR)/$(UTIL_PACKAGEDIR)

DATABASE_SOURCES = Database.java Database1.java Database2.java ... DatabaseN.java
DATABASE_CLASSES = $(DATABASE_SOURCES:.java=.class)
DATABASE_PACKAGEDIR = com/pajato/database
DATABASE_SOURCEDIR = $(ROOT_SOURCEDIR)/$(DATABASE_PACKAGEDIR)
DATABASE_CLASSDIR = $(ROOT_CLASSDIR)/$(DATABASE_PACKAGEDIR)

SOURCEDIRS = $(APP1_SOURCEDIR):$(UTIL_SOURCEDIR):$(DATABASE_SOURCEDIR)
CLASSDIRS = $(APP1_CLASSDIR):$(UTIL_CLASSDIR):$(DATABASE_CLASSDIR)

VPATH = $(SOURCEDIRS):$(CLASSDIRS)

%.class: %.java
javac -d $(ROOT_CLASSDIR) -classpath $(ROOT_CLASSDIR):$(CLASSPATH) $<

all: $(APP1_CLASSES) $(UTIL_CLASSES) $(DATABASE_CLASSES)

App1.jar: all
cd classes;jar cf ../$@ com

clean:
rm -rf classes App1.jar


EOF

 > foo/bar contains the .class files
 > and foo/bar/src contains the .java files

You can construct a makefile to achieve this design once you
understand the basics.  Of course you may not want to, ...

 > I refuse to mix the .java and .class files and think it is ridiculous how
 > java tools expect this.

The default behavior may not be your cup of tea, but it is hardly ridiculous.
The java tools quite nicely provide what you want to do.

 > Dependencies are not a problem once all the .class files are around, but
 > when a user checks out a new repository I don't want them to get any .class 
 > files.  Basically, the first thing that should be done after checking out the
 > repository is a 'make all' so that all the .class files are built.
 > 
 > Has anyone ever solved this problem.  This is the first time I've really
 > wished for header files, because C/C++ does not have this problem during
 > compile time.

Lots of people have solved this problem in lots of different ways.

I promise you that you neither need nor want header files.

Somehow, though, I think your real question is: How can I do what I
want to do without investing a lot of my time and energy in learning
the fundamental capabilities of the tools involved?  A common
question.  You're in good company.  Many resort to using a GUI based
solution and never learn the fundamentals of what the GUI/IDE is
doing.  Your choice.

CVS, make, jar, javac (jikes), and most especially Emacs are simply
wonderful and INCREDIBLY powerful tools with which to develop elegant
Java programs should you choose to learn how to use them, IMHO.

Enjoy,

-pmr



JDK 1.2 for Linux?

1998-10-06 Thread Marjan Trutschl

I could use it. :)  Any idea when you'll start working on JDK 1.2?

Thank you!

Marjan Trutschl
IVPR - UMass Lowell




Re: Java and CVS

1998-10-06 Thread John Summerfield

On Mon, 5 Oct 1998, Travis Shirk wrote:

> Hello All,
> 
> This post does not have anything to do with Linux, but some of you
> may be able to help since you're Unix users.
> 
> ---
> 
> I'm having some problems using CVS with a pretty large Java API.  The problem
> is pretty basic, I want my CVS repository to contain only java source files.
> This is necessary because (1) I don't want CVS to try and merge .class
> files and (2) people working with the repository should need to do a cvs add
> on only the source file and not the new .class file.  My problem is
> with dependencies.  Many of the classes depend on other classes that
> may not have been created yet in the 'make all' build process.  I've played
> around with javac -depend but I don't think it likes how I organize
> my source environment.  I have all .java files under a src directory
> in each subpackage directory.  So if I have a package called foo.bar
> the directory hierarchy would look like this:
> 
> foo/bar contains the .class files
> and foo/bar/src contains the .java files
> 
> I refuse to mix the .java and .class files and think it is ridiculous how
> java tools expect this.
> 
> Dependencies are not a problem once all the .class files are around, but
> when a user checks out a new repository I don't want them to get any .class 
> files.  Basically, the first thing that should be done after checking out the
> repository is a 'make all' so that all the .class files are built.
> 
> Has anyone ever solved this problem.  This is the first time I've really
> wished for header files, because C/C++ does not have this problem during
> compile time.
javac: invalid flag: -?
use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath 
path][-nowrite][-deprecation][-d dir][-J] file.java...
[summer@possum summer]$ jikes -?
use: jikes [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d 
dir] [++][+C][+E][+F][+M][+R][+V] file.java ...

(C) Copyright IBM Corp. 1997, 1998.
- Licensed Materials - Program Property of IBM - All Rights Reserved.

use: jikes [-classpath path][-d dir][-debug][-depend][-deprecation]
  [-g][-nowarn][-nowrite][-O][-verbose][+1.0][+$][++][+B][+E][+F][+M][+P]  file.java...

-classpath path   use path for CLASSPATH
-d dirwrite class files in directory dir

These are the java compilers I use here. Both support -d to put the class
files somewhere else altogether. Does this help?



Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



Re: Problem installing JDK

1998-10-06 Thread John Summerfield

On Mon, 5 Oct 1998, Bordelon wrote:

> This is a multi-part message in MIME format.
> 
> --=_NextPart_000_0006_01BDF03C.B5AF23E0
> Content-Type: text/plain;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> --=_NextPart_000_0006_01BDF03C.B5AF23E0
> Content-Type: text/html;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> 
> 
> 

Must we have it in duplicate?

Do us a favour and drop the HTML.

Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



Re: Java and CVS

1998-10-06 Thread Bruno Boettcher

> is pretty basic, I want my CVS repository to contain only java source files.
put *.class in the CVSROOT/cvsignore file of your cvs server



Re: Does Java apps has to have .class extension?

1998-10-06 Thread peter . pilgrim

 Create a shell script to call `java Example' for you a la
 
 #!/bin/sh
 # Set up any defaults just in case
 : ${JAVAVM:=java|kaffe|jikes}
 : ${CLASSPATH:=/whatever/man}
 : ${SWING_HOME:=/you/know/what/time/it/is}
 export SWING_HOME CLASSPATH
 ${JAVAVM} Example
 # fini
 

Or read the Linux-Java-HOWTO (or is Java-Linux-HOWTO) at the LDP
which explains how to configure the kernel so that it will automatically
execute a java class file.

Not recommended for everyday java software development and release 
with all the changes in JDK/JFC/JMF and other 
forthcoming java extensions unless you are planning to build an 
embedded java based system where the contents of the system
are very well defined. And in any case you would have to set 
up a precise environment to find all the extension
I theorise.

Pete

"Java: mad for it!"


__ Reply Separator _
Subject: Re: Does Java apps has to have .class extension?
Author:  javanews ([EMAIL PROTECTED]) at lon-mime
Date:05/10/98 21:52


At 08:19 PM 10/5/98 -0400, Danny Lu wrote:
>But when I try to run a example program I wrote.. and I change 
>the extension.. I got an error stating "Can't find class Example" 
>
>okay at first I tried to compile my example program: 
>   javac Example.java
>
>and I got Example.class... now I change the name of the Example.class to 
>Example:
>   mv Example.class Example
 
Your requirement seems strange but, have you tried;
 
ln Example.class Example
 
and then execute Example ?  I don't know if this will address your problem 
since you didn't tell us what you are trying to do.
 
Another solution may be to create a script that contains "java Example".
 
>then I made the example executable: 
>   chmod u+x Example
>
>and then I ran it...
>   ./Example
>
>I got the error message saying:
>   "Can't find class Example"
>
>that's what I was trying to say hehe =) 
>
>Dan
 
Just a work around if it helps.
 
Douglas Toltzman



Re: Java and CVS

1998-10-06 Thread Michael Thome

> "Travis" == Travis Shirk <[EMAIL PROTECTED]> writes:
> (CVS, sources vs. binaries, Make, javac)
> Has anyone ever solved this problem.  This is the first time I've really
> wished for header files, because C/C++ does not have this problem during
> compile time.

Sure it does, just different and (in practice) simpler because of the
flattened namespace.

We've stopped using make, mostly because we need to be able to build
on multiple OSes and to DOS-derived camp claims they cannot understand 
makefiles.  Admittedly, makefiles that work on DOS and *nix are not
always the prettiest things.

So - our current approach is to:
 1. Have our source tree mirror the class structure exactly.  $SRC
 2. All class files go into a tree outside the source tree. $BIN

our compiles look something like:
javac -d $BIN -classpath ${SRC}:$CLASSPATH $files

Turns out that javac can find and compile java sources on demand if
the desired sources are either (A) in the classpath or (B) in the
javac command line (This seems to work with Jikes, also).

This is still pretty hairy when you've got a sufficiently complex
system - we've written a custom system builder (in java, of course)
that handles our compile.

Cheers,
-mik
-- 
Michael Thome ([EMAIL PROTECTED])



Bug in v4a?

1998-10-06 Thread niessene

Hello,

I installed the latest jdk. With this jdk I get a thread dump (see below) using
the following native code (just parsing a string). With jdk1.1.6-v2 it worked
just fine. Can somebody give the code a try? I am very curious if it works on
another setup. Parsing an int back works fine with v4a.

The java file:
public class GetString {
public static native String getString();

static {
System.load("/home/erik/myjava/libputstring.so");
}

public void printString()
{
System.out.println(getString());
}

public static void main(String args[]) {
GetString gs= new GetString();
gs.printString(); 
}
}

The native code:
#include "GetString.h"
#include 

JNIEXPORT jstring JNICALL Java_GetString_getString(JNIEnv *env, jclass jcl)
{
  char str[]="HelloWorld";

return (*env)->NewStringUTF(env, str);
}

I also removed the libc and libdl in the greenthreads directory, but without any
success. Using libc.so.5.4.46 and libdl.so.1.9.2. 

I have also a problem with drawImage(image, x, y, null) in v4a. In v2 I can 
place a frame to the correct x and y coordinates, but in v4a it is placed 
randomly onto the screen.

And my last problem is playing an audio (.au) file in an application. For this I
use the audio package from sun. Sometimes it plays only the first part of the
audio file.

Somebody a clue?

Thanks for reading so far.

Erik 


SIGSEGV   11*  segmentation violation
stackbase=0xb46c, stackpointer=0xb374

Full thread dump:
"Finalizer thread" (TID:0x406e3208, sys_thread_t:0x41427f04, state:R) prio=1
"Async Garbage Collector" (TID:0x406e3250, sys_thread_t:0x41406f04, state:R) prio=1
"Idle thread" (TID:0x406e3298, sys_thread_t:0x413e5f04, state:R) prio=0
"Clock" (TID:0x406e3088, sys_thread_t:0x413c4f04, state:CW) prio=12
"main" (TID:0x406e30b0, sys_thread_t:0x81931d8, state:R) prio=5 *current thread*
java.io.Writer.write(Writer.java)
java.io.PrintStream.write(PrintStream.java)
java.io.PrintStream.print(PrintStream.java)
java.io.PrintStream.println(PrintStream.java)
GetString.printString(GetString.java:13)
GetString.main(GetString.java:19)
Monitor Cache Dump:
java.io.PrintStream@1080964904/1081237320: owner "main" (0x81931d8, 2 entries)
Registered Monitor Dump:
Thread queue lock: 
Name and type hash table lock: 
String intern lock: 
JNI pinning lock: 
JNI global reference lock: 
BinClass lock: 
Class loading lock: 
Java stack lock: 
Code rewrite lock: 
Heap lock: 
Has finalization queue lock: 
Finalize me queue lock: 
Monitor IO lock: 
Child death monitor: 
Event monitor: 
I/O monitor: 
Alarm monitor: 
Waiting to be notified:
"Clock" (0x413c4f04)
Monitor registry: owner "main" (0x81931d8, 1 entry)
Thread Alarm Q:
Abort (core dumped) 



Re: Java and CVS

1998-10-06 Thread Alexander Davydenko

Travis Shirk wrote:

> (1) I don't want CVS to try and merge .class
> files and

put file(s) cvsignore in the working dir and under all subdirs in the package 
hierarchy.

> (2) people working with the repository should need to do a cvs add
> on only the source file and not the new .class file.

there is a file(script) commitinfo under cvsroot/CVSROOT. It's used to verify what 
users want to
checkin, and allow(disallow) commit.

> javac -depend but I don't think it likes how I organize

try to use javadeps (http://www.cs.mcgill.ca/~stever/software/JavaDeps/)

For me, I use separate paths for .java and .class files, and run compiler with -d 
switch.
The Makefile I've composed checks dependencies, does call of jdeps tool, and finaly 
runs jikes.
_
Alexander



JDK 1.1.6 ( Blackdown.org Port ) Windowing Bug in KDE 1.0

1998-10-06 Thread James Michael Keller

Just changed to the 1.1.6.4a-1glibc  release of the blackdown.org jdk
port.  and have noticed a bug with respect to KDE

In particular this was the ICQ Java preview program.  The main window
will appear, and run fine.  However when you double click to get the
dialog box to send a message, or read an incomming message - the window
will appear, flash twice, then disapear.

This is under KDE 1.0

Under the RedHat 5.0 default ( I think it's fvwm? ) it all works fine. 
Double flashes as well - but the window stays and takes input.

Now, this could also be a problem with the port - as they said it might
act funny with various window managers.  the 1.1.5 port worked fine with
it.


-- 
---
===
James Michael Keller | [EMAIL PROTECTED]
  http://www.radix.net/~jmkeller
---
Contents (c)1998 James Michael Keller.  All rights reserved
===



More KDE java problems ...

1998-10-06 Thread James Michael Keller

Ok, in trying to trace this down ...

I installed the AOL IM client that includes it's own java tree.  In this
case the main window comes up, flashes twice and then disapears. 
However the client program still thinks the window is there and remains
running.  So it's not the program crashing out as far as I can tell.

environment variables

CLASSPATH=/usr/local/java/lib ( java is a symbolic link to
/usr/local/jdk1.1.6 )
JAVA_HOME=/usr/local/java
DYN_JAVA=   ( this is a blank environment variable so I can turn 
the
dynamic liked java on and off)


Now that I think of the DYN_JAVA variable - when I tried it it tried to
load /usr/local/java/bin/java/java_dyn

The problem is there is no ../bin/java dir - since ../bin/java is the
java executable.  I thought about fixing it with a symbolic link - but
since java is already there I cant make a dir and link a java_dyn back
to the actual file.

Sounds like an internal path problem.

I have lesstif running rather than motif, but that shouldn't be
affecting the path java is trying to run should it?


-- 
---
===
James Michael Keller | [EMAIL PROTECTED]
  http://www.radix.net/~jmkeller
---
Contents (c)1998 James Michael Keller.  All rights reserved
===



Still trying to build jdk1.1.6 v2

1998-10-06 Thread John Campbell

Hi,
I'm still trying to build jdk1.1.6 from source.  I have the
executables
(v2 for libc5) installed and they work.  I applied the diffs in the
mirror
common directories to the source I got from sun. I set ALT_BOOTDIR
to the top of the jdk1.1.6 executables (a problem I had earlier). 

The build fails about five minutes in because javaString.h uses
java_lang_String.h, which isn't there.  Any ideas?
-John C




Re: JDK 1.1.6 ( Blackdown.org Port ) Windowing Bug in KDE 1.0

1998-10-06 Thread James Michael Keller

libqt 1.40

I'll update and see if that helps at all 


David Guthrie wrote:
> 
> Just a guess, but what version of libqt do you have ( doubt this matters).
> I have 1.41 (1.40 worked too.)
> if you need ICQ, there exists a KICQ that seems to work pretty well, but I assume
> you need java for others reasons :)
> 
> James Michael Keller wrote:
> 
> > No go, tried it and still futzes out.
> >
> > That's what I get for upgrading so other things work :)
> >
> > David Guthrie wrote:
> > >
> > > Hi.  I'm running KDE 1.0 and I don't have that problem.  I have my window
> > > placement on cascade if that matters (I don't have my linux machine handy to
> > > try it). I'm running the exact same version on Redhat 5.0 with all of the
> > > updates including X3.3.2.3 (My X server is Xfree86 Mach 64 3.3.1 which I
> > > kept due to instability problems in the later ones.)  I hope some of this
> > > helps.
> > >
> > > James Michael Keller wrote:
-- 
---
===
James Michael Keller | [EMAIL PROTECTED]
  http://www.radix.net/~jmkeller
---
Contents (c)1998 James Michael Keller.  All rights reserved
===



Re: Java and CVS

1998-10-06 Thread Mario Camou

Travis Shirk wrote:

> Hello All,
>
> This post does not have anything to do with Linux, but some of you
> may be able to help since you're Unix users.
>
> ---
>
> I'm having some problems using CVS with a pretty large Java API.  The problem
> is pretty basic, I want my CVS repository to contain only java source files.
> This is necessary because (1) I don't want CVS to try and merge .class
> files and (2) people working with the repository should need to do a cvs add
> on only the source file and not the new .class file.  My problem is
> with dependencies.  Many of the classes depend on other classes that
> may not have been created yet in the 'make all' build process.  I've played
> around with javac -depend but I don't think it likes how I organize
> my source environment.  I have all .java files under a src directory
> in each subpackage directory.  So if I have a package called foo.bar
> the directory hierarchy would look like this:
>
> foo/bar contains the .class files
> and foo/bar/src contains the .java files
>
> I refuse to mix the .java and .class files and think it is ridiculous how
> java tools expect this.
>
> Dependencies are not a problem once all the .class files are around, but
> when a user checks out a new repository I don't want them to get any .class
> files.  Basically, the first thing that should be done after checking out the
> repository is a 'make all' so that all the .class files are built.
>
> Has anyone ever solved this problem.  This is the first time I've really
> wished for header files, because C/C++ does not have this problem during
> compile time.
>
> Travis Shirk
> [EMAIL PROTECTED]

Hi,

Well, I don't use CVS but I do like to have my .class and .java files separate.
So here's what I do:

1. Create a source directory hierarchy that mirrors the .class package hierarchy
(i.e., for package COM.whatever.mylib create /COM, /COM/whatever,
/COM/whatever/mylib)

2. Add the root of the source directory ( in the example) to your CLASSPATH

It's not as neat as I'd like (source files shouldn't belong in the
classpath) but the dependency checking works fine.

Hope this helps,
-Mario.



Re: TextArea

1998-10-06 Thread Jie Yu

Hi, there,

Thank you for all of you responding to my last email about TextArea.
This is my small testing program.
import java.awt.*;
import java.awt.event.*;

  public class TextDemo  implements ActionListener {
 TextField textField;
 TextArea textArea;
 Frame f;
 public TextDemo() {
f = new Frame();
textField = new TextField(20);
textArea = new TextArea("Hello", 5, 20);
textArea.setEditable(false);

f.add("South", textField);
f.add("North", textArea);
   
f.pack();
f.show();
textField.addActionListener(this);

  }

  public void actionPerformed(ActionEvent evt) {
 String text = textField.getText();
 System.out.println(text);
 textArea.append(text );
 textField.selectAll();
  }

  public static void main(String[] args){
 TextDemo textDemo = new TextDemo();
 }
  }

The problem is that: Hello is not on textArea and what I typed in 
textField will not echo in textArea too.  But it works fine on Solaris 
machine. And also it works well if I use applet on LINUX machine. Like 
this:

  import java.awt.*;
  import java.awt.event.*;
  import java.applet.*;

  public class Text extends Applet implements ActionListener {
 TextField textField;
 TextArea textArea;
 Frame f;
 public void init() {
f = new Frame();
textField = new TextField(20);
textArea = new TextArea("Hello", 5, 20);
textArea.setEditable(false);

f.add("South", textField);
f.add("North", textArea);
   
f.pack();
f.show();
textField.addActionListener(this);

  }

  public void actionPerformed(ActionEvent evt) {
 String text = textField.getText();
 System.out.println(text);
 textArea.append(text );
 textField.selectAll();
  }

  }
}

I am using jdk1.1.6v4a-i386-glibc.

Thanks again!

 


Jie Yu


2366 Main Mall  Tel: 604-221-9740(H)
Dept. of Computer Science604-822-8572(O) ext. 3
UBC, Vancouver, V6T 1Z4 ICQ: 16352804
BC, CANADA  http://www.cs.ubc.ca/spider/jyu




Re: JDK 1.1.6 ( Blackdown.org Port ) Windowing Bug in KDE 1.0

1998-10-06 Thread Martin Konold

On Tue, 6 Oct 1998, James Michael Keller wrote:

> libqt 1.40
> 
>   I'll update and see if that helps at all 

The problem is well know and fixed in the most recent versions of kwm.

Regards,
-- martin

// Martin Konold, Herrenbergerstr. 14, 72070 Tuebingen, Germany  //
// Email: [EMAIL PROTECTED] //
Anybody who's comfortable using KDE should use it. Anyone who wants to
tell other people what they should be using can go to work for Microsoft.
[EMAIL PROTECTED]: "BCPL gave birth to B, and the child of B was of 
   course C, since the ancestor of X is W, so the 
   sucessor to X must be K."



Java app without X installed

1998-10-06 Thread Wim Ceulemans

Hi

I'm testing a little application that has to run on a linux server without X
installed. When I run it on my linux box without X running, it runs fine.
But when I run in on a linux box without X installed I get the following:

/usr/local/jdk1.1.6v4a/bin/../bin/i686/green_threads/java: can't resolve
symbol '_Xglobal_lock'
/usr/local/jdk1.1.6v4a/bin/../bin/i686/green_threads/java: can't resolve
symbol '_XUnlockMutex_fn'
/usr/local/jdk1.1.6v4a/bin/../bin/i686/green_threads/java: can't resolve
symbol '_XLockMutex_fn'

The jdk I'm using is 1.1.6v4a.
The linux box with X installed is a Redhat 4.2, the linux box without X
installed is a Redhat 5

So my question: is it possible to run a java based app without X installed?
Does anybode have an idea how to run a java app without X installed?

Wim Ceulemans
Nice bvba



JTAPI on Linux

1998-10-06 Thread Chris Young




Anyone heard of somebody working on an 
implementation of JTAPI (Java Telephony API) for Linux?
 
/cky


Subtle Date misbehaivior

1998-10-06 Thread Ean R . Schuessler

I have run into some interesting behaivior in the VM.

I have been using JDK1.1.6v2 with the PostgreSQL JDBC drivers for
some time and recently started getting inexplicable TimeStamp format
errors. Curiously, the problem only shows up when I use JDK1.1.6v4.

Has anyone else seen this sort of behaivior?

E
-- 
__
Ean Schuessler A guy running Linux
Novare International Inc.  A company running Linux
*** WARNING: This signature may contain jokes.



Re: Object Mapping into sql dbms?

1998-10-06 Thread Ean R . Schuessler

We have written a similar system which I have been heading towards
GPLing. It used to use unique IDs but I have shifted to arbitrary keys.

It would seem that we should try and put together a consolidated effort
to build something heavy duty.

?,
E

On Tue, Sep 22, 1998 at 01:44:14PM +0200, Bernd Wengenroth wrote:
> We work at present on a project called "linux-kontor".
> It's completly implemented in Java and it's GPL.
> 
> http://www.ios-online.de/Linux-Kontor
> 
> In our architecture, we use an layer called "ObjectServer",
> which administers Java objects in Database-tables.
> Subobjects and arrays are stored automatically into the respective
> (different) tables.
> Each attribute is mapped to a column. Classnames and tables
> can be used freely.
> 
> As a prerequisit all objects must be derived from a certain base
> class. 
> These receive a ID, which is global unique and is used for the
> administration of links and to identify the objects.
> Version conflicts of the objects are autmatic detected and 
> announced. 
> Also "normal" Java objects can be loaded and stored, however only 
> with the additional specification of the respective
> tables and without use of Subobjects.
> 
> The "ObjectServer" is part of our framework and used in
> different projects.
> 
> If your are interested, please contact us.
> 
> Greetings,
>   Bernd

-- 
__
Ean Schuessler A guy running Linux
Novare International Inc.  A company running Linux
*** WARNING: This signature may contain jokes.



Re: Subtle Date misbehaivior

1998-10-06 Thread Michael D. James

Jeez, I wish more of my dates would misbehave, subtly or not.



Re: Subtle Date misbehaivior

1998-10-06 Thread Elmo Recio

On Tue, 6 Oct 1998, Michael D. James wrote:

|Jeez, I wish more of my dates would misbehave, subtly or not.
|
|

HEY! There are mailing lists for that kind of stuff! 8P

cheers,
elmo



"now that i know that i'm breaking to pieces i'll 
 pull out my heart and i'll feed it to anyone 
 crying for sympathy, crocodiles cry for the love 
 of the crowd and the three cheers from 
 everyone, dropping through sky, through the 
 glass of the roof, through the roof of your mouth, 
 through the mouth of your eye, through the eye 
 of the needle, it's easier for me to get closer to 
 heaven than ever feel whole again"
-The Cure (Disintegration)



JIT ????

1998-10-06 Thread Mehrdad Jahansoozi

Greetings,

Apparently, There is a confusion between JIT compiler, and JIT virtual
machine( VM ).
I was looking for a  linux ( VM ) and I thought clarify  Java classes
need ( VM )  to run.
VM is platform specific.
A compiler is what creates Java classes from xxx.java files.
I compile my java files in NT , and I need VM in Linux to run them on
Linux.

Regards,

Mehrdad



JIT ????

1998-10-06 Thread Mehrdad Jahansoozi

Greetings,

Apparently, There is a confusion between JIT compiler, and JIT virtual
machine( VM ).
I was looking for a  linux ( VM ) and I thought clarify  Java classes
need ( VM )  to run.
VM is platform specific.
A compiler is what creates Java classes from xxx.java files.
I compile my java files in NT , and I need VM in Linux to run them on
Linux.

Regards,

Mehrdad



Re: JIT ????

1998-10-06 Thread Java News Collector

At 05:59 PM 10/6/98 -0400, Mehrdad Jahansoozi wrote:
>Greetings,
>
>Apparently, There is a confusion between JIT compiler, and JIT virtual
>machine( VM ).

And this isn't helping.
The JIT is not the Java compiler.  It is the "just in time" compiler which
is also platform-specific and actually processes your classes at runtime to
improve the efficiency of execution.  The JIT on OS/2 does an excellent
job.  Java code executes very quickly (once its loaded).  There is a hit in
load time and the line numbers are lost in exception reports but things
like compression/decompression utilities get a great boost.

>I was looking for a  linux ( VM ) and I thought clarify  Java classes
>need ( VM )  to run.
>VM is platform specific.

It is true, the VM is a platform-specific, Java-bytecode interpreter.

>A compiler is what creates Java classes from xxx.java files.
>I compile my java files in NT , and I need VM in Linux to run them on
>Linux.
>
>Regards,
>
>Mehrdad

In spite of the numerous question marks in the subject line, this post
doesn't read like a question.  I hope my response doesn't read like an answer.

Douglas Toltzman


/*
* Assuming a problem is something that stands in the way of achieving a
* goal, it must be true that people without goals cannot have problems.
* Is it also true that people without problems don't have goals?
**/



Re: Object Mapping into sql dbms?

1998-10-06 Thread David Warnock

Ean and everyone else,

I am definately interested. 

We have our system working single user, we have standard interfaces and
all I have so far is available under LGPL. We have a big deadline at the
end of October and too much work to do before then. I will be putting it
out (and am discussing with Joe Carter see
http://freespace.virgin.net/joe.carter whether it should be integrated
with / compatible with TableGen).

If anyone wants to see a very early (version 0.very little) sample then
I have something I can email now.

We are also going to release our little debugging class (I can make that
availablke now to anyone interested) and our standard Swing documents
and text fields etc.  We actually make up a business object for data
entry purposes that has subclasses of PlainDocument for each attribute.
The GUI then connects directly to the business object. All the
validation that can be done at the client is then built into the
business object.

We also have listboxes that use simpler read only business objects. Due
to the observer pattern that we have used the listboxes automatically
stay up-to-date with any changes to the data.

Ean R . Schuessler wrote:
> 
> We have written a similar system which I have been heading towards
> GPLing. It used to use unique IDs but I have shifted to arbitrary keys.
> 
> It would seem that we should try and put together a consolidated effort
> to build something heavy duty.
> 
> ?,
> E
> 
> On Tue, Sep 22, 1998 at 01:44:14PM +0200, Bernd Wengenroth wrote:
> > We work at present on a project called "linux-kontor".
> > It's completly implemented in Java and it's GPL.
> >
> > http://www.ios-online.de/Linux-Kontor
> >
> > In our architecture, we use an layer called "ObjectServer",
> > which administers Java objects in Database-tables.
> > Subobjects and arrays are stored automatically into the respective
> > (different) tables.
> > Each attribute is mapped to a column. Classnames and tables
> > can be used freely.
> >
> > As a prerequisit all objects must be derived from a certain base
> > class.
> > These receive a ID, which is global unique and is used for the
> > administration of links and to identify the objects.
> > Version conflicts of the objects are autmatic detected and
> > announced.
> > Also "normal" Java objects can be loaded and stored, however only
> > with the additional specification of the respective
> > tables and without use of Subobjects.
> >
> > The "ObjectServer" is part of our framework and used in
> > different projects.
> >
> > If your are interested, please contact us.
> >
> > Greetings,
> >   Bernd
> 
> --
> __
> Ean Schuessler A guy running Linux
> Novare International Inc.  A company running Linux
> *** WARNING: This signature may contain jokes.



javah problem in package

1998-10-06 Thread Gwobaw A. Wu

Hi,
I notice that javah has a problem in generating stub include file
within a package.  Without package, javah is able to generate stub include 
( xxx.h ) file.  Here is the error message :

javah Time
Time: no such class.

CLASSPATH is set correctly since javah works without package in the
source.

I also notice that jdk115 on solaris has the same problem.
The only version I found that works is jdk113 on solaris.  jdk115,
jdk116v1 jdk116v4 on linux do not work.

Is this bug will be fixed in the near future?
Please let me know.

BTW, On SUN's jdk116 download page, it mentions that jdk116v4 fixes javah
problem.  I don't know if this is the same problem that I have.
I have not tried the new version yet.

--- Gwobaw ([EMAIL PROTECTED])
3115 EECS, (313) 647-3780



Re: javah problem in package

1998-10-06 Thread Gao Lei

I think it should be javah package.Time

Gwobaw A. Wu wrote:

> Hi,
> I notice that javah has a problem in generating stub include file
> within a package.  Without package, javah is able to generate stub include
> ( xxx.h ) file.  Here is the error message :
>
> javah Time
> Time: no such class.
>
> CLASSPATH is set correctly since javah works without package in the
> source.
>