Re: Delete all class files

1998-09-15 Thread Justin Lee


Keith T. Garner wrote:
On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> I thought I should be able to connect "find . -name *.class" to "rm"
> somehow using redirection or pipes but cannot get it to work.
You were very close to one possible solution :)
find . -name *.class | xargs rm
xargs is a wonderful program that builds the command line from the
command given to it and the file names piped into it.
--
  Keith T. Garner  
[EMAIL PROTECTED]
  STR Consultant 

http://www.str.com/
[EMAIL PROTECTED]
    "Its hard to play pin the
tail on the donkey when its running
    around kicking you." --
Illinois Little Lotto radio commercial
I like to use rm `find . -name *.class`.  This will execute the find
and output its response which just happens to be the input
to rm.
-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI    | It's the way it fascinates your mind.  -- Tourniquet
 


Mouse cursors

1998-09-22 Thread Justin Lee


We are trying to set the mouse cursor to the wait cursor whenever we open
a dialog box.  We have method that takes in a java.awt.Component and
grabs all of its contained Components and sets the cursor on it. 
This works with limited success.  If there is a List in the main panel
and you move the cursor off the dialog box and over the list beneath, the
cursor shows up in the busy form - every other time.  It's very consistent. 
One time it will be the little watch; next time, it's an arrow.  Over
any other component, the mouse never changes.  Is this a bug or are
we doing it wrong?
Even better, is there a better, more "correct" way to do this? 
I'm using an old method written before I came to the company so I'm not
terribly familiar with the workings of mouse cursors in Java.  A coworker
just hollered something about setting the cursor on a TextField after construction
so that it will inherit any changes it to its parent's mouse cursor but
I haven't had a chance to look at it yet.  Does anyone have any idea? 
Thanks.
-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI    | It's the way it fascinates your mind.  -- Tourniquet
 


Re: [FYI] Java violates US patent?

1998-12-07 Thread Justin Lee

Ernst de Haan wrote:

>
> What is the idea of Java? Portable code. If that part of Java will be
> removed, the Java Platform idea is dead, what remains is the Java
> programming language, with a modified API (ClassLoader etc). Downward
> compatiblity nil.
>
> Take a look at the future-oriented API's of Java: Jini, JavaSpaces, etc.
> All gone. Combination of XML and Java is suddenly not that promising
> anymore. And what about things like network computers, Lotus eSuite,
> Domino, Java WebServer etc.
>
> Don't underestimate the impact. :-(
>

Yet, surely the concept of portable code can't be contained within that patent.
Portable, interpreted code has been around far longer than that patent.  For an
example, pick any form of BASIC.  Isn't Java just another multiplatform
interpreted language?  The only difference is the source code is compiled into a
binary format rather than the engligh-esque nature of other intrepreted
languages.

--
Justin Lee | Does is really matter how far you go?
JEDI   | Can you get some sleep, now, standing on so many toes?





Re: When

1999-01-19 Thread Justin Lee

Has anyoune tried running Java 2 under Wine?

--
Justin Lee | Freedom means love without condition,
JEDI   | Without a beginning or an end.





jdk1.2pre-v2

1999-06-03 Thread Justin Lee

I'm surprised no one's mentioned it yet ( maybe I missed it ), but
pre-v2
is on the mirrors in case anyone's interested.
-- 

Justin Lee | Freedom means love without condition,
JEDI   | Without a beginning or an end.


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



Re: jdk1.2pre-v2

1999-06-03 Thread Justin Lee

Bruno Boettcher wrote:
> thanks! downloading...
> but unfortunately still no glibc2.1 build even if the subdirs are
> present...

I was a little bummed about that, but since we haven't upgraded to 2.1
yet at work, that's not an issue yet.  btw, good job SBB, et. al.

-- 
Justin Lee | Freedom means love without condition,
JEDI   | Without a beginning or an end.


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



Re: Modal JDialog never returns (Bug?)

1999-06-29 Thread Justin Lee

