Hi,
I have a strange problem using rmi that is somehow related
to .jar files. This is 1.1.7a on Redhat intel 5.1.
Here's what seems to happen:
- remove all .class & .jar files
- make (compiles and then produces a .jar file)
- start rmiregistry
- run the server, get this error:
java.rmi.Serve
Also, "acceptable performance" depends on your application. If you
want to write big numerical codes that run for three months, stick with
FORTRAN. If your Java app spends most of it's time waiting for queries
to get back from a database, information to come over the net, or for
a user t
I have a Client/Server application running under Linux. The server part
is a background process running continuously under Linux.
1. Is it possible to create a thread dump of this application
telnet)after the application has been launched and is running in a
background process (a process which
I am making a viewing program that needs to acces C(++)-code. I have compiled
a Native library (libLoad.so) by means of the following commands :
g++ -fPIC-c -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.o
ld -shared Load.o -o libLoad.so
When I run my java-program the following e
Hi,
Anybody know how to copy a file in Java?
Thanks.
Sze Yuen
_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
Hope this little example helps you :)
import java.io.*;
class copy {
public static void main (String args[]) throws IOException {
if (args.length != 2)
throw (new RuntimeException ("Syntax: copy "));
FileInputStream in = new FileInputStream(args[0]);
FileOutputS
>(a) Most of the other unix implementations use kernel threads now
>(Solaris, AIX, Digital Unix),
Really? Cool.
>(b) kernel thread semantics are different from user thread semantics,
Technically, there is only one semantic for Threads in Java. In theory
Java is a completely specified runtime,
Hi:
I just have one mission to read a huge file(more than 500M) using
java. Is there anyone having such kind of experiences on that?
My system is Java1.1.7a and running on Windows95/NT or Linux with
X-windows. And my runtime configuration is setting up 100M to 500M
memory size ,but my real
Quanyu,
It actually depends on what you want to do with the file. If you can read it bit
by bit and not have it in memory all the time, a BufferedInputStream on top of
an InputStream will probably help performance. If you need random access to the
file, use the RandomAccessFile class.
Otherwise,
Hi,
I am reading JFC. I am pondering how to seperate text contents of
one decument from its style such as font size, font, color when I
save it. For example, I want to save text content into mytext.txt
and its style into mytext.sty. When I reopen mytext.txt, progra
these days I will implement Fibnacci Heap in Java.
but it's so hard to me..
who know about this...??
please help me...
I know the algorithm of this.
but I have to implement in Graphical Interface..
help me...
I'm so sad now.
source or web site or any other information hel
We've had a lot of posts on java-linux recently that are generic Java
questions, that have nothing at all to do with Linux. I'm here to
remind the list, once again, that this sort of question is *not
appropriate*. Do not post questions here unless they are about the
specifics of Java on Linux. Fur
One solution is read line by line process it write to a temporary file on
you hard drive . This way you need say a StringBuffer as big as a line long
500 should do it although it does not matter. Every time you start a new
line use setLength( 0 ); and start appending .
When you are done do what e
Moses DeJong wrote:
> I have not seen much about the native threads port for 1.1.7 in the
> mailing list archives. Is there anyone out there that has gotten the
> native threads version of 1.1.7a1 to work with JNI? I have an application
> that compiles and works on Solaris, Windows, and IRIX but
Hi,there:
Thanks for the comments !
I think I need to specify more detail about my mission.
I just worked on file which contain the image info, I need to get the
info from the huge file. The file format like:
Structure Table 1;
Structure Table 2;
pixel 1:
{
Loop 1:
Hi Denis.
You should build your library using g++ instead of ld.
The reason is that g++ links additional object files that
are essencial for a library to work well (namely, crtbegin.o,
crtend.o, crti.o, and crtn.o).
Try:
g++ -fPIC -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.
> In practice, Java threads are woefully underspecified, and so it's
> nearly impossible to write correct multithreaded Java. This is the
> most serious deficiency in Java. I agree, kernel threads (with
> preemption and real priority scheduling) is the right way to go, and
> I'm glad to see that
Here's a heads up that I'll probably be available to do more contract
work in/near Seattle soon, or remotely from Seattle if that's an
option. I've been using Java on Linux for about 1.5 years, Ada for
about 7 years before that (embedded systems for Boeing 777, Space
Station, etc.), and before th
Quanyu,
I would say:
1. Again, use BufferedInputStream
2. Use your own buffer, i.e., a char[1024] or something equally large, and read
the file in chunks.
-Mario.
Quanyu Zhu wrote:
> Hi,there:
>Thanks for the comments !
>I think I need to specify more detail about my mission.
>I j
We are running java 1.1.7 for the alpha on RedHat 5.2. Java on the
command line works fine, but anything we try using graphics gives an error
about not finding libawt.so and libXm.so. Both files are there. libawt
is in a green_threads subdirectory of java/lib and libXm is in
/usr/X11R6/lib. I
Salud y naturaleza: [EMAIL PROTECTED]
http://www.pelayo-j.com [EMAIL PROTECTED]
ftp://ftp.pelayo-j.com
-Mensaje original-
De: David Harvill <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: jueves 17 de diciembre de 1998 19:01
> "David" == David Harvill <[EMAIL PROTECTED]> writes:
David> We are running java 1.1.7 for the alpha on RedHat 5.2.
David> Java on the command line works fine, but anything we try
David> using graphics gives an error about not finding libawt.so
David> and libXm.so. Both file
>1. Is it possible to create a thread dump of this application
>telnet)after the application has been launched and is running in a
>background process (a process which may have been started in an earlier
>sessions)
make sure that when you start it you redirect stdout/err to files
then send it
I've seen this before... caused by a bad jar file generated by my script;
try listing the contents of the first jar, they may not be what you expect...
mine were showing up with an 'extra' package, such that my class "foo.bar"
was in the jar file as "builddir.foo.bar". It seemed to be related to w
I work for a startup software company that is
building a 100% Java web-based training package. We're using the JRun webserver
for servlets, and it's all-in-all a pretty cool package.
I've got the installers just about built for
Win32, and it looks like it's gonna be a while before Mac ha
25 matches
Mail list logo