Re: subscribe

1999-01-04 Thread Patrick

Is there anyway I can force the runtime from the blackdown port to read
the CLASSPATH variable?

I am having trouble getting the JMF working w/o appending the command
line. I think that is also the reason that Netscape isn't working with it,
based on the JMF diag page from sun. 

Thanks.


-



Re: subscribe

1999-01-04 Thread Patrick

Well, running 1.1.6 CLASSPATH doesn't work. At all. Its all set up to
point ot classes.zip and 2 JMF jar files. if I put it in command line
(java -classpath $CLASSPATH CLASS) it works geat. 

But, netscape doesn't want to see any of it. Any hints?




-

On Mon, 4 Jan 1999, Michael Sinz wrote:

> On Mon, 4 Jan 1999 15:24:26 -0500 (EST), Patrick wrote:
> 
> >Is there anyway I can force the runtime from the blackdown port to read
> >the CLASSPATH variable?
> >
> >I am having trouble getting the JMF working w/o appending the command
> >line. I think that is also the reason that Netscape isn't working with it,
> >based on the JMF diag page from sun. 
> 
> It does read the CLASSPATH variable.  But the standard for the JRE is
> that if you use the command line classpath option it *replaces* anything
> that is in the CLASSPATH variable.  This is "as per Sun" 
> 
> (And again I wish CLASSPATH would not have been so poorly implemented)
> 
> 
> 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: subscribe

1999-01-04 Thread Patrick

DAMN! you got me. I totally forgot about the bash export stuff.
Thats what it was. Durn... 

As for netscape, I don't know what to say. Does it use a local JVM or does
it use its own?

-

On Mon, 4 Jan 1999, Michael Sinz wrote:

> On Mon, 4 Jan 1999 15:48:32 -0500 (EST), Patrick wrote:
> 
> >Well, running 1.1.6 CLASSPATH doesn't work. At all. Its all set up to
> >point ot classes.zip and 2 JMF jar files. if I put it in command line
> >(java -classpath $CLASSPATH CLASS) it works geat. 
> 
> Strange.  What "java" are you running?
> (As in, what is returned from "which java" ?)
> 
> Given that you can put CLASSPATH right there it looks like it is
> set up correctly (as far as syntax) but could it be that you did
> not "export" the CLASSPATH variable?  (in bash: "export CLASSPATH")
> Variables that are not exported are only visible from the current
> shell, not any other shells, including sub-shells.
> 
> >But, netscape doesn't want to see any of it. Any hints?
> 
> Well, for the silly Netscape thing I have a shell script called
> "netscape" that is what really runs netscape and it cleans out any
> of the variables that should not be there and then runs the correct
> version of the netscape binary.
> 
> 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: subscribe

1999-01-04 Thread Patrick

Never mind. It was all the export stuff. Just tested netscape and it
works. Evidently, netscrape does use the local jvm. 

Thanks for your help!!




-

On Mon, 4 Jan 1999, Michael Sinz wrote:

> On Mon, 4 Jan 1999 15:48:32 -0500 (EST), Patrick wrote:
> 
> >Well, running 1.1.6 CLASSPATH doesn't work. At all. Its all set up to
> >point ot classes.zip and 2 JMF jar files. if I put it in command line
> >(java -classpath $CLASSPATH CLASS) it works geat. 
> 
> Strange.  What "java" are you running?
> (As in, what is returned from "which java" ?)
> 
> Given that you can put CLASSPATH right there it looks like it is
> set up correctly (as far as syntax) but could it be that you did
> not "export" the CLASSPATH variable?  (in bash: "export CLASSPATH")
> Variables that are not exported are only visible from the current
> shell, not any other shells, including sub-shells.
> 
> >But, netscape doesn't want to see any of it. Any hints?
> 
> Well, for the silly Netscape thing I have a shell script called
> "netscape" that is what really runs netscape and it cleans out any
> of the variables that should not be there and then runs the correct
> version of the netscape binary.
> 
> 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: subscribe

1999-01-04 Thread Patrick


Well, it seems to me that mine uses the local classpath at least. JMF was
not installed anywhere remotely, it was all on my stuff in order to test
it. It read the classpath and used my JMF classes after I exported the var
in my bashrc. 

Thats all I know. If its reads the local CLASSPATH, it only stands to
reason its using a local jvm. But, in thinking about that, maybe it
doesn't. I don't know. 

Netscape sucks anyway. I just use lynx and appletviewer. grin...

-

On Mon, 4 Jan 1999, Rachel Greenham wrote:

> Patrick wrote:
> > 
> > DAMN! you got me. I totally forgot about the bash export stuff.
> > Thats what it was. Durn...
> > 
> > As for netscape, I don't know what to say. Does it use a local JVM or does
> > it use its own?
> 
> As far as I can see it uses its own - and is so buggy (Communicator 4.5)
> that I've disabled it. If someone can tell me how to make Netscape use
> the local JVM I would be *very* grateful!
> 
> -- 
> Rachel Greenham
> Epinet Communications plc
> 
> 



Re: which linux/chip?

1999-01-11 Thread Patrick

I am a full time java developer. The firm I work for originally ran on
NT/95 and we had serious crash problems. Plus the machine had to be reboot
to allow servlets to work, etc. I took my AMDK6-2 233mhz and put redhat on
it with the blackdown jdk, and it is absolutly awesome.

I recommend to stick with x86, for now. PPC action is coming, but there is
still software that is kind of annoying to try to make work, from what I'm
told. Not too mention, you can't always get source to build and everyone
has x86. 

I would get an AMD K6-3 when they come out (cheap, fast, better than a P2
at same clock, even w/ FPU stuff) and run redhat.




-

On Mon, 11 Jan 1999, David Thompson wrote:

> 
> Hello,
> 
> I am struggling with a decision that some have
> probably been through, or are currently experiencing:
> 
> If one wishes to run Linux and write Java code
> (including, the potential of the java 3d api),
> should one get and x86 and run RedHatx (and or another
> x86 flavor), or should one go with a PowerPC and run 
> LinuxPPC (or MkLinux).
> 
> My concern is primarily with the prospect of future
> java support (for access to the latest), in Linux. 
> I have a leaning toward getting a PowerPC for gut 
> reasons. But, I am having difficulty determining
> the current pulse regarding the commitment to
> java on PowerPC's. I realize that Java 2 will soon
> be out for both x86 and PPC, but is there any indication
> that the PPC will be java supported into the future? 
> I realize that there is no guarantee, I am just looking
> for indications.
> 
> Other issues of interest are the future prospects
> of java 3d on x86 and PowerPC linux versions. 
> Are there 3D accelerator drivers currently in the
> works for Linux OpenGl api type graphics, that
> java 3d can take advantage of. If so, do/will there
> be drivers for the PPC as well as the x86 chips.
> And is there a port of the java 3d api to linux/(Mesa 
> or other OpenGl api) in the works?
> 
> I realize that these are a common brand of questions, 
> but I have not found them asked this directly in the FAQ's.
> 
> Also, how does someone go about providing donations to
> support the java/linux efforts, in order to perpetuate 
> the trend?
> 
> Thank you
> respectfully
> dt
>
> _
> David R.Thompson
>   Los Alamos National Laboratory
> TSA 5
> wk.ph:505.665.5572 
> email:  [EMAIL PROTECTED]
> _
> 
> 
> 
> 