Bjoern Smith wrote:
> 
> Marcel Ruff wrote:
> 
> > Hi,
> >
> > the following little examples doesnt return (about every second time).
> >
> > Especially when you first click in the text area and write some letters
> > and than click OK, the final System.out.println() is never printed.
> >
> > -
> > import javax.swing.JOptionPane;
> > import javax.swing.JFrame;
> >
> > public class ModalEvent
> > {
> >   static public void main(String[] args)
> >   {
> > System.out.println("Testing JDialog events ...");
> > JFrame frame = new JFrame("Hello");
> >
> > String str = JOptionPane.showInputDialog(frame,
> >   "Please enter: ",
> >   "Modal not returning",
> > JOptionPane.QUESTION_MESSAGE);
> >
> > System.out.println("SUCCESS: str=" + str);
> >   }
> > }
> > ----------
> >
> > Could anybody try on his/her machine if it works there?
> 
> Works just fine on both 1.1.7v3 and 1.2 pre-v2 for me.

It didn't work for me on 1.1.7v3 on RH6, either.

-- 
Justin Lee | Contemporary philosophy seems to satisfy
JEDI   | Assumptions in theology that only get them by


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



Re: Modal JDialog never returns (Bug?)

1999-06-29 Thread Justin Lee

"Thomas M. Sasala" wrote:
> 
> Using -green seems to fix both problems.  RH6.0 and
> jdk 1.2prev2.

1.1.7v3 uses green by default( I understand ) and it failed for me
consistently.


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



Re: An idea for Java / KDE or GNOME integration

1999-07-02 Thread Justin Lee

Robb Shecter wrote:
> 
> Hi,
> 
> I had this idea, and would like to get comments - if it's cool, or dumb
> - whatever:
> 
> I want to have my Java programs better integrated or "aware" of my KDE
> desktop.  And vice-versa.  I don't need the equivalent of the Python-KDE
> binding: This package does two things: it gives access to desktop-system
> features, as well as graphics widgets.
> 
> I just want access to system features.  I'm thinking of the services
> that the "KApplication" class gives KDE apps:  Notification when the
> system is getting shut down, for instance.  Or, the generation of temp
> file names.
> 
> I first thought about making a binding like the Python-KDE package but
> then decided against it.  I also don't want to access native code from
> Java.  Too messy and system dependent.  My idea is to use CORBA:  Have a
> server that creates KApplication server objects.  The Java programs then
> connect to a KApplication server instance and also register themselves
> for callbacks.
> 
> There'd probably be a small applet-like framework that Java app writers
> would use that would hook their program into this setup.
> 
> The system could also use something like Echnida to launch Java apps
> quickly.
> 
> Now, once this basic idea is implemented, the CORBA/IDL solution offers
> extreme flexibility.  For example, there's no reason that a GNOME server
> couldn't be written that creates the GNOME equiv of KApplication
> (whatever that may be...).  It would serve the same IDL, and all the
> Java apps would work with it too.  The same could even be done for MS
> Windows.
> 
> AND, this can go the other way:  Programming environments like Squeak
> Smalltalk can be adapter to fit into the client-side of the framework.
> 
> So, what this system would really become is a "VM-driven language to
> desktop integrator".
> 
> Comments?

My understand is that KDE is completely CORBA driven anyway.  ( Even
though their object model is called KOM ).  CORBA integration should be
fairly straightforward at that point.  GNOME uses CORBA as its IPC (
though only C binding at this point ), so CORBA integration should be
easy there too.  The trouble is differing IDL defs and system
architectures.  The good news is that the high-level GNOME and KDE
people are trying to unify their IDL defs and foster as much
cross-integration as possible.  IMO, apps tied to one desktop defeat the
purpose of having the option of multiple window managers.  I love the
KDE object model, but their desktop looks like it was built by a bunch
of left-brained scientists who have no lives.  Techincally it's a nice
system, but aesthetically leaves me wanting more.  But that's another
discussion altogether.

