Re: Debian packages 1.4. Pretty please?
Hello, On a related note. Is there currently anyone working on Java for the Alpha arch? If so, who can I contact to help. If not, who could I contact to see what would be needed? Thanks, Robert Avi Cherry wrote: I really, really don't mean to be a pest, but PLEASE, could someone package up java 1.4.1 as a debian package, for use on deb stable? I asked this a month or two ago and was told that it would get taken care of by someone on the blackdown team (Juergen, I believe) very soon. Thanks, Avi Cherry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JNI problem
Mark Fardal wrote: > > > What happens if you use the debug version of the java interpreter (java_g)? > > > > Steve > > > > The result is the same as was reported with 1.1.5, it reads a single string > and returns fine. > > weka:native[ 996 ] java_g Prompt > Type a line: hi there > A diagnostic message... > User typed: hi > > This is correct behavior I believe, the example only reads a single > string (%s). Odd that the debug version changes the behavior but > it's nice to know the easy workaround. > > Thanks, > Mark Fardal > UMass Hi- I reported that 1.1.5v7 works OK, so I was interested and tried this also. However, I get the strange (?) behavior that it then expects the shared libary to end in "_g": [user@ravel native]$ java_g Prompt libMyImpOfPrompt_g.so: cannot open shared object file: No such file or directory (libMyImpOfPrompt_g.so) when I compile the C code to a shared library named "libMyImpOfPrompt_g.so" it then works: [user@ravel native]$ java_g Prompt Type a line: Hi there User typed: Hi there (I've also altered the original "scanf" code to get user input up to a '\n'). Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
serialization
I can't seem to get any of my own classes to successfully implement the Serializable interface under Linux or Irix. I have no problem serializing native objects like java.lang.String or java.lang.Integer. Also, serializing my own classes worked fine using the Sun JDK for Windows95. Is this a known issue on non MS/Sun Platforms? Thanks. -Rob
Re: Exception handling broken by jni?
Dan Kegel wrote: > I'm having a wee bit of trouble with Blackdown JDK for Linux > and exception handling inside code called from JNI. > It seems that try/catch blocks don't work if they are > contained in a method called directly or indirectly by JNI. [snip] Hiya- I'm not exactly sure we're on the same wavelength, however... I built an try/catch JNI example some time ago, which worked for me. You might want to try it with your Blackdown JDK. You can get a complete set of source, C code, etc. at: ftp://shell3.ba.best.com/pub/rmlynch/Java_Stuff/try_catch.tar.gz Hope it helps. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: Well done
Does Pizza Hut sell gift certificates? Bob McConnell, N2SPP At 08:27 PM 9/12/98 -0400, James Seigel wrote: >You guys rockcan we send pizza to you anywherE? > > >Pooh Bear -- "I am just a bear of little brain" > > >On Sat, 12 Sep 1998, James Howe wrote: > >> To Everyone,, >> >> It is very easy just to get caught up in all the errors about the jdk that get >> posted to this list. Therefore we must remember what a huge service the porting >> team is doing for *US* ! I would like to see Sun Micro give the guys at >> Blackdown a lot of money and resources to do an even better job. Remember >> they do it for free and with limited resources. But in the mean time I suggest >> we have a "show your support" week, where everyone sends email to the >> team and says thankyou. Yeah i know that means a lot of mail but I think it >> would still be very worth it. >> >> what does everyone else think ? >> >> James Howe >> >> P.S. Thanks alot guys !!
SEGV from iostream in native method on Linux, FreeBSD, not Windoze
Hi-
Apologize if this is a FAQ. It seems that a "Hello World" JNI demo (see
below .sig) that uses iostreams for output give a SEGV on Linux and
FreeBSD, but not Windoze. I didn't have the compiler to build a .dll to
see the latter case with my own eyes, but someone did it for me and it
works on Windoze fer shure, I've seen it in action.
Wonder how come?
Bob L.
P.S. Of course the example works when using and printf(..).
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
--
class test
{
public native void display();
static { System.loadLibrary("hello"); }
public static void main(String[] args)
{
new test().display();
}
}
---
/* hello.C */
#include
#include "test.h"
#include
JNIEXPORT void JNICALL
Java_test_display(JNIEnv *env, jobject obj)
{
cout << "Hello world!\n" << endl;
return;
}
---
[user@ravel native]$ g++ -Wall -shared -fPIC
-I/usr/local/jdk1.1.6/include -I/usr/local/jdk1.1.6/include/genunix -o
libhello.so hello.C
---
[user@ravel native]$ LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH java test > err
2>&1
Aborted
[user@ravel native]$ more err
SIGSEGV 11* segmentation violation
stackbase=0xb668, stackpointer=0xb56c
Full thread dump:
"Finalizer thread" (TID:0x40660208, sys_thread_t:0x413a4e0c,
state:R) prio=1
"Async Garbage Collector" (TID:0x40660250, sys_thread_t:0x41383e0c,
state:R)
prio=1
"Idle thread" (TID:0x40660298, sys_thread_t:0x41362e0c, state:R)
prio=0
"Clock" (TID:0x40660088, sys_thread_t:0x41341e0c, state:CW) prio=12
"main" (TID:0x406600b0, sys_thread_t:0x81a4908, state:R) prio=5
*current thr
ead*
test.main(test.java:9)
Monitor Cache Dump:
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:
Monitor IO lock:
Child death monitor:
Event monitor:
I/O monitor:
Alarm monitor:
Waiting to be notified:
"Clock" (0x41341e0c)
Monitor registry: owner "main" (0x81a4908, 1 entry)
Thread Alarm Q:
--END msg.
Re: SEGV from iostream in native method on Linux, FreeBSD, not Windoze
Hi Kevin-
Thanks for taking a look, but...
You apparently forgot the "-jni" switch for javah. You generated a
"test.h" for the old JDK 1.0 native interface, not the 1.1 JNI...
Bob L.
Kevin B. Hendricks wrote:
> Hi,
>
> I tried your example code and it did not seg-fault. I received an
> unsatisfied link error. Upon closer examination, the test.h file generated
> by javah did not seem to be correct (i.e. it did not match your declaration
> or parameter list in hello.C
>
> Using nm on libhello.so showed this to be the case (some C++ name mangling?)
>
> I simply copied the declaration from hello.C and replaced the appropriate
> part of test.h with the correct (i.e. matching) declaration
>
> Then my unsatified link error went away and everything worked fine.
>
> There seems to be some trouble with javah and C++. I am not sure exactly
> what is up.
>
> Anyway, here are my slightly modified pieces of code:
>
[snip]
> And finally the "fixed" Test.h header file which you can compare to the one
> generated by javah.
>
> /* DO NOT EDIT THIS FILE - it is machine generated */
> #include
> /* Header for class Test */
>
> #ifndef _Included_Test
> #define _Included_Test
>
> #pragma pack(4)
>
> typedef struct ClassTest {
> char PAD; /* ANSI C requires structures to have a least one member */
> } ClassTest;
> HandleTo(Test);
>
> #pragma pack()
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> JNIEXPORT void JNICALL Java_Test_display(JNIEnv *env, jobject obj);
>
> #ifdef __cplusplus
> }
> #endif
> #endif
>
>
> I hope this helps.
>
> I don't know why this is happening. If this solution makes "no sense" to
> you please submit an official bug report to the Blackdown Jitterbug bug
> database.
>
> Kevin
> Blackdown JDK Poriting Team
>
> ------
> Kevin B. Hendricks
> Associate Professor, Operations & Information Technology
> School of Business, College of William & Mary
> Williamsburg, VA 23187, [EMAIL PROTECTED]
> http://business.tyler.wm.edu
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Re: glibc2/jdk1.1.5v7
Andy Stubbs wrote: > > OK... obviously I've not got them working together, so before I launch > into full diagnostics: I notice on the website that glibc-2.0.7-7 is the > redhat package recommended. Now, not being an rpm type, I only have 2.0.6 > (this is the latest one I can *find*) which I compiled myself... So my > question is, _could_ this be the reason for the segfaulting? > > Brief description: sounds a bit like what our friend Travis Shirk was > going through; i.e., "java Class" segfaults, as does "javac". I've done a > fair amount of tweaking and diagnostic work which I can post if anyone > cares... > > I'd appreciate any hints/clues/suggestions > > andy > > - > Andy Stubbs +44 151 794 4045 > [EMAIL PROTECTED] I installed jdk1.1.5v7 a few days ago, and upon testing got segfaults running javac. Also noticed the upgrade recommendation, (and having RH5.0, using an rpm) upgraded from whatever to glibc-2.0.7-7, _no_ problems since then... HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Dynamic loading and libgcc need?
First, apologies if these topics have been beaten to death. I have had a hard time staying subscribed to this list as it seemed to bounce around from server to server, and can't seem to find any recent archives. Is it possible to specify a path for System.loadLibrary()? I have not been able to get LD_LIBRARY_PATH to have any effect. I hacked a version of java.lang.Runtime that dumps the result of the initializeLinkerInternal call to stderr and it appears to be consistently empty regardless of the value of LD_LIBRARY_PATH. I have also been having problems using javah when .zip files are in the classpath, entailing complaints about inability to resolve various symbols such as __muldi3. I suspect this is a result of not having -lgcc in the build line when building the shared libraries (notably libjava and libzip). I have not been able to test this theory, not having access to the original JDK source. ldd -r on libjava.so complains about missing libgcc symbols on both my Debian 1.3.1 (libc5 5.4.33) and pre-2.0 (libc6 2.0.6). I appreciate any insight or advice anyone can provide. -- Robert Coie Implementor, Intrigue Ltd.
Re: minor bug in java.awt.List.removeAll()
Nelson Minar wrote:
>
> If you call java.awt.List.removeAll() on a List that's never had
> anything added to it, you get a warning from Motif:
>
> Warning:
> Name: slist
> Class: XmList
> Item(s) to be deleted are not present is list.
>
> Should I file a bug report to the formerly Open Group about the typo
> in the warning message, too? :-)
By all means file a bug report about the typo. ;-)
I also found this while working an example in "Core Java 1.1", v.2,
"ZipTest". If I changed a method which exhibited the bug from:
public void scanZipFile()
{ fileList.removeAll();
try...
to
public void scanZipFile()
{ if (fileList.getItemCount() != 0)
fileList.removeAll();
try...
then the bug went away.
FWIW.
Bob L.
P.S. Where it is really irritating, and you cannot do anything to change
it, is the "GroupReader" applet at JavaSoft's Java Developer's
Connection. G!
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Printing PostScript output, was: Re: Printing of Graphics
Hello all, This doesn't really answer the original question about printing graphics, but perhaps this will be of interest to people who need to print graphics. I came across a class called PSGr and fixed it up a little -- the result is attached to my homepage, http://civil.colorado.edu/~dodier. The source code and some info about usage is there. PSGr implements the methods of Graphics to generate PostScript output. So you could use an ordinary screen graphics context to display something, then switch to PSGr and get the same stuff written to a PostScript file. I think it's a pretty nifty idea -- but don't thank me, thank E.J. Friedman-Hill and David Binger, who are the main authors of PSGr. OK, you can thank me a little bit -- I did add some stuff to it. :) Enjoy, Robert Dodier
Re: Classes.zip 1.1.5v7
Roger Hill wrote: > > I am trying to run an applet in netscape 3.04 (Linux). > > It gives me every time: Cannot run applet: zip file is so old it does not > have a version number. > > Classes.zip was downloaded last week! > > What is Netscape talking about? > Thanks > > > Roger Hill, P.O.Box 4T, Barbados, West Indies. E-mail:[EMAIL PROTECTED] > Tel:246-228-5216/230-9596 Fax:246-433-8365 > I think maybe your "java_304" (? dunno, I have 3.01) is corrupted or something to this effect. If you look at a listing of this file (actually a zip archive) you will find a numbered class: Archive: java_301 LengthDateTimeName -- 6 10-20-96 19:13 96294.class 3285 10-20-96 19:10 java/applet/Applet.class ... If you decompile the numbered class, you find it just contains a number, the same number as its name. Another Netscape error msg. is something like, "version does not match executable version", when the version of the Netscape executable does not match up with the zip archive it finds. HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: JNI problem
"Works" on Steve Byrne's jdk1.1.5v7 (except seems to pick up the string only to a space, not end of line...): [user@ravel native]$ java Prompt Type a line: Hi there User typed: Hi [user@ravel native]$ java Prompt Type a line: Hithere User typed: Hithere Hope it helps. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/ -- Mark Fardal wrote: > > Hi, > > I'm trying to learn the JNI using the Java Tutorial and the JDK docs, > since the books I have don't cover it at all. Mostly things are ok, > I can call Java from C and vice versa and have passed some arguments > successfully. However, I did get an error when trying to run one of > the Tutorial's examples. I was wondering if this is a bug in the JDK > or if I need to upgrade some library. > > The example (Prompt) of how to pass and return arguments > from C routines exits: > > weka:native[ 863 ] java Prompt > Type a line: hi there > SIGSEGV 11* segmentation violation > stackbase=0xb920, stackpointer=0xb7bc > > Full thread dump: > "Finalizer thread" (TID:0x40668220, sys_thread_t:0x413d1f28, state:R) prio=1 > [etc...] > Return from sysThreadExit(): a zombie is awake! > [etc...I like the undead error message] > > A routine where I only pass in a string, not try to return it, works fine. > Apparently it crashes at the > return (*env)->NewStringUTF(env, buf); > in the example. > > I'm running jdk1.1.3 on Debian Linux 1.3. The example can be found at > http://java.sun.com/docs/books/tutorial/native1.1/implementing/declare.html > > thanks, > Mark
Re: apache 1.2.4 + mod-jserv + SdK
> I was wondering if anyone out there is trying the same as I am and that > is to set up the apache webserver for linux with the servlet module and > development kit voor java servlets. I've been trying to do some things > with the new jserv release of java and get it recompiled into a new make > of apache 1.2.4 for linux, but unsuccesful sofar. If anyone knows how to > get it to work I woul;d greatly appreciate it. I'm running RedHat 5 now, > but I can reinstall into Slackware anytime , if that will work. I was able to get it to compile as a shared module under Apache 1.3b6 under both Debian 1.3.1 (libc5) w/JDK1.1.5v7 and Debian pre-2.0 (libc6) w/JDK1.1.5-v5g. There are instructions in the README.DSO file in the Apache 1.3b6 source distribution with examples of how to configure external modules. That worked well, except I had to change a good deal of function names from functionXXX to ap_functionXXX (I assume Apache underwent namespace policy changes recently). I noticed that there is a compatibility header with #defines from the old names to the new ones, so that may be another approach. Now if I can only figure out how the !#$!@#!!& classloader works in jserv, because it seems to be wreaking havoc with my attempts to use JPL (Larry Wall's hybrid Java-Perl language) in servlets. The shared libraries load correctly, but I get UnsatisfiedLinkErrors trying to call things in them. -- Robert Coie Implementor, Intrigue Ltd.
Re: Java Plug-in tantalizing, but...
> Do you convert that html file ? > i.e > From=20 ... > To... Thanks for taking the time to respond. This isn't the problem, because it's the stock ControlPanel.html and is already using EMBED. The plug-in is being triggered OK, it just doesn't seem to run correctly. -- Robert Coie Implementor, Intrigue Ltd.
Re: Java Plug-in tantalizing, but...
> Are you running the requird library revisions listed on the documentation > page? > > Karl I believe so, although the glibc instructions appeared to be RedHat-specific. I am using the latest final candidate library for Debian 2.0, which claims to be 2.0.7pre1. I believe I mentioned that the glibc v5 of 1.1.5 works on this machine, although v7 segfaults at startup. -- Robert Coie Implementor, Intrigue Ltd.
Re: Java Plug-in tantalizing, but...
Juergen Kreileder wrote:
> I'm using libc6_2.0.7pre3-1.deb from the new unstable dist ('slink') and
> v7 works fine.
Great point; I was actually downloading that as your mail arrived. It
worked for me too. Debian 2.0 users - in order to use 1.1.5v7 of the
JDK, the libc6 currently in "frozen" is insufficient. The version
mentioned above appears to be OK.
However, this still doesn't make the Java Plug-in work. Is there a
way to hook the plugin up with the jre in my now-working JDK tree,
instead of the jre that ships with the plugin itself?
--
Robert Coie
Implementor, Intrigue Ltd.
Re: Servlets on Linux
I'm using Apache with mod_jserv (http://java.apache.org) and it works great. You don't necessarily need the latest jdk (1.1+) but you do need Apache 1.2.0 or better. Get the Solaris version of the JSDK (it comes with some example servlets that you can run as soon as you have things configured). If you already have the jdk and Apache installed, then all you need to do is follow the mod_jserv README instructions. They tell you how to rebuild and configure Apache. You could also look at JRun (livesoftware.com) - they have a pretty nice introduction on servlets http://www.livesoftware.com/products/jrun/introduction.html which may be helpful. Good luck! Alejandro Canales wrote: > Hi! > > I am intereste on using Servlets. Can anyone send me their comments > about this tecnlology??? > What can I should do for work with servlets on linux?? I mean, what > version of JDK I need or maybe another program??? I am confused because > in javasoft only the Win and Solaris versions are availible... > What I need to do to work With servlets and apache on Linux??? > (version, patches, etc,etc) > > Saludos > AC > > PD Forgive my English... begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: Servlets on Linux
Try adding the following to your classpath
/usr/local/java/lib/jsdk.jar
instead of just:
/usr/local/java/lib
Alejandro Canales wrote:
> On Wed, 29 Jul 1998, Doug Welzel wrote:
>
> > Can you tell me exactly what your CLASSPATH variable is? (just to make
> > sure)
> >
> > > -Original Message-
> > > From: Alejandro Canales [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 29, 1998 5:07 AM
> > > To: Doug Welzel
> > > Subject: Re: Servlets on Linux
> > >
> > >
> > >
> > > I follow your instructions as you (and many more guys) send me.
> > > I got this problem: When I can't compile this simple program:
> > >
> > > import java.io.*;
> > > import java.servlet.*;
> > > import java.servlet.http.*;
> > >
> > >
> > > public class SimpleServlet extends HttpServlet
> > > {
> > > public void service(HttpServletRequest req, HttpServletResponse res)
> > >throws ServletException, IOException
> > > {
> > > res.setContentType("text/html");
> > > PrintWriter out = res.getWriter();
> > > out.println("Simple Servlet ");
> > > out.println(" SimpleServlet Output");
> > > out.println("This is from SimpleServlet.");
> > > out.close();
> > > }
> > > public String getServletInfo()
> > > {
> > > return "A simple Servlet";
> > > }
> > > }
> > >
> > > this are the errors:
> > >
> > > $ javac Servlet1.java
> > > Servlet1.java:2: Package java.servlet not found in import.
> > > import java.servlet.*;
> > >^
> > > Servlet1.java:3: Package java.servlet.http not found in import.
> > > import java.servlet.http.*;
> > >^
> > > Servlet1.java:6: Superclass HttpServlet of class SimpleServlet not
> > > found.
> > > public class SimpleServlet extends HttpServlet
> > >^
> > > 3 errors
> > > <---
> > > I carefully set CLASSPATH as you tell me. What should I do???
> > > I think apache is well configurated. But I need to test it, can you
> > > send me one simple servlet and how I run it???
> > >
> > >
> > > Sincerely
> > > A Canales
>
> My CLASSPATH is set as follows:
> --->
> $ echo $CLASSPATH
> /usr/local/java/lib/classes.zip:/usr/local/java/jserv/servclasses.zip:
> /usr/local/java/jserv/src:/usr/local/java/lib
> <---
> I put the jsdk.jar file in this directory:
> --->
> $ ls /usr/local/java/lib/
> appletviewer.properties font.properties.zh_EUC_CN
> awt.propertiesfont.properties.zh_TW_Big5
> classes.zip font.properties.zh_TW_EUC_TW
> content-types.properties i386
> font.properties i486
> font.properties.csi586
> font.properties.eli686
> font.properties.hujsdk.jar
> font.properties.jaorg
> font.properties.kopsfont.properties.ja
> font.properties.ltrmic.properties
> font.properties.lvsecurity
> font.properties.plserialver.properties
> font.properties.ruservclasses.zip
> font.properties.tr
> <
>
> I untar the JDSK for solaris and copy the file "jsdk.jar" into
> /usr/local/java/lib.
> I am using JDK1.1.6 and seem that work well (I compile some little
> programs), but in the Instalation instrucions the JDK says that CLASSPATH
> is no longer needed, in fact I can compile programs in JDK1.1.6 whitout
> setting CLASSPATH, I don't know what I do wrong...
> Can someone help me???
>
> Sincerely
> A Canales
begin: vcard
fn: Robert Ritchy
n: Ritchy;Robert
org:BDM Denver
adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA
email;internet: [EMAIL PROTECTED]
title: Software Development TL
tel;work: 303-672-8917 / 247-1150 ex 8917
x-mozilla-cpt: bdmtech.com;2
x-mozilla-html: FALSE
version:2.1
end:vcard
Swing in JDK 1.2
Hi everybody I'm just pointing out to everybody that JavaWorld (www.javaworld.com) are doing a poll, on whether it is right for Sun to put Swing under the package name com.sun.java.swing. This is very important for us in the open source community to try and change Sun's minds. As we may in the future want to write a open source version of Swing, and I don't think it is right for us to put our code under com.sun.java.swing. The poll page is http://nigeria.wpi.com/cgi-bin/gwpoll/gwpoll/ballot.html Thanks Robert Fitzsimons [EMAIL PROTECTED]
Re: JDK 1.1.6 -- immediate segmentation fault (RH 5.0)
Robert, I'm somewhat new to this but since I haven't seen your question answered I'll do my best. I installed RH 5.0 and grabbed the JDK 1.1.3 (not the rpm version) a couple of months ago with the same problem. I quickly found out through this great mailing list that a patch, (glibc-2.0.7-7.i386.rpm or later), is necessary. In seconds my problem was solved. I believe the place to get the patch is: ftp://ftp.redhat.com/pub/redhat/updates/5.0/i386/ Robert Robert Dodier wrote: > Hello all, > > I wonder if someone has run into this problem. I have installed JDK1.1.6 > from the .rpm obtained from blackdown.org. I am running Linux 2.0.32 > (RH 5.0), and although RH 5.0 came with glibc.so.6, I have gone ahead > and installed glibc.so.7. (Same problem w/ both versions of glibc; > I've also tried JDK 1.1.5 and I have the same problem.) > > What happens is this: when I try to execute java (or javac -- I suppose > it is only executing java as well), before anything happens I immediately > get "segmentation fault". > > This makes me think there is something strange about my installation. > FWIW I installed RH 5.0 just a few days ago, so most of the stuff is > straight off the installation CD. libc is different, and I might have > installed one or two other packages. > > I also installed kaffe (after having the "segmentation fault" problem) > and it runs OK, except that there are some classes which are not > implemented in kaffe's distribution (Klasses.jar) -- so long as the > program I am trying to run uses only thoses classes in Klasses.jar, > I;m OK, but if I try to supply the remaining classes in Sun's Solaris > classes.zip (I got this idea from the kaffe website, I think) then > kaffe dies. Does anyone know how best to supply non-kaffe classes? > > Well, I would be happy if I could get either java or kaffe running > smoothly. What I really need is to run RMI programs, but I'll deal > with RMI-specific problems (doubtless there will be some :) when > they occur. > > Thanks in advance for any help you can offer. > > --Robert Dodier begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: What's up with this?
Did you create a new instance of "a" before calling the paint method? I noticed
that your paint() method
wasn't declared as a static one but that seems to be how you're trying to use it.
Just a guess
Steve Cohen wrote:
> I realize this may not be the appropriate place for this question but why can't
> I do this?
>
> //file a:
>
> import java.awt.*;
> public class a {
> void paint (Graphics g) {
> ...
> }
>
> }
>
> //file b:
> import java.awt.*;
> import a;
>
> public class b {
> public a A;
> ...
> void paint (Graphics g) {
> A.paint(g);
> }
> }
>
> The compilation of file b fails with an error message about an unknown method
> paint( java.awt.Graphics )
>
> WHY? This code compiles fine if it is all in one file
begin: vcard
fn: Robert Ritchy
n: Ritchy;Robert
org:BDM Denver
adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA
email;internet: [EMAIL PROTECTED]
title: Software Development TL
tel;work: 303-672-8917 / 247-1150 ex 8917
x-mozilla-cpt: bdmtech.com;2
x-mozilla-html: FALSE
version:2.1
end:vcard
Re: ORB uder linux?
Paul, I just downloaded OmniORB - http://www.orl.co.uk/software.html Robert Paul V. Drobnich wrote: Hi, Anybody knows anything about free CORBA2 ORB uder linux, or some idl2java precompiler for linux? begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: Expanding arrays
You probably want to use a Vector. import java.util.Vector; Vector vec = new Vector(); Then, to add an element, use: vec.addElement(someString); to retrieve an element, you can use: String myString = (String)(vec.elementAt(index)); (you've got to cast the returned object into a String) -Rob On Tue, 8 Sep 1998, Maarten van Leunen wrote: > Howdie, > > Is there a way to expand arrays. Like, I want to put a unknown number of > strings in an array. > > And then "return" the array of Strings in the Method. > > I read one string, and wish to add it to the array without having to > define the amount of Strings in the array previously. > > -- > Maarten van Leunen > > Student - Fontys Institute of Technology Eindhoven > e-mail: [EMAIL PROTECTED] > http://www.il.fontys.nl/~maartenl > http://lok.il.fontys.nl/ >
Re: Delete all class files
You can use xargs to construct a list of files for rm to delete. This should work: find ./ -name '*.class' -print | xargs rm On Mon, 14 Sep 1998, David Warnock wrote: > Hi, > > I am using Jikes 0.37 and whilst I trust it's -depends option I like to > delete all class files prior to building a release. I am also very new > to Linux and cannot see how to delete *.class files from a directory > tree. Under windows NT I could use "del *.class /s" but "rm -r *.class" > does not work. > > I thought I should be able to connect "find . -name *.class" to "rm" > somehow using redirection or pipes but cannot get it to work. > > Any ideas on how I should do this? > > Thanks > > Dave > Robert Dietrick Software Engineer Magnet Interactive Communications
Re: socket code problem
I'm not positive this will sove your problem, but you might want to try
flushing that OutputStream after you write to it:
clientsocket_out.flush();
-Rob
On Thu, 24 Sep 1998 [EMAIL PROTECTED] wrote:
>
> // THIS FAILS, HANGING SERVER AND CLIENT
> // CLIENT CANNOT READ THIS BYTE
> // try writing again to client a second time
> clientsocket_out.writeBytes("PP");
Re: Netscape 4.06 running Java Applets with sound files.
Linda DeBoer wrote: > > G'day > I have spent the last 4 days trying to find info on this on the net, > FAQ's etc. I cannot find anything to help. > > I have Netscape 4.06 running on Linux with JDK 1.1.6. My MIME Type > is setup for " ULAW cat %s > /dev/audio". > If I select the "mysound.au" file using the browser, and "Open > Page", the image and sound work fine. > If I run my java program called "ButtonTest" using "check.html" in > the "Appletviewer", the image and sound work fine. > If I use my Netscape Browser to open "check.html" then the image > displays but the sound does not work. > > I have also copied a some other applets that work fine on our > Windows 95 using JDK 1.1.6 to my Linux box and the sound fails to work, > so I know that particular code was ok. I have many examples of the same > code I used (real simple program) and lots of info on Netscape Plug-ins > (all MickeySoft). > > I installed both the netscape common and netscape communicator > packages as rpm instructed (common first). I also installed the full > package JDK 1.1.6 port. Did I end up missing a piece anyway? If there > is an FAQ I have missed, web site, or document, please direct me. > Reading is not a problem, but I right now I'm seeing alot of trees and > none of them have moss growing on them..;-) > > PS: Linux is my chosen home desktop (we have 3 more converts at > work) This is a known problem. Someone did some work on this, I saved his page, but the page appears not be there anymore when you go there... maybe you can e-mail him or something, or get some info from my copy of the page at: ftp://shell3.ba.best.com/pub/rmlynch/Java_Stuff/sound-linuxNS.html HTH. Bob L. P.S. Reminder: this page is just a copy I saved. None of the links will probably work, although I haven't tried them all... -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: Java app without X installed
Listen - as yet another newbie - don't screw things up for me. This list has been EXTREMELY helpful to me and my work. The promptness and quality of reponse from this list is unmatched. These "gurus" have taken a lot time to give us a quality product and support for FREE! They are certainly not asking too much when they expect us to read the README.linux file. If you want more support then pay for it - although I don't see how you could get more support about java-linux than we are fortunate enough to get here. Steve, please don't let this get you too pissed off. It's taken all of my energy NOT to fill this reply with harsh (and four letter) words. I'm in great debt to all of you contributing to this port. Thank you for all your efforts! Robert Kanoza_D wrote: > Let me just put in my two cents as another newbie. It's a pain in the > a** to have to RTFM all the time. Has anyone counted up all the > thousands of pages of documents there are out there? Speaking as > someone who has been R'ing TFM instead of asking, I have to say that > while it gives me a great deal of satisfaction to have figured it out on > my own, there has been more than one occasion when I've been up all > night long searching for an answer in the docs that one of you gurus > could have answered without thinking. I recently got married, I work > full time, I'm in graduate school, and I'm one of those people who > requires 8 hours of sleep a night in order to function. My time is at a > premium, and if I post a question to the group it's not because I'm too > lazy to find it myself, it's because I just plain don't have the time to > do it myself and I'm hoping someone out there will be a little > understanding and give me a helping hand. I'm not asking you to come to > my house and do it for me, after all. > > > -Original Message- > > From: Steve Byrne [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, October 07, 1998 12:35 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > > [EMAIL PROTECTED] > > Subject: Re: Java app without X installed > > > > John Summerfield writes: > > > On Tue, 6 Oct 1998, Steve Byrne wrote: > > > > > > > > > > > Aw, come on, man! RTFM! I covered this in great detail; you > > should take the > > > > > > Well I for one don't know which frigging document you're talking > > about. > > > > I guess README.linux *could* be named more obviously :-) > > > > > I've just installed the jre on a system without X. To make the jre > > even run > > > I found it necessary to install a part of XFree even though I don't > > want > > > the gui. > > > > Fixed in v5. > > > > > I can see no mention of this in any of the documentation included > > with the > > > package jre1.1.6-v4a-i386-libc5.tar.gz. > > > > Look again in README.linux. > > > > > Exercise patience and courtesy in your replies. You too were a > > beginner > > > once. > > > > Yes. And I didn't ask for help before exhausting the other options, > > if I asked > > for help at all. begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: Java app without X installed
If you would take the time to observe this list for a while then you would realize that just about every question is answered almost immediately. I know I asked a lot of redundant and simple questions and always got an answer. Please, wait for more than one email as your reference before attacking an entire mailing list. Go back to the archives and see for yourself. This arguement is useless and doesn't deserve to be posted on this list (mine included) - so I want to apologize to everyone who's had to read through this crap. Robert [EMAIL PROTECTED] wrote: > On Wed, 7 Oct 1998, Robert Ritchy wrote: > > > Listen - as yet another newbie - don't screw things up for me. This list > > has been EXTREMELY helpful to me and my work. The promptness and quality of > > reponse from this list is unmatched. These "gurus" have taken a lot time to > > give us a quality product and support for FREE! > > The purpose of these lists are for interested people to ask questions. > Some questions are easily answerable by looking at the docs, and others > are not so obvious or may reflect that someone has become confused > about something and because of that may not realize that the docs answer > their question. > > Whatever the case, there is no reason to have an attitude when "helping" > someone. Thats the simple point. > > Mark begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: Knowledge share (was: Java app without X installed)
can't we all just get along -rob On Wed, 7 Oct 1998, Dug Birdzell wrote: > all right, poor choice of words.., and really besides the point anyway. > > recent post said it best: "no attitude necessary". if you don't > feel like answering a question, then don't answer it. what's the point of > getting down on other programmers for asking a question? > > Yours, > > Dug Birdzell Software Engineer HuskyLabs > [EMAIL PROTECTED] www.butterfly.net/~dug www.lab.com > 1 888 HUSKY US, x285 > > On Wed, 7 Oct 1998, Kevin Ryan wrote: > > > "privatization"? > > > > Perhaps "some assembly (effort) is required" to glean the info, but the > > info has not been "privatized"... > > > > > > Dug Birdzell wrote: > > > > > > Bear in mind that privatization of knowledge of technologies which compete > > > with the Dark Side only serve to empower it. > > > > > > Yours, > > > > > > Dug Birdzell Software Engineer HuskyLabs > > > [EMAIL PROTECTED] www.butterfly.net/~dug www.lab.com > > > 1 888 HUSKY US, x285 > > > >
Re: bug - system clipboard does not work
Hi-
I noticed a very similar problem with an example in "CoreJava, 1.1", v.
2. While the selection goes ONTO the system clipboard as whatever you
declare it to be, it comes OFF the system clipboard as a:
"sun.awt.motif.X11Selection.class"
I don't know whether this is a bug or a feature. ;-)
The work-around I found was to:
==
import sun.awt.motif.X11Selection; // not good, sun class, but...
// test for X11 selection
Transferable selection = mimeClipboard.getContents(this);
...
if(selection instanceof X11Selection) {
String sx = (String)selection.getTransferData(DataFlavor.stringFlavor);
// do whatever...
}
==
In the CoreJava example, the authors implemented their own image/mime
encoding scheme, so they were alwasy working with strings,
essentially...
HTH.
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
--
Steve Zara wrote:
>
> This example code works fine on Solaris and Win95/NT:
>
> import java.net.*;
> import java.awt.*;
> import java.awt.datatransfer.*;
> import java.io.*;
> import java.awt.event.*;
>
> class clipboard extends Frame implements ClipboardOwner{
> TextArea t1=new TextArea("Area 1...",20,20);
> TextArea t2=new TextArea("Area 2...",20,20);
> Button b1=new Button("Copy");
> Button b2=new Button("Paste");
> Panel pA=new Panel();
> Panel pB=new Panel();
> ClipboardOwner owner=this;
> Clipboard Clip=getToolkit ().getSystemClipboard ();
>
> public void lostOwnership(Clipboard b,Transferable c)
> {
> System.out.println("We lost ownership!");
> }
>
> public static void main(String args[])
> {
> clipboard c=new clipboard();
> c.resize(new Dimension(300,300));
> c.show();
> }
>
> clipboard()
> {
> setLayout(new BorderLayout(10,10));
> pA.setLayout(new FlowLayout());
> pB.setLayout(new FlowLayout());
> pA.add("West",t1);
> pA.add("East",t2);
>
> b1.addActionListener( new ActionListener() {
>
> public void actionPerformed(ActionEvent e)
> {
> Transfer trans=new Transfer(t1.getSelectedText());
> Clip.setContents(trans,owner);
> }
> });
>
>
> b2.addActionListener( new ActionListener() {
> public void actionPerformed(ActionEvent e)
> {
>
> Transferable data=Clip.getContents(this);
> StringReader s;
> if (data.isDataFlavorSupported(new
>DataFlavor("text/insidejava","Test on InsideJava")))
> System.out.println("Transferable supports
>text/insidejava Mime Type.");
>
> if
>(data.isDataFlavorSupported(DataFlavor.stringFlavor))
> System.out.println("Transferable supports
>application/x-java-serializedobject Mime Type");
> try {
>
> String result = "";
>
>s=(StringReader)data.getTransferData(DataFlavor.plainTextFlavor);
>
> try {
> for (;;) {
> int c = s.read ();
> if (c == -1)
> break;
>
> result += (char) c;
> }
> } catch (Exception ioe) {
> }
> t2.setText (result);
> t1.setText (result);
>
>
> }
> catch (UnsupportedFlavorException ex)
>{System.out.println("Unsupported Flavor!");}
> catch (IOException ex)
>{System.out.println("IOException!");}
>
> }
> });
>
> pB.add(b1);
> pB.add(b2);
>
> add
Re: bug - system clipboard does not work
In line with my post about Steve's problem, if his "paste" button
actionListener method is altered (gutted?) as follows, just for a demo
to show pasting from the system clipboard:
-
...
b2.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e)
{
Transferable data=Clip.getContents(this);
//System.out.println("data is: "+data);
String result = "";
try {
result =
(String)data.getTransferData(DataFlavor.stringFlavor);
}
catch (Exception ex) {;}
t2.setText (result);
t1.setText (result);
}
});
pB.add(b1);
pB.add(b2);
add("South",pB);
add("Center",pA);
}
}
--
then text copied to the system clipboard (for example, highlighting and
copying some text in Netscape mail) will be pasted to both text areas
when the "paste" button is hit.
This shows that this "bug" can be gotten around.
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Re: jdk 1.1.x without X-windows support
Hi Michal > Can you point me to an appropriate place to see ? http://www.blackdown.org/java-linux/rel/116/v5/README-1.1.6v5.html Robert Fitzimons [EMAIL PROTECTED]
Re: jdk 1.1.x without X-windows support
Hi Michal > > Can you point me to an appropriate place to see ? > http://www.blackdown.org/java-linux/rel/116/v5/README-1.1.6v5.html Look under the section Java Virtual Machine variations. Robert Fitzimons [EMAIL PROTECTED]
Re: Barcode Scanner / Cash Registers
There are no standards where cash registers are concerned. You either settle on one brand and learn to work with several of their models, or find ways to use a couple of models from each of several vendors. Even different models from the same manufacturer are not compatable. The bigger registers have built in interfaces for various peripherals, like scales, coin dispensers, scanners and pin pads. They each support a couple of makes/models of devices and the register manufacturer controls which ones they talk to. They also have proprietery message and data formats, none of which will be used by any other manufacturer. There are some new PC based models which are a little more flexible. You can now buy hardware and software from one manufacturer, or get the hardware from several and go elsewhere for the software and drivers. In a couple of cases, you can get Windows95 POS software that will run on several different brands of hardware. There are still a limited number of peripheral drivers available, but the list of options is growning all the time. Java based registers? Don't hold your breath. Most of them are already pushing on the "too slow" envelope with native code or Win95 based software. Good luck, Bob McConnell N2SPP At 09:32 AM 10/22/98 +0100, M. N. Khan wrote: >Hello all. >Has anyone worked with java and cash registers / barcode scanners etc..? >I need to know which ones are compatible with java and linux, so I can buy the right ones. >I will be writing a java program on linux for a Retail clothes company who want a complet stock and sales software. >Any ideas? Do I need any special drivers? Are there any modules in java that I need? >Any other suggestions? >Thanx > > >
Re: apache, jserv, blackdown's vm, memory leak?
> Which version of the JVM? (Some earlier versions had problems with > threads not freeing all resources) In particular, the 1.1.5 VM had these problems. We had similar memory leak problems (and went through the explicit gc calls/"what are we missing?" phase) before reading about the 1.1.5 thread issues. After a simple upgrade, our problems went away. begin: vcard fn: Robert Ritchy n: Ritchy;Robert org:BDM Denver adr:1999 Broadway - Suite 2000;;;Denver;CO;80202;USA email;internet: [EMAIL PROTECTED] title: Software Development TL tel;work: 303-672-8917 / 247-1150 ex 8917 x-mozilla-cpt: bdmtech.com;2 x-mozilla-html: FALSE version:2.1 end:vcard
Re: HP wrong, Linux right... right?
Hi Charles
The problem with your code is not a bug, it's just how thread are scheduled
by the underliying VM.
Your code running on Linux is unblocking (notifyAll) before, there is any
thing waiting (wait) on the lock. The run method in SThread run to the
while loop, before the XThread run starts. Maybe adding a Thread.yeild()
just after the new Socket() would work.
Below is the output with the changes I made to your code, which I ran on
Linux JDK 1.1.6v5.
Unblocking pause()
Before notifyAll
After notifyAll
Before wait
Hope this helps.
Robert Fitzsimons
> import java.net.*;
> import java.util.Date;
>
> public class STest {
> public static void main(String[] param) {
> if (param.length != 1) {
> System.out.println("Usage: java STest ");
> System.exit(1);
> }
>
> SThread t = new SThread(param[0]);
> XThread x = new XThread(t);
> try {
> t.start();
> x.start();
> x.join();
> System.out.println("XThread completed. Socket should be closed");
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> class XThread extends Thread {
> private SThread st;
>
> public XThread(SThread st) { this.st = st; }
>
> public void run() {
> try {
> st.pause();
> System.out.println("XThread sleeping for a little bit.\t" +
> new Date());
> sleep(5000);
> System.out.println("XThread awake.\t\t\t" + new Date());
> st.s.close();
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> class SThread extends Thread {
> private String host;
> public Socket s;
> public SThread(String host) { this.host = host; }
>
> public void run() {
> try {
> // Open a telnet socket to the host passed on the command line
> s = new Socket(host, 23);
>
> System.out.println("Unblocking pause()");
System.out.println("Before notifyAll");
> synchronized(this) { notifyAll(); }
System.out.println("After notifyAll");
>
> while(true) {
> s.getInputStream().read();
> }
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
>
> public synchronized void pause() {
System.out.println("Before wait");
> try { wait(); } catch(Exception e) { e.printStackTrace(); }
System.out.println("After wait");
> }
> }
[off-topic] Putting codebase in classpath, or equivalent
Hi there, This is a little bit off-topic -- sorry for the intrusion. I am running some RMI applications on a machine which doesn't have the necessary classes installed -- the RMI class loader runs out and grabs the ones that are needed, using the codebase property. That works great. I like that so much, I wonder if I can get javac to do sort of the same thing. What I want is to name a class in a program I am developing on the class-less machine and somehow let javac know that I mean a class on another machine. That would be very convenient for development. I would really rather not mirror the class files. javac doesn't seem to notice codebase. Is there some way I can get the effect I want -- which is essentially to put the codebase in the classpath, so to speak. I wonder if I will have to obtain the javac source and hack it to use RMIClassloader.loadClass instead of Class.newInstance or something like that. I guess I'm assuming that Class.newInstance ignores the codebase -- maybe I should hack Class.newInstance instead?? Thanks for any ideas you might have. Robert Dodier
Swing and linux jdk1.1.6v5
Heh, I did it, I subscribed .. :) I'm writing an record database application in java using swing 1.03. and I have two problems. The first is not swing related - when I use my program and want to save my database - the linux jdk/jre doesn't ask for confirmations on overwrites, but when I run it with the windows jdk it does. I want it to ask no matter what platform I use, but if I implement a confirmation dialog myself, windows ask me twice! Where's the problem and how do I work around it. My second problem is importing swing classes. I have swing.jar and classes.zip in my classpath in both windows and linux. The line import com.sun.java.swing.*; works fine in windows but not in linux, when i try to compile it javac says: RecordDB.java:6: Package com.sun.java.swing not found in import. import com.sun.java.swing.*; I can only compile my app in windows, but I can run it in both windows an linux. Can any-one help me sort these "glitches" out?
Re: bug - system clipboard does not work
Steve Zara wrote:
[snip-my demo that pasting from system clipboard can be done]
> >
> Thanks - this works fine as illustrated. I'm more used to using the
>highlight/middle button click
> copy/paste action under X - is there any way this can be accessed from Java?
This sort of thing works on my system, at least when I push both mouse
buttons simultaneously (I don't _have_ a middle mouse button):
-
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
//
public class mouser2 extends Applet {
public void init() {
this.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
if(e.getModifiers() == InputEvent.BUTTON2_MASK)
System.out.println("middle button pushed");
}
});
}
}
---
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Re: More problems extending an inner class
Daniele
Here is some code I put together showing the three forms of inner
classes, this may help you understand what is going wrong. I also
think your code didn't work because the was a logical error, with
the events somewhere.
Robert Fitzsimons
[EMAIL PROTECTED]
// Test.java
import java.awt.*;
import java.awt.event.*;
public class Test extends Frame {
private Checkbox cb;
public Test() {
Button b;
this.setLayout(new FlowLayout());
this.setSize(200, 200);
// Anonymous innerclass
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
// Local innerclass
class ActionAdapter implements ActionListener {
public void actionPerformed(ActionEvent e) {
TestDialog td;
if(!Test.this.cb.getState()) {
td = new TestDialog(Test.this,
e.getActionCommand());
} else {
td = new ExTestDialog(Test.this,
e.getActionCommand());
}
td.setVisible(true);
}
}
ActionAdapter aa = new ActionAdapter();
for(int i = 1; i < 6; i++) {
this.add(b = new Button("Test " + i));
b.addActionListener(aa);
}
this.add(cb = new Checkbox("Modal"));
this.setVisible(true);
}
public static void main(String[] args) {
new Test();
}
// Innerclass
protected class TestDialog extends Dialog {
public TestDialog(Frame frame, String title) {
super(frame, title);
this.setSize(100, 100);
// Anonymous innerclass
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
TestDialog.this.dispose();
}
});
}
}
// Extended innerclass
protected class ExTestDialog extends TestDialog {
public ExTestDialog(Frame frame, String title) {
super(frame, title);
this.setModal(true);
}
}
}
Re: More problems extending an inner class
Daniele
Here is some code I put together showing the three forms of inner
classes, this may help you understand what is going wrong. I also
think your code didn't work because the was a logical error, with
the events somewhere.
Robert Fitzsimons
[EMAIL PROTECTED]
// Test.java
import java.awt.*;
import java.awt.event.*;
public class Test extends Frame {
private Checkbox cb;
public Test() {
Button b;
this.setLayout(new FlowLayout());
this.setSize(200, 200);
// Anonymous innerclass
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
// Local innerclass
class ActionAdapter implements ActionListener {
public void actionPerformed(ActionEvent e) {
TestDialog td;
if(!Test.this.cb.getState()) {
td = new TestDialog(Test.this,
e.getActionCommand());
} else {
td = new ExTestDialog(Test.this,
e.getActionCommand());
}
td.setVisible(true);
}
}
ActionAdapter aa = new ActionAdapter();
for(int i = 1; i < 6; i++) {
this.add(b = new Button("Test " + i));
b.addActionListener(aa);
}
this.add(cb = new Checkbox("Modal"));
this.setVisible(true);
}
public static void main(String[] args) {
new Test();
}
// Innerclass
protected class TestDialog extends Dialog {
public TestDialog(Frame frame, String title) {
super(frame, title);
this.setSize(100, 100);
// Anonymous innerclass
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
TestDialog.this.dispose();
}
});
}
}
// Extended innerclass
protected class ExTestDialog extends TestDialog {
public ExTestDialog(Frame frame, String title) {
super(frame, title);
this.setModal(true);
}
}
}
Re: [FYI] Java violates US patent?
At 12:06 PM 12/7/98 -0600, Justin Lee wrote: >Ernst de Haan wrote: > >> >> What is the idea of Java? Portable code. If that part of Java will be >> removed, the Java Platform idea is dead, what remains is the Java >> programming language, with a modified API (ClassLoader etc). Downward >> compatiblity nil. >> >> Take a look at the future-oriented API's of Java: Jini, JavaSpaces, etc. >> All gone. Combination of XML and Java is suddenly not that promising >> anymore. And what about things like network computers, Lotus eSuite, >> Domino, Java WebServer etc. >> >> Don't underestimate the impact. :-( >> > >Yet, surely the concept of portable code can't be contained within that patent. >Portable, interpreted code has been around far longer than that patent. For an >example, pick any form of BASIC. Isn't Java just another multiplatform >interpreted language? The only difference is the source code is compiled into a >binary format rather than the engligh-esque nature of other intrepreted >languages. > >-- >Justin Lee | Does is really matter how far you go? >JEDI | Can you get some sleep, now, standing on so many toes? Compiled Java looks a lot like the Pascal p-code did 18 years ago. Any new attempt to patent that would have major problems with prior art. Running an app or applet from a browser may also be likened to using exec to run a system utility in Unix. I find it hard to believe that there is no prior art here. After all Perl just made it simpler; many programmers have been doing it for years. I would also like to know if the courts have validated the idea of patenting software yet? It appears to me that this has no hardware component at all. Bob McConnell N2SPP
Re: Congratulations to Blackdown!
Pierre, Is there any way that you can quantify "faster" and "more stable" for us? I would love to be able to show my manager some real world differences between Linux and Windows. Thanks, Bob McConnell N2SPP At 05:19 AM 12/8/98 +0100, Pierre LATECOERE wrote: >Congratulations to Blackdown! Thanks to your JDK, porting my Java >program from Windows to Linux was more than easy. > >I have just finished porting a Java program to Linux using blackdown >116. The result is excellent! > >The program was originally developed under INPRISE JBuilder 2.01 on Win >NT4. (www.inprise.com). >The application (5,000 lines of code) uses mostly swing components for >the UI. I have decided to limit myself to "core" JDK classes and swing >to avoid potential porting problems. >The application make heavy use of relational database access (15 tables, >10,000 records about). >The database used here is Interbase 5. Interbase runs on several Unix >platforms, Windows and was recently ported to Linux (www.interbase.com). > > >After testing the application for a few days, I am happy to report that >I have encountered no problem. I have exactly the same results on Linux >as with Windows NT4, with one major advantage: it all runs faster under >Linux and is of course more stable. > >Although I am certainly less technically competent than most of you, I >will be happy to share my experience of developing and migrating from >Windows to Linux. > >Thanks again to Blackdown for your outstanding work. > >Pierre LATECOERE
Re: [FYI] Java violates US patent?
At 10:56 AM 12/8/98 +0100, Alex Pozgaj wrote: >Java News Collector wrote: >> >> At 12:06 PM 12/7/98 -0600, Justin Lee wrote: >> >Ernst de Haan wrote: >> --- snip --- >> >Yet, surely the concept of portable code can't be contained within that >> patent. >> >Portable, interpreted code has been around far longer than that patent. >> For an >> >example, pick any form of BASIC. Isn't Java just another multiplatform >> >interpreted language? The only difference is the source code is compiled >> into a >> >binary format rather than the engligh-esque nature of other intrepreted >> >languages. >> >> Not even that. BASIC tokenized its "executable" before writing it to disk. > >Just a minor nit-pick: not every implementation did that. > >Let me guess... you too are comming from the Sinclair world, aren't you? >:-) > > >Cheers, alex. >-- >"Programming today is a race between software engineers striving >to build bigger and better idiot-proof programs, and the Universe >trying to produce bigger and better idiots. So far, the Universe >is winning." -- Rich Cook > Most of the Microsoft interpreters did the tokenized save. It was always a problem when upgrading DOS. You had to open every .bas file and do a save with the ", A" switch to save it out if full text format before replacing BASIC.EXE. Otherwise the new interpreter would transpose some of the key words in strange ways. Bob McConnell N2SPP
Re: Important: Java 1.2 licencing changes
Did you check your browser's cache to see if there were copies there? I did see something about this while I was looking at InfoWorld Online this afternoon. Aparently the announcement was made at some conference this afternoon and the new package will be released next week. Cheers, Bob McConnell N2SPP At 01:14 PM 12/8/98 +, Thomas Down wrote: >Just before 1pm GMT today, I visited http://www.javasoft.com/. The site >had been completely redesigned to announce that the JDK 1.2 technology had >been re-named Java 2, and it was to be distributed under a new (more open) >licence agreement. Then a few minutes later it all disappeared and the >old pages returned! > >I have to presume that they just announced things a bit >prematurely---unfortunately I didn't take copies of the new pages. > >Thomas >-- > > > >
Re: Maximum Heap Size
I don't know if this has been mentioned but we developed a multi-threaded app and had OutOfMemoryError problems similiar to yours. The culprit was the 1.1.5 jdk (had thread memory leak problems). After upgrading the jdk our problems went away. Robert Mehrdad Jahansoozi wrote: > This is usual in multithreaded programs > There are two solutions to these sorts of problems > 1) Limit the number of threads to 5 at any time. > 2) Write the data on a temporary files and read it later. > > Which one is a mater of time ( speed ). > > If you are reading over a network, pipe the data directly on to > temporary files. > Then read the data from the files and delete the files > > > I am running into a problem where my vm grows too big, to fast (faster > than the > > consumers of the collected data can consume it), resulting in a > > OutOfMemoryError in all running threads. I changed the vm to run with > -mx50m > > and it ran for much longer (about 5 days) then it too did the same > thing. > > > > Currently I am trying to add some sort of alert before it runs out of > memory, > > mostly for debugging purposes, but it seems like the set of methods to > access > > memory do not take into account the maximum limits passed in via -mx. > I can > > see that this is a good thing, because I could tell it that it has > some insane > > amount of memory when it really has a few megs... but is there a happy > medium? > > begin:vcard n:Ritchy;Robert x-mozilla-html:FALSE org:BDM Denver adr:;;1999 Broadway - Suite 2000;Denver;CO;80202;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development TL x-mozilla-cpt:;2 tel;work:303-672-8917 / 247-1150 ex 8917 fn:Robert Ritchy end:vcard
RedHat/Kaffe/JDK FAQ
I just got email from a friend complaining about a problem that sounds suspiciously like the problem you get when you have Kaffe installed on a Redhat system and then install the Blackdown JDK. Apparently when he runs "java" he gets a complaint about a missing "libhello.so". If that's the real problem, shouldn't a description and fix be in the FAQ? I couldn't find it in the FAQ on blackdown.org. -- [EMAIL PROTECTED] "the feeling was exhilarating and addictive" -- Microsoft employee Vinod Valloppillil, on his first exposure to Linux development
ISO libstdc++-2.8 (to make jikes happy)
Hello all, Happy new year! I would like to run jikes on my RH 5.0 linux box, but jikes wants libstdc++-2.8, while the current rpm contains libstdc++-2.7 and ...-2.9, but not 2.8. :( I've tried downloading the source to build libstdc++-2.8 but the build failed; some obscure (to me) message about "no source file dummy.c; required for dummy.o" or some such. I've searched for libstdc++-2.8 without luck. Does someone have a copy of the 2.8 rpm that I can copy? On a related note, perhaps jikes should be bundled with the libstdc++ which it wants; I symlinked 2.8 to 2.9 and jikes dies with a "symbol not found." Is it usual for apps to be bundled with specific library versions, or more usual that they aren't? Many thanks for any advice, Robert Dodier
Re: Java debugger under Linux
Barry D Benowitz wrote: > > >>>>> "Igor" == Igor Slepchin <[EMAIL PROTECTED]> writes: > > Igor> Can anybody recommend a good java debugger that is available > Igor> under Linux (jdb is way too primitive and inefficient)? Free > Igor> ones have preference :) > > Good? If you are an emacs user there is a package called jde which > provides a better interface to jdb. jdb is still the front end. I know > that emacs is available under Linux and NT. > > If you like more graphical pizzazz, DDD 3.0 supports jdb as well. > > I don't know of any options that don't use jdb, unfortunately. > > HTH > -- > Barry D. Benowitz - FAQ maintainer for alt.lefthanders > Email:[EMAIL PROTECTED] > Phone:+1 609 866 1000 x3354 > Snail:Axiom Inc, 4000 Midlantic Dr., Mt. Laurel, NJ, 08054-5476 Hiya- Your post reminded me of IBM's "jikes", which I could not get to run with previous versions of the jdk. Now with sbb's jdk1.1.5v7, it goes. Obviously cannot say anything postive or negative about it, but it's free and at: http://www.alphaworks.ibm.com/formula/jikesdebugger/ FWIW. Bob L. P.S. Don't forget to turn on Javascript (yuk!), the above site requires it for navigation... -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Java Plug-in tantalizing, but...
I have been unable to get the Java Plug-in to work for me. The system is glibc based, pretty much pre-Debian 2.0. JDK 1.1.5v5 glibc works on this machine, and the Activator Control Panel when run as an application comes up fine. When I try to access it (or any other applet designed for Activator) from within Netscape (4.04j2), nothing obviously sinister is reported by either the console or the ACTIVATOR_TRACE, but all that happens is "Loading Java Applet" in the center of the applet area. Any assistance or advice would be appreciated. -- Robert Coie Implementor, Intrigue Ltd.
Re: bug - system clipboard does not work
Hi Duncan-
I can't quite get your modifications to make Steve's app work, but
that's not important. It's not really difficult to paste _inside_ a
Java application. I think what Steve Zara was doing was highlighting
text in some (say,) non-Java application, and thus then pasting that to
the Java app from the system clipboard. In that case one receives the
"X11Selection" error I discussed in my previous post, which I discovered
debugging a problem with a CoreJava example.
Say I highlight a couple of words in your e-mail and then use the paste
button in Steve's java application (with your mods), then I get:
-
Exception occurred during event dispatching:
java.lang.NullPointerException:
at
sun.awt.motif.X11Selection.isDataFlavorSupported(X11Selection.java:223)
at clipboard$2.actionPerformed(clipboard.java:53)
at java.awt.Button.processActionEvent(Button.java:257)
at java.awt.Button.processEvent(Button.java:230)
at java.awt.Component.dispatchEventImpl(Component.java:1781)
at java.awt.Component.dispatchEvent(Component.java:1708)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:81)
i.e., more or less what Steve was getting.
Whereas, if one makes the change to (gutting of!) his button method as I
mentioned:
-
...
b2.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e)
{
Transferable data=Clip.getContents(this);
//System.out.println("data is: "+data);
String result = "";
try {
result =
(String)data.getTransferData(DataFlavor.stringFlavor);
}
catch (Exception ex) {;}
t2.setText (result);
t1.setText (result);
}
});
...
---
a paste of some non-Java stuff works (shows up in both areas.)
Matters are a bit confused here, IMO because there's not a lot of
agreement on what's being attempted. ;-)
FWIW.
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Duncan Roe wrote:
>
> The application now works for me after changing 2 lines. At least, after Copy of
> slected text in pane 1 and "Paste", both panes display the text and nothing else
> - was that the intention?
>
> Using jdb, I found that the mime-type of the message was "text/plain;
> charset=unicode", which Transfer's getTransferData method didn't recognise,
> therefore returning null.
>
> The second problem was that once getTransferData returned a non-null object, the
> cast of it to StringReader caused a runtime exception. A cast to String is OK
> however.
>
> The changes are appended. Why it worked as-is on the other platforms is another
> question.
>
> -Duncan
[major snip of Steve Zara's code, to which was appended the error msg:]
> > The stack trace is:
> > Exception occurred during event dispatching:
> > java.lang.NullPointerException:
> > at sun.awt.motif.X11Selection.isDataFlavorSupported(X11Selection.java:223)
> > at clipboard$2.actionPerformed(Main.java:53)
> > at java.awt.Button.processActionEvent(Button.java:254)
> > at java.awt.Button.processEvent(Button.java:227)
> > at java.awt.Component.dispatchEventImpl(Component.java:1764)
> > at java.awt.Component.dispatchEvent(Component.java:1704)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
> >
[snip]
>
> ---
>
> Name: t5
> Part 1.2 Type: Plain Text (text/plain)
>Description: Context diff of changes
JDK 1.2??
Hi, I just wanted to ask if you already know when the Linux/Intel port of JDK1.2 will be available. I would prefer to continue working under Linux than get all the tools I need for NT ... Regards, Robert *** What this country needs is a good 5 dollar plasma weapon. *** _email: [EMAIL PROTECTED] /_)_ / __ __ 7 //_ _ __ __ __ or: [EMAIL PROTECTED] / \(_)/_)(- / / /\(_)_\(_// (_/ http://www.ifs.tuwien.ac.at/~rkosara/ *** Student of Computer Science and Medicine in Vienna, Austria, Europe *** ***
Re: Yeah! Web based threaded messaging is best (WAS: Re: [ATTENTION]: Mailing List Changes
Web based is the worst idea. I would much rather the messages continue to fall into my mailbox or a newsgroup than I have to load up a browser and go get them. If it moves to a web site, I won't move with it. Bob McConnell N2SPP At 07:06 PM 1/11/99 -0800, blaise toad wrote: >Like paul proposes, I honestly believe web based threaded discussion >are the best (a la slashdot). > >Newsgroup has ... nahh!! > >yeah I guess that would be cool. > >blaise > >(BTW thanks for many years of support to the bd folks) > > > > >_ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >
RE: [ATTENTION]: Mailing List Changes
Alex, There are several, both commercial and open source. At least two of the newsgroups I follow are gatewayed from mailing lists. It shouldn't take too long at dejanews to find the software involved and possibly find a friendly gateway server. Bob McConnell N2SPP At 01:25 PM 1/12/99 -0500, Alex Chaffee wrote: >> > Newsgroups have a different audience and accessing method. I, for one, >> > would probably stop following this list if it became a newsgroup. > >Slightly off-topic: > >Newsgroups and mailing lists are so similar technically. Hasn't anyone >written a free, stable two-way bridge between email and nntp? I'd love to >keep subscribing to the list digest, but be able to use a news reader to >browse the archives... > >Just a thought - > > - Alex > > >
Re: applet access form data?
If you're using Netscape, you can use LiveConnect to talk to JavaScript
from a Java applet and vice-versa.
In your applet you'll need to do something like this:
import netscape.javascript.*;
import java.util.*;
public class MyApplet extends java.applet.Applet {
JSObject window;
Hashtable formHash = new Hashtable;
public void init() {
super.init();
// enable communication with the browser, if necesary
window = JSObject.getWindow(this);
// now you can call a JavaScript function with something like:
// window.call("someJavaScriptFunction", someParameter);
}
// add public methods accessible to JavaScript in HTML page...
public void setFormData(String elementName, String elementValue) {
formHash.put(elementName, elementValue);
System.err.println(elementName + ": " + elementValue);
}
}
Then, in your HTML page, you'll need some JavaScript to talk to the
applet:
function sendFormData() {
// assuming you only have one applet in the page...
var client = document.applets[0];
for (var i=0;i can java applet read and write data form or to a form of HTML?
> How to do? Please tell me.thank
>
Can't find your port.
Hi , Where can we find your JDK 1.16 port? Much appreciate yor help! Thanks.
Re: Minimum configuration for JRE use?
John Summerfield wrote: > On Sat, 30 Jan 1999, Scot E. Wilcoxon wrote: > > > Anyone have an estimate of the minimum configuration > > needed for the Linux JRE? That is, what's the smallest > > system which can run Linux Java programs, not the JDK? > > (I happen to be wondering about 486 12M RAM/20M disk > > at the moment) > > I'm running jre on a 486, 16 Mb w/o problems. No gui though (it's not > needed for the tasks I want done). I have a 486dx33 8 Mb macine here: I > expect that would do the same tasks (but less quickly as the CPU's slower). > > 20 Mb disk will be a problem: I'm not even sure you can get a reasonably > functional Linux system in so little. If you're on a LAN you can load java > across it without difficulty. I'd like to comment on this point and John Summerfield's other email on this topic this morning. Here John says if you're networked you can load java class files from someplace else -- true enough, just point the java.rmi.server.codebase at the machine with your application classfiles. However, you will need some minimal java installation on the local machine to run the stub that loads everything else. I have found that even cutting out AWT and other unneeded stuff, the remaining classes.zip is still about 2 MB. Oh, well. But in John's other message, he recommends using jikes for compiling. I tried this, and some of the class files cause verification exceptions when they are loaded across the network -- the problem doesn't appear if the classes are loaded locally, since verification is turned off (by default) for these classes. Verification failure is a known jikes bug. So you might have to bite the bullet and use javac to compile if you want to load remote classes. So far as I can tell, the bytecodes are correct and the verification failure is the only problem, but I'm not sure. Hope this helps, Robert Dodier
Re: bug - system clipboard does not work
Duncan Roe wrote: [snip-stuff about changing Zara's paste method...] > > Not for me! I don't see data from the system clipboard, even after making the > above change. And with the 2 lines I changed earlier, it still copies and pastes > data that is highlighted in the app. > Hi Duncan- Whoops! I see what's happening. You have to highlight some non-Java material, say, in Netscape mail, _then_ use Netscape "copy". Then the stuff goes onto the system clipboard, whence it comes off into Zara's amended application on hitting paste button... I think my mistake in a prior e-mail is due to the fact that I did this copy a while back in my editing, and that stuff then stayed on the clipboard. So, I was wrong, it is not enough to just highlight some new material to put it on the system clipboard. The essence of what I am saying, discovered by working with a Ch. 6 Core Java data transfer example, is that in Windoze, apparently (haven't really tried it, but assume Core Java authors have), stuff goes on and off the system clipboard as it is specified mime-wise, tho you can only essentially transfer strings at this point in time. (The Core Java example base64 encodes an image as a string, then transfers it via the system clipboard.) But in X, if you put something _on_ the system clipboard with your own mime type, it always comes _off_ as an X11Selection. Now is that absolutely clear? What did I say, anyhow? ;-) Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: JavaLinux for servlets
David Harvill wrote: > Overall, the servlets do not use more system resources. CGI has to spawn > an entire new process (with full memory overhead) for each incoming > request. Java starts up the process (and memory overhead) only once, and > simply gives out a new Thread to handle the requesting. > > -dave > In addition to the above - portability. I just finished a complete a servlet solution for a BIG company on my dinky pentium 75 linux laptop (apache/jrun). The installation on their site (Solaris/NES/JRun Pro) was MINIMAL with no environment/configuration changes except for the addition of the path to the new servlet. I just uploaded the classes and html templates and updated the jrun configuration file. > > On Tue, 16 Feb 1999, John Goerzen wrote: > > > On Tue, Feb 16, 1999 at 04:34:03PM -0800, Kevin Hester wrote: > > > > But what techincal advantage do they really give? Java is slower, uses more > > system resources, etc. > > > > John > > > > begin:vcard n:Ritchy;Robert x-mozilla-html:FALSE org:BDM Denver adr:;;1999 Broadway - Suite 2000;Denver;CO;80202;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development TL x-mozilla-cpt:;2 tel;work:303-672-8917 / 247-1150 ex 8917 fn:Robert Ritchy end:vcard
Unsubscribing
I've been replying to individuals about unsubscribing from this list but I'm beginning to feel that there are a lot of poor souls out there with the same "hacker" problem. Since I haven't seen a public mailing about this in awhile - here goes my best shot (please correct me if I'm wrong): If you're no longer interesting in this mailing list, just send an empty mail to [EMAIL PROTECTED] or [EMAIL PROTECTED] with the subject: 'unsubscribe'. NOT in the body of the message - the subject. Rob begin:vcard n:Ritchy;Robert x-mozilla-html:FALSE org:BDM Denver adr:;;1999 Broadway - Suite 2000;Denver;CO;80202;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development TL x-mozilla-cpt:;2 tel;work:303-672-8917 / 247-1150 ex 8917 fn:Robert Ritchy end:vcard
Re: Who to make templates?
I completed the project last summer and we wrote our own parser which recognized SSI-like tags. Since that time I've realized that there are better ways of implementing that type of solution. >From what I can tell, the options for "expanding" HTML pages with dynamic data are as follows: Web server-dependent SSI tags Web server specific scripting languages (Netscape/LiveWire, Microsoft/Active Server Pages, etc.) Application Servers usually provide their own template schemes (NAS, WebLogic, etc.) JSP (Java Server Pages) seems to be gaining in popularity And finally, (my preference) - XML based templates. You can create a completely portable and customizable template engine that's not dependent on your product choices. Contrary to some, I think that portability is important for web server apps - especially if you want to use them again with different solutions/environments. So, if I did it again (and I didn't have an App Server handy), I would use one of the several, freely available, XML parsers to implement a XML/DOM/SAX-like solution. I would not use JSP (embedding javabeans and related tags into the HTML file) because I believe that a web designer would be the person maintaining those pages, not a developer. With JSP this web page designer would have to know about the database instance name/location, javabean name/parameters and other implementation specifics. IMHO - the presentation layer should be *completely* separate from your logic. I sure hope this doesn't spark another heated debate. If I'm wrong about anything or anyone has a different opinion, please correct me nicely ;>) delicate self esteem - Robert Marcel Ruff wrote: > Hi > > you wrote about servlets and html-templates. > What possibilities are there to make html-templates > and where is there a good parser to build the final html file > from the template? > > thanks, Marcel > > -- > Marcel Ruff > [EMAIL PROTECTED] > http://www.lake.de/home/lake/swand/ begin:vcard n:Ritchy;Robert x-mozilla-html:FALSE org:BDM Denver adr:;;1999 Broadway - Suite 2000;Denver;CO;80202;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Software Development TL x-mozilla-cpt:;2 tel;work:303-672-8917 / 247-1150 ex 8917 fn:Robert Ritchy end:vcard
Re: More evil from Microsoft [Off topic]
The first impression I have is that it is a dumbed down version of C++ made to look like Java, but not be Java so as to avoid any further entanglements with Sun. I am waiting to see if Micro$oft is really arrogant enough to drop their J++ and replace it with this new toy. Bob McConnell N2SPP At 10:09 AM 2/18/99 +, Dimitris Vyzovitis wrote: >"Harold G. Andrews II" wrote: > >> When I looked at javalobby for the information regarding the JDK 1.2 Source >> Release, I noticed another article about a new programming language >> Microsoft is contemplating to get itself out from the litigation it's >> currently in with Sun. Thought you might enjoy reading the story >> yourselves. Enjoy >> >> http://www.usatoday.com/life/cyber/zd/zd6.htm >> > >This their chance to commit suicide... Even windoze people won't use it, and >it will pass in swee oblivion like minix... > >Dimtris > > > >
Re: Multi-Threading: Preemptive?
>Any sugestions are welcome, and are greatly appreciated. Well, my suggestion would be to have the array-sorting class listen for changes of the point, and only start the thread that does the sorting when that point moves (or a new element is inserted into the array). This way, you will not have any multi-threading problems, provided the point doesn't move too often. Additionally, cpu usage will go down. Multi-threading is still a good idea, since the point-moving-function won't be blocked until the sorting has finished. That's what I would do based on how I understand the problem. But maybe I just didn't understand it ... because I don't understand why the sorting thread doesn't run at a lower priority in the first place (since you said "Creating a thread to sort the array as resources permit seemed a good way to go." - that sounds like you'd want the sorting thread to get any spare cpu time (hence lower priority)). Regards, Robert *** He is truly wise who gains wisdom from another's mishap. *** _email: [EMAIL PROTECTED] /_)_ / __ __ 7 //_ _ __ __ __ or: [EMAIL PROTECTED] / \(_)/_)(- / / /\(_)_\(_// (_/ http://www.ifs.tuwien.ac.at/~rkosara/ *** Student of Computer Science and Medicine in Vienna, Austria, Europe *** *** -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Multi-Threading: Preemptive?
Ok, what happens if the point moves again before the sort is complete? Do you complete that one, or terminate and start over? If you terminate and start over, what happens if the sort never gets out to some points? I'm not trying to be a troublemaker, just wondering what the constraints of the problem are. Bob McConnell N2SPP At 05:12 PM 2/24/99 +0100, Robert Kosara wrote: > >>Any sugestions are welcome, and are greatly appreciated. > > Well, my suggestion would be to have the array-sorting class listen >for changes of the point, and only start the thread that does the >sorting when that point moves (or a new element is inserted into the >array). This way, you will not have any multi-threading problems, >provided >the point doesn't move too often. Additionally, cpu usage will go down. > Multi-threading is still a good idea, since the point-moving-function >won't be blocked until the sorting has finished. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Multi-Threading: Preemptive?
On Wed, 24 Feb 1999, Robert McConnell wrote: > Ok, what happens if the point moves again before the sort is complete? > Do you complete that one, or terminate and start over? If you terminate > and start over, what happens if the sort never gets out to some points? Interesting question ... but that probably depends on the problem. I would guess that the sorting doesn´t make much sense if it isn´t fast enough to complete before the point moves again (at least half the time or so). Because if it is too slow, the array will be unsorted most of the time! In that case, you´d need a better algorithm or faster JIT or machine. I´d guess that Chris doesn´t sort the array just for fun, but wants to use the values in it for something - so a "sorted" state needs to be achieved every once in a while. Using a listener, you could also have a flag indicate whether or not the array is sorted at the moment, which is set to false as soon as the point moves. You can´t do that when the sorting algorithm runs all the time. But this is already going off topic for this list (albeit an interesting question, I have to say ...). Best, Robert *** Try to value useful qualities in one who loves you. *** _email: [EMAIL PROTECTED] /_)_ / __ __ 7 //_ _ __ __ __ or: [EMAIL PROTECTED] / \(_)/_)(- / / /\(_)_\(_// (_/ http://www.ifs.tuwien.ac.at/~rkosara/ *** Student of Computer Science and Medicine in Vienna, Austria, Europe *** *** -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Web based database
I am attempting to put together a web based database package for a non profit venture. It will run off of RH 5.2, Apache 1.3, MySQL, and JRun using servlets. I have all of the above pieces put together except the servlet sdk. I downloade d the one listed on Sun's site (under Solaris) but I can't compile with it. I noticed in the file name for the tar archive it says Sparc. Is this the wrong package to use with Intel/Linux? The only other download I saw was for Win boxes and I have gotten that one to work successfully off of an NT box with SQL Server, JRun, and IIS. That is not an option for this new project though. Any helpers? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Slow loading on AMD Elan 486
At 12:10 AM 3/4/99 -0800, Kevin Ryan wrote: >The 1.1.7v1a JDK runs great on my AMD DX4-100 w/32Mb RAM. > >Since one can get something roughly 20x as fast as my machine for $500 >these days, I'm not sure I understand why agonizing over the JDK's >performance on a 486/33 is worthwhile. > Maybe because many of us have better uses for $500 than replacing hardware that is more than acceptable for everything else we do with it? I for one will be in that position for at least another five years until my youngest child has finished college. In the meantime, I have half a dozen 486/33's and a 486/100 that can handle all of the usual chores. It would be nice to be able to at least learn Java using the same hardware. Bob McConnell N2SPP -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Does RMI work in jdk1.1.5v7/Red Hat 5.0?
Works for me with jdk1.1.5v7 (didn't touch your stuff, just ran it): - [user@ravel rmi-prob]$ java jec.ServerImpl & [2] 5952 [user@ravel rmi-prob]$ attempting to bind... binding succeeded [user@ravel rmi-prob]$ java jec.ServerTest looking for server... found the server. Result: The time is 18-May-98 -- Bob L. P.S. I've got RH5.0 running on a Pentium 120MHz, glibc-2.0.7-7. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/ -- John Collins wrote: > > Stephen Wynne wrote: > > > In message <[EMAIL PROTECTED]>, John Collins writes: > > > > However, I can't get past the attempt to bind to the rmi registry. This > > code works on both NT and Solaris, and has been exercised fairly > > extensively. > > > > John, > > > > I had no problems registering and running a simple RMI example on > > 1.1.5v5. If you could send me a small RMI client/server pair that > > demonstrates your problem, I'd check it out for you on my RH 5.0 > > setup. > > > > I hesitate to make any promises because you've clearly done more work > > on RMI than I have, and you would have tried all the obvious things. > > However, I do have Java source here and can look at it from that > > angle. > > OK. I'm still stuck. I've attached a tar file that exhibits the problem. It's > about as simple as an RMI app can be. > > The problem: > When I start up an RMI server, I get the following exception at the point > where I do the Naming.rebind(name, server); (This is the printout from > exception.printStackTrace();) > --- > java.rmi.ServerException: Server RemoteException; nested exception is: > java.rmi.AccessException: Registry.rebind > --- > > The environment: > Red Hat 5.0/Pentium II, jdk1.1.5-v7. I have the same problem both with > glibc-2.0.7-6 and glibc-2.0.7-7. I'm running the example locally, and it > doesn't matter whether I'm logged in to the net or not. > > The code: > There's an interface called jec.Server, a server class called jec.ServerImpl, > and a client class called jec.ServerTest. I've supplied both the sources and > the .class files. My test on NT involved moving over just the .class files > from Linux, and that worked, so I deduce the problem is in the Linux runtime. > > To run the example. > - Install the class files in the CLASSPATH, or install them and modify the > CLASSPATH to see them. > - Start the rmiregistry > - In one shell, do java jec.ServerImpl > - in another shell, do java jec.ServerTest > The result should be that the line Result: gets printed out, > after which the client exits. On Linux this isn't happening. > > So, now the question is, did I do something really stupid, or is there > something wrong with my environment that I'm not seeing, or did I turn over a > rock that needed looking under? Thanks. > > John Collins > University of Minnesota > [EMAIL PROTECTED] > > --- > > Name: rmi-test.tar >Part 1.2 Type: Unix Tape Archive (application/x-tar) > Encoding: base64
Re: signed Applets
Martijn deBoer wrote: > > Has anyone yet got the signed applets example listed at > http://java.sun.com/security/signExample/index.html > running under jdk 1.15 or jdk 1.13 under linux? > > I get the following error: > javakey -ic Duke Duke.x509 > Error: io error[extra DER value data (constructor)] > > Any ideas, suggestions? > Other workarounds? > Thanks,Martijn de Boer It all works for me out of the box with jdk1.1.5v7. The unsigned applet throws a security exception, while the Sun signed applet writes the file to /tmp/foo: - [user@ravel duke]$ more /tmp/foo Cats can hypnotize you when you least expect it - HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: [Q]: native method
[posted & e-mailed] Takeru Tamayama wrote: > Hi, >I want to use IrDA on linux & java. >but, I have a problem in making native method. > This is very easy test program, bat don't work. > My jdk is jdk-libc5-1.1.5-v7 > > I did following commands. > > 1.javac HelloWorld.java > 2.javah -jni HelloWorld > 3.gcc -fPIC -I/usr/local/java/1.1.5/include > -I/usr/local/java/1.1.5/include > -c HelloWorldImp.c > 4.gcc -shared -Wl,-soname,libHelloWorld.so.1 -o libHelloWorld.so.1.0 > HelloWorld.o > 5.ln -s libHelloWorld.so.1.0 libHelloWorld.a > > following is the source and ERROR message. > Does anyone have some further information or hints for me what to do ? > > Takeru Tamayama [EMAIL PROTECTED] [snip-code + error msgs. (total dump!)] Hi- I am using JDK1.1.6 and your HelloWorld works, with a few changes: 2. gcc -fPIC -I/usr/local/jdk1.1.6/include -I/usr/local/jdk1.1.6/include/genunix -c HelloWorldImp.c [you need /genunix] gcc -shared -Wl,-soname,libHelloWorld.so.1 -o libHelloWorld.so.1.0 HelloWorldImp.o [must be HelloWorldImp.o] 5. ln -sf libHelloWorld.so.1.0 libHelloWorld.so [if I use libHelloWorld.a (!), I get the reasonable msg. that it can't find the shared library] Result: [user@ravel native]$ java HelloWorld Hello World ! HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Re: install JDK without AWT ? [ no x11 ]
[posted and e-mailed] Patrick Dockhorn wrote: > hi, > > I am trying to get JDK, i.e. servlets up and running on my linux machine. > From what I understand, this requires X11, as the AWT package that comes with the >JDK obviously requires this > library. > > Is there a way to install the JDK without the requirement of having the X11 libs, >i.e. to install it without AWT > support? > > Your help is highly appreciated, > > Patrick > Patrick Dockhorn Hi- I hear that if you run servlets that make AWT calls (e.g., transfer images) you still require X. However, you can run a dummy X server, such as Xvfb: --- XVFB(1) XVFB(1) NAME Xvfb - virtual framebuffer X server for X Version 11 SYNOPSIS Xvfb [ option ] ... DESCRIPTION Xvfb is an X server that can run on machines with no dis- play hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. ... --- There's one other such, but I can't offhand recall its name. HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
JDK 1.1.6 -- immediate segmentation fault (RH 5.0)
Hello all, I wonder if someone has run into this problem. I have installed JDK1.1.6 from the .rpm obtained from blackdown.org. I am running Linux 2.0.32 (RH 5.0), and although RH 5.0 came with glibc.so.6, I have gone ahead and installed glibc.so.7. (Same problem w/ both versions of glibc; I've also tried JDK 1.1.5 and I have the same problem.) What happens is this: when I try to execute java (or javac -- I suppose it is only executing java as well), before anything happens I immediately get "segmentation fault". This makes me think there is something strange about my installation. FWIW I installed RH 5.0 just a few days ago, so most of the stuff is straight off the installation CD. libc is different, and I might have installed one or two other packages. I also installed kaffe (after having the "segmentation fault" problem) and it runs OK, except that there are some classes which are not implemented in kaffe's distribution (Klasses.jar) -- so long as the program I am trying to run uses only thoses classes in Klasses.jar, I;m OK, but if I try to supply the remaining classes in Sun's Solaris classes.zip (I got this idea from the kaffe website, I think) then kaffe dies. Does anyone know how best to supply non-kaffe classes? Well, I would be happy if I could get either java or kaffe running smoothly. What I really need is to run RMI programs, but I'll deal with RMI-specific problems (doubtless there will be some :) when they occur. Thanks in advance for any help you can offer. --Robert Dodier
update: JDK1.1.6 segmentation fault fixed by glibc 2.0.7
Hello all, I wrote a few days ago about the problem I was having w/ JDK1.1.6 from blackdown.org. When I executed java, a segmentation fault would happen immediately. I have a RH 5.0 installation. Someone suggested that I download the most recent glibc package, which is 2.0.7, to replace the one which came w/ RH 5.0, which is 2.0.6. At first that didn't help any -- but that's apparently because, after finding that JDK wouldn't run, I installed kaffe. Which did run, although kaffe doesn't include a number of classes, so it's not a complete solution in itself. So after blowing away kaffe, java from the JDK runs fine! I'm very happy about this. I will be doing some RMI programming. (Distributed belief networks -- in case you want to know.) Thanks for the helpful hints. I'm posting this in the hope that this note will help someone in a similar situation. --Robert Dodier
Re: Java and Apache
While we're on the topic of Apache and Java, here's a question: Using the Jserv module, you're supposed to be able to set init arguments for individual servlets, and globally for all servlets. Here's what the Jserv documentation says: You can give that servlet init arguments by using a property like this [in your servlet.properties file]: servlet.servletname.initArgs=arg1=val1,arg2=val2,... I've got the ServletProperties directive in my httpd.conf file, and a line like the following in my servlet.properties file. However, this doesn't seem to work for me at all. The ServletConfig.getInitParameterNames() call always returns null. Anybody here ever run into this before? Sorry about the off-topic post, but the java.apache.org mailing list archives aren't very search-friendly. Any help would be much appreciated. -Rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Parameter value weirdness
HttpServletRequest.getParameter("name1") should return "" in the case of a
URL like http://whatever.com/servlets?name1=&name2=someVal
Regardless, this is still problematic, since you probably want that value
to be null.
What I've done to get around this is provide my servlets with the
following method:
private String getParameter(HttpServletRequest req, String parameterName)
throws NullParameterException {
String value = req.getParameter(parameterName);
if ( (value == null) || (value.equals("") )
throw new NullParameterException(parameterName);
return value;
}
And define a NullParameterException with a method like:
public String getParameterName()
and a constructor like the one used above:
public NullParameterException(String parameterName)
so that you can later find out which parameter was not passed. It comes
in handy when you're checking for required form fields and the like.
Hope this helps.
-Rob
On Tue, 13 Apr 1999, Jason Proctor wrote:
> I'm seeing some weird behaviour with parameters that are passed to servlets
> as blank strings, ie in a URL such as
> http://machine/zone/servlet?param1=¶m2=. These parameters end up having
> the value "null" (ie a 4-character string) rather than either a blank
> string or a null pointer, which is what I would expect.
>
> Here's the code -
>
> Enumeration parmNames = inRequest.getParameterNames();
>
> while ( parmNames.hasMoreElements() )
> {
> String key = (String) parmNames.nextElement();
>
> String value = inRequest.getParameter( key );
>
> // value == "null" here
> // in case where parameter is passed as ?name=&name=value
> }
>
> Any ideas anyone? Thanks in advance.
>
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Parameter value weirdness
I hear you loud and clear. There's really no way that you could be
getting "null" from that method invocation (unless of course, your query
string looks like http://...?name1=null).
Printing the return value of getParameter("name1") will print "null" or
"", however.
Are you using the JServ module? Send me a test servlet.
-Rob
On Wed, 14 Apr 1999, Jason Proctor wrote:
> I think you may be misunderstanding me. In the situation where I'm
> processing a request for a URL like
>
> http://whatever.com/servlets?name1=&name2=someVal
>
> getParameter (name1) should return either a null pointer or a blank string.
> Right now, I'm getting the string value "null", ie a four character string
> containing the characters 'n', 'u', 'l', 'l', as though somewhere someone
> is doing an implicit string conversion (eg String s = "" + null will give s
> = "null").
>
> This is wrong, isn't it?
>
>
> >HttpServletRequest.getParameter("name1") should return "" in the case of a
> >URL like
> http://whatever.com/servlets?name1=&name2=someVal
> >
> >Regardless, this is still problematic, since you probably want that value
> >to be null.
> >
> >What I've done to get around this is provide my servlets with the
> >following method:
> >
> >private String getParameter(HttpServletRequest req, String parameterName)
> >throws NullParameterException {
> > String value = req.getParameter(parameterName);
> > if ( (value == null) || (value.equals("") )
> > throw new NullParameterException(parameterName);
> > return value;
> >}
> >
> >And define a NullParameterException with a method like:
> >public String getParameterName()
> >and a constructor like the one used above:
> >public NullParameterException(String parameterName)
> >so that you can later find out which parameter was not passed. It comes
> >in handy when you're checking for required form fields and the like.
> >
> >Hope this helps.
> >
> >-Rob
> >
> >On Tue, 13 Apr 1999, Jason Proctor wrote:
> >
> >> I'm seeing some weird behaviour with parameters that are passed to servlets
> >> as blank strings, ie in a URL such as
> >> http://machine/zone/servlet?param1=¶m2=. These parameters end up having
> >> the value "null" (ie a 4-character string) rather than either a blank
> >> string or a null pointer, which is what I would expect.
> >>
> >> Here's the code -
> >>
> >> Enumeration parmNames = inRequest.getParameterNames();
> >>
> >> while ( parmNames.hasMoreElements() )
> >> {
> >>String key = (String) parmNames.nextElement();
> >>
> >>String value = inRequest.getParameter( key );
> >>
> >>// value == "null" here
> >>// in case where parameter is passed as ?name=&name=value
> >> }
> >>
> >> Any ideas anyone? Thanks in advance.
> >>
> >>
> >>
> >>
> >> --
> >> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> >> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >>
>
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
javax.swing.preview not found
Trying to compile FileChooserExample.java from http://java.sun.com/products/jfc/tsc/archive/tech_topics_arch/file_chooser/file_chooser.html import javax.swing.preview.*; returns a "not found in import" message. Is this something new that hasn't found it's way into the blackdown release? -- Bob Williams, http://bob.usuhs.mil/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JARs and performance...
Trying to optimize JAR performance. We have a JAR that is 700K using JDK1.1.7 and are looking for ways to improve the performance when using it. At this time we cannot migrate to Java2 and utilize the JArURLConnection. Does anyone have any suggestions? We would like to split the JAR into two JARs: 1 for GUI and one for CORE components but have run into difficultly due JAR loading at the 1.1 level. Additinoally, we have looked into client side install with class date checking sort of a Smart Update... Any past experience in this area would be helpful... -Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JARs and performance...
Thanks for the reply. I have thought about pulling the class out of 1.2, but was not certain of the affects. Additionlly, I thought of just rewrting their code in 1.1.7. Either way that is an option. The Jar will consist of classes the will be run as an application/applet/serialized bean. But for the performance part the applet is the big concern. Such a big jar, start off with big problems. Do you think the 1.1 security model will hamper a ClassLoader like that? -Bob On Thu, 6 May 1999, Ted Neward wrote: > Robert-- > > >Trying to optimize JAR performance. We have a JAR that is 700K using > >JDK1.1.7 and are looking for ways to improve the performance when using > >it. At this time we cannot migrate to Java2 and utilize the > >JArURLConnection. Does anyone have any suggestions? We would like to > >split the JAR into two JARs: 1 for GUI and one for CORE components but > >have run into difficultly due JAR loading at the 1.1 level. Additinoally, > >we have looked into client side install with class date checking sort of a > >Smart Update... > > > >From the context of what you're saying, I'm guessing that you're running a > Java application and not an applet on the client. What I can suggest is > that you write a custom ClassLoader that uses java.net.URL to connect to a > given web server, check dates (against the .jar in your local path), > download the .jar if necessary, then proceed with normal class loading > (which is probably your "SmartUpdate" idea in a nutshell). > > Are your jars compressed? JDK 1.1 had a problem with compressed .jars, as I > recall, but I'm not 100% sure of that. > > Alternatively, I don't see any reason why you couldn't pull the source for > URLClassLoader out of 1.2, put it into your own "java2" package, and use it > within java 1.1. You'd have to make a few source modifications to > adjust for the changed ClassLoader rules in 1.2, but that shouldn't be > rocket science. > > >Any past experience in this area would be helpful... > > > I haven't done this precise thing, but I've done a lot of work with > ClassLoaders; I'll be happy to help as best I can. > > Hope any of this rambling makes sense or helps out > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: A problem.
Not sure about your first question but later, referring to the classes.zip... Look for rt.jar or zip and il18.jar or zip (something like that, I am not in a position to look at the directory, and since I don't look there that often I can't remember exactly). But anyway it is in some form of the above. -Bob On Fri, 14 May 1999, Chen Xuan wrote: > Hi, > > I have downloaded the JDK1.2 for Linux. But, when I am trying to use the > java to run a programm. It says can not find libstdc++.. > > But, if I set the LD_PRELOAD variable, I can not use any shell commands, > every time it will give segment error, core dump.. > > Could you please tell me how to fix it? I need it urgently. Thanks a > lot. > > BTW, why I can't find the classes.zip under jdk1.2/lib/? We do not need > it anymore? > > cheers, > Chen, Xuan > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2 and NetBeans or Simplicity???
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. Kontorotsui wrote: > 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. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to help???
I have virtually no time, but would like to know how to help the Blackdown team. I'm not sure that I could help. I just started looking on the web paged expecting a todo list or something. Not seeing a "How to Help" page I though someone in this list could get me started. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: trouble installing jdk1.2
> Von: Balaji Sundararajan <[EMAIL PROTECTED]> > An: [EMAIL PROTECTED] > Betreff: trouble installing jdk1.2 > Datum: Freitag, 17. Juli 1998 10:14 > > Hi, > > I'm new to Linux. I've installed jdk1.2 from blackdown using bz2,tar > and specified > all the lib*.so file paths(such as JAVA_HOME/jre/lib/i386/) in the > LD_LIBRARY_PATH.still when i run java (or other programs like javac, > appletviewer etc.,), i'm getting an error message saying > >error loading shared library libjvm.so. undefined symbol > __bzero. > You must download the version for glibc 2.0 I had the same problem with me SUSE 6.1 and java-glibc2.1 wbr ---- Robert Valentan LSS Leo Schleupen Systemanalyse GmbH Hetmanekg 1b, A-1230 Wien Tel: ++43/1/6998400 Fax: ++43/1/6998411 Mail: [EMAIL PROTECTED] WWW: http://www.lss.co.at -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Intermittent freezes with JDBC for Oracle805
Actually I have experienced some flakiness with the Oracle JDBC drivers under IRIX's JDK when using native threads, particularly when multiple thread were sharing the same DB connection. I think that is a legal thing to do, but maybe it is not. Peter Kovacs wrote: > The jdk1.2/demo/jfc/Table/TableExample2.java freezes after a short time when > used with Oracle's jdbc driver for Oracle 8.0.5. > > I suspect that this is a problem with JDK1.2 pre2 and not with the oracle > driver since the same demo runs in a stable manner with green threads. > > Is blackdown aware of the above mentionned problem of native thread version? > > Peter > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: PrintJob and JTextArea
Are you setting a background color by doing a fillRect()? We are doing the exact thing right now and are having problems with a different component GXLabel that looks ok on screen but prints the last thing drawn in the GXLabel. So if we have a label and fill the rect with a light grey and THEN do the drawstring we will overwrite the background just set with the fill rect. But the on screen graphics look fine. So I would say, look at the background you are printing. It might be the same situation, might not. If anyone knows of a way around this (Printing a GXLabel or other label with a background color) please let me know. -Bob On Fri, 30 Jul 1999, corey wrote: > > > Sorry if this is a little off the mark, but has anybody > had success using the PrintJob class to print the contents > of a JTextArea swing widget? > > I think I am doing everything right. I am setting the font > and color on the Graphics object returned from PrintJob > but all I get out of the printer when I use the drawString() > method on the Graphics object is a blank page! If I instruct > the printer popup to write to a file instead, I can see the > text in the file, but I can't display it with GhostView. > > Any suggestions? > > --Corey > > > > /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */ > /* AT&T NCS| [EMAIL PROTECTED] */ > /* Alpharetta, Ga 30005| [EMAIL PROTECTED] */ > /* (770)750-8071 | New rays from an ancient sun (JS) */ > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Calling Same Native method more than once.
I have call the same native method from several threads under several different JDK's and have not had any such problems. I am not sure that Blackdown's 1.2 with native threads is in the list of JDK's I have used. Not, that I think the JDK is the problem I just do not want to imply that I have tested this scenario. Robert Perry Jacob Nikom wrote: > I don't think there is any limitations on the number of calls of C routine. > I call my C routine from Java thousand times without any problem. Look > for something else - memory problem of threads. Do you call your routine > from the main tread or you created separate one? > > Jacob > > "Nagaraj S.B" wrote: > > > Hi all, > > Thanks for helping me in interfacing C with Java.I am facing a problem > > in executing my program(java) which calls a 'C' function. > > I am calling 'C' native method for every 10 secs in my 'java' program , > > but after first loop, my program(java) exits by giving > > SIGSEV 11* Segmentation violation . > > How to call same native method for more than one time ?. > > Thanks in advance, > > -- > > Nagaraj S.B. > > Bells Softech Ltd,Bells House,1036, > > 26th Main,4th 'T' Block, > > Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
File or class transfer over tcpip
I am in the mist of developing an RMI Update utility for clients. Like
most updaters they would download a small 30k(+-) java application that
would talk to an RMI server and decide what files (.class) the client
needed. It works like a charm but, the typical but word my classes when
used by the JVM either through security exceptions or are unreadable. To
transfer the class file we are using the following:
NOTE: FileDataInterface is just an RemoteInterface that returns the
byte array to the client so they may store it in the proper place with the
given name.
public FileDataInterface getFileData(String packageKey) throws
RemoteException
{
if (m_FileList.containsKey((String)packageKey))
{
FileInfo fi = (FileInfo)m_FileList.get((String)packageKey);
String loc = fi.getLocation();
System.out.println("Getting file: " + loc);
try
{
DataInputStream di = new DataInputStream(new
FileInputStream(new File(loc)));
int avail = di.available();
System.out.println("Available: " + avail);
byte[] data = new byte[avail];
di.readFully(data);
FileData fd = new FileData(data);
return fd;
}
catch (FileNotFoundException fn)
{
System.out.println("FileNotFoundException: " + fn);
return null;
}
catch (IOException io)
{
System.out.println("IOException: " + io);
return null;
}
}
else
{
return null;
}
}
Is there another way to transfer class files or other files for that
matter across tcpip that will not modify the file layout, just taking raw
data from one maching to another. Can anyone see what I might be doing
wrong.
-Bob
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: java + X11 memory leak
I agree with what you said about this memory being in the X-Server. In addition do you not get similar effects with other things in Java. For instance when I create an File there is also a structure somewhere the keeps track of infomation associated with the file discriptor. Also, in Windows where you create a JFrame somewhere this is a window...the VM's got a handle for it. These are not in the heap, they are system dependent and application may or may not have access to how much memory they use. Chris Abbey wrote: > But is that memory allocated out of the chunk of VM reserved as the HEAP? > I doubt it... I don't think it even blongs to the same process does it? > Seems to me that it would have to belong to the Xserver's process... in > the Xserver's address space and potentially on the Xserver's machine > (as in a different machine than the JVM). > > By the same token if I go into native code by way of JNI and malloc 28Mb > of main store, yes it comes out of the process address space that the JVM > is running in, but it does not come out of the *heap*. The only thing that > GC tracks in terms of memory usage is the amount of it's _reserved_ memory > (the current heap) has been _commited_; at least on any JVM I've ever seen > the guts of. > > p.s. [OT] I sure wish people would stop posting this "text/alternate" > stuff in public places... can a list serve be set to strip > that tripe out I wonder? > > cabbey at home dot net <*> http://members.home.net/cabbey >I want a binary interface to the brain! > Today's opto-mechanical digital interfaces are just too slow! > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Problem when using 1.2
Almost all of the work I have done with Java has been writing back end processes. I have had a great deal of success running these processes on Linux. So, this past week when I was brought into a team working on a large GUI in java, my first private endeavor was to watch it run on Linux. The applications seems to get through some of the start up and then just stop. I let it run for a couple of hours. During this time java was using about 35 percent of the CPU while X was using 50. The application runs fine under the various 1.2 JDK's I have tried on Windows. Now I do not expect anyone to try to debug our application from the small parcel of information I have handed out. However, I was wondering if there is anything I should watch out for. Maybe things you can get away with on the Windows JDK's but not on the Blackdown JDK or perhaps I have run into a problem with the Blackdown JDK. I would really rather this run under Linux and would appreciate any suggestions on where to start. Thank Robert Perry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem when using 1.2
I would like to thank everyone for there suggestions. However, I found changing window managers did the trick. I stumbled across this when I decided to let the Java application which was running on a Linux box across the building display on my O2 which was setting on my desk. (my laptop was stuck in NT and not available for linux at the time) It ran fine, except for some font and layout problems. After changing from Enlightenment to Window Maker it ran on the Linux box. I update Enlightenment with no improvement. I have not tried updating XFree86 yet. Speaking of Layout Manager problems. Is it just me or is Borland's XYLayout manager "Evil" in a can? I'm new to GUI in Java, but it seems like a bad path to go down. corey wrote: > > Resent-Sender: [EMAIL PROTECTED] > > > > Almost all of the work I have done with Java has been writing back > > end processes. I have had a great deal of success running these > > processes on Linux. So, this past week when I was brought into a team > > working on a large GUI in java, my first private endeavor was to watch > > it run on Linux. > > > > The applications seems to get through some of the start up and then > > just stop. I let it run for a couple of hours. During this time java > > was using about 35 percent of the CPU while X was using 50. The > > application runs fine under the various 1.2 JDK's I have tried on > > Windows. > > > > Now I do not expect anyone to try to debug our application from the > > small parcel of information I have handed out. However, I was wondering > > if there is anything I should watch out for. Maybe things you can get > > away with on the Windows JDK's but not on the Blackdown JDK or perhaps I > > have run into a problem with the Blackdown JDK. > > > > I would really rather this run under Linux and would appreciate any > > suggestions on where to start. > > > > Thank > > Robert Perry > > Robert, > > Try running with green threads instead of native threads. > That may solve the freeze problem but or course it will > cause your app to take a performance hit. :-( > > --Corey > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */ > /* AT&T NCS | [EMAIL PROTECTED] */ > /* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */ > /* (770)750-8071 | New rays from an ancient sun (JS) */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem when using 1.2
This sounds like a reasonable plan. I'll try it. Thank you. I'm happy to see a member of the JBuilder Development Team reading this list. Paolo Ciccone wrote: > On Tue, Aug 17, 1999 at 01:12:26PM -0400, Robert Perry wrote: > > > > Speaking of Layout Manager problems. Is it just me or is Borland's XYLayout > > manager "Evil" in a can? I'm new to GUI in Java, but it seems like a bad path to > > go down. > > XYLayout was created for a simple reason: to help in designing UI quickly. > Try this: use XYLayout, design your Frame then change the LayouManager to > GridBagLayout. Tada ! That's why we added XYLayout, as a transitional LM to > avoid setting all the parameters for GridBagLayout. Hope this clarify the > issue and yes, you are right, using a XY system is evil :). > > --Paolo > JBuilder dev. team. > Borland/Inprise -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Swing Problems
Are the swing classes supported in the blackdown port of the 1.2 JDK? I can write, compile and execute code properly if I don't use swing but anything that uses swing bombs with and a class not found error. This includes the demo's that came with the installation. Do I need to set a classpath specific for swing or do I need to download another package? TIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Jump and ArgoUML
*shrug* I suppose there is somewhat of a duplication. Im not sure of the license of argo. My project will be released with full open source. Personalyl, knowing universities, I dont trust them to come out with comething completely open. It could turn out that the project is largely for my own good. It is somewhat deflating to find that there is already another project out there doing what Im working on but competition is supposed to be a good thing. I can tell you already that my project has a very different focus. It is NOT a glorified drawing program. As a matter of fact, other then the placement of objects, I am not planniong on implementing drawing features at all. I have always believed that modeling tools were to heavy on drawing and not heavy enought on UML modelling, which is largely concerned with classifiers and their relationships to each other. I have never believed that a UML tool should have a focus on art. In fact many tools, Visio, Rational Rose, have so much emphaisis on drawing that the features of UML are BARELY enabled within them. Other tools are highly language specific, with many generic features of UML Missing. I am a senior software engineer professionally. I have found that most university based people have limited real life knowledge of professional software engineering. My tool will be disigned with the professional. I have glanced at the argo web page. First thing that occurs to me. THe documentation is barely there! No javadoc comments, just a laundry list of mehtods. No model to the program. You would think the software would have a model of at least itself. I know Jump will when released. Not very conducive to contribution. It looks very java centric, not general. It also looks more graphical then modelling. --rob - Original Message - From: Sean Chen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 11, 1999 1:22 PM Subject: Jump and ArgoUML > Hi Robert, > > Was just made aware of your project from the java-linux list. > > Are you familiar with ArgoUML http://www.ics.uci.edu/pub/arch/uml/ > at all? Would it be possible to integrate your work within it somehow? > > I just hate to see duplication of effort =) > > By the way, your makefile has a bug: if Jump.jar doesn't exist then jar > -umf will fail of course. > > . . . Sean. > > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Jump and ArgoUML
- Original Message - From: Rich Edwards <[EMAIL PROTECTED]> To: Robert Simmons <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 1999 6:44 AM Subject: Re: Jump and ArgoUML Prior to responding to you. a little poll for everyone. For the interface, would you all prefer a desktop interface with internal frames or a tab pane based interface. Since im working on infrastructure right now this is totally changable right now. > Hi Robert -- > > I just caught the end of this discussion, and didn't see any links to > more info on what you're developing (perhaps there aren't any yet). > I, like you, am a professional software engineer who hasn't had much > value for the drawing-based design tools -- too much effort to learn, > not enough payoff. I'm very interested by this project, as it seems > like a way to make UML more of a real-world design tool. > I know that feeling. =) UML is a conceptual tool that should provide all the information on a project that is needed to understand the project, not just a pretty drawing for inclusion into documentation. Further, it should have a very shor learning curve. Im even debating including a power point presentation tutorial on how to use it with the documentation. > We have been using UML to an extent on our latest project, but only as > a means of standardizing on symbols and concepts. However, what we > have found is that UML doesn't do a very good job at modeling > distributed designs (i.e. objects defined in OMG-IDL, and living in 15 > to 20 separate processes). Have you considered how to handle such > distributed designs with your tool? To me, that is what most of the > other tools are really lacking -- they seem geared towards the > its-all-one-big-program design model. Actually the focus in my Software engineering career is on CORBA based systems so you can be sure that I shall address those issues. Keep in mind that what I have in in the early stages. However it is progressing rapidly and I am counting on the thousands of developers out there to give it even more punch. Farfetched ? Yeah, thats what they said about emacs. You will notice that if you run make doc for the stuff I packaged up with the origination of this thread that you get FULL documentation. Novel idea. Contrast that with argos .. well I guess you could call it documentation, take a look at it. > > It's easy enough to describe an object-oriented design with simple > class diagrams, but where the rubber meets the road is when you begin > to design where the various objects will be deployed (e.g. in what > process, and on what machine). The UML would have you believe this > isn't really an issue (there isn't even a concept of a 'process', that > I'm aware of, and the so-called 'component' is a cumbersome, > non-intuitive symbol that is virtually unusable). Those of us > designing real systems know that object deployment is one of the key > design decisions that shapes a distributed design. Actually UML's backers do not believe this is a non-issue. Whomever told you that didnt really give you good information. There are a number of strategies for modeling CORBA based systems (ie: interface - implementation split) systems. Also there are a couple ways of modelling runtime structure in UML. But then again, I actually give seminars on UML so perhaps I know a bit more about that then some people. There are alot of people out there that would have you believe UML is just for class diagrams in a monolithic language. Not so. Certainly my project will take that into account. Further, it will be designed for use within a professional environment, with things like source control considered. > > Anyway, I'd like to hear more about your project. The extensibility > you're building into it sounds promising, and the fact that you're > going to be using the GPL makes it even more attractive. Yepper! Id rather be famous then rich =) I will be using it to instruct students of my seminars as well. Im tired of making them swim through Rational Rose which is unneccesarily difficult to use. My proudest moment will eb when the first person extends it. Remember KISS (Keep it Simple Stupid) =) I want it to be extensible and easy to understand. As a matter of fact for people that want to make their extension stick in the official package, If their extension is documented like argo, it wont get in the official release. I WANT people to understand the structure. > > Thanks, > Rich Edwards > > -- > Rich Edwards > Senior Software Engineer > Codonics, Inc. > email: [EMAIL PROTECTED] > web: www.codonics.com > voice: 330.665.1210 > fax: 330.665.1169 > -- __o > _ \<,_ "I ride my bicycle to ride > (_)/ (_) my bicycle." - Zen proverb > > >
Re: Peculiar problem
Its good that im not imagining things =) --rob - Original Message - From: Dallas C. Hockley <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 1999 4:19 PM Subject: Re: Peculiar problem > Rob, > > I just compiled and ran the framework you posted. I was able to > reproduce the bug, but no consistently. > > If I grew the desktop pane vertically only to start, any resizing > afterwards worked fine. If I had the app > close at a larger size than 640x480, the system worked fine. If I > resize before hitting new to a size larger than the 640x480, it locked. > If I did this after any resize outlined above that worked, it worked > fine. > > It's very spooky as a bug. I have seen a number of wierd items happen > with java 1.2 and linux, mostly relating to window positioning and > sizing. The Enlightenment window manager developers have boiled it down > to some pretty detailed points relating to hints from the Window > environment to Java, and some bad assumptions (their opinion) on Java's > windowing code. > > I'm not sure where the fault lies. If it's in the master window widget, > then the JDK team should be able to ferret it out very easily. If it's > in the aforementioned interface between windowing environment and the > JDK/JRE, I don't honestly know the solution. I haven't heard a digested > response from SUN or the Blackdown team on the issue. If they recognize > is as an issue. > > You may wish to try other window managers just to test. I found > enlightenment had the most glitches with Java, and I've had the least > with windowMaker. Your Mileage May Vary. :-S > > Dallas > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Const in java
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 result. ie:
void main {
Foo f = new Foo();
BarClass c = new
BarClass();
BarClass b =
g.getBar();
b = c; // DOH we just changed
bar inside of the f instance
}
Also it guarantees the following cant happen:
Foo::setBar(const BarClass const &bar) {
bar = new BarClass(); // DOH, just overwrote the
var outside the method
}
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
?
class Foo {
private BarClass
_bar;
public final BarClass&
getBar();
public setBar(final BarClass
bar);
}
Thanks for your time.
--rob
Re: ddd as a java debugger
Personally I use pldb. That is "println debugger" =) Im of the old school where I just toss printlns in code to tcheck values and see where it dies. With vi this process is viciously quick and there is rarey an issue I cant resolve with it. I started programming before all these tools came about and have found them to be mostly not worth the learning curve. But then thats just me, or is it ? =) --rob - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 1999 8:12 AM Subject: ddd as a java debugger > 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 trying to put together a debugging environment that is > 'satisfying'. So far I've tried BlueJ, Wipeout and jdb. Wipeout has a > lot of promise, but seems a little unstable. This could be because I > have only 32MB of memory on the system. jdb is very stable, but rather > tedious in command syntax and more than a little brief with respect to > documentation. I could not get BlueJ to even start up. > > Within the past couple of days I swapped messages with someone here on > the list regarding ddd. After mulling it over a bit I've decided I > oughtta give it a try. > > Can you anyone provide me with resources for configuration and use > under X on debian 2.0 linux/jdk 1.2? > > Thanks a Bunch, Folks =-) > > James > > > -- > It's not the size of the dog in the fight |James G. Stallings II > that counts, but rather the size of the | http://angelfire.com/id/videoranger > fight in the dog. | ''Live Long and Prosper'' > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Can we run Java app from a CD with Blackdown?
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 15, 1999 12:37 PM Subject: Can we run Java app from a CD with Blackdown? > Hi: > > We got a few questions on deployment with Blackdown. It would be > appreciated if someone could help. > > Q1: After we finish a Java application development on Windows NT 4.0 (Intel) > with VisualCafe 3.0, is it possible to include everything** on a CD, and let > user run the Java application from the CD on Redhat 6.0 Linux (Intel) > without any installation or file copy? > Should be able to. There are a few wierd bugs in the release but nothing major. As for installers, there are a couple of good pure java installers on the market. Install Shield makes one. Typically I find that a script is good enough expecially if everything is in a Jar. > ** "everything" includes: > - all class files or a JAR file of the Java application > - supporting files from VisualCafe 3.0 (they are said 100% pure) > - Blackdown JVM and supporting files Supporting files ? Hmm, I really reccomend oyu let the customer worry about the JVM. That is one of the few things about java that is platform dependent. If you plan on including jvms you will really have to include them for all build types. > - what else? > > Q2: Can we use Blackdown in this way (i.e. from a CD without installation), > or we have to install it first? Prolly the user will have to have the JVM on their machine already. Once it is set up you can run java transparrently. SOmetimes though a jvm is not so easy to set up. Let their network sdmins worry about it. THis is simply the same as issuing a requirement that the software must run under windows or dos. You specify that a user must have a jvm. Then If I were you I would jsut include hypertext links to the popular java download sites. > > Q3: If we can use it without a installation, then which Blackdown files > should be included on the CD, and any special file structure? You would have to run an installation at least for java JVM. The system needs to find out where the clasees are and whatnot. Not to mention path changes. This isnt windoze. =) If you want a super user friendly os, the macintosh is prolly your best bet. Any unix admin that cant install a simple jvm is prolly in big trouble anyway. > > Q4: Does Blackdown JVM generate any temporary files during running? We plan > to use a CD-ROM not CD-RW, so can't add any temp files to the CD. > You shouldnt have to worry about it. Once the jvm is on the mashine your ONLY concern is if your app works. > Q5: Is there any JRE for Linux like the one for NT? Yep, there is a JRE. Like NT? well that depends on what level you are referring to. Install and setup, I doubt it. Core code, most certainly not. Functionality after installation, sure. > > We are not familiar with Blackdown or Linux yet :( so please give detail > information if possible. > ok =) > Thank you in advance. > you're welcome. > > Lee > Rob > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Const in java
- Original Message - From: Gordon Keith <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Robert Simmons <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 1999 8:36 PM Subject: Re: Const in java > [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 primitives > > and immutable types are passed by value. Someone know the exact rules > > behind this? > > Everything is passed by value. > But you never actually pass objects, you only ever pass references to > objects. > > Making a parameter final means you can't change what object that > parameter refers to. (you can still make changes to the object, if it's > not immutable) Such is the problem there are times where I dont want the user to be able to alter a returned object's state. > > Once you understand that its pretty clear what's happening. > > Regards > Gordon > > > Gordon Keith > Programmer > Marine Science Support > Australian Antarctic Divsion > http://www.antdiv.gov.au > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