Re: setting up swing

1999-01-12 Thread Patrick

You just need to set the CLASSPATH and export it in the bashrc and include
the files for it. There are docs for it with it.




-

On Mon, 11 Jan 1999, Brett Jones wrote:

> Could someone point me to some docs on setting up swing.
> 
> Thanks.
> -- 
> Brett Jones
> [EMAIL PROTECTED]
> 
> 



Re: Plug In

1999-01-12 Thread Patrick

www.blackdown.org
Follow the link to java/linux. Its somewhere on that page.




-

On Tue, 12 Jan 1999, Matt Choate wrote:

> 
> Do you know where I can download the port of the Java Plug-in for Linux?
> 
> Thanks
> Matt
> 
> __
> 
> Matt Choate
> EMail: [EMAIL PROTECTED]
> Phone: (617)679-5444
> Senior Developer
> Enterprise Applications Group
> Cambridge Technology Partners
> 304 Vassar Street Cambridge, MA 02139
> http://www.tiac.com/users/choate
> __
> 
> 
> 



Re: JDK1.2

1999-01-12 Thread Patrick

DAMMIT!!! Why don't we just make a join message that says
"The damn JDK1.2 (Java 2) isn't. Don't ask."




-

On Tue, 12 Jan 1999 [EMAIL PROTECTED] wrote:

> 
> 
> Hi guys,
> 
> Just wondering about the status of JDK1.2 (a.k.a Java 2) for Linux. Can we
> expect a release by Feb. 1, 1999 ?
> 
> - Farley Caesar
> 
> P.S. Great work on the JDK1.1.x series for Linux by the way.
> 
> 
> 



Re: Java Plugin doesn't work

1998-10-16 Thread Patrick Lamb

Robert P. Biuk-Aghai wrote:
> 
> I installed the Java Plugin (activator-linux-glibc) on Linux 2.0.34
> with Netscape 4.06. At the end of installation I'm told:
> 
>   Java(TM) Plug-in installation done.
> 
> but in the Netscape window it says:
> 
>   You do not have the Java(TM) Plug-in installed.
> 
> I tried this several times. The first time round, it said something
> about unreferenced symbol: stat, or something like that. I have not
> been able to reproduce this message later, however.
> 
I got it to work by setting the NPX_PLUGIN_PATH environment variable. 
(It's in one of the FMs...)  IIRC, it isn't supposed to be needed for a
default installation, but the plugin suddenly started working when I set
it anyhow.  In my case I set
  NPX_PLUGIN_PATH=/home/pdlamb/.netscape/plugins
  export NPX_PLUGIN_PATH
in my .bashrc.  

Pat

> I have the JDK 1.1.6v2 glibc port and following libraries:
> 
> libc-2.0.7.so
> libdl-2.0.7.so
> ld-2.0.7.so
> 
> java -version says:
> 
> java version "1.1.6"
> 
> I realize that this is one minor version higher than what it says in
> the README at Blackdown, but would really not like to downgrade my
> setup just to get the Plugin to work. Is is possible to make it work
> with my current setup, and if so, how?
> 
> Robert.
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Robert P Biuk-Aghai, University of Macau, Faculty of Science and Technology
> http://hyperg.sftw.umac.mo/robert/tel: +853-3974365fax: +853-838314
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Microsoft isn't the answer. Microsoft is the question and the answer is no.

-- 
Alcohol and calculus don't mix.  Never drink and derive.
Patrick Lamb, Ph.D.   [EMAIL PROTECTED]
(256) 837-5282 x1253 voice,   (256) 830-0287 FAX

With all my employer's PR people, they can tell you the company opinion.
If it has one...



JMEDIAFRAMEWORK

1998-10-28 Thread Patrick Lenders

Dear,

is there any plan to port java media framework to linux?

Many thanks,

Cheers
Patrick
-- 
Patrick Lenders
School of Mathematical and Computer Sciences
University of New England
Armidale, NSW 2351, Australia
[EMAIL PROTECTED]



Is Swing available?

1998-11-23 Thread Patrick Hays

First, my apologies for what I know has to be a dumb question.

I just started trying to use java with RHL 5.2 and downloaded all the
tarballs for jdk, jre, etc. and then used the examples from the Java
NutShell book to "exercise" the installation with everything fine except
for examples needing swing components.  It wasn't absolutely clear to me
from the documentation if swing was/wasn't supported although I guess it
isn't.

If it _is_ available could someone please point me to place to look? 
Otherwise I shall have to continue doing java development on NT (sigh).

You humble and obedient...

Patrick



Re: Is Swing available?

1998-11-23 Thread Patrick Hays

Many thanks for all the replies.  I am downloading JFC 1.1 beta 3 as I
type this...

Patrick Hays wrote:
> 
> First, my apologies for what I know has to be a dumb question.
> 
> I just started trying to use java with RHL 5.2 and downloaded all the
> tarballs for jdk, jre, etc. and then used the examples from the Java
> NutShell book to "exercise" the installation with everything fine except
> for examples needing swing components.  It wasn't absolutely clear to me
> from the documentation if swing was/wasn't supported although I guess it
> isn't.
> 
> If it _is_ available could someone please point me to place to look?
> Otherwise I shall have to continue doing java development on NT (sigh).
> 
> You humble and obedient...
> 
> Patrick



About jdk1.2

1999-02-01 Thread Patrick Ohnewein

On your home page there is written, that ports for x86 are ready,
couldn't you give it for beta test to developers??

Thank you

P@

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]



RE: problem jdk1.2

1999-02-17 Thread Patrick Lam

I ocassionally got the same thing too!  Still don't know what causes it.
Most of the time a programs works fine, but suddenlly it returns this
message (probably after a did something, but I can't recall).

I thought that's my machine's problem, Now I think it might not be that
simple.

BTW, I have both jdk1.2 and MS SDK 3.1 and MS VM (latest) installed.

Any pointer??

Thanks.

Patrick.

-Original Message-
From: Ozer Irfan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 17, 1999 6:23 AM
To: Carl H. Sayres
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: problem jdk1.2


I have this message


Exception in thread "main' java.lang.NoClassDefFoundError

when I run

java test1

With javac I don't have problems

this is the program


import java.io.* ;

public class test1 {
public static void main(String args []) {

System.out.println("Hello");
}
}


Thanks



jdk1.2 web site

1999-02-19 Thread Patrick Ohnewein

I know everybody asks when the jdk1.2 for linux will be released.
This mail is not one of them.

There was a post from a blackdown member that he wants to put a site
about the status of the jdk, now I am waiting hard for it.
Could you put up the site, even if it doesn't contain more than nothing,
would like to see it otherwise I have to search for it in the blackdown
site every day!

Thanks
P@

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]



Re: System.runFinalizersOnExit

1999-02-23 Thread Patrick Ohnewein

I don't know if it works in the blackdown port.

