Re: do different jvm perform calcs differently?
On 1999-08-18 19:31:58 +0200, Martin Schröder wrote: > See >http://localhost/psdoc/java/langspec-1.0/clarify.html http://java.sun.com/docs/books/jls/clarify.html 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: linux distribution preinstall java
On 1999-08-18 16:46:33 -0700, J.P.Lewis wrote: > I heard that Redhat says that they can't for licensing reasons. > On the other hand, I believe that Mandrake includes blackdown > on the applications cd. > > Does anyone know what the issue is? Is the licensing problem > true even of the jre? The jdk-pre may not be distributed. The jre may be distributed. 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: Create an Image without using AWT
Nathan Meyers wrote: > It's a "feature" of the AWT. A good solution is to run the Xvfb X server > (part of the XFree86 suite; you'll find it in most distributions) - it > runs an X server in a virtual frame buffer instead of a physical > display. That will make AWT happy without requiring a real display. And the object needed is a BufferedImage (part of Java 2D). Robbie -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Weird "system" / "execv" problem ...
Hi there
This is what I am doing inside a "libmylib.so" which I am loading from
a java app. The problem is that the two lines "execl" and "system"
refuses to take effect. It correctly executes all the other parts
like the "fprintf" statements. Is there somekind of a limitation
that "system" calls and "exec" group of calls do not work when using
a java wrapper over a shared object C library ?
if ((pid = fork()) <0 ) {
fprintf(stdout,"fork() error\n");
} else if (pid == 0) {
fprintf(stdout,"Inside the forked process\n");
execl("/bin/sh","sh","-c","/sbin/ifconfig",(char *) 0);
_exit(127);
} else {
system("/bin/ls");
fprintf(stdout,"Reached the end\n");
return(errno);
}
I declare the above function as "public native" in the java wrapping
function which is called by the java app.
Any help is appreciated.
-amlan.
--
Amlan Saha [EMAIL PROTECTED]
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Create an Image without using AWT
Nathan Meyers wrote: > > It's a "feature" of the AWT. This is really a "feature" of Java/X, or Java/Linux, isn't it? I don't think that this is a problem on NT. - Robb -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Weird "system" / "execv" problem ...
On Thu, 19 Aug 1999, Amlan Saha wrote:
> Hi there
>
> This is what I am doing inside a "libmylib.so" which I am loading from
> a java app. The problem is that the two lines "execl" and "system"
> refuses to take effect. It correctly executes all the other parts
> like the "fprintf" statements. Is there somekind of a limitation
> that "system" calls and "exec" group of calls do not work when using
> a java wrapper over a shared object C library ?
>
> if ((pid = fork()) <0 ) {
> fprintf(stdout,"fork() error\n");
> } else if (pid == 0) {
> fprintf(stdout,"Inside the forked process\n");
> execl("/bin/sh","sh","-c","/sbin/ifconfig",(char *) 0);
> _exit(127);
> } else {
> system("/bin/ls");
> fprintf(stdout,"Reached the end\n");
> return(errno);
> }
>
> I declare the above function as "public native" in the java wrapping
> function which is called by the java app.
>
> Any help is appreciated.
Would it be possible to use java.lang.Runtime to execute the commands you
need? Or do you absolutely have to execute the commands inside native
methods? I think it's possible to examine the return values of the
commands, if that's needed.
Harri
Harri Sunila
Research assistant
Helsinki University of Technology
Telecommunications Software and Multimedia Laboratory
URL: http://www.tcm.hut.fi/~harri
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
trying to run jdk1.2 (pre 1 or pre 2) on SuSE 6.1 and RH 6.0
In both of these environments trying to run java (from /bin) returns the error: libjava.so not found in trying to resolve this i've hard coded the location of the library path in the script file, but then i get an error that something is terribly wrong with the classpath... and just running java, with no args should not require a classpath. the jdk has worked fine under RH 5.x. does anyone have ideas as to the reason i'm getting this error? cheers, chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: trying to run jdk1.2 (pre 1 or pre 2) on SuSE 6.1 and RH 6.0
> Chris LeDantec writes: Chris> In both of these environments trying to run java (from Chris> /bin) returns the error: Simply don't run it from /bin Chris> libjava.so not found You need the glibc-2.1 version of the JDK 1.2pre2 for glibc-2.1 based systems like RedHat 6.0. Juergen -- Juergen Kreileder, Blackdown Java-Linux Porting Team http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Argo/UML 0.7 and sun/tools/agent/Agent not found
Hi, Juergen Kreileder wrote: > > Andreas Rueckert writes: > Try something like > > $ java -jar -Xdebug -Djava.compiler=NONE \ > -Xbootclasspath/a:/usr/local/jdk1.2/lib/tools.jar > argoUML.jar Invokation gave a same resul, ArgoUML window dies, but job is running. Because af this problem I reinstalled JDK last weekend and because I didn't patch font file this time, I get a lot of missing font errors. Does that have any to do with this? Before reinstallation I had patched font config file and I got rid those errors. It didn't help with argo, though. And second thing I have not mentioned yet, and hopefully it does not have anything to do with this, is that I'm not using XFree86 server but Accelerated-X instead. XFree didn't support my graphics card. > Juergen > > -- > Juergen Kreileder, Blackdown Java-Linux Porting Team > http://www.blackdown.org/java-linux.html I still have faith in "Write once, run everywhere" slogan, though:) -- [EMAIL PROTECTED] http://www.iki.fi/kari.kangas voice: +358-40-5502640 at work [EMAIL PROTECTED] http://www.ssf.fi voice: +358-9-6132 8654 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Create an Image without using AWT
> Robb Shecter writes: Robb> Nathan Meyers wrote: >> >> It's a "feature" of the AWT. Robb> This is really a "feature" of Java/X, or Java/Linux, isn't it? I Robb> don't think that this is a problem on NT. It's a Java/X "feature". OTOH can you run NT without a display? Juergen -- Juergen Kreileder, Blackdown Java-Linux Porting Team http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Create an Image without using AWT
Another option might be the Java2 2D graphics. As I recall, one of the new features is the ability to create images in backend, server-type applications. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nathan Meyers Sent: Wednesday, August 18, 1999 17:33 To: Spectron International, Inc. Cc: [EMAIL PROTECTED] Subject: Re: Create an Image without using AWT "Spectron International, Inc." wrote: > > I need to create an Image object in a servlet. The problem is that the > createImage() functions seems to need AWT and I can't create an AWT object > in a servlet because it always tries to connect to the X Server. Is there > something like a MemoryImage class that I can create to use as an offscreen > canvas in a servlet? I need that because I wan't to be able to return a GIF > image from a servlet like: > > It's a "feature" of the AWT. A good solution is to run the Xvfb X server (part of the XFree86 suite; you'll find it in most distributions) - it runs an X server in a virtual frame buffer instead of a physical display. That will make AWT happy without requiring a real display. Nathan -- 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]
jdb on jdk 1.2 v2
Hi, I am having big problems with jdb in the jdk 1.2 v2 release with RH 6.0, breakpoints don't break for instance. Has anyone else seen this? David David Kirby.vcf
How can I setup a Chinese Java on Linux?
Hi, since we want to provide a chinese translation of our software, we are trying to set up an environment on linux where we can run the chinese localized version of the software. Everything was easy up to now, since all translations before used the iso-latin charset, and we only had to use -Duser.language=es or whatever. I guess we have to use -Duser.language=cn now, but how do we get the correct fonts? Does anybody have step-by-step instructions that explain what we need to install and run? Thanks, Ulli PS: We are using Redhat 5.3 with Kernel 2.2 and JDK 1.1.7-v3 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How can I setup a Chinese Java on Linux?
Ulli Kortenkamp wrote: > [...] Oh ... sorry... I should have checked the FAQ first. Please ignore my question. Sorry again, Ulli http://www.cinderella.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How can I setup a Chinese Java on Linux?
Ulli Kortenkamp wrote: > Please ignore my question. Well, after trying to make things work and failing badly, I would like to here of anybody how successfully enabled the Chinese locale on his Linux Java. Thanks, Ulli -- ETH Zentrum, IFW B43, CH-8092 Zürich Phone +41-1-63 27393 // FAX +41-1-63 21172 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java on Linux...
> If I am just am just doing basic Swing/Java apps on Linux. > And want a farily stable solution, would my best bet to be > JDK 1.1.8 (when it comes out in a bit from Blackdown) and > Swing 1.1.1 from Sun? Or is there THAT much difference > between that solution and JDK 1.2prev2? Well, Sun isn't supporting the JFC under Java 1.1 anymore, or so I hear. So if you will need to use future Swing/JFC improvements and bug fixes, you should probably go with Java 2. Of course if this is a non issue, I personally would use a faster VM like IBM's. Just my 2 cents. Nathan Ehresman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Problems installing JDK 1.1.7 and JDK 1.2 pre-v2
Hi guys... I am getting all sorts of problems with JDK 1.1.7 and JKD 1.2 installation in Linux (I have a Pentium II/300 system with RedHat 5.2 and libc-2.0.7.so). I try to run the programs (either in binary or script form) from the bin/x86/native_threads directory each time (by the way, examining the scripts I see references to sun.tools.* classes - are they included in the libraries?). The messages I get are "Can't determine application home" and "No such file" (!), although I provide the correct path to the executables. I presume it has something to do with the script, because the interpreter, java, being in binary form, can run (but gives me run-time errors like "class not found", etc.). The only extra thing my installation has is the ATM patch. Examining the output of ldconfig -D (I attach the text file) I see a number of warnings, which look suspicious. So, my questions are: Is there obviously wrong in what I 'm doing and/or my installation (see ld file)? Has somebody faced the same problems and knows of a solution? Also, which is version 3 of the Linux jdk1.1.7 implementation for libc2.0 (as well as libc2.1) or not? I used v3 initially, but then switched to v1a without any better luck. Thanks, Dimitris <> ld
Re: linux distribution preinstall java
Martin Schröder wrote: > > On 1999-08-18 16:46:33 -0700, J.P.Lewis wrote: > > I heard that Redhat says that they can't for licensing reasons. > > On the other hand, I believe that Mandrake includes blackdown > > on the applications cd. > > > > Does anyone know what the issue is? Is the licensing problem > > true even of the jre? > > The jdk-pre may not be distributed. > The jre may be distributed. SuSE has the JDK. SuSE 6.0 has the 1.1.7 JDK I think, and the JRE, no version of 1.2 though. I don't know about 6.2. -- Rachel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems installing JDK 1.1.7 and JDK 1.2 pre-v2
Dimitris Terzis wrote: > > Hi guys... > > I am getting all sorts of problems with JDK 1.1.7 and JKD 1.2 installation > in Linux (I have a Pentium II/300 system with RedHat 5.2 and libc-2.0.7.so). > I try to run the programs (either in binary or script form) from the > bin/x86/native_threads directory each time (by the way, examining the > scripts I see references to sun.tools.* classes - are they included in the > libraries?). Don't try to run from those directories. The launch scripts do a lot of important setup. You need to invoke the scripts (java, javac, etc.) found in the /bin subdirectory - you shouldn't be in that directory when you do it, and you shouldn't use symbolic links from elsewhere to those scripts. (The latter restrictions have to do with shell-based tricks used in the scripts to figure out where the JDK is installed.) Nathan > > The messages I get are "Can't determine application home" and "No such file" > (!), although I provide the correct path to the executables. I presume it > has something to do with the script, because the interpreter, java, being in > binary form, can run (but gives me run-time errors like "class not found", > etc.). > > The only extra thing my installation has is the ATM patch. Examining the > output of ldconfig -D (I attach the text file) I see a number of warnings, > which look suspicious. > > So, my questions are: Is there obviously wrong in what I 'm doing and/or my > installation (see ld file)? Has somebody faced the same problems and knows > of a solution? > > Also, which is version 3 of the Linux jdk1.1.7 implementation for libc2.0 > (as well as libc2.1) or not? I used v3 initially, but then switched to v1a > without any better luck. > > Thanks, > > Dimitris > > <> > > > Name: ld >ldType: unspecified type (application/octet-stream) > Encoding: quoted-printable -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: linux distribution preinstall java
On Thu, 19 Aug 1999, J.P.Lewis wrote: > I think we should lobby a couple of the major linux distributions > to include blackdown on their CDs. Most developers have a fast > net connection, but downloading and correctly installing java > is quite an effort if all you have is a modem connection. The full JDK is included with SuSE - has been for some time. They are sticking with the 1.1.x distrib at the moment I believe - check www.suse.de/e/ for details of what comes with 6.2, which is just out. -- Bill. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Problems installing JDK 1.1.7 and JDK 1.2 pre-v2
Nathan, > > I try to run the programs (either in binary or script form) from the > > bin/x86/native_threads directory each time (by the way, examining the > > scripts I see references to sun.tools.* classes - are they included in the > > libraries?). > > Don't try to run from those directories. The launch scripts do a lot of > important setup. You need to invoke the scripts (java, javac, etc.) > found in the /bin subdirectory - you shouldn't be > in that directory when you do it, and you shouldn't use symbolic links > from elsewhere to those scripts. (The latter restrictions have to do > with shell-based tricks used in the scripts to figure out where the JDK > is installed.) I am aware of this trickery, except that my /bin subdirectory does not contain any of the scripts(!). They 're all under /bin/x86/.../native_threads. And they don't do anything when I run them! Oh, yes, I have downloaded and unzipped the correct archives... It must be something easy that I 'm missing, but what? Any other clues? > Nathan Thanks, Dimitris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
