RE: plugin 1.1.2 + Window
I've seen a workaround for this somewhere. The idea was that security permission is checked when object gets created and it is possible to deserialize window from serialized version saved from locally running application. Sounds messy, but the idea is to avoid calling constructor. I haven't tried this, but you may if you have time. The disadvantage is that this code can run only on jdk 1.1 and > On 17-May-99 [EMAIL PROTECTED] wrote: > I'm trying to debug an app / applet that puts up a > SplashScreen (extends Window). I can see the splash > screen fine as an application and with appletviewer, but > NOT with the 1.1.2. plugin in Netscape 4.5. Any ideas? > > This works on NT, but also fails on Solaris/Intel the same > as Linux. I tried changing SplashScreen to extend Frame > as a workaround. This works, but I really don't want the > window manager frame around it. Looked in the Bug > Parade, but haven't found it yet... > > Also, does anyone know why I get no Component events > from this Window? I first thought it might be a timing issue > since the splash screen is displayed only briefly. I put in > a ComponentListener and waited for "componentShown" > before continuing, but never received the event... :-( > > Thanks In Advance, > Russ > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- E-Mail: [EMAIL PROTECTED] Date: 17-May-99 Time: 19:22:23 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how to catch stdout
AFAIK if you use jni it doesn't create separate process. The problem is to
capture output of the same process.
For Unix-only solution I would try to create named pipe, redirect java
process's output to that pipe and see if I can read it from inside the program.
It's just an idea. I haven't tried it.
On 24-Aug-99 [EMAIL PROTECTED] wrote:
> Here's one way of trapping stdout from an unrelated program. I'm pretty
> sure there's better way, but this works in Blackdown 1.2v1.
>
> Process process = Runtime.getRuntime().exec("yourprogram");
> process.waitFor();
>
> // getInputStream() returns the input stream connected to the normal
> // output of the subprocess.
>
> BufferedReader in =
>new BufferedReader(new
> InputStreamReader(process.getInputStream()));
>
> while((line = in.readLine()) != null){
> System.out.println(line);
> // Or whatever
> }
>
> -Jerry
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
E-Mail: [EMAIL PROTECTED]
Date: 24-Aug-99
Time: 10:31:45
Andrey.
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
problem starting jdb -mx64000000 xxxxxxxxxxxx
Hi, all! I wonder if anybody else had same problem: when I start jdb with -mxNNN parameter it crashes like this: [andrey 1]$ jdb -mx6400 Initializing jdb... *** panic: Internal error dumping threads! *** panic: Internal error dumping threads! "../../../../src/genunix/java/runtime/memory_md.c", line 302: assertion failure Full thread dump: "../../../../src/genunix/java/green_threads/src/monitor_md.c", line 435: assertion failure SIGABRT 6* abort (generated by abort(3) routine) Failed accessing debugging session on linux.thethinkingmedia.com: invalid password.[andrey 1]$ If I don't use -mxNN option - it's Ok. My system is RH6.0 with updates from RH site. [andrey 1]$ java -version java version "1.1.7B" Thanks! -- E-Mail: [EMAIL PROTECTED] Date: 17-Sep-99 Time: 11:27:25 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Question about file names
Hi, All! I have generic question: Is there any PLATFORM_INDEPENDENT way to test if given String defines a valid file name without actually trying to create the file. I want to perfom such test in the KeyEvent handler and attempting to create file every time doesn't sound good to me. Thanks. -- E-Mail: [EMAIL PROTECTED] Date: 20-Oct-99 Time: 11:34:40 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Serialization with Ibm jdk???
Hi, All! I just noticed a little problem: When I tried to serialize class with "private static int xxx" IBM's jdk hung (Blackdown's didn't :) ) It works fine if I make it "private transient static int xxx". My question is: What java SUPPOSED to do with class like this. I haven't seen it in documentation but I guess it should just ignore static fields. Do I have to make static fields ALWAYS explicitly TRANSIENT? Thanks. -- E-Mail: [EMAIL PROTECTED] Date: 27-Oct-99 Time: 10:59:37 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Icon for an application
Hi, Dirk!
Here is an example that creates ImageIcon (it's swing) from gif.
The advantage is that /images/*.* is relative to CLASSPATH i.e.
you don't care about exact location and it also works fine if resources come
from jar. It is also platform-independent i.e. the same line of code
works fine on win.
theIcon = new ImageIcon(getClass().getResource("/images/test.gif"));
Andrey.
On 19-Nov-99 Dirk Waxweiler wrote:
> Hi everybody
>
> I want to insert an Icon for my GUI. I get an Icon, but it ist a black
> point.
>
> URL url = new URL("file:///./Brief.gif");
> Image icon = Toolkit.getDefaultToolkit().getImage(url);
> prog.setIconImage(icon);
>
> Is my gif too big ?
>
> MfG Dirk
>
> ==
> Dirk Waxweiler
> incotech * 23,rue des Bruyères * L-1274 Howald/Luxembourg
> Tel.: +352 29 53 83 -1 * Fax: +352 29 53 83 222
> e-mail: [EMAIL PROTECTED] * internet: www.incotech.lu
> ==
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
E-Mail: [EMAIL PROTECTED]
Date: 22-Nov-99
Time: 14:17:14
Andrey.
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
I have core file from jikes (if anybody is interested)
Hi, All! I have core file from jikes (about 6M) if anybody is interested:) I don't want to go with this to IBM's site - it's not "netscape-friendly" :) -- E-Mail: [EMAIL PROTECTED] Date: 22-Nov-99 Time: 16:34:49 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: I have core file from jikes (if anybody is interested)
On 23-Nov-99 Chris Abbey wrote: > what exactly do you feel is unfriendly twoards netscape about > developerworks?? the fact that it doesn't have one of those assinine > "best viewed with" icons? I don't really care about all this "best viewed Icons". With MY fonts and MY version of netscape I find ibm.com hard to navigate. This is my PRIVATE opinion and you are welcome do disagree:) My point was that somebody might want to see core file. And somebody did. And I'm not crying out and not asking for help. And I'm pretty satisfied with jikes despite of that crash that by the way happened only once when I made some big changes to the project. Now it works fine. > The bug system is jitterbug for crying out > loud now if you're talking about some of the stuff served up > from domino then I can almost see your point... but that crap > isn't friendly to *any* browser... so your argument is mute. > > Anyway, I suspect you'll get more reception on [EMAIL PROTECTED] > than [EMAIL PROTECTED] What is your machine config... I > can guess it's Linux, but what distro, kernel, libc, etc... and what > version of jikes? Also what were you doing when it dumped, and can it > be recreated? Without this standard kind of information most bug reports > are useless. jikes: Version 1.05 (16 Sep 99) by Philippe Charles and David Shields, IBM Research. RH linux: Linux version 2.2.5-22 ([EMAIL PROTECTED]) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Wed Jun 2 09:17:03 EDT 1999 libc: libc-2.1.1.so I was doing lots of changes to the project. It didn't compile. After time I found that I have core file from jikes. I thought that people with some knowledge of linux+jikes (that most likely read this news group) might want to see it. -- E-Mail: [EMAIL PROTECTED] Date: 23-Nov-99 Time: 10:39:41 Andrey. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: mod_jk.so
On Sun, Apr 15, 2001 at 02:31:32AM +0900, Yasuhiro Kaizu wrote: [skpd] > [root@server local]# apache/bin/apachectl restart > apache/bin/apachectl restart: httpd not running, trying to start > Syntax error on line 8 of > /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: > API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so > is garbled - perhaps this is not an Apache module DSO? > apache/bin/apachectl restart: httpd could not be started Try to download source distribution and compile it yourself. There is a Makefile.linux file in jakarta-tomcat/src/native/apache1.3 You would need to edit it to set apache and java location. Than you just use "make -f Makefile.linux" to compile it. There is also an example on their mod_jk documentation page of how to do it. Give it a try:) BTW there is jakarta mail list dedicated to tomcat. -- oo Andrey oo oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo "All mail clients suck. This one just sucks less." -- http://www.mutt.org/ Jeremy Blosser oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Enable server X with graphics
On Tue, Oct 22, 2002 at 07:18:29PM +0200, Tani wrote: > Hi, > I've a class that draw a image with Graphics2D and BufferedImage and > write a jpeg file of this image. > In linux this class tell me it needs to be open the X server. > Is there some way to do this without open th X server? Here is a good page that enumerates few options, look in 'Loading images without X server' section. http://www.geocities.com/marcoschmidt.geo/java-image-faq.html -- ~ Of all the things I've lost, I miss my mind the most ~ - Andrey -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