I only know that the problem with running finalizers is that they get
called sequencely and that leads to problems, because in a complex
reference structure they shouldn't get called sequencely but depending
on the structure, but that's very difficult if not impossible in most
cases, therefore I guess they don't want to allow it anymore.

That's what I think, correct me.

P@

[EMAIL PROTECTED] wrote:
> 
> `` System.runFinalizersOnExit(true) ''
> 
> Does this work/implemented on Blackdown JDK 1.1.7-1a or not?
> 
> I find it does __not__ work for me ?
> Meaning no finalizers are called when the JVM terminates.
> However I tested the same code on Solaris/Sun JDK and it works!
> Anyone know the reason why?
> 
> (  And yes I know in Java 2 the call is deprecated, and
> I dunno why  JavaSoft announced in 1.1 and deprecated in 1.2
> you'ill have to ask them not me. )
> 
> Pete
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



install JDK without AWT ? [ no x11 ]

1998-08-13 Thread Patrick Dockhorn




hi,
 
I am 
trying to get JDK, i.e. servlets up and running on my linux 
machine.
From what I understand, this requires X11, as the AWT package 
that comes with the JDK obviously requires this library.
 
Is 
there a way to install the JDK without the requirement of having the X11 libs, 
i.e. to install it without AWT support?
 
Your 
help is highly appreciated,
 
Patrick
 



// written by patsch 08/98
var bIsOK = 0;
if (window.navigator.appVersion.indexOf("MSIE 4.") >= 0)
{
 bIsOK = 1;
}
var nFontSize1 = 1;
var nFontSize2 = 1;
var nFontSize3 = 1;
var nFlipStarted = 0;
var nFlipRunning1 = 0;
var nFlipRunning2 = 0;
var nFlipRunning3 = 0;
var nMaxFontSize = 10;
var nDelay = 50;





    
    Patrick Dockhorn
BROKAT:

Managing Consultant
Voice:
+49-711-7884-4324
TOMORROW'S

Professional Services
Fax:
+49-711-7884-4771
SOLUTIONS

BROKAT Infosystems AG
EMail: [EMAIL PROTECTED]
TODAY.

function xflip()
{
 if (bIsOK)
 {
  if (!nFlipStarted)
  {
   nFlipStarted=1;
   nFlipRunning1=1;
   nFlipRunning2=0;
   nFlipRunning3=0;
   nFontSize1 = 1;
   nFontSize2 = 1;
   nFontSize3 = 1;
   xbrokat.style.color = "#ff";
   xbrokat.style.fontWeight = "bold";
   flip();
  }
 }
 else
 {
  // xbrokat.style.color ="#ff";
  // xbrokat.style.fontWeight = "bold";
 }
}
function flip()
{
 if (bIsOK)
 {
  if ((nFontSize1 < nMaxFontSize) && (nFlipRunning1))
  {
   nFontSize1++;
   xtomorrow.style.fontSize = nFontSize1 + "pt";
   if ((nFontSize1 > 6) && (!nFlipRunning2))
   {
nFlipRunning2=1;
   }
  }
  else
  {
   nFlipRunning1=0;
  }
 
  if ((nFontSize2 < nMaxFontSize) && (nFlipRunning2))
  {
   nFontSize2++;
   xsolution.style.fontSize = nFontSize2 + "pt";
   if ((nFontSize2 > 6) && (!nFlipRunning3))
   {
nFlipRunning3=1;
   }
  }
  else
  {
   nFlipRunning2=0;
  }
 
  if ((nFontSize3 < nMaxFontSize) && (nFlipRunning3))
  {
   nFontSize3++;
   xtoday.style.fontSize = nFontSize3 + "pt";
  }
  else
  {
   nFlipRunning3=0;
  }
 
  if ((nFlipRunning1) || (nFlipRunning2) || (nFlipRunning3))
  {
   setTimeout("flip();",nDelay); 
  }
  else
  {
   nFlipStarted=0;
   xbrokat.style.color = "#404040";
   xbrokat.style.fontWeight = "normal";
  }
 }
}




Re: KDE PLAF

1999-03-25 Thread Patrick Ohnewein

Would even be interested, do you have some web page, or do you plan to
include it in the jgt project?

P@

Andreas Rueckert wrote:
> 
> Hi!
> 
> Somewhat OT(?):
> Since I don't like the other PLAFs, I've started to create a KDE PLAF. Far from
> completion, but some stuff already works (on JDK 1.1.7 + Swing 1.1B3 +
> KDE 1.0).  If you are interested in contributing or testing, please drop me a
> p-mail.
> 
> Ciao,
> Andreas
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



Re: java versus c++ or perl

1999-05-07 Thread Patrick Lamb

I'd like to add three things to Ted's comments.  With respect to speed, if
you want to get  running quickly, perl is probably faster to write and
debug than either Java or C++ (if you are equally fluent in all three
languages).  If you are writing something to be called through CGI, perl's
CGI.pm will speed things along even more.

Also, for text processing, such as parsing or form generation, perl can
match or exceed C++.  I don't know how it does it, but it does it.

Finally, if you are connecting to an external database, you might consider
an Apache/mod-perl combination.  With the mod-perl module, you can open a
connection into the database for each server and keep it open; I'm told
this can save half a second or more for each server connection.  I haven't
done this one myself, but I can vouch for the first two.

You might ask, what's a perl fanatic doing on a Java mailing list?  I use
perl for most of the server-side work, and Java on the browser side.

Pat

At 02:36 PM 5/6/99 -0700, Ted Neward <[EMAIL PROTECTED]> wrote:
>Oh, Lord, what, you WANT a flame war?
>
>Look, here's my bottom line: With Power Comes Complexity. Perl is simpler
>than Java, Java is simpler than C++. With that simplicity you lose a
>corresponding amount of power. But the end result is that it doesn't
>matter--you can accomplish just about any project in just about any
>language. C++ will be fastest, Java will come in second (due to the
>presence of JITs and the like), and Perl will be last.
>
...
>My personal preference is for C++ and Java, since (a) those are the two
>languages I know the best, and (b) I'm adept enough with either one that I
>can produce reusable code that can be used in a variety of situations. If I
>had to choose one vs. the other, I'd lean towards Java, simply because it's
>a nice compromise between a high-level language like Perl and an
>object-oriented language like C++--not too much power sacrificed to get
>some nice simplicity.
>
...
>At 02:08 PM 5/6/99 -0700, [EMAIL PROTECTED] wrote:
>>we are having a discussion here at work about the deployment of a web based
>>database,
>>
>>i think jdbc is the choice othere think perl or c++ is the way to go, any
>>thoughts/links etc?
>>
>>thanks


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



Strange timings for pre-v2 under Linux.

1999-07-02 Thread Patrick LAM

We have some machines running Debian 2.1 here (libc 5.4.46), and we are
running the pre-v2 Linux port of Java.

There are strange timings for the following programs.  In particular, the
static version runs at about half the speed of the nonstatic version,
which seems backwards; static takes 232s and nonstatic takes 123s.
Normally, the static call should be faster to execute, since there is less
work to do.  Does anyone have any ideas about why this is the case?

pat

// virtual invokes.

class myprog {

   public static void main(String[] args) {
  int i,j,n;

  System.out.println("Beginning");
  long begTime = System.currentTimeMillis();
  System.out.println(begTime);

  Bidule bid = new Bidule();
  
  
  for (n=1; n<5000; n++) { 
 bid.change(1); 
 bid.change(2);
 bid.change(3);
 bid.change(4);
 bid.change(5);
 bid.change(6);
  }
  
  System.out.println("End");
  long endTime = System.currentTimeMillis();
  System.out.println(endTime);
  System.out.println(" lasting : " + (endTime-begTime) );
   }
}

class Bidule{
   int i;
   public Bidule() {
  i=0;
   }
   
   public void change(int new_i) {
  //System.out.println("former i : "+i+"new i : "+new_i);
  i=new_i;
   }
}

// myprog_static
class myprog_static {

   public static void main(String[] args) {
  int i,j,n;

  System.out.println("Beginning");
  long begTime = System.currentTimeMillis();
  System.out.println(begTime);

  Bidule_static bid = new Bidule_static();
  
  
  for (n=1; n<5000; n++) { 

 Bidule_static.change(bid, 1); 
 Bidule_static.change(bid, 2);
 Bidule_static.change(bid, 3);
 Bidule_static.change(bid, 4);
 Bidule_static.change(bid, 5);
 Bidule_static.change(bid, 6);
 
  }
  
  System.out.println("End");
  long endTime = System.currentTimeMillis();
  System.out.println(endTime + "   lasting "+ (endTime-begTime));
   }
}

class Bidule_static{
   int i;
   public Bidule_static() {
  i=0;
   }
   
   public static void change( Bidule_static bidule, int new_i) {
  bidule.i=new_i;
   }
}




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



Re: Strange timings for pre-v2 under Linux.

1999-07-02 Thread Patrick LAM

I forgot to mention that the machines are running the x86 JIT.  Our next
step is to find a way to run the Solaris versions of JDK1.2 and see what
those numbers look like.

pat

On Fri, 2 Jul 1999, Patrick LAM wrote:

> We have some machines running Debian 2.1 here (libc 5.4.46), and we are
> running the pre-v2 Linux port of Java.


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



Re: Strange timings for pre-v2 under Linux.

1999-07-03 Thread Patrick LAM

On Sat, 3 Jul 1999, Nick Lawson wrote:

> My first guess would be that the jit is better at static calls than virtual.
> Nick
> 
> > There are strange timings for the following programs.  In particular, the
> > static version runs at about half the speed of the nonstatic version,
> > which seems backwards; static takes 232s and nonstatic takes 123s.
^^^   (virtual)  ^^^
> > Normally, the static call should be faster to execute, since there is less
> > work to do.  Does anyone have any ideas about why this is the case?

The JIT should definitely be better at static calls.  But they take twice
as long.  What's the deal with that?

The interpreter takes about the same time for both programs.

The Windows NT JIT, by the way, takes 3 seconds for the static version and
50 seconds for the nonstatic version.  It probably inlines the static
version, then optimizes it.

pat



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



Re: Strange timings for pre-v2 under Linux.

1999-07-05 Thread Patrick LAM

On Sun, 4 Jul 1999, Albrecht Kleine wrote:

> > I forgot to mention that the machines are running the x86 JIT.  Our next
> > step is to find a way to run the Solaris versions of JDK1.2 and see what
> > those numbers look like.
> 
> TYA jit 1.4 on a plain P200 jdk1.2
> takes 100 sec for myprog_static
>   and 110 sec for myprog.
>   
> (But invocation is the most slow part of TYA compared w sunwjit.
>  This is because there's not enough knowledge about details 
>  on invocation internals w/o using src code)

Thanks.  Note that Kaffe also shows a 15% speedup with static over
virtual.  There just seems to be a very anamolous result for the Linux
JIT, where static is twice as slow.

pat



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



JDBC - ODBC Bridge on Linux

1999-08-27 Thread Patrick & Freda



Hi everyone,I have installed MySQL, MyODBC and 
unixODBC on my Linux Redhat platform.Now i am looking for a JDK that 
contains the JDBC - ODBC classes and shared object files.I have found 
JDK 1.1.7 v3 and JDK 1.1.8 (for arm) do NOT have JDBC - ODBC classes 
etc...my theory is, when www.blackdown.org ported JDK to Linux they 
could not port the JDBC part as well coz of sun-Java and InterSoft (people who 
wrote JDBC - ODBC Bridge) had some legal agreement or something.. Any 
ideals, or anyone know of any JDK for Linux with the JDBC - ODBC included ? 
or does it even exist on a Linux version ?Please advise.. thanks 
Patrick 


unsubscribe

1999-09-11 Thread Patrick & Freda



 


Re: Swing PLAF color properties?

1999-09-16 Thread Patrick Ohnewein

Check out UIManager.getColor(String)
and for the keys check out
http://www.gargoylesoftware.com/papers/plafdiff.html
there are shown the differences, but I look to it very ofter to get the
right keys!

Hope this helps
Patrick

Jani Mikkonen wrote:
> 
> Actually my question is not straing linux/java question, more like
> general java one but here it goes.
> 
> I've wrote a listbox cellrenderer which im using in my crossplatform
> application. This application sets look'n'feel according the OS
> its running as most of the programs like this does. The problem
> in in data representation. My listbox uses its own cell renderer.
> And when i use my own cellrenderer i have to take care of all things
> happening in that cell, including changing background color of cell
> if its selected. That is not a problem. The problem is what color to
> use as a "selected" color and what color to use when its not
> "selected"? I bet, these color schemes can be obtained from somewhere
> but at this point, i havent found any suitable classes that store
> these values.
> 
> --
>  -
> | Name : Jani Mikkonen|
> | Email: [EMAIL PROTECTED]  |
> | ICQ UIN# : 19840860 |
> | Homepage : http://www.pcuf.fi/~rasjani  |
> | --- |
> | 'Save the whales, Feed the hungry and Free the mallocs' |
>  -
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



Re: java-linux-digest Digest V99 #54

1999-10-18 Thread Patrick LAM

> I wonder how much speedup can be achieved by using tools like
> Jopt ( http://www-i2.informatik.rwth-aachen.de/~markusj ). Are there any
> benchmarks yet?

If you keep an eye on the Sable website, by next week there will be a
technical report describing how much speedup you can obtain with inlining
via Soot.  www.sable.mcgill.ca/publications

pat



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



Re: Getting jdk1.2 to run

1999-10-28 Thread Patrick Ohnewein

I have the same problem, now I noticed in my
/usr/jdk1.2pre2/bin/
is no java and no javac file!

there ist only the i386 subdirectory and 2 files named
.java_wrapper
java-rmi.cgi

I have set the PATH, but of course it doesn't help!

Do I have a to old version, I downloaded it some days ago from a mirror,
don't remember which.
Would like to avoid redownload, because I have a very slow internet
connection here!

Thanks for any help, also to Andreas Jäger, who is helping me finding
out the problem, I need some help on linux systems, NEWBIE ;-)

Thanks for any response or comment
    Patrick

Jo Uthus wrote:
> 
> Gordon Lindsay wrote:
> 
> | I have unziped into a directory and when i go into the bin
> | directory, and type
> | java or javc or any of the jdk commands, it returns
> | '#bash: javac unknown command'.
> 
> 1. Unpack into something like /usr/local/java/jdk1.2.2-prev2/.
> 2. export PATH=/usr/local/java/jdk1.2.2-prev2/bin/
> 3. [java javac] all the way
> 
> Setting the PATH in a global loginfile (like /etc/profile) would be
> considered a good idea.
> --
> Jo Uthus| e-mail: [EMAIL PROTECTED] (private)
> Software Engineer   | e-mail: [EMAIL PROTECTED]  (work)
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



Re: GUI Design Question

1999-10-28 Thread Patrick Ohnewein

Now I added some code, may be could help, don't know about the quality,
and I didn't compile it ;-) Now I would go in this direction if I would
have ur problem, but I don't know if a desigh pattern exists for this
sort of problem. By sure I wouldn't integrate the ActionListener into
the JPanel, by sure not
class XX extends JPanel implements ActionListener

Only alternative could be to make an innerclass of JPanel implement the
interface.

About the actionListener, u could use Action instead, is more powerfull!

Hope I could help a little
Patrick

p.s. I guess this is the wrong mailing list for this questions, check
out some others may be

 [EMAIL PROTECTED]

could be more adequate.

Riyad Kalla wrote:
and Patrick added ;-)

