placing a java frame at the desired place?
Hi I am not able to place my frames at the desired place. Irrespective of the x,y-coordinates i am specifying in the properties list of the frame ( i am using symantec-visualCafe), the frames are displayed at a default place. I am not able to control it. How to solve this problem? Thanx in advance. regards, ilavarasu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with java.lang.ClassLoader
Michel, I observe that the defineClass method you arte using is 'protected' Is this your problem ? Rob Michel Prevost wrote: > Hi All > > I am currently doing some tests with dynamic class loading. I have the > following snippet of code: > > Class dateDisplayClass = > cl.defineClass(args[0], > dateDisplayClassBytes, 0, dateDisplayClassBytes.length); > > cl.resolveClass(dateDisplayClass); > > Here is the problem: when compiling the file, I get the following errors: > > ClassClient.java:20: No method matching defineClass(byte[], int, int) found > in class java.lang.ClassLoader. > cl.defineClass(args[0], > ^ > ClassClient.java:24: No method matching resolveClass(java.lang.Class) found > in class java.lang.ClassLoader. > cl.resolveClass(dateDisplayClass); > > When I look in the JDK1.2 API Specifications, those 2 methods exist. Any > idea? > > Michel > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Rob Nugent Development Manager UniKix Technologies Europe [EMAIL PROTECTED] http://www.unikix.com Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Where can I get jdk1.2 for Linux??
Hello: I'm student of the "Universidad Politecnica de Valencia". I would like to get a copy of the JDK1.2.1 for linux. Can you tell me where could I get it from? Thank you very much! Juan Garcia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[javadoc] Class or Package not found, in @see tag: java.lang.System
Hi, using jdk1.2pre2, javadoc is unable to find certain Classes in java.lang. For example the code * @see java.lang.System * @see java.lang.Object produces a warning for java.lang.System but _not_ for java.lang.Object, although java.lang.system.html is in the same place as java.lang.object.html and rt.jar contains a ^java/lang/system.class . Any ideas? Best regards Martin -- Martin Schröder, [EMAIL PROTECTED] ArtCom GmbH, Grazer Straße 8, D-28359 Bremen Voice +49 421 20419-44 / Fax +49 421 20419-10 PGP signature
Re: Where can I get jdk1.2 for Linux??
hi, you can get in the blackdown site... the url is www.blackdown.org is suppose. On Wed, 21 Jul 1999, Juan Miguel Garcia Gomez wrote: > Hello: > I'm student of the "Universidad Politecnica de Valencia". >I would like to get a copy of the JDK1.2.1 for linux. > Can you tell me where could I get it from? > > Thank you very much! Juan Garcia > > > -- > 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: Swing Priority
In case anyone is interested, there is a useful description of such issues in the O'Reilly book "Java Threads", chapter 6 "Java Thread Scheduling", which discusses some popular scheduling implementations. A couple of suggestions (not tested): If you don't want to use MIN priority, you may be able to choose a priority between MIN and NORM, if this is supported on your target system(s). Unfortunately, although there are many different priorities in the JVM, these may not all map onto different priorities in a real implementation. [Indeed, even MIN and NORM may end up with effectively the same priority, depending on the implementation.] Yield() does not guarantee that another thread will execute; it may be that the next eligible thread is the one that is yielding. But if you can sprinkle more yield() calls around your code you may get what you want... -- Sebastian Bazley <[EMAIL PROTECTED]> The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... > -Original Message- > From: Alexander V. Konstantinou [mailto:[EMAIL PROTECTED]] > Sent: 20 July 1999 21:36 > To: Thomas M. Sasala > Cc: Java Mailing List > Subject: Re: [Fwd: [Fwd: [Fwd: Swing Priority]]] > > > If you read the JVM threading specification, it explicitely > states that > threads of the same priority are *NOT* guaranteed to be time-sliced. > This is the most common cause of incompatibilities, as software that > works on MS WinNT (has time-slicing), breaks on other > operating systems > without time-slicing. The solution is to have the busy thread execute > with a lower priority. > > Alexander > > On Tue, Jul 20, 1999 at 02:24:28PM -0400, Thomas M. Sasala wrote: > > It's not really a problem, unless the main app does something > > in an event that takes a while. Since I am currently the only one > > using the app, it's not an issue. However, in the future, it > > might become an issue. > > > > Generally I was hoping to set the thread to the same > > priority as the event handler and let the OS take care of > > time slicing. Clearly the JVM is not that robust though. > > > > "Robert A. Crawford" wrote: > > > > > > On Tue, Jul 20, 1999 at 12:32:19PM -0400, Thomas M. Sasala wrote: > > > > Setting my task to MIN_PRIORITY fixes the problem, but > > > > I think it is a suboptimal fix. So: > > > > > > Why is that a problem? The event thread probably spends > > > 95% of its time waiting for events, so your thread would get > > > the time it needs. > > > -- > 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. ___ application/ms-tnef
Re: placing a java frame at the desired place?
> Hi > > I am not able to place my frames at the desired place. Irrespective of > the x,y-coordinates i am specifying in the properties list of the frame ( > i am using symantec-visualCafe), the frames are displayed at a default > place. I am not able to control it. How to solve this problem? I was having the exact same problem earlier. My code would place the frame at the desired place under Windows, but not under Linux using Blackdown's VM. It was fixed when I started using 1.1.7 version 3 (I had been using 1.1.6 version 5). I'm not sure what was causing it. Nathan Ehresman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: placing a java frame at the desired place?
Hi There is apparently a bug in linux lesstif, (its logged at blackdown) that makes this so if you set the variables before the window is shown. I have taken to doing a setLocation after having done the setVisible(true), it pops up at the top of the screen and the moves to the center, ugly I know but it's better than moving all those screens from the top left hand corner. I'm unsure, your reference to visual cafe, made me think that you may be PC based, and as I understand it this works there, (from personal experience at least prior to jdk1.2). Regards Mark ILAVARASAN wrote: > Hi > > I am not able to place my frames at the desired place. Irrespective of > the x,y-coordinates i am specifying in the properties list of the frame ( > i am using symantec-visualCafe), the frames are displayed at a default > place. I am not able to control it. How to solve this problem? > > Thanx in advance. > > regards, > ilavarasu > > -- > 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: Swing Priority
BAZLEY Sebastian wrote: > In case anyone is interested, there is a useful description of such issues > in the O'Reilly book "Java Threads", chapter 6 "Java Thread Scheduling", > which discusses some popular scheduling implementations. > > A couple of suggestions (not tested): > > If you don't want to use MIN priority, you may be able to choose a priority > between MIN and NORM, if this is supported on your target system(s). > Unfortunately, although there are many different priorities in the JVM, > these may not all map onto different priorities in a real implementation. > [Indeed, even MIN and NORM may end up with effectively the same priority, > depending on the implementation.] > > Yield() does not guarantee that another thread will execute; it may be that > the next eligible thread is the one that is yielding. But if you can > sprinkle more yield() calls around your code you may get what you want... Umm if you need to control threads the same book also gives a way to make your own thread sheadular using a high priority thread to scheduale wich thread runs next. If its important to ou I would go this route. Note though that some platforms do indeed not have any notion of thread priority. I believe the Mac platform does not really support thread priorities. At that point I would suggest running the complex calculation in a diffrent process and using rmi or pipes to communicate. I would consider redesing your app into a client server style application just on general principals alone with 1.2 the rmi overhead can be removed if your in the same VM. Also as far as I'm concerned the whole lack of specification on thread behavior is a real probelm with the Java specification. The lack of cross thread exceptions ( signals ) is a real bummer. Java's exception handling mechanism has no understanding of threads. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Where can I get information about Corba/Java2
Hello: I'm student of the "Universidad Politecnica de Valencia". I would like to get information about Corba with java2 (no with visibroker,...). Can you tell me where could I get it from? Thank you very much! Juan Garcia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Fwd: [Fwd: [Fwd: Swing Priority]]]
Alexander V. Konstantinou writes: > If you read the JVM threading specification, it explicitely states that > threads of the same priority are *NOT* guaranteed to be time-sliced. > This is the most common cause of incompatibilities, as software that > works on MS WinNT (has time-slicing), breaks on other operating systems > without time-slicing. The solution is to have the busy thread execute > with a lower priority. ... which breaks on platforms where there is only one priority to have, nes pas? Or do the specs guarantee you at least two priority levels nowadays? b. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Segmentation Fault and 1024-bit reselotion?
I've been trying to get Java 1.2 pre v2 to run on my Redhat 5.2 box. I evidently have run into some problems that make no sense to me at all, and was wondering if anyone else had any suggestions. The application that I'm trying to get to run connects to another machine and then should show a simple login screen. It connect to the other machine just fine, but when it goes to display the login screen all I get is blackscreen with a menubar across the top. After about 15 sec of total cpu usage I get the following error message: Exception occurred during event dispatching: java.lang.InternalError: Unsupported 1024-bit depth at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method) at sun.awt.motif.X11Graphics.lock(X11Graphics.java:797) at sun.java2d.loops.LockableRaster.lock(LockableRaster.java:163) at sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1414) at sun.java2d.loops.RasterOutputManager.performOpaqueBlit(RasterOutputManager.java:979) at sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:654) at sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:472) at sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2040) at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1634) at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:583) at javax.swing.JComponent.paint(JComponent.java:536) at java.awt.Container.paint(Container.java:770) at javax.swing.JFrame.update(JFrame.java:255) at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248) at java.awt.Component.dispatchEventImpl(Component.java:2429) at java.awt.Container.dispatchEventImpl(Container.java:1032) at java.awt.Window.dispatchEventImpl(Window.java:714) at java.awt.Component.dispatchEvent(Component.java:2289) at java.awt.EventQueue.dispatchEvent(EventQueue.java:258) at java.awt.EventDispatchThread.run(EventDispatchThread.java:68) SIGSEGV 11* segmentation violation stackpointer=0x416f4e7c Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): "AWT-Finalizer" (TID:0x404c55f8, sys_thread_t:0x8681d98, state:CW) prio=9 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:424) at sun.awt.AWTFinalizer.run(AWTFinalizer.java:46) The Full Thread dump continues on for several screens and I'll omit that from here. I'm using the Green Threads and the JIT is disabled. Any suggestions on what this problem is? Thanx in advance -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Segmentation Fault and 1024-bit reselotion?
There are a lot of X server display depths and visuals that the AWT doesn't support, because they don't happen to exist on Solaris boxes :-(. But do you *really* have a 1024-bit deep display??? Could you post the results of running xdpyinfo? This I gotta see :-). Nathan Brandon Anderson wrote: > > I've been trying to get Java 1.2 pre v2 to run on my Redhat 5.2 box. I > evidently have run into some problems that make no sense to me at all, and > was wondering if anyone else had any suggestions. > > The application that I'm trying to get to run connects to another machine > and then should show a simple login screen. It connect to the other > machine just fine, but when it goes to display the login screen all I get > is blackscreen with a menubar across the top. After about 15 sec of total > cpu usage I get the following error message: > > Exception occurred during event dispatching: > java.lang.InternalError: Unsupported 1024-bit depth > > at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method) > at sun.awt.motif.X11Graphics.lock(X11Graphics.java:797) > at sun.java2d.loops.LockableRaster.lock(LockableRaster.java:163) > at > sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1414) > at > sun.java2d.loops.RasterOutputManager.performOpaqueBlit(RasterOutputManager.java:979) > at > sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:654) > at > sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:472) > at > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2040) > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1634) > at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:583) > at javax.swing.JComponent.paint(JComponent.java:536) > at java.awt.Container.paint(Container.java:770) > at javax.swing.JFrame.update(JFrame.java:255) > at > sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248) > at java.awt.Component.dispatchEventImpl(Component.java:2429) > at java.awt.Container.dispatchEventImpl(Container.java:1032) > at java.awt.Window.dispatchEventImpl(Window.java:714) > at java.awt.Component.dispatchEvent(Component.java:2289) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:258) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:68) > SIGSEGV 11* segmentation violation > stackpointer=0x416f4e7c > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): > "AWT-Finalizer" (TID:0x404c55f8, sys_thread_t:0x8681d98, state:CW) > prio=9 > at java.lang.Object.wait(Native Method) > at java.lang.Object.wait(Object.java:424) > at sun.awt.AWTFinalizer.run(AWTFinalizer.java:46) > > The Full Thread dump continues on for several screens and I'll omit that > from here. I'm using the Green Threads and the JIT is disabled. Any > suggestions on what this problem is? > > Thanx 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: Segmentation Fault and 1024-bit reselotion?
Here is the results from xdpyinfo name of display:linuxBox.ccsoft.com:1.0 version number:11.0 vendor string:The Olivetti & Oracle Research Laboratory vendor release number:3323 maximum request size: 4194300 bytes motion buffer size: 256 bitmap unit, bit order, padding:32, LSBFirst, 32 image byte order:LSBFirst number of supported pixmap formats:2 supported pixmap formats: depth 1, bits_per_pixel 1, scanline_pad 32 depth 16, bits_per_pixel 16, scanline_pad 32 keycode range:minimum 8, maximum 255 focus: window 0x28e, revert to Parent number of extensions:7 BIG-REQUESTS MIT-SHM MIT-SUNDRY-NONSTANDARD SHAPE SYNC XC-MISC XTEST default screen number:0 number of screens:1 screen #0: dimensions:1024x768 pixels (260x195 millimeters) resolution:100x100 dots per inch depths (1):16 root window id:0x25 depth of root window:16 planes number of colormaps:minimum 1, maximum 1 default colormap:0x21 default number of colormap cells:64 preallocated pixels:black 0, white 65535 options:backing-store YES, save-unders YES largest cursor:1024x768 current input event mask:0x50003d KeyPressMask ButtonPressMask ButtonReleaseMask EnterWindowMask LeaveWindowMask SubstructureRedirectMask PropertyChangeMask number of visuals:1 default visual id: 0x22 visual: visual id:0x22 class:TrueColor depth:16 planes available colormap entries:64 per subfield red, green, blue masks:0x3f, 0x7c0, 0xf800 significant bits in color specification:8 bits As you can see, the depth is really only 16 bits. But one thing that might be important to mention is that I'm not actually running X. I'm running Xvnc. I've tried the same program on an actual X console(just a second ago), and it seems to work. Any ideas on how I can get this to work in Xvnc, or does it sound like I'm just going to be screwed? Oh by the way, on a side not, everytime I run any program that uses awt classes I get the following warning a whole bunch of time. It doesn't seem to cause any problems but its starting to get annoying. Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] I'd prefer to fix without having to comment out the 20-30 lines in the font.properties, but if that's the only solution On Wed, 21 Jul 1999, Nathan Meyers wrote: > There are a lot of X server display depths and visuals that the AWT > doesn't support, because they don't happen to exist on Solaris boxes > :-(. But do you *really* have a 1024-bit deep display??? Could you post > the results of running xdpyinfo? This I gotta see :-). > > Nathan > > > Brandon Anderson wrote: > > > > I've been trying to get Java 1.2 pre v2 to run on my Redhat 5.2 box. I > > evidently have run into some problems that make no sense to me at all, and > > was wondering if anyone else had any suggestions. > > > > The application that I'm trying to get to run connects to another machine > > and then should show a simple login screen. It connect to the other > > machine just fine, but when it goes to display the login screen all I get > > is blackscreen with a menubar across the top. After about 15 sec of total > > cpu usage I get the following error message: > > > > Exception occurred during event dispatching: > > java.lang.InternalError: Unsupported 1024-bit depth > > > > at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method) > > at sun.awt.motif.X11Graphics.lock(X11Graphics.java:797) > > at sun.java2d.loops.LockableRaster.lock(LockableRaster.java:163) > > at > > sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1414) > > at > > >sun.java2d.loops.RasterOutputManager.performOpaqueBlit(RasterOutputManager.java:979) > > at > > sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:654) > > at > > sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:472) > > at > > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2040) > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1634) > > at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:583) > > at javax.swing.JComponent.paint(JComponent.java:536) > > at java.awt.Container.paint(Container.java:770) > > at javax.swing.JFrame.update(JFrame.java:255) > > at > > sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248) > > at java.awt.Component.dispatchEventImpl(Component.java:2429) > > at java.awt.Container.dispatchEventImpl(Container.java:1032) > > at java.awt.Window.dispatchEventImpl(Window.java:714) > > at java.awt.Component.dispatchEvent(Component.java:2289) > > at java.awt.Even
Re: Segmentation Fault and 1024-bit reselotion?
Basically, your fix is to run the X server in a mode that doesn't freak out the Java AWT. Many X servers support a "-bpp" option that sets bits per pixel: Xvnc -bpp 8 ... There's also been some past discussion in this group recommending a value of 15, although I can't vouch for that one. If you run at 8 bpp and it's still unhappy, it may be choosing a default 8-bit visual the AWT doesn't like. That's unlikely, but the -cc option is useful if that occurs. As for the missing dingbats, that's had lots of discussion in past mail. I suggest you dive into the archives for the details. Basically, the solution involves acquiring some fonts and making some configuration changes to use those fonts. It's an annoying, but not fatal, problem. Nathan Brandon Anderson wrote: > > Here is the results from xdpyinfo... > > screen #0: > dimensions:1024x768 pixels (260x195 millimeters) > resolution:100x100 dots per inch > depths (1):16 > root window id:0x25 > depth of root window:16 planes > number of colormaps:minimum 1, maximum 1... > > As you can see, the depth is really only 16 bits. But one thing that might be > important to mention is that I'm not actually running X. I'm running Xvnc. > I've tried the same program on an actual X console(just a second ago), and it > seems to work. Any ideas on how I can get this to work in Xvnc, or does it > sound like I'm just going to be screwed? Oh by the way, on a side not, > everytime I run any program that uses awt classes I get the following warning a > whole bunch of time. It doesn't seem to cause any problems but its starting to > get annoying. > > Font specified in font.properties not found [--zapf > dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] > > I'd prefer to fix without having to comment out the 20-30 lines in the > font.properties, but if that's the only solution > > On Wed, 21 Jul 1999, Nathan Meyers wrote: > > > There are a lot of X server display depths and visuals that the AWT > > doesn't support, because they don't happen to exist on Solaris boxes > > :-(. But do you *really* have a 1024-bit deep display??? Could you post > > the results of running xdpyinfo? This I gotta see :-). > > > > Nathan > > > > > > Brandon Anderson wrote: > > > > > > I've been trying to get Java 1.2 pre v2 to run on my Redhat 5.2 box. I > > > evidently have run into some problems that make no sense to me at all, and > > > was wondering if anyone else had any suggestions. > > > > > > The application that I'm trying to get to run connects to another machine > > > and then should show a simple login screen. It connect to the other > > > machine just fine, but when it goes to display the login screen all I get > > > is blackscreen with a menubar across the top. After about 15 sec of total > > > cpu usage I get the following error message: > > > > > > Exception occurred during event dispatching: > > > java.lang.InternalError: Unsupported 1024-bit depth > > > > > > at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method) > > > at sun.awt.motif.X11Graphics.lock(X11Graphics.java:797) > > > at sun.java2d.loops.LockableRaster.lock(LockableRaster.java:163) > > > at > > > sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1414) > > > at > > > >sun.java2d.loops.RasterOutputManager.performOpaqueBlit(RasterOutputManager.java:979) > > > at > > > >sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:654) > > > at > > > sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:472) > > > at > > > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2040) > > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1634) > > > at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:583) > > > at javax.swing.JComponent.paint(JComponent.java:536) > > > at java.awt.Container.paint(Container.java:770) > > > at javax.swing.JFrame.update(JFrame.java:255) > > > at > > > sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248) > > > at java.awt.Component.dispatchEventImpl(Component.java:2429) > > > at java.awt.Container.dispatchEventImpl(Container.java:1032) > > > at java.awt.Window.dispatchEventImpl(Window.java:714) > > > at java.awt.Component.dispatchEvent(Component.java:2289) > > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:258) > > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:68) > > > SIGSEGV 11* segmentation violation > > > stackpointer=0x416f4e7c > > > > > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): > > > "AWT-Finalizer" (TID:0x404c55f8, sys_thread_t:0x8681d98, state:CW) > > > prio=9 > > > at java.lang.Object.wait(Native Method) > > > at java.lang.Object.wait(Object.java:424) > > > at su
Re: NoClassDefFoundError... argh!
Hi, The problem (actually slightly different but feels the same) is happening again. The magical trick of unpacking jars isn't going to work, this time, because my jars are already unpacked :( What's happening is basically that in the initialization of my app I read a config file that contains class names. I've checked several times by several different methods that the class actually does exist. (System.out.println the class name immediately before attempting to load it; cut-n-paste that class name into javap and a little test proggy I wrote. Both find the class no problem.) The exception describes itself as this: java.lang.ClassNotFoundException: java.io.IOException: Bad file descriptor I don't understand :( Thanks for your help, dstn. Here's the stack trace of that exception: at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:185) at sun.misc.Resource.getBytes(Resource.java:71) at java.net.URLClassLoader.defineClass(URLClassLoader.java:245) at java.net.URLClassLoader.access$1(URLClassLoader.java:216) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:280) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275) at java.lang.ClassLoader.loadClass(ClassLoader.java:237) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:124) ...at my code -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: NoClassDefFoundError... argh!
Hi, An ammendment to my original post: The ClassNotFoundException is successfully caught and execution continues (same as it would if a really nonexistant class name was given in the config file), but immediately after it comes the error everyone loves, java.lang.NoClassDefFoundError: MyClass The line the error is coming from (based on the stack trace) contains an array declaration and initialization: int n = whatever; MyClass[] array = new MyClass[n]; A few lines above that, a constructor of the same class succeeds. Hmm. I can provide more info if req'd. Thanks, dstn. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: NoClassDefFoundError... argh!
Dustin Lang wrote: > Hi, > > An ammendment to my original post: > > The ClassNotFoundException is successfully caught and execution continues > (same as it would if a really nonexistant class name was given in the > config file), but immediately after it comes the error everyone loves, > Umm I find that I will get htis error for a class when a class it derives on is not present. Thus if you dervie JFrame and dont have swing in your path you get and error saying your class is not found arrgh. Are all the super classes accessible ??? Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: NoClassDefFoundError... argh!
Hi, > Umm I find that I will get htis error for a class when a class it derives on > is not present. [snip] > Are all the super classes accessible ??? Hmm... The class that's getting the ClassNotFoundException extends the one the NoClassDefFoundError is coming from. In case that was incomprehensible: class A causes the ClassNotFoundException class B causes the NoClassDefFoundError A extends B. B extends java.lang.Object. I can javap both class A and B, so something very strange is happening. Thanks for your help, dstn. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Segmentation Fault and 1024-bit reselotion?
For what it is worth, I see the same problem under xfree86 at 16bpp, so I am not sure that it is an Xvnc problem. What is involved in adding support for new color depths? I would like to drop support for older versions of JDK for an application that I am developing that I would be willing to volunteer to help, if possible. Brandon Anderson wrote: Here is the results from xdpyinfo [snip] As you can see, the depth is really only 16 bits. But one thing that might be important to mention is that I'm not actually running X. I'm running Xvnc. I've tried the same program on an actual X console(just a second ago), and it seems to work. Any ideas on how I can get this to work in Xvnc, or does it sound like I'm just going to be screwed? Oh by the way, on a side not, everytime I run any program that uses awt classes I get the following warning a whole bunch of time. It doesn't seem to cause any problems but its starting to get annoying. [snip] > > Exception occurred during event dispatching: > > java.lang.InternalError: Unsupported 1024-bit depth > > > > at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method) > > at sun.awt.motif.X11Graphics.lock(X11Graphics.java:797) > > at sun.java2d.loops.LockableRaster.lock(LockableRaster.java:163) > > at > > sun.java2d.loops.RasterOutputManager.convertFrom(RasterOutputManager.java:1414) > > at > > sun.java2d.loops.RasterOutputManager.performOpaqueBlit(RasterOutputManager.java:979) > > at > > sun.java2d.loops.RasterOutputManager.compositeSrcDst(RasterOutputManager.java:654) > > at > > sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:472) > > at > > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2040) > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1634) > > at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:583) > > at javax.swing.JComponent.paint(JComponent.java:536) > > at java.awt.Container.paint(Container.java:770) > > at javax.swing.JFrame.update(JFrame.java:255) > > at > > sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248) > > at java.awt.Component.dispatchEventImpl(Component.java:2429) > > at java.awt.Container.dispatchEventImpl(Container.java:1032) > > at java.awt.Window.dispatchEventImpl(Window.java:714) > > at java.awt.Component.dispatchEvent(Component.java:2289) > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:258) > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:68) > > SIGSEGV 11* segmentation violation > > stackpointer=0x416f4e7c > > > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): > > "AWT-Finalizer" (TID:0x404c55f8, sys_thread_t:0x8681d98, state:CW) > > prio=9 > > at java.lang.Object.wait(Native Method) > > at java.lang.Object.wait(Object.java:424) > > at sun.awt.AWTFinalizer.run(AWTFinalizer.java:46) > > -- -- Rob Clark Dot Wireless, Inc. (858)552-2946 [EMAIL PROTECTED] --
Re: Segmentation Fault and 1024-bit reselotion?
Rob Clark wrote: > > For what it is worth, I see the same problem under xfree86 at 16bpp, > so I am not sure that it is an Xvnc problem. > > What is involved in adding support for new color depths? I would like > to drop support for older versions of JDK for an application that I am > developing that I would be willing to volunteer to help, if possible. If you can solve your immediate problems by running your X server in an 8-bit mode, do it. The JDK is not open source, and you'll need to jump through some hoops to contribute to the Blackdown port. If it's really, really important to your work that you fix the JDK, be prepared to dive into Java2D code that is, I'm sure, nice and hairy. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Jrun on linux and apachie?
Folks, I'm attempting to get java server pages and java servlets running on a remote Linux box (Redhat 6.0) with apache. I only have access to this linux box via telnet, no X or any graphics. What's the best JVM to use for something like this? It looks as if they all require a windowing system to run. Has anyone else done anything like this? Brent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re:Jrun on linux and apachie?
You should be able to setup JRun in text mode. Read Jrun manual. Also you should be able to control your Jrun via browser if you have paid for Jrun Pro. Steve Nguyen C.E.O. KBMail Software & Service Provider http://www.kbmail.com "Plan - Do - Review --> Success" Original message Date: Wed, 21 Jul 1999 22:29:17 -0600 (MDT) From: Brent Allsop <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Jrun on linux and apachie? -- Folks, I'm attempting to get java server pages and java servlets running on a remote Linux box (Redhat 6.0) with apache. I only have access to this linux box via telnet, no X or any graphics. What's the best JVM to use for something like this? It looks as if they all require a windowing system to run. Has anyone else done anything like this? Brent -- 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: Jrun on linux and apachie?
Brent Allsop wrote: > > Folks, > > I'm attempting to get java server pages and java servlets > running on a remote Linux box (Redhat 6.0) with apache. I only have > access to this linux box via telnet, no X or any graphics. > > What's the best JVM to use for something like this? It looks > as if they all require a windowing system to run. If you don't need JDK1.2 (which is still pre-release), then get 1.1.7 (glibc version). If you run it with the DISPLAY environment variable unset, then it won't try to use any X libraries or open an X server. If you do use the AWT, then you do need X... but workarounds are available to do that on a machine without a display. Sounds like that's not your situation. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
