Re: Problem with connection ?
At 02:04 PM 11/30/98 +0200, Buzoianu Stefan wrote: >Hyaa! >I wrote this application but when I run "exFTP www.yahoo.com" >I give something like this "UnknowHostexception www.yahoo.com" >What is the problem ? can you ping to www.yahoo.com from that machine ? Gerrit.
Re: Help!
At 10:22 AM 12/9/98 -0600, Carlos Alberto Roman Zamitiz wrote: >Hi, yesterdar root had a problem with his linux server and I don't know >certainly what happened but today I typed: > >lcomp98.fi-b.unam.mx carlos>javac HolaMundo.java >No library path set. > >I revised my PATH and CLASSPATH. They are correct. > >Only if I type full path >lcomp98.fi-b.unam.mx carlos>/users/local/bin/java/jdk1.1.5/ >bin/javac HolaMundo.java > >javac works fine. It happened for "java" too. > >Thanks! > >Carlos Alberto Roman Zamitiz >Departamento de Ingenieria en Computacion, Facultad de Ingenieria UNAM >[EMAIL PROTECTED] > > Are the PATH & CLASSPATH variables exported ?
Re: what tools do you use for programming
At 10:40 AM 12/10/98 +, Dimitris Vyzovitis wrote: >BTW (to be a bit off topic), >Does anybody know the status of Metrowork's CodeWarrior porting to >linux? >It could be a good IDE to use. > >Sze Yuen Wong wrote: > >> Well, Visual Cafe and JBuilder are very close to >> eash other. I really couldn't find any main feature >> that is missing from the other one. >> > >It is my conception that they are both missing a linux port ;-} A linux port of JBuilder might be in the pipeline as I thought Sun & Inprise(borland) where teaming up to provide a kinda JBuiler for Sun Solaris. And this would be done by developing more of JBuilder in Java and not in Delphi. And as Sun is going to do more support for Linux in the future anyway... > >> >> >> I go with JBuilder for two reasons: >> 1. JBuilder supports CORBA right now, Visual Cafe >>until first quater 1999. >> 2. Microsoft licenced JBuilder. (Potentially >>replace J++?) > >Oops, this is neat! >Where do you here about that? Do you mind sending over a link? Hmmm, I know Oracle licenced JBuilder to make their own Java development environment called JDeveloper. Knowing Oracle is working with Inprise and Sun as well I doubt it very much that Microsoft is teaming up with Inprise as well... Gerrit.
Re: Is this a JVM bug? Why is my local variable not initialized?
My $.02:
public abstract class Stack {
public Stack() {
super();
this.initializeStack(); // make sure the Stack is initialized properly
}
public abstract void initializeStack();
public abstract void push(Object element);
public abstract Object pop();
public abstract boolean isEmpty();
public void wipeOut() {
Object dummy;
while (!isEmpty())
dummy = this.pop();
this.initializeStack(); // reInitialize
}
}
public class ArrayStack extends Stack { // An implementation of Stack using
an array
implementation of the abstract methods using an array
}
public class ListStack extends Stack { // An implementation of Stack using
a linked list
...
}
Anyway, I think it is bad practice to initialize variables at declaration.
I have encountered many situations where the reinitialisation takes place,
the decleration intialized values are often forgotten. So instead of
declaring a variable "int d = 1" is something I only do for local variables
for methods or final ones, not for "normal" instance variables.
At 10:17 AM 1/7/99 -0500, Christopher Hinds wrote:
>This may sound like a stupid question but aside from the obvoius technical
>
>reason(s), can someone please give a real-world example where this could
>be used ( ie.. calling a instanance method(s) in the constructor of the
>superclass before
>the superclass has been completely constructed)?
>
>Nathan Meyers wrote:
>
>> Richard Jones wrote:
>> >
>> > Can someone tell me why this program, when run under
>> > Linux, prints d = 0 (ie. the variable d isn't being
>> > initialized as expected)? According to Bruce Eckel's
>> > book, which is the only reference I have available to
>> > me, d should be initialized to 1, so I suspect this
>> > may be a JVM bug ...
>>
>> Have you tried it on JVMs other than Linux?
>>
>> It looks to me like you're invoking method() before DerivedClass has
>> been fully initialized... not entirely surprising, since the super()
>> constructor must occur before any constructor activity in the derived
>> class. (Try, for example, inserting some code before the super() call
>> and you'll be scolded by the compiler. The initialization of d is
>> comparable activity.)
>>
>> Nathan Meyers
>> [EMAIL PROTECTED]
>>
>>
>> > -
>> > /* SuperClass.java */
>> >
>> > public abstract class SuperClass
>> > {
>> > protected SuperClass ()
>> > {
>> > method ();
>> > }
>> >
>> > protected abstract void method ();
>> > }
>> > -
>> >
>> > -
>> > /* DerivedClass.java */
>> >
>> > public class DerivedClass extends SuperClass
>> > {
>> > public int d = 1;
>> >
>> > public DerivedClass ()
>> > {
>> > super ();
>> > }
>> >
>> > protected void method ()
>> > {
>> > System.out.println ("d = " + d);
>> > }
>> >
>> > public static void main (String[] args)
>> > {
>> > DerivedClass derivedClass = new DerivedClass ();
>> > }
>> > }
>> > -
>> >
>> > $ java -version
>> > java version "1.1.6"
>> > $ java DerivedClass
>> > d = 0
>> >
>> > --
>> > - Richard Jones. Linux contractor London and SE areas.-
>> > -Very boring homepage at: http://www.annexia.demon.co.uk/ -
>> > - You are currently the 1,991,243,100th visitor to this signature. -
>> > -Original message content Copyright (C) 1998 Richard Jones.-
>
>
HOWTO: jdk1.2pre1 on Slackware or SOLVED: missing libstdc++-libc6.0-1.so.2 and missing fonts on Slackware
If you want to run jdk1.2pre1 on Slackware it is not enough to run this command: g++ -shared -o /usr/lib/libstdc++-libc6.0-1.so.2 -lm If you do that you stiil get an unresolved __getfpucw in libm. Instead run: g++ -shared -o /usr/lib/libstdc++-libc6.0-1.so.2 -lm -lc That should do the trick. For the font problems: look on the website of www.blackdown.org: Copy the 2 ghostscript fontfiles in the jre/lib/fonts directory and add these 2 font files in the fonts.dir Then JDK1.2 runs perfectly on Slackware 3.6! Regards Gerrit. Marble Consulting -- Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Font Problem with jdk1.2
At 00:41 12/03/99 +0100, Willi Richert wrote: >Thanks, that did it for me. But now I get the error (for example running >java >Notepad in demo/jfc): > Look on the www.blackdown.org messages for a solution Marble Consulting ---------- Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2-pre-v1 on redhat 5.2
At 16:48 11/03/99 -0800, Gabriel Montenegro wrote: >in case you're interested, we tested (briefly) the jdk1.2-pre-v1 >release on the following platform: > > redhat 5.2 > linux kernel 2.2.3 > >In order to get it to work we had to add the following symbolic link: > > cd /usr/lib > ln -s libstdc++.so libstdc++-lib6.0-1.so.2 Look at the bug reports on blackdown.org. This is not a good solution! > >We also got a bunch of messages about fonts not found. Otherwise, >it seems to work. Also solved on the blackdown.org message board. > >We tested the swing demos under the demo subdirectory. > >-gabriel > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > Marble Consulting -- Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: can't find class ijvmasm
At 07:47 AM 4/20/99 PDT, TC Lin wrote: > >Hello, Could anyone figure out what the problem is ? > >Thanks. > >-Todd > > > > > >1. >problem > >in ~hyu/mic1 directory I type in >$java ijvmasm echo.jas echo.ijvm > >I got the following ERROR message : > >Can't find class ijvmasm Maybe ijvmasm.java doesn't contain the class ijvmasm but ijVMasm. Class names and filenames are case sensitive and must match. Gerrit. ---- Marble Consulting -- Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Patches
Hello, Is it possible to get the 'diffs' between the original JDK source tree of SUN and the source tree used to generate the blackdown port ? Regards, Gerrit. Marble Consulting ------ Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: (0.3 * 3) = 0,8999999999 ????
At 10:04 12/05/99 +0200, Alessio Dragoni wrote:
>Hi
>
> I try to run the code appended at the end of this message on v1.2pre1
> on linux and in the jdk1.2 and jdk1.2.1 on Win and the result is
> that 0.3*3 is equals to 0,899 and not simply to 0.9 !!!
>
> is this a bug or what?
>
> trying to run this one and you can see it!
> Anyone knows some bug-fix to resolve this strange
> error ?
>
> any comments are welcome!
>
> bye Alessio
>
Thats not a bug, thats just typical behaviour with floating point
algorithm, try to compile and run this little C program on your linux machine:
#include
void main() {
double d1 = 0.3, d2 = 3, d3;
d3 = d1 * d2;
printf("%20.20lf", d3);
}
-------- Marble Consulting --
Gerrit Cap http://www.ping.be/marble
OO Solutions Engineer mailto:[EMAIL PROTECTED]
Marble Consulting
Blauwe Gaanweg, 53 tel : +32 75 72.94.36
B-9150 Kruibeke-Bazel fax : +32 3 744.19.17
Belgium
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: indeo avi module & rtf-reader for java-linux?
At 02:55 PM 5/27/99 +0200, Bruno Boettcher wrote: >2. question didn't found anything in java to display rtf format, maybe >somebody could redirect me in the right direction? This should surely exist... There is some support of rtf in swing: look into the javax.swing.text.rtf package to get started. regards, Gerrit. Marble Consulting ------ Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Persistency for java on Linux
Hello, Does anybody has some good virbations on a persistency storage product (preferable freeware) that can be used on Linux from java for quick prototyping ? Regards, Gerrit. Marble Consulting -- Gerrit Cap http://www.ping.be/marble OO Solutions Engineer mailto:[EMAIL PROTECTED] Marble Consulting Blauwe Gaanweg, 53 tel : +32 75 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium Marble Consulting -- There is only one thing in the world worse than being witty, and thats not being witty. (Monthy Python) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