/**
 * This has to be an interface, because you cannot extend all component
classes?
 */
public interface ConstraintsComponent
{
/**
 * Provide the component to be added.
 */
Component getComponent();

/**
 * Provides the constraints for the passed LayoutManager,
 * which should be used adding the provided component.
 */
Object getConstraintsForLayout(LayoutManager lm);
}

public interface TargetProvider
{
Container getTarget();
}

> /* Class Listener */
> public class iHearYou implements ActionListener
> {
private TargetProvider targetProvider;

public iHereYou(TargetProvider targetProvider)
{
super();
this.targetProvider = targetProvider;
}

protected ConstraintComponent createComponent()
{
return new ConstraintsComponent() {
public Component getComponent()
{
return new JLabel();
}

public Object getConstraintsForLayout(LayoutManager lm)
{
if (lm instanceof BorderLayout)
return BorderLayout.NORTH;
return null;// for unknown lm
}
};
}

>  actionPerformed( ActionEvent e )
>  {
if (targetProvider != null) {
Container target = targetProvider.getTarget();
if (target != null) {
ConstraintComponent newCmp = createComponent();
target.add(newCmp);
}
}
>   // 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 implements TargetProvider
> {
public controlMe()
{
super();
>   JButton a = new JButton( "Hi!" );
//>   iHearYou newEar = new iHearYou();
iHearYou newEar = new iHearYou(this);
>   a.addActionListener( newEar );
>   add( a );
}

public Container getTarget()
{
return getParent();
}
> }
> 
> /* Class UI */
> {
>  controlMe S&M = new controlMe();
>  getContentPane().add( S&M );
> }
> 
-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



Re: classpath

1999-10-29 Thread Patrick Ohnewein

Don't know if this is the problem, I can only guess, but I know that
starting from some java version the classpath got splitted into
classpath
and
-Xbootclasspath:

I thought only after jdk1.2, but could be earlier.

Now the problem would be, there are 2 class loaders the boot classloader
which loads the rt.jar and other system jars, I am talking about jars
under java 2.
Now if we want to patch some swing classes, we have to specify our new
classes using
the -Xbootclasspath:
which tells to the classloader to load the specified classes first!
Otherwise the old swing gets loaded before and our patches will have no
effect!

I guess this shouldn't be the problem, but u could even check if there
is the TAG in your java command. Or ensure that u don't have an other
swing jar in ur classpath.

Hope this could help
Patrick


Adam Carheden wrote:
> 
> First, I did get Argo to run by extracting both it and swing from their
> respective jar files into the local directory and running it from
> there.  For disk space and other reasons, however, I'd like them to stay
> in their respective .jar files.
> 
> The Argo page specifically says to use Swing v1.0.3, which I am.  I have
> also set classpath to
> .:/usr/local/jdk117_v3/swing-1.0.3/swing.jar:/usr/local/java_apps/argouml.jar.
> The error I'm getting when I run Argo is:
> 
> java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/metal/MetalTheme
> at uci.uml.Main.main(Main.java:74)
> 
> so I know it's running uci.uml.Main (which I had to extract from the
> .jar file and put it the local directory to get it to find).  I have
> also checked swing.jar and .../MetalTheme.class is there.
> 
> I think it's just ignoring my CLASSPATH.  Is there a way to turn on
> debugging info that will tell me exactly where it's looking for classes?
> 
> --
> Adam Carheden
> [EMAIL PROTECTED]
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


--
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]



