Re: Getting TYA to compile
Dear Peter, I had the same problem initially with tya 0.7. I fixed it by including the /bin directory in my path. If you look in the configure file, it's trying to find the java executable by using the which command. If the java executable isn't in your path, you get the message you described. Don't even try to modify tya.h - that way lies madness. Hope this helps, Peter Johnson [EMAIL PROTECTED] Peter Schuller wrote: > Hi! > > I'm having problem getting TYA to compile... I've done alot of programming but > I still haven't learned to figure out those automatic configure stuff etc so > I'm not sure how to fix it. > > Configure givs me this: > > checking java port... UNRECOGNIZED > Uknown version of java. Try to config manually by > > I've played with the manual settings to no avail. I'm using Steve Byrne's > 1.1.5v7. > > When compiling the header files aren't found, probably because configure by > some reason identifies Netscape VM as the JDK (?!?!?). > > BUT! It does include netscape's headers, here's the comandline : > > gcc -Wall -pipe -shared -O6 -m486 -malign-loops=4 -malign-functions=4 > -malign-jumps=4-I/usr/local2/netscape/../include > -I/usr/local2/netscape/../include/genunix -o libtya.so tya.c tyarecode.c > tyaruntime.c tyaasm.S > > Noteice the "../". > > But as I said, I haven't figured all these autoconfig stuff out yet, so I don't > know where to edit Makefile templates and stuff to replace is with the real path > to the JDK. > > Anyone? > > I'm using TYA 06. I know 07 is out and I'll download it ASAP. But this problem > will most likely persist. > > Thanks! > > / Peter Schuller > > --- > WWW: hem.passagen.se/petersch/ (might change) > --- > PGP public key: Available at hkp://pgpkeys.mit.edu > PGP user ID: "Peter Schuller <[EMAIL PROTECTED]>" > --- > Linux - The Choice of a GNU Generation > Be Microsoft FREE!!! Check out www.linux.org
Re: Newbie re:deprecated API ?
Dear Glenn, Deprecated APIs, components, etc. are those that have been changed or dropped in the current Java implementation and will not be supported at all in the next major revision. You can go ahead and use them, but be aware they won't work with some other people's JVM, browser, etc. as THEY upgrade. Peter Johnson [EMAIL PROTECTED] Glenn Valenta wrote: > When I compile application(not applets) examples out of most of my > books, (Java-how to program) I get the error ... > > "Addition.java uses a deprecated API. > Recompile with "-deprecation" for details." > > And when I recompile with "-deprecation", I get this message... > > Addition.java:21: Note: The method boolean action(java.awt.Event, > java.lang.Object) in class java.awt.Component has been deprecated, > and class Addition (which is not deprecated) overrides it. > public boolean action(Event e,Object o) > ^ > Note: Addition.java uses a deprecated API. Please consult the > documentation for a better alternative. > > What does it mean and where in the documentation? > > Source and example are at. > > http://ouray.cudenver.edu/~gavalent/java/test2/Addition.html > > TIA! > > -- > Glenn Valenta Engineering http://www.coloradostudios.com > [EMAIL PROTECTED] http://ouray.cudenver.edu/~gavalent/ > [EMAIL PROTECTED] <-main mail account
Re: A short one
Ville Laakso wrote: > How can I make something happen, say, every 5 seconds? > > -Ville Laakso > [EMAIL PROTECTED] At least two ways: Either call Thread.sleep (5000) or, if you have other things to do, GregorianCalendar timeout=null, timenow=null ; timeout = new GregorianCalendar () ; timeout.add (GregorianCalendar.SECOND, 5) ; while (true) { timenow = new GregorianCalendar () ; if (timenow.after (timeout)) { ... do whatever ... timeout = new GregorianCalendar () ; timeout.add (GregorianCalendar.SECOND, 5) ; } ... do other stuff ... } Peter [EMAIL PROTECTED]
Re: Trouble in installing jdk in linux machine
Ulrich Kortenkamp wrote: > Giju> I tried to install jdk1.1.6 in my linux machine but it was > Giju> giving some errors which is reported here: I am usning red > Giju> hat linux. Please look into the matter. > > This seems to me to be related to the shell problem several people > encountered by now. Try to use a tcsh instead of bash (or vice versa, > I just don't remember). The scripts do not work correctly with the > wrong shell. > > This should be made an FAQ, or better (Steve!) the .java_wrapper > script should be corrected. I believe it might be connected to the > space between #! and /bin/sh, which seems to confuse some > shells. (just guessing). > > Ulli bash has no problem with this script on my systems.Peter Johnson [EMAIL PROTECTED]
Re: Slackware & jdk116v2
Casiraghi Luigi wrote: > I received a SIGSEGV 11* segmentation violation. > > Here is my configuration: > > Linux Slackware 3.0 (kernel 2.0.0) > jdk1.1.6v2 > libc5 (I upgraded to libc to libc5.4.44 and also ld as recommended) > > ldconfig -D output > > ldconfig: version 1.9.9 > libdl.so.1 => libdl.so.1.9.9 > ld-linux.so.1 => ld-linux.so.1.9.9 There have been other complaints about these versions; I think you need to downgrade to 1.9.5 or so. > ldconfig: warning: /usr/lib/libmenu.so.1.9.9e has inconsistent soname > (libmenu.so.3.0) > ldconfig: warning: /usr/lib/libpanel.so.1.9.9e has inconsistent soname > (libpanel.so.3.0) > ldconfig: warning: /usr/lib/libform.so.1.9.9e has inconsistent soname > (libform.so.3.0) > ldconfig: warning: /lib/libncurses.so.1.9.9e has inconsistent soname > (libncurses.so.3.0) > I've never seen this before, but it looks like you're missing a library or two. Hope this helps. Peter Johnson [EMAIL PROTECTED]
Re: write() bug under 2.1.x kernels...
Arup Mukherjee wrote: > Hi, > > under the 2.1.x kernels, large write()'s to a socket never come > back if they block, unless I/O occurs on another socket. I've seen > this with 1.1.3 thru 1.1.6v2, with both the Steve Byrne and the Sergei > Nikitin ports under at least 2.1.65 and 2.1.114. The problem is VERY > reproducible and does not occur under the 2.0.x kernels. > This may not be related, but I am also experiencing extremely odd behavior with sockets running Java v1.1.6v2 JRE, kernel 2.0.30, AMD 586 (? runs more like a 386 - stay far away from this chip), libc 5.4.44. I have built a client-server system for multiplayer games and what happens is mainly that neither select(), read() nor write() to a socket can reliably tell whether the other system is even present or not. The Ethernet chip is a PCI version of NE2000. I can't tell whether this is a driver problem, a Java problem (the infamous green threads) or what. When I run client and server on the same machine, the sockets work correctly; i.e.: when a client exits, the server immediately gets a broken pipe on write() and eof on read; same for client if the server exits. Thanks in advance for any help, Peter Johnson [EMAIL PROTECTED]
Re: sending image
Dear Stefano, Use PixelGrabber to get an array of bytes (for IndexColorModel) or integers (standard RGB); send the array, and use MemoryImageSource to re-assemble on the other end. Image is not a serializable class - I can't imagine why. If you must use object streams, wrap the pixels and red, green, blue, alpha in a class of your own that is declared serializable. Another way to do it is to paint the image on a Canvas (or other component) and serialize that, since all components are serializable. Hope this helps, Peter Johnson [EMAIL PROTECTED] Stefano Fratini wrote: > Hallo, > I'm writing a Java server application which sends (via socket) an image > to an applet. > I'm trying to use > ObjectOutputStream out = new > ObjectOutputStream(socket.getOutputStream()); > Image img = Toolkit.getDefaultToolkit().getImage("..."); > out.writeObject(img); > in server side and > ObjectInputStream in = new > ObjectInputStream(socket.getInputStream()); > Image img = (Image)in.readObject(); > in client side. > > When programs run on my computer (linux RH5.0, jdk1.1.5) > they give me this error sending image: > java.io.WriteAbortedException: Writing aborted by exception; > java.io.NotSerializableException: sun.awt.windows.WImage > > What is wrong? > Does anyone know if there is a better way to send image via socket? > > Thanks, > > stf
Re: problems with finalize()
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote ([EMAIL PROTECTED]) > > Hello, > > > > I have a problem with jdk1.1.6v3a/glibc2. The problem is with > > the finalize() methods which does not get invoked in my code. > > Jdk1.1.5v7/glibc2 works fine (ie. the finalize() method is called). > > Anyone got any idea why? > > (I tried to create a small example which shows the problem > > but finalize() get's called for the small example:( > > Some additional information might be in order.. > I force the finalizers to be run using System.runFinalizersOnExit(true) > so I expect that, even though finalization might not run immediately, > it should run when the VM exits.. > > Marcel > -- > "Yields falsehood when preceded by its quotation" > yields falsehood when preceded by its quotation Try running System.gc() after all references to the object are null. This should force the finalizer to run. hopr this helps Peter Johnson [EMAIL PROTECTED]
Re: Basics of using JNI under Linux
Nicholas Matsakis wrote: > Briefly, I am trying to call a native method under Linux. I have a > decent understanding of the JNI, and have gotten my code to load under > windows, but am unable to load the shared library under Linux. Other > relevant details include my system profile: Slackware, libc.so.5, JDK 1.1.6v5 > > As I understand it, the process is: > > 1) Write your java file, declaring native methods > 2) Run javah on the file to get your headers > 3) Implement the native methods in (my case in) C++ > 4) Compile the C++ code to object files > 5) Link the object files into a shared library (are the following >compiler options sufficient?) > > gcc -lm -shared -Wl,-soname,libreceng.so -o libreceng.so lots_of_files.o > > I am currently not interested in putting version numbers on my shared > library, is that necessary? > > 6) Put the shared library in your shared library path. Where is this > path define, exactly? I'm using tcsh, and I presume that $LPATH is the > path I'm interested in. > > 7) Run your java. > -- > At step 7 I get the following error: > > matsakis@natural-log>av index.html > File not found (libreceng.so) > Exception occurred during event dispatching: > java.lang.UnsatisfiedLinkError: no receng in shared library path > at java.lang.Runtime.loadLibrary(Runtime.java) > at java.lang.System.loadLibrary(System.java) > at NLI.RecEng.(Demo.java:87) > at NLI.Demo.evaluate(Demo.java:70) > at NLI.Input_Panel.handleEvent(Input_Panel.java:38) > at java.awt.Component.postEvent(Component.java:1986) > at java.awt.Component.postEvent(Component.java:1996) > at java.awt.Component.postEvent(Component.java:1996) > at java.awt.Component.dispatchEventImpl(Component.java:1793) > at java.awt.Component.dispatchEvent(Component.java:1708) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:81) > > Any suggestions? > > Nick Matsakis I'm not 100% sure, but I believe you have to use -PIC (position independent code) flag on the compile. Peter Johnson [EMAIL PROTECTED]
Re: Swing Core Dump...?
It's not xfree, per se. But your new kernel may require libc6 (glibc); this would mean you have to install the glibc version of JDK. If this is the problem, you may want to go ahead and install 1.1.7 while you're at it. TJ Saunders wrote: > Hello, all. Up until recently, I was doing just fine working with the > Blackdown JDK 1.1.6 and Swing 1.1 on my Linux 2.0.33 box. Then, I > upgraded a lot things. I changed from XFree86 3.2 to 3.3.3.1, and from > the 2.0.33 kernel to 2.0.36. Now, when I try to run the MenuDemo from the > Java Tutorial, I inevitably get the following message: > > SIGSEGV 11* segmentation violation > stackbase=0xb0f8, stackpointer=0xb000 > > Full thread dump: > "AWT-Motif" (TID:0x4066fab8, sys_thread_t:0x41421f04, state:R) prio=5 > "AWT-Input" (TID:0x4066f998, sys_thread_t:0x41400f04, state:R) prio=5 > "AWT-EventQueue-0" (TID:0x4066f9d0, sys_thread_t:0x413dff04, state:R) > prio=5 > "Finalizer thread" (TID:0x4066b1e0, sys_thread_t:0x413bef04, state:R) > prio=1 > "Async Garbage Collector" (TID:0x4066b228, sys_thread_t:0x4139df04, > state:R) prio=1 > "Idle thread" (TID:0x4066b270, sys_thread_t:0x4137cf04, state:R) > prio=0 > "Clock" (TID:0x4066b088, sys_thread_t:0x4135bf04, state:CW) prio=12 > "main" (TID:0x4066b0b0, sys_thread_t:0x81e7d78, state:R) prio=5 > *current thread* > sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:61) > sun.awt.motif.MComponentPeer.(MComponentPeer.java:114) > sun.awt.motif.MCanvasPeer.(MCanvasPeer.java:39) > sun.awt.motif.MPanelPeer.(MPanelPeer.java:33) > sun.awt.motif.MFramePeer.(MFramePeer.java:64) > sun.awt.motif.MToolkit.createFrame(MToolkit.java:127) > java.awt.Frame.addNotify(Frame.java:214) > > javax.swing.plaf.metal.BumpBuffer.createComponent(MetalBumps.java:235) > javax.swing.plaf.metal.BumpBuffer.(MetalBumps.java:151) > javax.swing.plaf.metal.MetalBumps.createBuffer(MetalBumps.java:65) > > javax.swing.plaf.metal.MetalBumps.setBumpColors(MetalBumps.java:100) > javax.swing.plaf.metal.MetalBumps.(MetalBumps.java:57) > > javax.swing.plaf.metal.MetalBorders$ToolBarBorder.(MetalBorders.java:281) > > >javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:322) > > javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:65) > > javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:659) > javax.swing.UIManager.setLookAndFeel(UIManager.java:339) > javax.swing.UIManager.setLookAndFeel(UIManager.java:366) > javax.swing.UIManager.initializeDefaultLAF(UIManager.java:820) > javax.swing.UIManager.initialize(UIManager.java:896) > Monitor Cache Dump: > java.lang.Class@1080488336/1080855960: owner "main" (0x81e7d78, 2 > entries) > 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" (0x4135bf04) > Monitor registry: owner "main" (0x81e7d78, 1 entry) > Thread Alarm Q: > Abort (core dumped) > > What just happened? Any ideas? TIA. > > > TJ Saunders [EMAIL PROTECTED] > System AdministratorPhone: (206) 685-8266 > Remote Sensing Lab > University of Washington >
Re: Linux World
[EMAIL PROTECTED] wrote: > Hi! > > I just came from the Linux World expo. It's _really_ crowded there. There > is one computer at the Sun booth that is running Linux 2.0. I didn't have > opportunity to check it :-( but one of the exhibitors told me that the > final release could be ready as early as thursday. I personally doubted, > but he should have his source. > On the other hand, one exhibitor at Cygnus told me that they have a Java > tool (LibJava? I'm not sure) that is faster than JDK and can be downloaded > free from the internet. I don't know much about Cygnus software, so please > give me some points if it's worth to try it. > > Walter > Linux and Java will save the world :-) | 408.294.4750 > http://www.concentric.net/~Wdacruz/Index.shtml | [EMAIL PROTECTED] > ___|___ > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] VERY MUCH worthwhile! I spent quite a bit of time with one of the gcj (Java native compiler front-end) authors - this is totally cool stuff. Nobody has udpdated the web page in quite a while, so it looks like this is some kind of funky "work in progress", but it is actually a functional, useful product. There is also a replacement for JNI which uses a much more abbreviated and intelligible mangling syntax for incorporating C/C++ native code. The folks at Cygnus do a lot of really nice things for the Linux community in general and deserve a close look if you're in the market for consulting, support or reasonably priced tools (gcj and the other Java tools are free). Besides the (up to about 200x speedup on Linpack) acceleration native executables can provide, the Cygnus linkage conventions allow you to use things like GNOME, OpenGL and OSS in a much more reasonable way than Swing or Java3D. Yes! there is garbage collection, but not asynchronous - just call System.gc() at convenient points in your code - prevents those nasty animation glitches and strange 3 second pauses in execution. Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Magician pulled off the market
Bernd Kreimeier wrote: > [about as much off topic as "JMF for Linux"] > > With respect to "Java3D for Linux": Arcana Ltd., > the company that till last week provided a very > popular Java OpenGL API and implementations for > JNI, RNI and Netscape's JRI on Linux, Windows, > Mac, and other platforms, has been forced to close > shop. > This doesn't seem off-topic to me at all. In general, Java3D seems like a very microsoftian initiative on the part of sun - an attempt to generate revenue by crippling genuinely open standards like OpenGL and step on anybody else who dares to provide extensions to Java. My company bought into Magician as a migration path away from AWT and Swing; our current plan is to ultimately use GNOME for 2D and OpenGL for 3D. Fortunately, we'd already purchased Magician; unfortunately, it's probably impossible to use it in deliverable products now since we're a small company, too and can't afford a decent price for the source code. I think Linus is proved right in his skepticism about the possibility of an "open" platform owned by a single manuafacturer. Sun doesn't just want to beat microsoft in the marketplace - sun wants to be microsoft. It's really too bad, since SUN (Stanford University Network) wouldn't exist without free (in the FSF sense) software. Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sending mail from an application (Pre-v2 JDK, Redhat 6.0)
You don't need any extensions; Java 1.1 can do all the common URLs. try this: /** send e-mail to current e-mail address; */ private static void sendEmail (String text) { // missing address if (email == null || email.length () < 1) System.out.println ("No e-mail address specified for " + text) ; else if (smtp == null || smtp.length () < 1) System.out.println ("No smtp server address specified for " + text) ; // try to send the mail else System.out.println ("Send " + text + " to " + email + " via " + smtp) ; try { // establish a network connection for sending mail URL u = new URL ("mailto:" + email) ; URLConnection c = u.openConnection () ; c.setDoInput (false) ; c.setDoOutput (true) ; System.out.println ("Sendmail connecting to " + email + " ...") ; System.out.flush () ; c.connect () ; PrintWriter out = new PrintWriter (new OutputStreamWriter (c.getOutputStream ())) ; // set up the header out.println ("From: ") ; out.println ("To: " + email) ; out.println ("Subject: Alarm from web-server") ; out.println () ; // add the message and close the connection, to send it out.println (text) ; out.close () ; System.out.println ("E-mail sent to " + email + " for " + text) ; System.out.flush () ; } catch (Exception e) { e.printStackTrace () ; System.out.println ("e-mail address set to null string") ; email = "" ; } } } > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: 22 July 1999 15:06 > > To: [EMAIL PROTECTED] > > Subject: Sending mail from an application (Pre-v2 JDK, Redhat 6.0) > > > > > > Hey all, > > How would one go about sending e-mail from an > > application? I have > > tried doing it via the Runtime.exec() method and running a > > long drawn out > > 'mail' command, but the system executes it too fast and it > > ends up getting > > garbled in the process. Any ideas? > > > > Thanks, > > Abe > > > > Abe L. Getchell - Systems Engineer > > System Support Services > > Kentucky Department of Education > > Voice 502-564-2020x225 > > E-mail [EMAIL PROTECTED] > > Web http://www.kde.state.ky.us/ > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > ___ > This email is confidential and intended solely for the use of the > individual to whom it is addressed. Any views or opinions presented are > solely those of the author and do not necessarily represent those of > Sema Group. > If you are not the intended recipient, be advised that you have received this > email in error and that any use, dissemination, forwarding, printing, or > copying of this email is strictly prohibited. > > If you have received this email in error please notify the Sema Group > Helpdesk by telephone on +44 (0) 121 627 5600. > ___ > > > >Part 1.2Type: application/ms-tnef >Encoding: base64 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Linux JDK applets on other platforms
Glenn, You're lucky - Netscape on Linux won't run some of my (perfectly coded, of course :-) applets. HotJava runs everything I can throw at it, along with appletviewer. Netscape on windoze 95 or IE 4.01 runs them; IE hangs on windoze 98. Tried installing the IE 50.0 upgrade and it rendered the windoze partition unbootable! The IE adventure prompted me to finally exorcise the demons of stupidity permanently. Now running 1.1.6 with HotJava on a 2.2 kernel and using smbfs and wordperfect to commune with the dark side. Glenn Valenta wrote: > I can't get some of my applets to run on any other platforms other than > Linux/Netscape. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Question
Of course you can write a file - there's nothing magic about Applets. Set your browser's security to allow it. Most browsers are set to some set of high-security options by default. The other option is to sign your Applet; most browsers allow different security levels for signed (trusted) and unsigned Applets. Kantartzis V wrote: > you can read a file with an applet by instanciating a URL of type > "file://" , but you can not write into the file. > > On Thu, 4 Nov 1999, Bernardo Paz Betancourt wrote: > > > Applets can NOT open or write files, for security > > I had the same problem trying to acces to my data base in oracle by an applet. > > The reason could be this restriction see documentation on applet restrictions. > > > > Bernardo > > > > At 09:57 a.m. 04/11/99 +0800, you wrote: > > > > > >Dear Sirs: > > >I am junior JAVA programmer, one question need your help. > > >I had RedHat Linux 6.0 with Java 1.2 SDK and PostgreSQL database, > > >I had copy the postgresql.jar into /jdk1.2/jre/lib/ext. > > > > > >then, I wrote an applet just query the data from PostgreSql database, > > >and show the result on screen, then created the test.html file, > > >and include the class , when I use appletviewer test.html, I can see > > >the data everything is OK, > > > > > >but when I put the html on my web, then I can see the applet area show > > >"Can't find Database Driver .. postgresql.drive" > > >It's anything Linux envirounment setting error? > > >Tks! > > > > > >Jones Chang > > > > > > > > >-- > > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > > > > __ > > Dr. Bernardo Paz Betancourt > > TROPANDES Project > > casilla 415 > > tel/Fax: (591) 2 41.18.34 > > http://www.megalink.com/tropandes > > La Paz - Bolivia > > > > > > -- > > 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]
Re: Netscape and applets
Try HotJava. Since it is written in Java, it will run anything the JVM from your JDK will run. Paul Gearon wrote: > I have a strange problem with Netscape on my RH6.1 system. > > I have a class called myapp.server.FrontEnd which extends Applet > (naturally). I have a reference to it in a .html file: > > and it seems to work fine with appletviewer. However, as soon as I load > it with Netscape I get the following in the status bar: > > Applet myapp.server.FrontEnd exception: java.lang.ClassCastException > myapp.server.FrontEnd is not an applet > > I'm stumped. I've written other applets for use with Netscape which > have worked fine. Has anyone any suggestions as to where I should look > for a solution? > > Also, since I don't know if the problem is mine or Netscape's, is there > another browser out there for Linux which will run applets? > > -- > Regards, > Paul > > Paul Gearon > [EMAIL PROTECTED] > > Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum > immane > mittam. > (Translation from latin: "I have a catapult. Give me all the money, or I > will > fling an enormous rock at your head.") > > -- > 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: Java App placement in Gnome
ALT-TAB will switch between windows on fvwm and fvwm-95, maybe with other window managers also. Window.toFront() will move a window to the foreground and get the focus; Component.requestFocus() should make a component active, although I've found this doesn't work sometimes, particularly if the component is in a Window, rather than a Frame. Robert Passaro wrote: > Hello. > > I'm using RedHat 6.0 and IBM's jdk1.1.8 > > (1) Can someone tell me the linux command line to give a java app > keyboard focus, without having to give its window a mouseclick? (I want > to create an app that does not use a pointer of any kind) > > (2) Can someone tell me how I can launch a java app in X/gnome *without* > the gnome window frame? > > (3) Finally, can someone tell me how I can set a default screen position > and size for a java app through X settings? jdk1.1.8 doesn't seem to > listen to the settings I've made in code (which work in jdk1.2 and > 1.2.2), and doing > > ./start_java_script AppName -geometry 200x200+10+10 > > doesn't work either. > > Any hints, tips would be greatly appreciated. Thanks! > > Rob > BMW Technology Office > > -- > 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: Ambiguous class
Depending on which one you actually want, declare either private java.util.Date[] getAbsenceDate(String condition) { or private java.sql.Date[] getAbsenceDate(String condition) { That is, use the fully qualified pathname to resolve the ambiguity. "±è¿µºÀ" wrote: > [Image]Hi, > > I import java.util.* and java.sql.*; > > And I use Date class.. > > At Compile time, error is. > > error is below.Can anybody help me. > > Ambiguous class: java.util.Date and java.sql.Date > private Date[] getAbsenceDate(String condition) { > --- > > - > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] with a subject of "unsubscribe". > Trouble? Contact [EMAIL PROTECTED] -- Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Ambiguous class
Depending on which one you actually want, declare either private java.util.Date[] getAbsenceDate(String condition) { or private java.sql.Date[] getAbsenceDate(String condition) { That is, use the fully qualified pathname to resolve the ambiguity. "±è¿µºÀ" wrote: > [Image]Hi, > > I import java.util.* and java.sql.*; > > And I use Date class.. > > At Compile time, error is. > > error is below.Can anybody help me. > > Ambiguous class: java.util.Date and java.sql.Date > private Date[] getAbsenceDate(String condition) { > --- > > - > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] with a subject of "unsubscribe". > Trouble? Contact [EMAIL PROTECTED] -- Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Kaffe/AWT
Hi All, My company needs some kind of open-source replacement for AWT, so we can control display better and optimize portions of the rendering for our application. Currently we run Slackware 3.6 (Linux 2.0.35, libc5) and XFree 3.3.5. We've been using Blackdown JDK/JRE 1.1.6 v5. Kaffe 1.0.5 appears to build and install, but fails most (85 of 91) of the tests from "make check". I've tried to compile just the AWT portions, but get many "cyclic inheritance" errors. I'm pretty sure this is because of the way AWTEvent is defined - it declares variables that depend on MouseEvent, FocusEvent and WindowEvent. I'm working on this - meanwhile, any suggestions for quicker alternatives will be gladly accepted if anybody has already solved this problem. Thanks in advance. -- Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Kaffe/AWT
I am having a LOT of trouble with kaffe 1.0.5 and 1.04b!!! I am using Zentropix RT Linux 2.2 (based on Red Hat 6.0), glibc 2.1.1, libungif 4.1.0, kernel version 2.2.10. When I first installed the kaffe source, it built without errors and passed all it's self-tests (make check). However, when I tried to run my application (which runs reliably on blackdown JDK 1.1.6 v5), kaffe would not load images from .gif files. Displaying the Image for one of these (System.out.println ("image " + imagename)) I get "image (-1, -1, ..., 1c0 producer error)". On a linux 2.0.35 system, kaffe fails most of it's self-tests, but does load images. Anyhow, the only (possibly germane) difference was that /usr/local/lib on the 2.0.35 system had libungif.so -> libungif.so.4.1, so I made a similar link on my 2.2.10 system, then typed: make uninstall make distclean ./configure make make install make check I've tried this several times, and each time, I now fail 85 of the 91 included tests - haven't even tried running anything. The 1.04b binaries I got with the distribution don't work either; I get crazy errors about missing fields before I get to the parts which try to load the images. Judging from the rather esoteric errors in the kaffe bug database, somebody's getting this stuff to run. Do I need a secret decoder ring or what??? I desperately need an open-source replacement for Java so I'm willing to try all suggestions. Thanks peter johnson John N Underwood wrote: > > Date: Fri, 09 Jun 2000 04:55:01 -0700 > > From: peter johnson <[EMAIL PROTECTED]> > > > > My company needs some kind of open-source replacement for AWT, so we can > > control display better and optimize portions of the rendering for our > > application. > > I have been using dog.gui recently and have been quite impressed with > it. > It is released under LGPL. You can find out more at: > + dog.gui > http://www.dog.net.uk/knife/gui.html > > Other possible alternatives include: > + KFC > http://openlab.ring.gr.jp/kyasu/index.html > + FreeBongo > http://www.freebongo.org/ > + BISS AWT*** > http://www.biss-net.com/biss-awt.html > + Koala** > http://www-sop.inria.fr/koala/jml/java/gui/ > + Jazz (future) > http://jfa.javalobby.org/projects/Jazz.html > + Osiris* > > http://www.cyberlinklabs.com/cll2/products/osiris/osirisfc/html/info.htm > > And while we're at it, other GUI items of interest: > + Abstract UI Toolkit > http://AUIT.sourceforge.net/ > + HTMLWindow* > http://home.earthlink.net/~hheister/ > + Adaptable Layout Environment > http://208.223.9.21/jfd/java/ale/ale.html > + HtmlLayout > http://braindamage.org/htmllayoutdocs/ > + Position Layout Manager > http://www.ibm.com/java/education/position-layout-manager.html > + GUI Libraries > http://www.javaworld.com/javaworld/tools/jw-tools-guilib.html > > * - not open source, but may be free to use > ** - source available, but non-commercial use only > *** - GPL-like license > > -- > John N Underwood > Java/Linux Developer > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Peter Johnson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How the heck do you hide the cursor???
I give up! There doesn't appear to be anything so obvious as hideCursor(); setEnable(false) doesn't do it. Using createImage (255,255,255,255) to supposedly create a completely transparent image, then calling Toolkit.createCustomCursor() and setCursor() results in a huge, opaque, white square. In 1.1.6 on Linux, applets used the root window's default cursor, so setting that to a blank pixmap worked. This is really causing me grief! plaease help! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How the heck do you hide the cursor???
I give up! There doesn't appear to be anything so obvious as hideCursor(); setEnable(false) doesn't do it. Using createImage (255,255,255,255) to supposedly create a completely transparent image, then calling Toolkit.createCustomCursor() and setCursor() results in a huge, opaque, white square. In 1.1.6 on Linux, applets used the root window's default cursor, so setting that to a blank pixmap worked. This is really causing me grief! plaease help! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems jdk-1.1.8-v3 + Slackware7.0
Oddly enough, you might try jdk 1.1.6 v5 for glibc. We're using it with a great deal of success, on Linux kernel 2.2.17, glibc 2.1.3. We had font rendering problems as well as severe slowdowns and/or segmentation violations on all the newer versions from IBM, Sun and Blackdown. Peter Johnson "Josep M. Torne" wrote: > Hi, > > I'm sorry if this is a silly or always-repeated question, but I didn't > find any reference in the faq, and I really need urgently a solution. > > The problem is, I'm trying to run jdk-1.1.8-v3-glibc-2.1.3 with my > Slackware-7.0 linux distribution (glibc-2.1 based!). It's not possible for > my to use newer versions, I need this one. > I also tried jdk-1.1.7 for libc5, but crashes just after starting (just > calling "java" or "javac" it's enough to the program to crash!). > > The problem is, I get always an error (SEGFAULT??), that I enclose just > bellow. The error I enclose is from "javac" command execution, but I think > I also get the same from "java" command... > > zapl:~$ /opt/jdk118_v3/bin/javac > SIGSEGV 11* segmentation violation > stackbase=0xb198, stackpointer=0xb060 > > Full thread dump: > "Finalizer thread" (TID:0x40398210, sys_thread_t:0x4129ce0c, > state:R) prio=1 > "Async Garbage Collector" (TID:0x40398258, sys_thread_t:0x4127be0c, > state:R) prio=1 > "Idle thread" (TID:0x403982a0, sys_thread_t:0x4125ae0c, > state:R) prio=0 > "Clock" (TID:0x40398088, sys_thread_t:0x41239e0c, state:CW) prio=12 > "main" (TID:0x403980b0, sys_thread_t:0x8083cf8, state:R) prio=5 > *current thread* > java.lang.System.initializeSystemClass(System.java) > 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: > Dynamic loading lock: > Monitor IO lock: > Child death monitor: > Event monitor: > I/O monitor: > Alarm monitor: > Waiting to be notified: > "Clock" (0x41239e0c) > Monitor registry: owner "main" (0x8083cf8, 1 entry) > Thread Alarm Q: > /opt/jdk118_v3/bin/../bin/i586/green_threads/javac: line 13: 3374 Aborted > `dirname $0`/${progname} $RUNTIME_ARGS -ms8m $RUNTIME_ARGS > sun.tools.javac.Main $APP_ARGS > > Now I enclose some information about my system: > > -> java version: > zapl:~$ /opt/jdk118_v3/bin/java -version > java version "1.1.8" > > -> libc version: > libc.so.6 => libc-2.1.2.so > (+ libc5 run-time support) > > -> loader version: > /sbin/ldconfig: version 1.9.9 > > -> kernel version: > 2.4.0-test6 (althought I had the same problems with 2.2.x kernels) > > Would anybody know what's the problem, or what can I do to find a solution > to this problem?? > > Thanks in advance, > > ; -- > ; Txema [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]