-- 
Justin Lee | Does is really matter how far you go?
JEDI   | Can you get some sleep, now, standing on so many toes?


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



Re: Working with many .java files

1999-07-30 Thread Justin Lee

Kontorotsui wrote:
> 
> Hello,
> so far I worked using the good old xemacs + Makefile combo.
> As soon as my application grow and more classes are created, I'm beginning to
> feel the weight of a full scale compilation (like 20 seconds now, but it's
> increasing fast) even after I change 1 line of code in 1 class.
> 
> Now, I don't think there is a way to recompile only the class I changed, like
> we did in C, is this correct? I remember someone who wrote, weeks ago, about a
> tool that can check the classes and make the compiler work only on the sources
> that really need to be compiled again, but maybe I'm mistaken.
> 
> How do you manage a project with so many .java files, say more than 100?
> I can't believe I'll be forced to wait 3 minutes of compilation (on a 128Mb
> K6-2 350Mhz) every time I forget a ; or mistype a variable.

We use make to great advantage.  Our system has ~1000 java files and
make reduces compile time dramatically.  ( We use jikes, too, so that
helps. )  Using production rules, make will only compile a java file
when the timestamp on the .java file is later than the timestamp on the
.class.

-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI| It's the way it fascinates your mind.  -- Tourniquet


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



Re: Change Timezone

1999-07-30 Thread Justin Lee

"Spectron International, Inc." wrote:
> 
> How do I change from Eastern Daylight Time to Eastern Standard time. As far
> as I know Calendar.getInstance() returns the default calendar information
> for the machine. Right now my Linux machine is EST but Java returns EDT. I
> though that by changing in in Linux it would change the JDK too. Is there an
> export I have to set up?
> 
> Thanks in advance

We had similar problems.  Try this cal = Calendar.getInstance(
TimeZone.getTimeZone( "EST" ) ) ;

-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI| It's the way it fascinates your mind.  -- Tourniquet


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



Re: Working with many .java files jikes Compiler

1999-07-30 Thread Justin Lee

Michael Emmel wrote:
> 
> >
> > We use make to great advantage.  Our system has ~1000 java files and
> > make reduces compile time dramatically.  ( We use jikes, too, so that
> > helps. )  Using production rules, make will only compile a java file
> > when the timestamp on the .java file is later than the timestamp on the
> > .class.
> >
> 
> I compiled some code with jikes ans a normally do then with thek jdk1.2 compilier
> I noticed that the code ran visibly faster with javac has anyone else seen this ??
> It seems javac is a much better optimizing compiler.
> 
> I like jikes for development but javac seems to be a better production compiler

Also, we've noticed incompatiblity with Symantic's JIT on win32 using
jikes.  So we use jikes for dev and when we roll a production build, we
rebuild with javac.  Jikes may have fixed this ( I think I heard it has
to do with sloppy spec conformance on the part of Sun/Symantec ) but I
don't know for sure.  We're using jikes 0.47 and I think that's
outdated.

-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI| It's the way it fascinates your mind.  -- Tourniquet


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



Re: Linux & ADSL

1999-11-17 Thread Justin Lee

Renzo Pecoraro wrote:
> 
> Hi -
> I have ADSL with bell atlantic and use an extenal ADSL modem hooked up
> to my NIC PCMCIA card. Every time I send an e-mail or upload to an FTP
> server, I get disconnected and have to restart the eth0 network
> interface. Bell claims it's not their problem and they do not provide
> support for Linux. Has anyone seen this behavior and/or knows some
> pointers?

Not to be hard-nosed about it, but this doesn't really deal with
java-linux issues.

-- 
Justin Lee  | What is economic status, and tell me what is race?
JEDI| Who decides to classify taxonomy of grace?


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



Re: Do we need an installer-chooser?

1999-01-16 Thread Justin Lee