Java inlining

1999-01-16 Thread Patrick LAM

What you've mentioned is known as method inlining.

The Soot framework does this optimization on Java classfiles.  (Why
classfiles?  See the technical report at

http://www.sable.mcgill.ca/publications/sable-tr-1999-3.ps

"Optimizing Java Bytecode using the Soot Framework: Is it feasible?"
for a rationale and our experimental results.)

Unfortunately, the version (1.beta.6) which does inlining is not yet
available to the public.  It does work on a vast number of Java
programs.  The code (under LGPL) should be online within the next two
weeks. 

pat



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



Some benchmark results.

1999-12-08 Thread Patrick LAM

I ran a few benchmarks to compare the different JVM's out there, on the
SPEC benchmarks plus two of our internal benchmarks, sablecc (a parser
generator), and soot, a frozen version of our analysis framework.

Here are the results.  These results are not scientific; in particular, I
only ran each benchmark once; usually we will run them five times.  So
they should only be considered as an approximate measurement of the
performance of the various VM's. 

BlackdownSun Blackdown+javacomp
compress 66.01  70.45  70.75
db  146.54 112.34 153.66
jack 62.57  39.05  48.58
javac71.08  46.71  58.39
jess 48.13  33.00  36.95
mpegaudio57.95  59.27  58.59
mtrt 37.97  31.93  24.11
raytrace 51.61  30.99  32.49
sablecc-w41.92  32.16  39.11
soot-j  132.19  92.76 107.88

Blackdown denotes Blackdown JDK1.2.2RC3.
Sun denotes Sun/Inprise JDK1.2.2RC1.
Blackdown+javacomp is Blackdown RC3, but using the javacomp JIT provided
with the Sun JDK.

Tests were run on a dual-processor PII/400 running kernel 2.2.8.

pat



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



Re: Some benchmark results.

1999-12-09 Thread Patrick LAM

On Thu, 9 Dec 1999, Mark Christiaens wrote:

> I'm not familiar with this benchmark.  What is better?  Higher or lower
> values?  Can these benchmarks also be run on a 1.1 JVM?  I'm especially
> interested in the IBM machine which is 1.1.8.

We have results from IBM's 1.1.8 somewhere around here, and they are
generally fast; I don't remember the specific numbers.  The times reported
were execution times, so smaller is better.

