Re: Const in java

1999-10-13 Thread Gordon Keith
[EMAIL PROTECTED] wrote: > > On Wed, 13 Oct 1999, Robert Simmons wrote: > > > Since everything in java is passed by reference this becomes even more of an issue. > > Therefore can I do the following to achieve the desired safety ? > > Well, everything is not passed by reference in Java. I beli

Re: Const in java

1999-10-13 Thread Michael Emmel
[EMAIL PROTECTED] wrote: > On Wed, 13 Oct 1999, Robert Simmons wrote: > > > Since everything in java is passed by reference this becomes even more of an issue. > > Therefore can I do the following to achieve the desired safety ? > > Well, everything is not passed by reference in Java. I believe

Re: Const in java

1999-10-13 Thread Matt Welsh
Robert, Since most of your questions are general Java questions and have nothing to do with the Linux port of the JDK, can you please direct them elsewhere? The USENET group comp.lang.java.programmer is probably a good place to ask. Thank you, Matt Welsh, UC Berkeley "Robert Simmons" <[EMAIL P

Re: Const in java

1999-10-13 Thread jools enticknap
Hi Robert, Adding the final keyword to a variable in an argument list only means that the reference is final, ie you can't make the reference refer to another object. I does not mean that I can't call certain methods in the same way as C++. Regards --Jools >From: "Robert Simmons" <[EMAIL PR

Re: Const in java

1999-10-13 Thread alx
On Wed, 13 Oct 1999, Robert Simmons wrote: > Since everything in java is passed by reference this becomes even more of an issue. > Therefore can I do the following to achieve the desired safety ? Well, everything is not passed by reference in Java. I believe primitives and immutable types are

Re: ddd as a java debugger

1999-10-13 Thread Jacob Nikom
Hi Matt, Thank you for your info about GCJ. Have you ever try it? How well it works? I looked at its documentation and found it a little confusing. The compiler consists of two parts + debugger. Also there is visual front end to this debugger, Insight. The installation of each part consists of

Const in java

1999-10-13 Thread Robert Simmons
I was always the real proponent of type and instance safety in c++. for example.   class Foo {   private BarClass  _bar;     public const BarClass& getBar();   public setBar(const BarClass const &bar); }   This snippet guarantees that someone doesnt pull a getBar() then set the return resu

Re: JNI on linux.

1999-10-13 Thread Jacob Nikom
Hi, I am pretty sure, if you remove your libhello.so library completely from your directory, you are going to get exactly the same message. It means that your loader cannot find your library libhello.so, even if it is in the directory. I don't think LD_LIBRARY_PATH matters. Verify that you h

Re: ddd as a java debugger

1999-10-13 Thread Nathan Meyers
Jacob Nikom wrote: > > Hi, > > Do you know anything about GCJ - latest Cygnus tool for Java > compilation and debugging? Yeah, gcj is a Java front end for the gcc compiler: Java goes in, native code comes out. It compiles from either Java source or classfiles; it doesn't recognize all current s

Re: Stupid Newbie Questions: Catching unanticipated null pointer exceptions (Are there really any other kind =^)

1999-10-13 Thread Eric vanberkel
Oh, this reminds me of (X)Emacs and Java: Check out http://www.baclace.net/emacsjava.html for your IDE mate. gr. Eric --- "Alex M." <[EMAIL PROTECTED]> wrote: > > Exception in thread "main" > java.lang.NullPointerException: > > at > java.awt.Container.addImpl(Container.java

Re: ddd as a java debugger

1999-10-13 Thread Jacob Nikom
Hi, Do you know anything about GCJ - latest Cygnus tool for Java compilation and debugging? Jacob Nikom Nathan Meyers wrote: > > "Daniel P. Zepeda" wrote: > > > > You can find DDD at: > > > > http://www.cs.tu-bs.de/softech/ddd/ > > > > Just grab the sources, untar, run configure, make, make in

Re: Benchmark results for Linux JVMs (formatted for 70 columns)

1999-10-13 Thread Paolo Ciccone
On Tue, Oct 12, 1999 at 08:51:29PM -0500, Chris Abbey wrote: > > >A # indicates that the run failed validity checks. > > poor bor...er...inprise You can use Borland :). Anyway, the result is not bad since the JIT has been released as a public Beta test and we'd like to know more details abo

Re: Problems with JDB

1999-10-13 Thread Adam Ambrose
I've been using jdb (through JDE) on the Blackdown 1.2 JDK since it's been released, and I've only gotten the problem you described when I try to run java/jdb with native threads. When I run it with green threads and no JIT, it works perfectly for me, if slowly. If you haven't already, try setti

Re: ddd as a java debugger

1999-10-13 Thread Nathan Meyers
"Daniel P. Zepeda" wrote: > > You can find DDD at: > > http://www.cs.tu-bs.de/softech/ddd/ > > Just grab the sources, untar, run configure, make, make install. It was > that easy for me. Oh, you may need to get Lesstiff and some XPM library > stuff, but the information for that is included in t

Re: A Global instance ?

1999-10-13 Thread Marc Slemko
On Wed, 13 Oct 1999, Peter Pilgrim wrote: > Or perhaps alternatively the lazy singleton. > > public class NetworkPrinter { > > protected PaperStackpaper > protected static Object locker = new Object(); > private static NetworkPrinter thePrinter = null; >

Re: Benchmark results for Linux JVM's.

1999-10-13 Thread Jacob Nikom
Hi, It was the article in one of the Java magazines two years ago. I don't remember which one. They claimed that for numerical operations the speed was comparable. In very crude and simple loop test on Linux with gcc -O3 and Blackdown Java (I assume jit was on) the ratio Java/C speed was 3 - 4

Re: ddd as a java debugger

1999-10-13 Thread Matt Welsh
> Being something of a doit-yourself type (as I imagine we all are), I'm > still trying to put together a debugging environment that is > 'satisfying'. Although not directly relevant to the Blackdown JDK, GCJ (the Java front-end to GCC) supports Java debugging with GDB. This is amazingly useful

Re: ddd as a java debugger

1999-10-13 Thread Daniel P. Zepeda
You can find DDD at: http://www.cs.tu-bs.de/softech/ddd/ Just grab the sources, untar, run configure, make, make install. It was that easy for me. Oh, you may need to get Lesstiff and some XPM library stuff, but the information for that is included in the documentation. Keep in mind that DDD is

Re: A Global instance ?

1999-10-13 Thread Peter Pilgrim
[EMAIL PROTECTED] wrote: > > I have a gizmo that keeps track of resources for a program. The problem > is that Im ending up passing this gizmo to every child component and > that is beginning to bug me. In C++ I ould just create a global static > var and let everyone access it. This is one of t

Re: Benchmark results for Linux JVM's.

1999-10-13 Thread Jacob Nikom
Hi, Does anybody know comparable benchmarks for Java, C and C++ tasks? I am interested in comparative speed of the languages - any platform is good. So far I heard only about two years old Java/C++ comparison on NT, which stated similarity in speed under some conditions. Thanks, Jacob Nikom Ra

ddd as a java debugger

1999-10-13 Thread videoranger
First let me say thanks to all of you who responded to my original newbie questions. I actually made some progress with my screwy code as a result of your suggestions. Very Cool. I still have problems to solve, though. Being something of a doit-yourself type (as I imagine we all are), I'm still t

Re: A Global instance ?

1999-10-13 Thread Surjan Singh
Robert, How about creating a class like this: "public class Fred{ public static final ResourceGizmo resourceGizmoRef; }" Then in the main class or init code do Fred.resourceGizmoRef=new . Then any class can access the instance by using Fred.resourceGizmoRef. Surj "Robert Simmons Jr." wrot

Re: Java and Linux

1999-10-13 Thread Michael Sinz
On Mon, 11 Oct 1999 16:33:29 -0500, [EMAIL PROTECTED] wrote: >Hi: > >I'm new in Linux. Please forgive me if the questions are too simple. > >Q1: What version of Java (1.1 or 1.2) does JVM inside Blackdown JDK package >support? Depends on which you download. We have released versions for 1.1.x

Re: A Global instance ?

1999-10-13 Thread Paul Mclachlan
At 5:31 10 Oct 1999 -0600, Robert Simmons Jr. wrote: > I have a gizmo that keeps track of resources for a program. The problem > is that Im ending up passing this gizmo to every child component and > that is beginning to bug me. In C++ I ould just create a global static > var and let everyone ac

Re: I am a new user of Java on Linux platform...

1999-10-13 Thread Jo Uthus
"Cengiz Ulutas" wrote: | Hi, | I downloaded jdk117_v3 from your site and installed it on my | RedHat6.0...It seems to work properly. | I copied my compiled project classes to my Linux, too and added my | projects path to the classpath. When I try to execute as in the | following, 'ja

Re: A Global instance ?

1999-10-13 Thread Catalin Climov
package mypackage; public class Global // use this class to keep your global properties { private Global() // disable it's constructor, since all its members are static { } static // This is the static initialization. It is performed after the class is loaded into jvm {

Re: A Global instance ?

1999-10-13 Thread Stefan Bodewig
Hi Robert, the "standard answer" I guess: use the Singleton-Pattern (see "Design Patterns" by Gamma, Helm, Johnson and Vlissidis) like this: public class Gizmo { private static Gizmo instance = null; private Gizmo() { } public static Gizmo getInstance() { if (instance

A Global instance ?

1999-10-13 Thread Robert Simmons Jr.
I have a gizmo that keeps track of resources for a program. The problem is that Im ending up passing this gizmo to every child component and that is beginning to bug me. In C++ I ould just create a global static var and let everyone access it. This is one of those rare cases where its a good idea.

I am a new user of Java on Linux platform...

1999-10-13 Thread Cengiz Ulutas
Hi, I downloaded jdk117_v3 from your site and installed it on my RedHat6.0...It seems to work properly. I copied my compiled project classes to my Linux, too and added my projects path to the classpath. When I try to execute as in the following, 'java myPackage.myApplication' I receive

Re: Benchmark results for Linux JVMs (formatted for 70 columns)

1999-10-13 Thread Robb Shecter
Interesting comments. > >benchmark execution was repeated ten times. We discarded the maximum > >and minimum results, and averaged the remaining 8 execution times. > > very good methodology... sure wish more people would do that. Yes - it sounds like a nice mix between "median" and "mean". Me

Re: Benchmark results for Linux JVMs (formatted for 70 columns)

1999-10-13 Thread Martin Schröder
On 1999-10-12 13:52:58 -0400, Raja Vallee-Rai wrote: > The following tests were conducted on an unloaded dual processor > Pentium II/400mhz running Debian GNU/Linux (kernel 2.2.8). Each > benchmark execution was repeated ten times. We discarded the maximum > and minimum results, and averaged the

Re: Debugger

1999-10-13 Thread Alexander Davydenko
Brian Miller wrote: > > I was wondering what debugger people are using? Does a Linux port of > ddd exist? IMHO pure jdb from terminal with some patience is a nice choice, especially if threads debugging. There is a jd from alphaworks. It's a java written, and quite robust. Cheers. -- Alexand

Re: Problems with JDB

1999-10-13 Thread Rachit Siamwalla
> > > Ever try System.out.print() or the "Ctrl-\" thing? > > > What is the "Ctrl-\" thing? Ctrl-\ or SIGQUIT will give you a "thread-dump" of the jvm. Consider it like a combination of "info threads" and "bt" in gdb rolled into one. Plus, you can call it anytime at will. It also prints out al

keytool on jdk1.2

1999-10-13 Thread ermirza erekose
Hi, I just installed jdk1.2 pre 2 on Linux Mandrake 6.0 on i386 platform. I tried to create a signed applet using the keytool command. keytool -alias signer -genkey Enter keystore password: * What is your first and last name? [Unknown]: ermirza erekose What is the name of your or

Another keytool error

1999-10-13 Thread ermirza erekose
Hi, Anybody knows what these mean ??? PINE 4.10 COMPOSE MESSAGE Folder: INBOX 8 Messages To : [EMAIL PROTECTED] Cc : Attchmnt: Subject : Another keytool error - Message Text - Hi, Anybody knows what these mean ??? #keytool -genkey -v -alias