About the JDK 1.2
Hello, my name is Andrea Controzzi (I'm male) and I write from Italy. I subscribed the list to follow the development of the JDK for Linux. I'm near to graduate in Computer Science, so I have experience with C, C++ and of course Java. I did some exams also on operating systems, including sygnal management and so on, and parallel computing. As a matter of fact, indeed, my final thesis will be about Java and parallel computing, so any information is really welcome. If there is something I can do to help the development, it will be my pleasure to do so. I'm also the author of the PLIP Mini-Howto, so I'm experienced also in writing documentation. Since I'm interested in parallel and distributed computing with Java, I'm also waiting to use the Java 1.2 RMI feature. This leads to my question: how is the development of the 1.2 version for Linux going? I'm waiting for the JDK 1.2 for Linux, please don't leave me to play with the windows95 version :) --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
RE: rmid with JDK1.1.6
On 12-Oct-98 Michael Kranz wrote: >Hello, > >I didn't find the RMI-Server rmid within JDK1.1.6. How can I implement RMI >on a Server under Linux? Any documentation abou this? > Probably because RMI is implemented in Java 1.2. I am waiting for RMI too, right now I'm forced to work on a Solaris workstation...at least it's not windows :) --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
Re: rmid with JDK1.1.6
On 14-Oct-98 Joe Carter wrote: >My linux box has the same java facilities as the solaris box. >I'm fairly certain you can talk either way. > >There's no "rmid" in the solaris 1.1.6. >My solaris stuff only uses rmiregistry... I have to use solaris because there is the JDK1.2. I thought that RMI was available on in 1.2, but I see it also in the 1.1.6, now. But does it work? >Can anyone comment on the differences between 1.1 and 1.2 RMI? >(beyond the running over IIOP...) Yes, I'd like to know the differencies too, please. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
A bug in the parse method? (and more)
Hello, I'm using the JDK 1.1.5, of course the Linux version. I have to parse a file of many lines, each line has 1 float and 4 double numbers. I read the lines and for each line I parse the 5 numbers and store them in the variables of a Body object. The line is read into the String bodyinfo. To parse di string I'm using this method: java.text.DecimalFormat.parse(String, ParsePosition) (Please notice that I'm still quite new with Java, so if this isn't a smart way to parse these lines, please let me know.) Anyway here is the code fragment: ParsePosition p = new ParsePosition(0); // Posizione DecimalFormat df = new DecimalFormat(); // Parser body[i].base = df.parse(bodyinfo, p).floatValue(); body[i].posx = df.parse(bodyinfo, p).doubleValue(); body[i].posy = df.parse(bodyinfo, p).doubleValue(); body[i].velx = df.parse(bodyinfo, p).doubleValue(); body[i].vely = df.parse(bodyinfo, p).doubleValue(); The official 1.1.5 docs say: When parsing, leading whitespace is discarded (with successful parse), while trailing whitespace is left as is. Example: Parsing "_12_xy" (where _ represents a space) for a number, with index == 0 will result in the number 12, with status.index updated to 3 (just before the second space). Parsing a second time will result in a ParseException since "xy" is not a number, and leave index at 3. The string "23.456 12 23.6 0 0.1" (no withspace at the beginning) gives: Base: 23.456 PosX: 0.0 PosY: 0.0 VelX: 0.0 VelY: 0.0 The 0.0 values are perhaps null values (see below). The ParsePosition is 0 before the first parse and stays at 6 (points the whitespace after the 23.456) after it. I guessed that the behaviour of this method is different from what is written in the docs: the method does not discard the whitespaces. The proof is the following: I put a withspace at the beginning of the string: " 23.456 12 23.6 0 0.1". And the result was: Base: 0.0 PosX: 0.0 PosY: 0.0 VelX: 0.0 VelY: 0.0 Again, these could be null values (see below). Before submitting the bug to this list I chose to run a test on a Solaris JDK 1.2 of my Computer Science Department (i.e. I haven't installed and configured it). For this test I used the string without the whitespace at the beginning. I compiled the code with the Solaris javac compiler (should have I tried also with the Linux-compiled java bytecode?) and ran it. I got a NullPointerException in the second parse call, surely because the doubleValue() was called on the return value (null) of the first parse. Needless to say, when I tried with the string with a whitespace at the beginning, I got the exception in the first parse. This seem to say that: 1) This parse method has a behaviour different from the one described in the docs and seems to be there since the solaris code (I guess that the Linux JDK is derived from the solaris code). 2) There is a different buggy behaviour: in Solaris the method returns a null, in Linux seems that it returns a zero value...or the doubleValue returns 0 if called on a null pointer. In the latter case, this does not happen in Solaris. I hope this helps to fix the bug. If you need more informations just ask. BTW, I wrote a workaround. I just increase the ParsePosition p variable... p.setIndex(p.getIndex() + 1); .every time after a parse call. With this trick, all works perfectly: Base: 23.456 PosX: 12.0 PosY: 23.6 VelX: 0.0 VelY: 0.1 This is the final proof that the problem are the whitespaces. Best regards, Andrea --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |
The bug is still there (and problems with the 1.1.7-v1a) (Re: A bug in the parse me
On 26-Nov-98 Juergen Kreileder wrote: [About parse method] >Get 1.1.7-v1a and try again, 1.1.7 has some bugfixes for the parse methods. I got the 1.1.7-v1a and the bug is still there. The blanks are not skipped, while in the docs it is clearly written that they should be. >The parse-methods are 100% pure Java, so if 1.1.5 Linux and 1.2 Solaris >show different behavior it doesn't have to be a Linux bug, but it means >that there have been some changes to the java code between 1.1.5 and 1.2. Yes, probably it's not a problem with the Linux port, but is a fact that the behaviour is different from what I read in the docs. Should I do a bug report to the Java developers? Anyway, here is a real Linux port JDK 1.1.7-v1a problem. I get this message: /usr/local/java/bin/../bin/checkVersions: /tmp/ldd.out.889: Permission denied every time I run java and javac. The number seems to be the PID and this happens with my standard user and the superuser. Beside the annoying message, anything works fine. There seems to be something wrong somewhere in the checkVersions script. How do I fix it? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
Re: The bug is still there (and problems with the 1.1.7-v1a) (Re
On 03-Dec-98 John Summerfield wrote: >> [About parse method] >> Should I do a bug report to the Java developers? > >That is a good idea. >It would be sensible first to verify it in an applet in Netscape (which >does not use the Blackdown port). I verified that the bug is there also in a Solaris 1.2 JDK, which should have been released directly by JavaSoft. Should this be enough as a proof that it's not a problem with the Blackdown port? Of course I have also the code that shows the bug. >> >> Anyway, here is a real Linux port JDK 1.1.7-v1a problem. >> >> I get this message: >> >> /usr/local/java/bin/../bin/checkVersions: /tmp/ldd.out.889: Permission >denied > >This is more usually a permissions problem, though it's odd that it happens >with root. Indeed it should be, but I get it also as root. I can confirm because I've tested it again now. >Can you, from the commandline, execute the command >ls >/tmp/Clancy.was.here Sure. It worked perfectly, that file showed the ls output, including colors. >Does this show anything odd? Nope. No errors and the files has exactly the ls output. >ls -dl /tmp >For reference, I get this: >[summer@emu summer]$ ls -dl /tmp -d >drwxrwxrwt 8 root root 3072 Dec 3 07:06 /tmp Same here: drwxrwxrwt 24 root root 6144 Dec 3 13:06 /tmp/ >You can bypass this by running >export JDK_NO_VERS_CHECK=don\'tbother >or the csh equivalent. It works, thank you very much. Just another question, please, can I miss something important by asking to the JDK not to bother with the version check? If there is a way, I'd like to help you (or who takes care of the checkVersions script) to fix this little bug. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
Segmentation violation with getLocalHost()
The following code:
--- begin ---
try
{
java.net.InetAddress ia = java.net.InetAddress.getLocalHost();
}
catch (java.net.UnknownHostException e)
{
// Do something
}
--- end ---
gives me this:
--- begin ---
SIGSEGV 11* segmentation violation
stackbase=0xb1f0, stackpointer=0xb0f8
Full thread dump:
"Finalizer thread" (TID:0x4065a210, sys_thread_t:0x4139ef04, state:R) prio=1
"Async Garbage Collector" (TID:0x4065a258, sys_thread_t:0x4137df04, state:R)
prio=1
"Idle thread" (TID:0x4065a2a0, sys_thread_t:0x4135cf04, state:R) prio=0
"Clock" (TID:0x4065a088, sys_thread_t:0x4133bf04, state:CW) prio=12
"main" (TID:0x4065a0b0, sys_thread_t:0x818de00, state:R) prio=5 *current thr
ead*
java.lang.Runtime.loadLibrary(Runtime.java)
java.lang.System.loadLibrary(System.java)
java.net.InetAddress.(InetAddress.java)
NBody.main(NBody.java:57)
Monitor Cache Dump:
java.lang.Runtime@1080418848/1080793064: owner "main" (0x818de00, 1 entry)
Registered Monitor Dump:
Thread queue lock:
Name and type hash table lock:
String intern lock:
JNI pinning lock:
JNI global reference lock:
BinClass lock:
Class loading lock:
Java stack lock:
Code rewrite lock:
Heap lock:
Has finalization queue lock:
Finalize me queue lock:
Dynamic loading lock: owner "main" (0x818de00, 1 entry)
Monitor IO lock:
Child death monitor:
Event monitor:
I/O monitor:
Alarm monitor:
Waiting to be notified:
"Clock" (0x4133bf04)
Monitor registry: owner "main" (0x818de00, 1 entry)
Thread Alarm Q:
Abort
--- end ---
It's interesting that with my other PC, using a different distribution
(SUSE) but the same JDK (1.1.7v1a) all works.
I suppose there is a system misconfiguration and I'll fix this, but
shouldn't getLocalHost() handle a bit better the problem and send an
exception, instead of crashing?
PS: can you guess how does Java tries to get the hostname?
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
Re: Segmentation violation with getLocalHost(): SOLVED!
On 09-Dec-98 Matt Zagni wrote: >Kontorotsui, > >Was your SuSE version glib, or lib6, or lib5 ? > I have the following libs on my SUSE: libglib.so.1 libc.so.6 libc.so.4.7.2 (old aout) libc.so.4.7.6 (ELF) libc.so.5.4.46 Here all works ok with the 1.1.7v1a. While on my old slackware, I have: no glib libc.so.4.7.6 libc.so.5.4.46 and I have this link: libc.so.6 => libc-2.0.4.so You were right, it was a library problem. I used the SUSE rpm packets to upgrade the gcc & libs stuff and now all works perfectly. Thanks. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
SOLVED! RE: The bug is still there (and problems with the 1.1.7-v1a) (Re
On 01-Dec-98 Kontorotsui wrote: >I get this message: > >/usr/local/java/bin/../bin/checkVersions: /tmp/ldd.out.889: Permission denied > If you remember, someone told me to set an enviroment variable to tell Java not to bother with the version check. After I upgraded my libs, the message disappeared. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+
Which optimizations does the javac compiler do?
I noticed the -O flag of the javac compiler. What are the optimizations that the javac usually does? Which ones are activated by the -O flag? I tried the -O flag in my n-body distributed computing java application, but the performance was worse than without the -O flag. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
Will SWING be included in the Linux version of Java 1.2?
As I say in the subject, can you confirm that SWING will be part of the JDK 1.2 for Linux? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
STOP asking about Java 1.2 / 2
I know we're all holding our breath while waiting for it, I know we're all so enthusiastic about it. I know that we read everywhere about Java 2 and we don't want to use winbug to try it. I'm waiting for it like all of you. But *please* STOP ASKING about Java 1.2/2. First of all it's a FAQ, Blackdown have already answered: in a month. Yes, in a month, but what was the first day of this month? This a good chance to learn a bit of HTTP, I say: instead of asking, find a way to know it by yourself. You don't want to learn HTTP, wait a month from NOW or check the page every day. The Blackdown people is working on it, they will not give you a pre-release, because if they could they would have done it already. Are you so eager? Start downloading the 1.2 documentation and study it. Let the Blackdown Organization work on the Linux port in peace! Damn, they are doing it for well, they are doing it for free...what else do you want? A cup of Java? Oh, yes, now I wait until the JDK 1.2 Linux port is released and the same people begin complaining that is buggy (later we'll find out it's due to Javasoft) and ask why it was released before it was carefully tested. I'm very annoyed by the lack of respect for the Blackdown's work. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
RE: suggestion for list (was: Re: STOP asking about Java 1.2 / 2
On 10-Jan-99 Chris Abbey wrote: > I suggest that the current copy of the FAQ be included with the succesful > subscription message. I know this is possible with majordomo because other > lists do it. I believe this will reduce the volume of these questions because > it appears that most of the people posting this question have just joined > the list. (probably in order to ask that question.) A very nice idea, in my opinion. I can confirm that this can be done easily with majordomo. > I also suggest that all messages from the list have a standard footer > appended; Yes, we definitely need a "how to subscribe footer". --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
RE: [ATTENTION]: Mailing List Changes
On 10-Jan-99 Karl Asha wrote: > Now my main request is for someone to hold my hand through getting a > newsgroup proposed and possibly approved. Alternatively, I would really > appreciate a -stable- (and by stable I mean someplace that isn't going to > die within a week) to host the mailing lists. > > If you can help with either of these, please let me know. As a side note, > this isn't the start of a massive move of the site or anything else. The > only issue is the mailing list, which is just a constant bandwidth and > i/o load on the machine. I could help on this, either by hosting the list on the server I'm working on, or by asking my Computer Science Department to host it. If nobody else finds an alternative, I'm going to ask around for permissions. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
RE: Is BlackDown JDK 1.1.7x Swing compatible?
On 11-Jan-99 Thomas Weholt wrote: > Eh ... read the subject. Nothing else. Thanks for all your great work. Yes, it is, because Swing is certified 100% pure Java it will work on any 1.1.x JKD ports. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
Re: JDK1.2
On 13-Jan-99 [EMAIL PROTECTED] wrote: > Don't ask ??? > > Why? Don't you think it is a relevant question to > ask for JDK1.2 for Linux on this mailing list ??? > Yes, the question is in topic, but it's a FAQ. Since there is FAQ, every user is supposed to read it before asking. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
Is the object code replicated?
Hello, suppose I declare a class with a huge amout of instance variables and many, long, instance methods. If I create thousands of objects of this class, of course there will be required thousands times the space of the variables, but what about the method code? I guess it's not repicated, but this up to the compiler. Since it's likely to depend on the platform and JDK release, how does the Linux javac behave? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
[email protected]
On 18-Jan-99 Lothar Klaffenbvck wrote: > Microsoft dosen't allow SUN to use the Windows-L&F on Solaris-Unix. Maybe > there is the same licence-problem on Linux. I suggest to use the Metal-L&F, > so the user can see it at the first look that this is a high quality > software. Great answer, Lothar. In my opinion if you stick with the windows-L&F your application will be knows as a "windows application", i.e. buggy. By using a new L&F for the Java applications you're going to show, at the first look, that this is real software. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
[OT] Strange class names (was: BUG REPORT)
On 22-Jan-99 Alex Pozgaj wrote: > Oh, and something more: why in a wolrd would somebody want to > call his classes like *that*? Well, this is the pleasure of the internationalization of Java. Anyone who doesn't speak english as his/her motherlanguage has at least this advantage: if you call classes and variables in your motherlanguage, it will be very easy for you, if you're not very experienced, to recognize the Java classes, methods and variables from the ones you or your friends wrote. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
RE: Another JDK 1.2 Status Report
On 04-Feb-99 Kevin B. Hendricks wrote: > Sorry, I can't provide more info, but rest assured we are all working hard > to get this thing out the door as soon as possible. You're all doing a great work, thank you. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+
Benchmark of a Java application
Hello, I hope this is not OT. I have a Java distributed application that works on a network of Linux PCs. Is there a way to tell, at the end of the computation, how much time was spent for each method (of course I mean on the local istance of the program)? Something like... method update() was called 24311 times, which took 2869.23 ms (2% of the program execution time) Since this performance meter could be OS-dependant I think this is the right place to ask. Thanks for your help. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Libraries troubles with JDK 1.2
I downloaded jdk1.2pre-v1 and installed it. I expected troubles when I saw that the latest libc libraries, the glibc, are required. Now, if I'm not completely mistaken, glibc is the libc6. I had previously installed some libc.so.6 libraries and the ld-linux.so.2. But it didn't work, I get this: /lib/libc.so.6: undefined symbol: _dl_profile I guessed that my libc.so.6 version could be old, so since I have a very old slackware that I manually hacked up to today, I chose to use the shlib.rpm from SUSE 6.0 (since I'm waiting for the italian 6.1 version to be available) and installed it. I got a seg fault whenever I run native_thread or green_thread java :( If the kernel version is needed, I still have the 2.0.36. Now I wonder if there is someone who still has the 2.0.x kernels and properly installed glibc libraries where the JDK 1.2 works. If someone can help me, I'd like to know which libraries I should install, I guess I'll need only the ld-linux.so.2 and libc.so.6, so the right place where take them from (maybe from RedHat or Debian archives?) will be a great help. Thank you very much for your help. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Still troubles with the libraries and jdk1.2
I tried another set of glibc libraries, taken from the RedHad FTP directory. They seem to be glibc 2.0.7, as required from the docs. I even tried to add the libs required by ldd java (attached to this message) o the ldconfig path, as you can check in the attached ldconfig -v output. So far, same outcome: Segmentation fault. I fear I'm not the only one with this frustrating problem, if anybody on this list solved the problem, I'd like to hear it. If someone with a working JDK 1.2 or the developers could please check what is wrong, I'd be very grateful. Thanks. PS: I upgraded also to ldconfig-1.9.5-8, ld.so-1.9.5-8, glibc-2.0.7-29, libstdc++-2.8.0-14, all taken from the RedHat latest archives. PS2: If more informations about my system are needed, I can send them. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ ldconfig.output ldd.output
Re: Still troubles with the libraries and jdk1.2
On 10-Apr-99 Gerald de Jong wrote: > all i had to do to get jdk1.2 running on RH 5.2 is make the following > symbolic > link, which i made in the /opt/jdk1.2/jre/lib/i386 directory. I did it, but it doesn't work. It seems not to be the standard problem with missing libraries, because I get a Segmentation Fault, not a missing or wrong library message. Can you send me (to: [EMAIL PROTECTED]) the output of ldconfig -v, ldd java and the ls -la of /lib and /usr/lib from your system? I'll try to find out what is the wrong library. Thanks. Question for the developers: the Segmentation Fault can come only from wrong or too old libraries, right? If I put the right .so libraries anything should work, or do I need something else? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Still troubles with the libraries and jdk1.2
On 12-Apr-99 Matthew McKeon wrote: > Is your LD_PRELOAD environment variable set? No, it isn't. At least, I didn't set it. Could it be set up by the .java_wrapper script? > I had to set mine to point to the libstdc++ libs > for another application I had installed, > and that broke the JDK most handily. Did it make your JDK segfault? > Unsetting it fixed the problem. Alas, it is not set. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: unable to run java progs using jdk1.2
On 26-Apr-99 VISHAL BHASIN wrote: > i was working on java 1.1 on linux since last > few months. >i downloaded jdk1.2 v1,from sun's site. >i work on redhat linux 5.2. What about your libraries? It looks awfully similar to my library problems, I'm still not able to run jdk1.2 and I'm now waiting for the english SuSE and the new system. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 and SuSE 6.1
I've installed SuSE 6.1 and the JDK 1.2 now works somehow. Two questions: 1) Why does it say this: Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] The JDK 1.1.7 never complained about missing fonts. When I run the old 1.1.7 binaries AND after recompiling them with javac, I still have this error report. The fonts appear, indeed, different from the JDK 1.1.7 ones. Beside this, anything works. Any fix or workaround? 2) Should it be S slow?? The graphics (swing heavily used) is at least twice slower than the 1.1.7. I hope there is at least a JIT to improve graphical performance (advices?) Thanks in advance for any feedback. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: JDK 1.2 and SuSE 6.1
On 09-May-99 Peter Schuller wrote: >> 2) Should it be S slow?? > I think so. Unless you're on a P-III 500 mhz with 256 megs of RAM... (I'm > guessing this has nothing to do with the Linux port, but rather with JDK 1.2 > in > general). I meant... so slow compared to JDK 1.1.7. I have a K6-II 350 with 128Mb of RAM, the JDK1.1.7 worked fine. >> twice slower than the 1.1.7. I hope there is at least a JIT to improve >> graphical performance (advices?) > The JIT is on by default. Oh, wonderful... yes, I noticed that there was a JIT included, but I hoped I had to do something to activate it. If the JDK1.2 using JIT at least twice as slow as JDK1.1.7 WITHOUT JIT, I think I'll go back to JDK1.1.7 and now I understand why people ask for the glibc 2.1 version of the JDK1.1.7! > If you do some experimenting, you'll notice that JDK 1.2 with JIT enabled is > *much* faster than JDK 1.1.7+TYA when it comes to loops and stuff like that. I'll do the test. I'm working on a graphic project, but also on a distributed computing which involves millions of loops. > But when method calls come into the picture, I've found it to be about as > fast as, or a bit faster than, JDK1.1.7+TYA. This is not true on my system!!! JDK1.1.7 *without JIT* worked much faster than JDK1.2 with the JIT (any chance to check if the JIT was actually activated?) > Sadly, it's also a huge memory hog compared to 1.1.7, so on my machine any > larger app is much slower on 1.2. Yes... damn, it is a nightmare! I get 11 java processes, each one with size 81512 (RSS: 24324). How can this happen?? (No, I never declared any new thread, if you wonder... maybe the swing components?) --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: JDK 1.2 and NetBeans or Simplicity???
On 13-May-99 Jeffery S. Norman wrote: > Has anyone got JDK 1.2 to work properly with NetBeans x2 or > SimplicityRC??? Simplicity does work on my system with JDK1.2, I had to change the wrapper Simplicity script, but works. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2 and NetBeans or Simplicity???
On 15-May-99 Robert Williams wrote: > What changes did you make? Simplicity + JDK1.2 freezes up > after a few steps through the tutorial example 1 on my Red Hat 5.2 system. No changes at all. I have a SuSE 6.1, I installed JDK1.2 and the only change I did was to edit the Simplicity script to make it call java instead of jre. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Slow loading on AMD Elan 486
On 26-May-99 Daniel Barclay wrote: > I also think that since most people (and probably the JDK porters) have > faster machines, the problem isn't noticed by many people so it isn't > fixed (or, if not fixable, listed as a known problem). My machine is fast, but loading and execution are extremely slow anyway, there is something really inefficient in the interpreter. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: jdk1.2pre-v2
On 03-Jun-99 Justin Lee wrote: > 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. Cool, before I begin downloading, can I know the changes? I wish I never said this, but the pre-v1 is extremely slow, even with the last TYA the graphic performance is really poor. What frustrates me is that the same code (compiled on Linux) is fast and reliable on the win9x JRE, you can guess how I, as a Linux user, feel bad about this :( If someone with the pre-v2 or the authors themselves could tell me if there is a speed-up in the execution of Java code... Thanks. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Problems with Emacs/JDE
On 10-Jul-99 Alexander Schatten wrote:
> ad 1)
> when I have some identation like:
> for (int i=1; (i<10); i++) {
> System.out.println("" + i); // when I press enter here I want the next
> line to start
> // automatically here and not
> // here
> }
I think you have to press tab after enter to make the line start there.
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: TYA
On 10-Jul-99 Adam Carheden wrote: [TYA] > Any suggestions? I had the same problem and asked the author for help. He told me to put libtya.so in /jre/lib/i386/ and now tya works perfectly. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Troubles with scrollbars. It's me or there is something wrong?
Hello,
I wrote an application that uses scrollbars (using the ScrollPane
class), but often when the image inside the scrollpane changes in size, I get
this message:
Warning:
Name: HorScrollBar
Class: XmScrollBar
The specified scrollbar value is greater than the maximum
scrollbar value minus the scrollbar slider size.
Almost the same message for the vertical scrollbar.
When this happens the scrollbars are messed and I cannot completely scroll the
image.
Now I could think it's my fault, here is how I declared the ScrollPane. Please
notice that usign scrollbars as needed make things even worse, I hoped that
using them always could make my life easier.
--- begin ---
class MapScrollPane extends ScrollPane
MapScrollPane()
{
// super(ScrollPane.SCROLLBARS_AS_NEEDED);
super(ScrollPane.SCROLLBARS_ALWAYS);
--- end ---
But even if it is my fault somewhere, this happens everytime I use a Java
application with scrollbars. Often I get this error with the InstallShield
during the installation! Last one was during the installation of NetBeans!
I begin to think it's a problem inside the JVM (1.1.x and 1.2 give the same
error). I tried on windows, with the linux compiled code, same here there too...
Now I wonder: it's me or everybody else has the same problem?
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
final variables in constructors
I wonder why if I write this:
aClass extends aSuperClass
{
aClass()
{
super(1);
}
}
where the superclass is:
aSuperClass
{
aSuperClass(int i)
{
...
}
}
anything works ok.
If instead I write
aClass extends aSuperClass
{
final int v = 1;
aClass()
{
super(v);
}
}
with the same superclass, I get a "Can't reference v before the superclass
constructor has been called." error from the compiler.
I understand that in general a variable cannot be referenced before the
superclass constructor was called, but if that variable is a final, then it's a
constant, why does the compiler complains?
The two pieces of code are, semanthically, the same, aren't they?
The javac pre-processor could even substitute the constant values before
compiling!
It's the java language that is excessively pedantic or there is something I'm
missing?
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...
+-+
|. * . |
| .__ . . |
|oq |po _ _|
| / #==>>>==#,-' (_)\ |
| | ,-|~\\ ///_ ,() ,_} |
| | |/|~]]] /// ,-~' .,~ / \| . |
| |\_|_|_\_\~~~~' \ (/|. |
| ./~ \___/ [m] \ \__// |
| _bo..__ // `-,.~~ |
| _-~ 0o.__( . |
| \ o . |
| . (_)00 |
|. \~~~*,,,* ~00 |
|~0 . |
| ~~~---~~ |
| .*|
+-+
| An e-mail network of Space Cruiser Yamato and |
| StarBlazers Fans |
+-+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Swing API
On 14-Jul-99 R MUTHUSWAMY wrote: > i am using java1.1.7 and i want swing api's for linux. i have > heard that i can't use the solaris files for swing. And also there is no > swing available for linux for earlier versions. I used Swing for JDK1.1.7 before switching to 1.2, you can find Swing for Linux from the blackdown page. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
-Xrunhprof:cpu=times gives a segfault.
Hello, if I run java -Xrunhprof:cpu=times I get a segfault, same if I use cpu=old, anything works perfectly with cpu=samples. I have JDK1.2 on a SuSE 6.1. It's my system or this happens to everybody? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: -Xrunhprof:cpu=times gives a segfault.
On 15-Jul-99 Juergen Kreileder wrote: [cpu:times segfaults] > I haven't seen any segfaults with it. Damn, I wonder mine segfaults then, I'm using a standard SuSE 6.1 and everything else works perfectly. I tried to remove the JIT, but it segfaults anyway. Can anybody guess what's happening? > Note that 'times' doesn't show cpu times with pre 1 & 2, it will work > with the next release. Then, what does it show? I'm using the pre1 version, maybe you have the pre2? > PS: Please fix your signature. See RFC 1855 (Netiquette Guidelines) ;-) I did it. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: final variables in constructors (OT)
Ok, if declared as final and static, variables behave just like constants and can be used in constructors. I don't know how it happened the first time that it didn't work, but after another test it's confirmed, they work. With an afterthough, it would have been a big mistake in the java language or the java compiler if this behaviour was not implemented. I guess those who wrote Java couldn't do such a mistake :) Many thanks to everybody for the detailed answers, even if this was an OT subject. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: -Xrunhprof:cpu=times gives a segfault.
On 18-Jul-99 Calin Medianu (Operations) wrote: [JDK1.2 pre-v1 segfaults on SuSE 6.1] > Mine segfaults as well. I run Slackware and jdk1.2pre-v2 (glibc2.0) > and everything else works fine. I see. Did you try the pre-v2 on SuSE 6.1 or it was a pre-v1 like mine? In the former case, can someone (maybe the porters...) try to guess what could be the reason? I can even manage to get a core dump and send it if could help. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Working with many .java files
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. Thanks for your advices. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Working with many .java files - thanks
Thank you all for the many advices and the big discussion. I sorted out this strategy: 1) If I change only a class because I edit the java file to add a ; I forgot, I compile by using javac onlythisclass.java 2) If I change a lot, I compile with jikes 3) Since javac does better optimization, the "final" compilation is done with make clean and then make by using javac. So far it worked, do you think that point 1 is correct? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Can't play a wav file
On 16-Aug-99 Niessen ing. E.P.M. wrote:
> I installed the latest jdk1.2v2 on a redhat 6 installation. With the
> class audioclip I try to play a wav file. But it only plays .au files.
> Is this not yet supported in this pre release?
It is, I play wav files correctly.
> Somebody an idea how to play wav files under java?
I might guess what's happened, because I had troubles at the beginning.
It seems that if I play a wav file and then paint some components in a window,
the sound playing is aborted. I don't know if this is a wanted feature (why,
then?), a bug in Java or a bug in the Linux version.
My workaround, which could not be very smart, is to make the application sleep
while the sound is playing.
Here is an example:
--- begin ---
try
{
Applet.newAudioClip(new URL("file:" +
System.getProperty("user.dir") +
"/avvio.wav")).play();
}
catch (MalformedURLException e)
{
System.err.println(e.getMessage());
}
try
{
java.lang.Thread.currentThread().sleep(1);
}
catch (java.lang.InterruptedException e)
{
System.err.println(e.getMessage());
}
--- end ---
This could be unwise or even wrong, surely is not very elegant. If someone else
has a better idea, I'll take notice and change my code.
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Sometimes easy things are hard/impossible in Java
After extensive experience with Java GUI, mostly by using Swing, I wonder why there are hard tasks which can be accomplished very easily and easy ones which look almost impossible. Here are two examples. I have a grid with 3 buttons in the first row and 2 buttons in the third, I wanted to place the third row buttons centered, like this: XX XX XX XX XX XX XXX XXX but no layout manager allows to do it in a single panel, I had to do several panels. But the biggest example is this: suppose I have a JFrame subclass that represents my main window, it includes a menu bar and 5 panels with a border layout. If I want to make my window with a green background, I though I had to set the background color of the main window... instead I have to set the green background color to ALL the objects I put on the window. Why force each JComponent to have the standard grey background and black foreground, when it could have been, by default, the container one? Maybe I wrote a long series of mistakes and there are easy ways to do what I wanted to do (if case there are, please let me know), but the fact that after extensive search in the (mostly poor) documentation (the official Java tutorial!) and tests... if these are not Java faults, then it's the support. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Answers (RE: Sometimes easy things are hard/impossible in Java)
Hello again, first of all thanks for your answer, this is not strictly java-linux related so I do a general reply to everybody. About the 3 rows of buttons, 2 rows with 3 buttons, the last row with 2 buttons, I probably failed to explain exactly what was the problem. I am well aware (even too much :) ) of the GridBagLayout, which I used everywhere. But, if I'm not mistaken, I've found a limit (you can call it a wanted feature) in this layout manager: it is impossible to have a row with a smaller number of objects and keep it centered. In my case the third row had 2 buttons, but the gridbag kept the button aligned with the first or last two of the rows above, forcing me to use flowlayout. It would have been nice if the gridwitdh and gridheight took float numbers, I would have given gridwidth = 1.5 to the buttons in the third row. That's why I said something so easy (gridwith as float number) is missing and I'm forced to use several (3) panels. In case you have the same idea I got, that is giving gridwith 2 to the buttons in the first two rows and gridwidth 3 to the ones in the third row, this doesn't work either :( I guess that's why the Box layout was added... Now, about the default color, Alex M. saved me a lot of work (I was changing the color of each component I displayed...) and confirmed what I said: sometimes in Java easy, trivial, things are make hard to achieve, not due to the language itself, but because of how the API are implemented. I knew that if the background color is set to null, the component inherits the BG color from the container. Ok... then tell me why by default the background color is not set to null but to a SystemColor constant! I don't find any logic in this, the default should be the most generic choice (null), not the most specific (a fixed constant). Having a JPanel with a default BG color seems to me most sadic. Let's try to jump back ontopic: I have no means to check, but could this be a problem only in the Linux JDK? I don't believe it is likely to be... --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: JDK1.2-prev2 Segmentation Violation
On 15-Sep-99 Surjan Singh wrote: > Console based programs seem to work fine. Swing & AWT programs > seg-fault. Any ideas? The error I get is: > > > SIGSEGV 11* segmentation violation > stackpointer=0x41812b80 I had the same troubles after installing the accursed dingbats fonts! Whatever I do, the JDK1.2-pre2 works ONLY when complains about missing dingbat fonts (and when I say ONLY I mean even if I change the font.properties, the dingbat fonts from the ones installed by the SuSE 6.2 to the ones downloaded following the link on the page, and every combination of the above). --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK1.2-prev2 Segmentation Violation
On 16-Sep-99 Surjan Singh wrote: > You need to get the dingbats font from the link on blackdown. I think > it points to the GIMP fonts page. No need to change font.properties. I installed the dingbat fonts, but I got segfaults anyway. Seems that it is working only when it complains about missing dingbat (I don't mind the error message if anything else is working). I have a 16bit display. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Sound playback on background
In the game I'm writing in Java (JDK1.2 pre-v2) I have added sound playback on background, by using the standard AudioClip.play() and loop() methods. Beside the fact that there is no way to set the volume *groan*, I noticed that soon the sound, even if it is a midi music, is interrupted regularly, say once per second. Needless to say, this doesn't happen in *argh* windows, so must be Java-Linux related. I use the sunJIT and native threads. Disabling the JIT didn't work. Does anybody know how to work around this problem? Thanks. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Having trouble with zapf dingbats font
On 24-Sep-99 Cynthia Jeness wrote: > Did you ever get this problem solved? The JDK still cannot find my "zapf > dingbats" fonteither. I have tried the > following: [List of attempts] I've done exatly the same, with SuSE 6.2, and I chose to give up and keep the annoying error message, it doesn't harm. I wish I could remove this error message, but it's not the effort. The last attempt did work, the error message disappeared... but also the text disappeared from my applications :( --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[OT] Good Java docs
Excuse for the OT, but after using extensively the Sun's documentation (tutorial and API guide) I'm still unsatisfied. Could someone please send me (not on the list, my address is [EMAIL PROTECTED]) a link where I can find a more complete Java guide? Thank you. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: borland/inprise jit for blackdown 1.2pre2
On 27-Sep-99 noisebrain wrote: > > http://www.borland.com/jbuilder/linux/ It works perfectly. Well, I didn't get a 33% gain in compilation time, only a 15% (maybe because I use the -O flag?), but my game gains a lot of speed and now is almost as fast (hmmm... less slow :) ) as in windows. I ran several tests and seems rock solid too. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: name resolution problems
On 02-Oct-99 Shawn McKisson wrote: [localhost resolution] > Does anyone know the solution to this problem or know where to start looking? Make sure that in /etc/host.conf you have the following command: order hosts, bind And that in /etc/hosts there is the entry 127.0.0.1 localhost --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Several VM ?
On 18-Oct-99 Artur Biesiadowski wrote: > Every thread looks like process to ps. So you get as many entries as there > are native threads. Fortunately memory is shared, so you > should count only one resident/shared number. But is there a way to see when it is a thread and when it is a process? Or the only way is to notice it has the same resident/shared memory? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Several VM ?
On 19-Oct-99 Nathan Meyers wrote: >> But is there a way to see when it is a thread and when it is a process? Or >> the >> only way is to notice it has the same resident/shared memory? > I haven't found a way. The closest thing I've found so far is to compare > the /proc//maps files, which are identical for two threads of the > same process but unlikely to be identical for different processes. Ok, not a trivial way. I wonder why a /proc subdirectory regarding threads was not added. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
A Java parser
Suppose I want to do a tool that parses the java code and modifies it. What do you advice me to use? Are there java parsers for Linux? If the answer is negative, what can I use? Perl (*groan*)? --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group). Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of... +-+ |. * . | | .__ . . | |oq |po _ _| | / #==>>>==#,-' (_)\ | | | ,-|~\\ ///_ ,() ,_} | | | |/|~]]] /// ,-~' .,~ / \| . | | |\_|_|_\_\~~~~' \ (/|. | | ./~ \___/ [m] \ \__// | | _bo..__ // `-,.~~ | | _-~ 0o.__( . | | \ o . | | . (_)00 | |. \~~~*,,,* ~00 | |~0 . | | ~~~---~~ | | .*| +-+ | An e-mail network of Space Cruiser Yamato and | | StarBlazers Fans | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[Partially OT] A Java parser - part 2
Hello,
first of all many thanks to all the people who kindly answered.
I've collected many different advices on Java parsers, so maybe it is wiser to
explain my purpose.
I noticed that java performance decreases dramatically as more and more classes
and object instances are created.
From:
class one
{
int number = 0
void aMethod()
{
number++;
}
}
To:
class two
{
myInt number;
void aMethod()
{
number.increase();
}
}
class myInt
{
int n = 0;
void increase()
{
n++;
}
}
There is no semanthic difference, but if you call aMethod() many times (say
1) the second version is even twice slower.
Yet, the latter version takes advantage of modularity and object structure,
"good" coding implies that kind of structure.
What I want to do is a tool that "flattens" the class hierachy to improve
performance. In this way I'll be able to write properly structured code but the
tool will cut away performance-wise useless classes and method before I compile.
I know it is not always possible to do that and that the rules to change the
program must always keep semanthic unchanged... I know this is not easy.
But suppose I manage to write down a set of rules to do that, I'll need a parser
to parse the Java code and provide the changed source code according to the
rules.
After I explained my goal, what would be the best parser to achieve it?
Needless to say, my tool will work on Linux (that's why I'm posting here) so
the choice will be on parsers available in Linux or written themselves in Java.
Andrea.
PS 1: thanks for the pointers to a Java grammar, indeed I needed that too.
PS 2: about my signature, the long one was supposed to be used only for
personal messages not for the mailing list, I guess my XFMail configuration
needs some checks :/
---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at
University of Pisa - Italy - E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: I can compile file1.java but cannot run file1.class in Linux
On 27-Dec-99 [EMAIL PROTECTED] wrote: > After that I can compile > a java file (javac file1.java) but I cannot run it (java file1.class). I > don't see any help included with jdk. I really need your help. What about java file1? :) The class extension must not be included, this is true if you run it also on *argh* windows from the *argh* dos terminal. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
IBM Java 1.3: some problems.
Hello, I've tried the IBM 1.3 JDK. Seems a bit faster than JDK 1.2, but there are some bugs and sometimes is TOO fast *grin* 1) Sound playing is too fast! Both .wav and .midi are played like 2-3 times faster. The same bytecode on *argh* windows plays ok while the JDK 1.2 compiled on Linux plays too fast on IBM 1.3. So it is the 1.3 JVM. 2) Timer is bugged! When the time is elapsed, the ActionEvent is not generated until I touch the scrollbars or resize the window. In general, it is generated only after a repaint on the application windows. Again, on windows works ok, so it is the JVM again. 3) This is not a bug, but is annoying... the compiling errors on the IBM 1.3 Java compiler are less clear. --- Andrea "Kontorotsui" Controzzi - MALE Doctor in Computer Science Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: IBM Java 1.3: some problems.
On 01-Jun-00 Timothy Reaves wrote: > The Sun Windows 1.3 is the same way. This is the new way of doing things. I see. So the compiler error messages in 1.3, any 1.3, are changed, right? --- Andrea "Kontorotsui" Controzzi - MALE Doctor in Computer Science Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
IBM 1.3 plugin installation: how??
Maybe I'm missing something trivial, but where are the docs that explain how to install the IBM 1.3 plugin? I suppose I have to copy in /opt/netscape/plugins some files, but copying the libjava* stuff gave me bus error. I use Netscape 4.73. --- Andrea "Kontorotsui" Controzzi - MALE Doctor in Computer Science Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