I'll set up a timing run (to get more precise numbers) and include IBM's
numbers at some point.

pat



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



REQUEST for voters!!!!!

2000-01-10 Thread Patrick Ohnewein

Now I think I'm not the only one who needs to print from a JAVA
application.
And I suppose I am not the only one who has more than one printer.
And I guess also, some of us use printers with more than one tray.

I requested in May 1999 a more ?ADVANCED? printer support and I am
afraid SUN is not willing or doesn't want to find the time to implement
it.

Now I would like to ask u all to view the RFE #4137899 and it's related
and if u think, like I do, it's time for java applications to be able to
do the requested thinks, PLEASE VOTE #4137899

Thx in advance
Patrick


-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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



SMP ok?

2000-04-02 Thread Patrick LAM

Until this question was asked, we had assumed that SMP runs fine on our
dual-processor PII machines.

However, come to think of it, the SPEC JVM benchmark mtrt does tend to
randomly fail.  We just ignored this failure, but it might indeed be due
to JVM flakiness.

(We don't actually write multithreaded applications here.  In the past,
we've tried to make our Soot java analysis framework multithreaded, but
never got around to finishing it.  It did initially seem to work fine,
though we never tested it throughly.)

pat



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




HotSpot ??

2000-06-05 Thread Patrick Lacson

Can someone explain to me the advantage of JIT compilers?  It's obviously
faster .. I've been doing some recusion testing and the Sun JDK 1.3 for
Linux
runs on average 3 times faster than the jdk 1.2.2 rc4 from blackdown.org.

Here's my very simple nchoosek recursive method:

/** nchoosek recursive function **/

public class nchoosek {
public static void main(String[] args) {

if(args.length<2) return;
int n=Integer.parseInt(args[0]);
int k=Integer.parseInt(args[1]);
nchoosek func = new nchoosek();
long start = System.currentTimeMillis();
System.out.println(func.choose(n,k));
long end = System.currentTimeMillis();
System.out.println("took " + (end-start) +
"milliseconds (~" +
(float)(end-start)/1000 +
" seconds) !!");
}

public int choose(int n, int k) {
if(k==0) return 1;
if(n==1) return n;
if(n==k) return 1;
return choose(n-1,k) + choose(n-1,k-1);
}
}

Machine: Pentium Pro 200Mhz w/ 128Mb of RAM:
-On jdk 1.2.2 rc4 by blackdown ~10 seconds
-On jdk 1.2.2 by Sun for Linux ~28 seconds
-On jdk 1.3 by Sun for Linux   ~3 seconds!


--
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: J2SEE 1.3 on SuSE Linux 6.4 with SuSE Kernel

2000-06-07 Thread Patrick Lacson

I just downloaded jdk 1.3 for Linux from Sun's web site and sure enough your
tip WORKED!!  I ran my code prior to applying a zero value for the
heap-stack-gap and I always get a seg fault.  Thanks!!

-Patrick L

-Original Message-
From: Carsten Hoeger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 07, 2000 11:46 AM
To: [EMAIL PROTECTED]
Subject: J2SEE 1.3 on SuSE Linux 6.4 with SuSE Kernel


Hi,

it seems that the problem is Andrea Arcangeli's
silent-stack-overflow-3 patch. He suggests to try the following:

  echo 0 > /proc/sys/vm/heap-stack-gap

I can't test it now, because I am at home now, but I'll test it
tomorrow.



--
mit freundlichen Gruessen,

Carsten Hoeger  - SuSE Professional Services -

SuSE GmbH,   Schanzaeckerstr. 10,  90443 Nuernberg, Germany
Tel: +49-911-7405356 Mo-Fr 09-17.00,   Fax: +49-911-3206727
http://www.suse.de/de/support/prof/index.html


--
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: Anyone using blackdown jdk on SMP linux?

2000-06-26 Thread Patrick LAM

We've experienced the `java.lang.IllegalMonitorStateException: current
thread not owner' exception after we run some of our test programs through
Soot, our Java bytecode analysis framework.  Strangely enough, the
exception does not occur on the original copies of the programs, only
after we Sootify.  

At first, I thought this was a problem with Soot, but the error seems to
be the same one people are encountering without Sootifying their files.

We are running Debian potato on 2.2.8 kernels, Blackdown's JDK1.2.2, with
native threads, on dual-processor PII systems.

pat




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




Re: IBM 1.3 full release

2000-07-03 Thread Patrick Ohnewein

Some of u managed to download the packages??

I managed to register me, give them all my infos :-( and after loosing
time I came across this ugly page filled up with broken links.

Would realy like to know if they had there links ever working

thanks

patrick

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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




Re: IBM 1.3 full release

2000-07-04 Thread Patrick Ohnewein

I posted a report to IBM reporting the problem, I've got the response
they forwarded the report to the webmaster :-<, may be I will ever get
to a download :-)

cu patrick

p.s. I will check the links again later, may be there was just a server
down, may be they us MS servers :-)

Julio Cesar Aguilar Cabrera wrote:
> 
> > Some of u managed to download the packages??
> 
> I did download the RPM package (27+Mb) without a problem.
> I installed it but had time for nothing else.
> 
>   --
>   Julio Cesar Aguilar Cabrera
>   [EMAIL PROTECTED]
>   Laboratorio Nacional de Informatica Avanzada
>   Xalapa, Veracruz, Mexico.
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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




Re: THEY WORK AGAIN!!!

2000-07-04 Thread Patrick Ohnewein

Ohh the links work now


I guess they just had a server crash

cu patrick

Patrick Ohnewein wrote:
> 
> I posted a report to IBM reporting the problem, I've got the response
> they forwarded the report to the webmaster :-<, may be I will ever get
> to a download :-)
> 
> cu patrick
> 
> p.s. I will check the links again later, may be there was just a server
> down, may be they us MS servers :-)
> 
> Julio Cesar Aguilar Cabrera wrote:
> >
> > > Some of u managed to download the packages??
> >
> > I did download the RPM package (27+Mb) without a problem.
> > I installed it but had time for nothing else.
> >
> >   --
> >   Julio Cesar Aguilar Cabrera
> >   [EMAIL PROTECTED]
> >   Laboratorio Nacional de Informatica Avanzada
> >   Xalapa, Veracruz, Mexico.
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> --
> -
> Save software competition, use Linux and Java!
> mailto:[EMAIL PROTECTED]
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]


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




JDBC-ODBC for Linux

2000-07-06 Thread Patrick Lacson

Newbie question:  Is it possible to have an Access datbase file located on
the linux box and connect to it using the free Sun JDBC-ODBC driver?  If so
where can I find more info.

TIA!

-Patrick

--
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-ODBC for Linux

2000-07-06 Thread Patrick Lacson

Thanks for the tip.  I ended up just scrapping the Access DB and using SQL
Server.

-P

-Original Message-
From: Christopher Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 6:17 PM
To: Patrick Lacson
Cc: [EMAIL PROTECTED]
Subject: Re: JDBC-ODBC for Linux


--On Thursday, July 06, 2000 11:56 AM -0700 Patrick Lacson
<[EMAIL PROTECTED]> wrote:
> Newbie question:  Is it possible to have an Access datbase file located on
> the linux box and connect to it using the free Sun JDBC-ODBC driver?  If
> so where can I find more info.