Dustin Lang wrote:
> 
> Hi,
> 
> > perhaps if this could be embeded in a web page... an applet? that would
> > be cool.
> > and unless you plan to compile to all archs maybe a shell script
> > would be better?
> 
> Hmm... I was thinking a smallish, statically-linked C program.  I hadn't
> thought about multiple architectures (I'm a little Intel-centric...:).  I
> have access to Intel and PowerPC boxes and could supply binaries for those
> archs.  I'd GPL this if I wrote it, so could distribute source for other
> archs, but that might make the process even more puzzling :).
> 

Why not use a javascript check on the web page, saying here is the
archive for your specific platform?  ( In addition to links to the
others if you also grabbing the versions for other platforms. )

-- 
Justin Lee  | It's not the weight of the stone that's holding you down.
JEDI| It's the way it fascinates your mind.  -- Tourniquet


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



Re: Problem in running Jdk1.2.2rc2 Demo on redhat 6.1

1999-11-30 Thread Justin Lee

> John Louis wrote:
> 
> Hi,
> I try to run the SimpleExample, it give me these error:
> 
> Exception in thread "main" java.lang.InternalError: Can't connect to
> X11 window
> server using ':0.0' as the value of the Display variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:62)
> ...
> 
> 
> However, I can compile it, but I cant run it.  What is the problem?

You're probably trying to run it in a terminal window without X
running.  Any graphics references require X to be running.  IIRC, any
AWT class requires X.

-- 
Justin Lee - "The Internet and mp3s have taken a lot of bands out of the
garage that never should have left."


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



Re: java2native

1999-12-01 Thread Justin Lee

[EMAIL PROTECTED] wrote:
> thank you, but the JNI was not what i was looking for - its quite
> interesting too, but it was point 1) i was interested in: compiling
> java(source/byte)code to native machine code. there´s an extension (or
> whatever) to
> gcc/egcs, but unfortunately i couldn´t find documentation for it...
> maybe there´s even nobody who uses it ...?!

Are you looking for gcj?  The URL is http://sourceware.cygnus.com/java. 
HTH.

-- 
Justin Lee | Attempts to tour without a guide will only get you lost.
JEDI   | To take the bait will open the gate. Deception is the cost.


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



Re: Sun/Inprise/GPL Linux JDK

1999-12-08 Thread Justin Lee

a b wrote:

> Hi
>
> I wonder what would happen if any of the Blackdown developers had put a GPL
> license in any part of their code fixes?
>
> How would that affect Sun's Community Source license?

Aparat from the fact that such an act is illegal according to the
non-commercial license agreement, probably not much.  AFAIK, Sun owns the code
for the bug fixes that blackdown produces and probably the ported code by
virtue of the fact Blackdown used Sun proprietary code to generate it.

> Maybe GPL was a good idea after all?   Now we see what they mean by
> protecting your rights to give away your software.

IMO, the LGPL is a better idea for java.  GPL'd code requires that any code
that even links to it be GPL'd.  That would kill java in corporate america.

justin


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



dropped RMI objects

1999-12-16 Thread Justin Lee

I using 1.2.2 RC3 on RedHat 6.1 and am seeing some pretty funky stuff. 
I'm doing jsp development with gnujsp and RMI.  What I'm seeing is that
one of my servers will randomly disappear.  ( I get
NoSuchObjectExceptions when making calls to it. )  The process that ran
it is still running, but the rmiregistry decides to disregard it, I
supposed.  Doing a 'ps ux' reveals anywhere from 2 to 5 [java ]
process that are just hanging out.  There are also some other java
processes in the listing that shouldn't be there.  ( I just killed that
process. )  If I kill a few strategic java process, the defunct ones
disappear.  The main culprit seems to be the rmiregistry.  Anyone know
anything about this?  If it helps, I turned off the JIT (
-Djava.compiler= ).

( btw, I'm also submitting this to the blackdown jitterbug. )

-- 
Justin Lee

"Vergoofin der flicke stoobin mit der børk-børk yubetcha!" 
  - The Swedish Chef


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