The actual code using the JDBC driver will have to be installed on a
machine with an Access ODBC driver (which I think must be a Windows box or
a Mac box). The data store itself can reside anywhere (however the
performance is limited).

To the best of my knowledge the Sun JDBC-ODBC driver has not been setup for
Linux.

--Chris


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




File permissions

2000-08-01 Thread Patrick Ohnewein

Now I have a Java app which creates files.
Everything works as espected but the created files get the wrong file
permissions.

The user which uses the app has the following attributes:
NAME: patrick
GROUP: users
UMASK: 022

creating the file Test.dat in the directory
/Test with the following attributs
drwxrwxr-x  4 interbas users4096 Aug  1 10:06 Test

results in a file with the following attributes
-rw-r--r--  1 patrick users   21 Aug  1 10:06 Test.dat

I would like to get the files created by the app editable by the users
group, is the described behaviour correct or is it a limitation of the
Java VMs (tested with Suns and IBMs jdk1.3)?

I have to say my Linux experiences aren't as deep but I don't really
think I have to use chmod every time after a file get's created by an
app. Even I wouldn't like to use JNI in the java app to do it.

What should I do, PLEASE help, this is critical for starting deployment
of our app under linux platform.

thanks Patrick

p.s. please replay also to my mail address

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]

Visit the official HomePage of the first LinuxUserGroup in Southtyrol
http://www.lugbz.org


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




[Fwd: File permissions]

2000-08-01 Thread Patrick Ohnewein

Guess the first send didn't work

Patrick Ohnewein wrote:
> 
> Now I have a Java app which creates files.
> Everything works as espected but the created files get the wrong file
> permissions.
> 
> The user which uses the app has the following attributes:
> NAME: patrick
> GROUP: users
> UMASK: 022
> 
> creating the file Test.dat in the directory
> /Test with the following attributs
> drwxrwxr-x  4 interbas users4096 Aug  1 10:06 Test
> 
> results in a file with the following attributes
> -rw-r--r--  1 patrick users   21 Aug  1 10:06 Test.dat
> 
> I would like to get the files created by the app editable by the users
> group, is the described behaviour correct or is it a limitation of the
> Java VMs (tested with Suns and IBMs jdk1.3)?
> 
> I have to say my Linux experiences aren't as deep but I don't really
> think I have to use chmod every time after a file get's created by an
> app. Even I wouldn't like to use JNI in the java app to do it.
> 
> What should I do, PLEASE help, this is critical for starting deployment
> of our app under linux platform.
> 
> thanks Patrick
> 
> p.s. please replay also to my mail address
> 
> --
> -
> Save software competition, use Linux and Java!
> mailto:[EMAIL PROTECTED]
> 
> Visit the official HomePage of the first LinuxUserGroup in Southtyrol
> http://www.lugbz.org

-- 
-
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]

Visit the official HomePage of the first LinuxUserGroup in Southtyrol
http://www.lugbz.org


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




To optimze or not

2000-11-03 Thread Patrick LAM

Shameless self-promotion:

The Soot framework developed at McGill University
(www.sable.mcgill.ca/soot) does Java optimization.  You can run your
programs through Soot and they should come out a bit faster.  Instructions
for doing so are found at

http://www.sable.mcgill.ca/soot/tutorial/optimizer/

Soot is free software (licensed under the LGPL).

pat



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




Re: How to get VisiBroker for Java on Linux running?

1998-12-04 Thread Jonathan Patrick O'Neil

On Fri, Dec. 4 1998 Marcel Ruff wrote:

> 1)
> I tried running our CORBA-VisiBroker stuff on Linux,
> it compiles well, but my clients and servers can't find
> the Naming Service running on a AIX box (with a running
> osagent/gatekeeper)
> How does this URL-naming look like ???
> The same code runs well if invoked on AIX.
> 

If you run an osagent on your aix box, and it is on the same ip subnet 
as your linux machine, it should work fine, we do this with Solaris 
all the time.  However, if your linux machine cannot be udp-bcasted
to from the aix box, you may have to override the ORBAgentAddr property
and point it to the IP address of the AIX box where the osagent is
running to be able to bind to the object reference of the naming service.

e.g.:

  // hardcode the osagent
  Properties props = new Properties();
  props.put("ORBagentAddr", "199.82.126.2");

  // init the orb
  ORB orb = ORB.init(args, props);
  System.out.println("Orb initted.");

Alternatively, you could also get the object reference of the naming 
service instance in IOR: form and bind 

e.g.:

  // bind to a Snafu object
  Snafu snafuTester = SnafuHelper.narrow( orb.string_to_object(iorString));

where iorstring is the object reference of the Naming Service impl obtained
by calling orb.object_to_string() on the impl in question.

Hope that helps, I have been after our Inprise contacts to port the osagent and
osfind to java, since we can do udp bcasts in Java now, but so far they have
been ignoring me...

Cheers.
-- 
Pat O'Neil 
email: [EMAIL PROTECTED]  

"Linux, where you want to BE, when Windows(tm) tells you where to GO!"



port information

1999-01-20 Thread Patrick W. O'Neill

I was wondering if your port was supported by Sun in any way.  The reason
I'm asking is because I need to perform some benchmarking, and if I could
do it all on a linux system it would make my life much simpler, however, I
want to make sure the numbers for Java are an accurate representation of
Sun's JVM (mainly in thread performance), so I didn't want to use
something like Kaffe. Thanks for any information.

Patrick O'Neill



Problem

1999-01-26 Thread Patrick W. O'Neill

I apologize if this is the incorrect place to send this, I tried
submitting a bug report but I don't know if it got through, and it is
important that I resolve this ASAP.

I have a problem with JDK1.1.7-v1a running green threads.  I am running
basic fibonacci code, using the recursive algorithm and implemented with
threads.  This code runs without incident on the Solaris JDK.  However,
when I try to run it using the Blackdown port, it works fine up to fib 5,
but when I run fib 6, I get a seg fault.  I am running this on a Debian
2.0 system with glibc.  I have a similar problem with n-queens code, it
runs fine on Solaris, but on Linux problems arise above an 8x8 board.

I you had any ideas as to why this happens I would greatly appreciate
them.  Thanks.


- Pat


- Code -

import java.util.*;

public class java_fib extends Thread
{
  private int fib;

  java_fib(int number) { 
fib = number; 
  }

  public void run() {
if( (fib==0) || (fib == 1)) {
  fib = fib;
}

else {
  java_fib java_fib_thread_1 = new java_fib(fib - 1);
  java_fib java_fib_thread_2 = new java_fib(fib - 2);
  
  java_fib_thread_1.start();
  java_fib_thread_2.start();
  
  try {
java_fib_thread_1.join();
java_fib_thread_2.join();
fib = java_fib_thread_1.get_fib() +
  java_fib_thread_2.get_fib();
  }
  catch(InterruptedException e){
e.printStackTrace();
  }
}
  }

  private int get_fib() {
return fib;
  }


  public static void main(String arg[]) {
java_fib fib;
int number;
number = new Integer(arg[0]).intValue();
fib = new java_fib(number);
Date now;
Date then = new Date();
fib.start();

try {
  fib.join();
  now = new Date();
  System.out.println("The total execution time is "  +
((now.getTime() - then.getTime())) + "ms.");
  System.out.println("The fibonacci for " + number + " is: " +
 fib.get_fib());
}
catch(InterruptedException e) {
  e.printStackTrace();
}
  }
}




RE: Problem

1999-01-27 Thread Patrick W. O'Neill

I don't *NEED* to, I realize there are better ways to compute Fibonacci,
if computing Fibonacci was all I cared about.  I just *WANT* to because I
am benchmarking some multithreaded implementations, Java included, and
Fibonacci, although a contrived example, gives a good indication of thread
overhead because there is very little computation involved in each thread.

Could a possible cause be the max threads limit on the machine being
reached?  I have a similar problem with P-Threads, however not until a
much higher instance of Fib than 6.

- Pat

On Wed, 27 Jan 1999, Vittorio Ballestra wrote:

> What I funny rabbit it is !?!
> Why do you need to fork a process for every recursive step ?
> 
> > -Original Message-----
> > From: Patrick W. O'Neill [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 26, 1999 19:42
> > To: Michael Sinz
> > Cc: [EMAIL PROTECTED]
> > Subject: Problem
> > 
> > 
> > I apologize if this is the incorrect place to send this, I tried
> > submitting a bug report but I don't know if it got through, and it is
> > important that I resolve this ASAP.
> > 
> > I have a problem with JDK1.1.7-v1a running green threads.  I am running
> > basic fibonacci code, using the recursive algorithm and implemented with
> > threads.  This code runs without incident on the Solaris JDK.  However,
> > when I try to run it using the Blackdown port, it works fine up to fib 5,
> > but when I run fib 6, I get a seg fault.  I am running this on a Debian
> > 2.0 system with glibc.  I have a similar problem with n-queens code, it
> > runs fine on Solaris, but on Linux problems arise above an 8x8 board.
> > 
> > I you had any ideas as to why this happens I would greatly appreciate
> > them.  Thanks.
> > 
> > 
> > - Pat
> > 
> > 
> > - Code -
> > 
> > import java.util.*;
> > 
> > public class java_fib extends Thread
> > {
> >   private int fib;
> > 
> >   java_fib(int number) { 
> > fib = number; 
> >   }
> > 
> >   public void run() {
> > if( (fib==0) || (fib == 1)) {
> >   fib = fib;
> > }
> > 
> > else {
> >   java_fib java_fib_thread_1 = new java_fib(fib - 1);
> >   java_fib java_fib_thread_2 = new java_fib(fib - 2);
> >   
> >   java_fib_thread_1.start();
> >   java_fib_thread_2.start();
> >   
> >   try {
> > java_fib_thread_1.join();
> > java_fib_thread_2.join();
> > fib = java_fib_thread_1.get_fib() +
> >   java_fib_thread_2.get_fib();
> >   }
> >   catch(InterruptedException e){
> > e.printStackTrace();
> >   }
> > }
> >   }
> > 
> >   private int get_fib() {
> > return fib;
> >   }
> > 
> > 
> >   public static void main(String arg[]) {
> > java_fib fib;
> > int number;
> > number = new Integer(arg[0]).intValue();
> > fib = new java_fib(number);
> > Date now;
> > Date then = new Date();
> > fib.start();
> > 
> > try {
> >   fib.join();
> >   now = new Date();
> >   System.out.println("The total execution time is "  +
> > ((now.getTime() - then.getTime())) + "ms.");
> >   System.out.println("The fibonacci for " + number + " is: " +
> >  fib.get_fib());
> > }
> > catch(InterruptedException e) {
> >   e.printStackTrace();
> > }
> >   }
> > }
> > 
> 



JAVA on LINUX (RedHat 6.0)

1999-10-02 Thread Patrick M. Alleyne




I was wondering anyone could help me and/or point me in 
right direction to the following issue I have with Linux and 
JDK117/JDK1.2;
 
I seem to have multiple process instances when ever I issue 
the interpreter ($JAVA_HOME/bin/jre, $JAVA_HOME/bin/java) with any versions of 
Linux that I have
 
RedHat 6.0
libc.so.6 => libc.2.1.1.so
 
- Applets/Class's will still run properly, although there 
should only be one(1) instance.
 
jiniuser 29404  0.0  1.6  1964 1016 
pts/4    S    14:33   0:00 csh 
/export2/jiniuser/bin/StartRMIDjiniuser 29405  0.1 11.1 22260 7040 
pts/4    S    14:33   0:06 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29429  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29430  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29431  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29432  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29436  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29437  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29438  0.2 11.1 22260 7040 
pts/4    S    14:33   0:07 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29440  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/jiniuser 29442  0.0 11.1 22260 7040 
pts/4    S    14:33   0:00 
/opt/jdk1.2/bin/i386/native_threads/rmid -log 
/export2/jiniuser/logs/
 
Any thoughts would be great !
 
Patrick M. Alleyne[EMAIL PROTECTED]
 


Re: Thread in the Linux's JVM

1999-11-22 Thread Patrick J. McNerthney

> I don't know if you know this or not but hitting [CTRL][\] (control
backslash)
> will cause your application to dump a full stack trace of all your
threads.
> Very handy for debugging.

I was just trying to figure how to do this in Linux, I am use to the
CTRL-BREAK combo in NT.

I just tried this on my Linux machine and it didn't work.  Any obvious
things to check ???

Thanks,
Pat McNerthney
Icicle Software, Inc.



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



Newbie: Anyone know what library path is?

1999-05-21 Thread Patrick Tsoi-A-Sue

Trying to compile a java program for the first time on linux using the
following:

$ CLASSPATH=~/java:/usr/lib/jdk1.1.5/lib
$ export CLASSPATH
$ javac Console.java
No library path set.
Cannot find essential class 'java/lang/Object' in class library ... aborting.
$

How do I set library path. 
Thanks for any suggestions.

Patt
Au revoir.


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



Re: How to Read files belong to client

2000-07-26 Thread Patrick Tsoi-A-Sue

This is a solution with a perl script on the server. I suppose you could
replace the server script with java.

Include this form on your web page:

http://yourserver/cgi-bin/savefile.pl>


 


Here is the server script to receive the file savefile.pl.

# - savefile.pl

# Receive file name and file data into buffer at server.
$|=1;
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

#
# some code is needed to split file name and file data.
#

open(UPLD, "> /$filename");
print UPLD $buffer;
close(UPLD);

print "Content-type: text/html\n\n";
print <
Thank you very much

Thank you for sending your file.
filename: http://yourserver/$filename>$filename .

$buffer



EOF

At 10:04 AM 7/26/00 +0800, you wrote:
>Hi, Everybody
>
>I want to design an assignment submission system (a simple web page).
>(1) After the students fill their name and they file names (located at their
>own computer), they click submit
>button.
>(2) How to read the files located at their hard disk?
>
>Java Applet or something else?
>
>Thanks advance
>yangyuexiang
>
>
>--
>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]