Re: Netscape 4.05 support Java 1.1??
Hi, The NoSuchMethodError on AWT 1.1 methods is one of the surest ways of testing whether a browser supports 1.1 or not...if you get it, it doesn't. Get Netscape 4.06, it reportedly DOES support 1.1. Chi-Ming Yang wrote: > Hi there, > I got netscape 4.05 that came with RedHat 5.1. Does it support Java 1.1? I >tried the following and got errors: > I have JDK1.1.6 installed. Will that help netscape? > > Thanks > > http://www.javasoft.com/applets/jdk/1.1/demo/NervousText/index.html > > #Applet exception: error: java.lang.NoSuchMethodError: > java.awt.Component: method addMouseListener > (Ljava/awt/event/MouseListener;) V not found > at NervousText.init(NervousText.java:63) > at netscape.applet.DeriveAppletFrame.run(DerivedAppletFrame.java) > at java.lang.Thread.run(Thread.java) > > - > Free e-mail group hosting at http://www.eGroups.com/
Re: Java and CVS
Travis Shirk wrote: > Hello All, > > This post does not have anything to do with Linux, but some of you > may be able to help since you're Unix users. > > --- > > I'm having some problems using CVS with a pretty large Java API. The problem > is pretty basic, I want my CVS repository to contain only java source files. > This is necessary because (1) I don't want CVS to try and merge .class > files and (2) people working with the repository should need to do a cvs add > on only the source file and not the new .class file. My problem is > with dependencies. Many of the classes depend on other classes that > may not have been created yet in the 'make all' build process. I've played > around with javac -depend but I don't think it likes how I organize > my source environment. I have all .java files under a src directory > in each subpackage directory. So if I have a package called foo.bar > the directory hierarchy would look like this: > > foo/bar contains the .class files > and foo/bar/src contains the .java files > > I refuse to mix the .java and .class files and think it is ridiculous how > java tools expect this. > > Dependencies are not a problem once all the .class files are around, but > when a user checks out a new repository I don't want them to get any .class > files. Basically, the first thing that should be done after checking out the > repository is a 'make all' so that all the .class files are built. > > Has anyone ever solved this problem. This is the first time I've really > wished for header files, because C/C++ does not have this problem during > compile time. > > Travis Shirk > [EMAIL PROTECTED] Hi, Well, I don't use CVS but I do like to have my .class and .java files separate. So here's what I do: 1. Create a source directory hierarchy that mirrors the .class package hierarchy (i.e., for package COM.whatever.mylib create /COM, /COM/whatever, /COM/whatever/mylib) 2. Add the root of the source directory ( in the example) to your CLASSPATH It's not as neat as I'd like (source files shouldn't belong in the classpath) but the dependency checking works fine. Hope this helps, -Mario.
Re: Java Foundation Class / Swing library
Swing works on Linux just fine, download the Solaris version and unpack it. -Mario. Gautham Nookala wrote: > Is the Swing library available for linux ? > > -- > Gautham > > (Vox) 901-522-8708(Email) [EMAIL PROTECTED] > >
Re: rmid with JDK1.1.6
Hi,
What I do to activate business objects is create a "Broker" object that is
started by hand, this object is responsible for activating other business
objects through a Factory pattern:
Broker broker = Naming.lookup ( blah blah blah );
myObject = (MyInterface)broker.createObject ("COM.mydomain.MyInterfaceImpl");
Interesting thing here, the business objects themselves don't have to register
with the rmiregistry (unless some other part of your application needs this
functionality).
Hope this helps,
-Mario.
Michael Kranz wrote:
> Hi,
>
> believe it or not: I really mean rmid; look at
>
> http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/rmid.html
>
> The same is true with Windows. So my question was, is there rmid in
> JDK1.1.6, especially under Linux? What I learned from you, folks: Apparently
> not. But read ahead...
>
> Is there any equivalent for rmid? If I interpret Mik and Joe correctly, it
> seems so, because they say running RMI-Objects with Linux. But how does an
> application-object-server under JDK1.1.6 activate business-objects (which I
> compile with rmic and register via rmiregistry) without rmid? (According to
> the JDK1.2 documentation above even rmiregistry has to access rmid). Maybe
> you are already using some CORBA-stuff underneath instead of "Pure RMI"?
Re: Help! appletviewer doesn't work
Hi,
The parameter to appletviewer is an HTML file, make sure you're calling the
HTML file and not the .class file. If you are calling the HTML file, in the
CODE= parameter you need to specify the ".class" extension (confusing? yes. In
applets you use the .class, in applications you don't)
Hope this helps,
-Mario.
Ryuji Yokoyama wrote:
> Hello All!
>
> I am newbie and have a problem. I downloaded jdk-1_1_6-5_glibc_i386.rpm
> and installed it. When I tried to use appletviewer, I got following error
> message. "I/O exception while reading /root/temp/hello Make sure that hello
> is a file and readable." I added my .bashrc file to
> CLASSPATH=.:/usr/bin/jdk-1.1.6; My code is following. I don't think this
> is a problem of my code. What else do I have to do? I am using RedHat 5.1.
>
> Thanks in advance.
>
> import java.awt.*;
> import java.applet.*;
>
> public class hello extends Applet
> {
> public void paint(Graphics g)
> {
> g.drawString("Hello from Applet", 60, 75);
> }
> }
>
Re: Barcode Scanner / Cash Registers
You might want to check out JavaPOS, somewhere on http://java.sun.com -Mario > > At 09:32 AM 10/22/98 +0100, M. N. Khan wrote: > >Hello all. > >Has anyone worked with java and cash registers / barcode scanners etc..? > >I need to know which ones are compatible with java and linux, so I can buy > the right ones. > >I will be writing a java program on linux for a Retail clothes company who > want a complet stock and sales software. > >Any ideas? Do I need any special drivers? Are there any modules in java > that I need? > >Any other suggestions? > >Thanx > > > > > >
Activator and JDK 1.1.7+TYA?
Hi, I'm probably asking a dumb question, but hope springs eternal...I'm sort of hoping the README isn't up to date... Can Java Activator run on JDK 1.1.7+TYA? (or even without TYA). I don't relish having to have two distinct JDK versions on the same machine, what with all the problems with environment vars pointing to the wrong version. According to the Java Activator README on blackdown: Versions The Runtime-plugin for Linux is available on both glibc and libc5 platforms. The following configurations are absolutely neccessary: glibc Steve Byrne's 1.1.5v5 glibc port of the jdk (jdk1.1.5v5-980311.tar.gz) libc-2.0.6.so libdl-2.0.6.so ld-2.0.6 The output of 'java -version' should return "cls:03/11/11-08:49" n libc5 Steve Byrne's 1.1.5v6 libc5 port of the jdk (jdk1.1.5.tar.gz) libc.so.5.4.44 or greater libm.so.5.0.9 or greater libdl.so.1.8.5 or greater The output of 'java -version' should return "Linux_JDK_1.1.5_v6"
Re: Basic installation. Please Help.
What does it use, then? -Mario. [EMAIL PROTECTED] wrote: > > I do hope someone comes up with a better idea than classpath RSN: mine runs > > to well over 2K. > > 1.2 does not use classpath, praise be. > > M.
Re: Basic installation. Please Help.
Hmmm... More or less what I do now, in my .cshrc I have a loop that adds all the .jar's in my $HOME/java/jars directory to my CLASSPATH. Sounds cool! -Mario. [EMAIL PROTECTED] wrote: > My understanding is that all jars found in a certain directory are > used. I suppose the idea is you symbolically link your jars to there. > > M. > > > From: Mario Camou <[EMAIL PROTECTED]> > > CC: [EMAIL PROTECTED] > > Subject: Re: Basic installation. Please Help. > > > > What does it use, then? > > > > -Mario. > > > > [EMAIL PROTECTED] wrote: > > > > > > I do hope someone comes up with a better idea than classpath RSN: mine runs > > > > to well over 2K. > > > > > > 1.2 does not use classpath, praise be. > > > > > > M. > > > >
Linux Takes Lead in Server-Side Java Performance /IW November 23, 1998
Hi all, Check this out (I'm not including the full text in the interest of conserving bandwidth): http://www.internetworld.com/print/current/webdev/19981123-java.html Way to go!
How to do a thread dump from program?
Hi, I'm having some problems with threads, so I need to do a thread dump (same thing that Ctrl-\ does) but from within the program (i.e., I catch an Exception and want to do a thread dump that moment). Does anyone here know how to do that? Basically, I'm getting an "IllegalMonitorStateException: current thread not owner" when I do a notifyAll(). This is with JDK 1.1.7v1a and the green threads package. Thanx, -Mario.
Re: How to do a thread dump from program?
Juergen,
Thanx for the quick response. See below
Juergen Kreileder wrote:
> >>>>> Mario Camou writes:
>
> Mario> Hi,
> Mario> I'm having some problems with threads, so I need to do a
> Mario> thread dump (same thing that Ctrl-\ does) but from within
> Mario> the program (i.e., I catch an Exception and want to do a
> Mario> thread dump that moment). Does anyone here know how to do
> Mario> that?
>
> You can get a partial stack trace with Thread.dumpStack, or Throwable's
> printStackTrace method.
Oh, I know about those. I'm not interested in the stack trace, I need the
*Thread* dump. To see what I mean, hit -\ (that's ctrl+backslash) in the
TTY from which you're running a Java application.
> Mario> Basically, I'm getting an "IllegalMonitorStateException:
> Mario> current thread not owner" when I do a notifyAll(). This is
> Mario> with JDK 1.1.7v1a and the green threads package.
>
> You need a lock on the object on which you want to call notifyAll().
> E.g.:
>
> synchronized (o) {
> try {
> o.notifyAll();
> } catch (IllegalMonitorStateException e) {
> e.printStackTrace();
> }
> }
That's basically what I'm doing. The strange thing...I tried to change
"synchronized (data)" to "synchronized (this)" and it magically started working.
Any ideas?:
public class Foo {
private Vector data;
public Vector getData() {
if (data == null) {
return null;
}
synchronized (data) {
while (status != LOADED) {
try {
wait();
} catch (InterruptedException ex) {}
}
status = IDLE;
return data;
}
public void loadData() {
data = new Vector();
synchronized (data) {
try {
while (something) {
SomeObject obj;
// blah blah blah (create object obj and load data into it)
data.addElement (obj);
} finally {
notifyAll();
}
}
}
}
} // If braces don't match up, I probably added too many or too few in this
code snippet!
Re: How to do a thread dump from program?
Juergen,
Thanx! Now I get it...either synchronized(this) OR data.notifyAll()/data.wait().
I had my monitors mixed up :)
Now if there was only a way to get that thread dump...not for THIS problem, but it
might
come in handy sometime.
-Mario.
Juergen Kreileder wrote:
> >>>>> Mario Camou writes:
>
> Mario> Juergen Kreileder wrote:
>
> >> >>>>> Mario Camou writes:
> >>
> Mario> Hi,
> Mario> I'm having some problems with threads, so I need to do a
> Mario> thread dump (same thing that Ctrl-\ does) but from within
> Mario> the program (i.e., I catch an Exception and want to do a
> Mario> thread dump that moment). Does anyone here know how to do
> Mario> that?
> >>
> >> You can get a partial stack trace with Thread.dumpStack, or Throwable's
> >> printStackTrace method.
>
> Mario> Oh, I know about those. I'm not interested in the stack
> Mario> trace, I need the *Thread* dump. To see what I mean, hit
> Mario> -\ (that's ctrl+backslash) in the TTY from which
> Mario> you're running a Java application.
>
> Yep, I know what you mean but AFAIK this is the only threads information
> you can get with API calls.
>
> Mario> That's basically what I'm doing. The strange thing...I
> Mario> tried to change "synchronized (data)" to "synchronized
> Mario> (this)" and it magically started working.
>
> Mario> public class Foo {
> Mario> private Vector data;
>
> Mario> public Vector getData() {
> Mario> if (data == null) {
> Mario> return null;
> Mario> }
> Mario> synchronized (data) {
> Mario> while (status != LOADED) {
> Mario> try {
> Mario> wait();
>
> Yes, that is 'this.wait()' and you're not the owner of this' monitor.
> (You're only the owner of data's monitor). To get this' monitor you'll
> have to use synchronized (this) or a synchronized method.
>
> Mario> } catch (InterruptedException ex) {}
> Mario> }
> Mario> status = IDLE;
> Mario> return data;
> Mario> }
>
> Mario> public void loadData() {
> Mario> data = new Vector();
> Mario> synchronized (data) {
> Mario> try {
> Mario> while (something) {
> Mario> SomeObject obj;
> Mario> // blah blah blah (create object obj and load data into it)
> Mario> data.addElement (obj);
> Mario> } finally {
> Mario> notifyAll();
>
> ditto
>
> Mario> }
> Mario> }
> Mario> }
> Mario> }
> Mario> } // If braces don't match up, I probably added too many or too few in
>this
> Mario> code snippet!
>
> Juergen
Re: what tools do you use for programming
Helge Hielscher wrote: > Hello, > > what tools do you use for *efficient* programming in Java? I have been > looking around for a while, the only things I've found was FreeBuilder, > but that programm seemed to be still alpha, with no progress in work. I > tried to subscribe to the mailing list, but it didnt work. Maybe the > projekt is dead? > > The other one was Graspada: nice tool, but I miss some main features > like an integrated debugger, or a tools helping me designing the GUI. [...snip...] Graspada? What's that? -Mario.
Java Plugin for Linux?
Hi, I'm looking for the Java Plugin on Blackdown and can't find it. Any idea where it is? Does it work with 1.1.7? Thanx, -Mario.
Re: Problems with Threads (Code included)
Carlos,
Your problem is with Thread.currentThread().wait()/notifyAll(). Since your method is
synchronized, you own the monitor for "this", not the monitor for currentThread()
(every object has its own monitor).
Try removing "Thread.currentThread()." and leaving just the "wait()/notifyAll()"
calls, and see if it does what you want. If you want to grab the monitor for some
other object, instead of synchronizing the whole method you can use a synchronized
block:
synchronized (anObject) {
// ... blah blah blah
anObject.notifyAll()
}
Hope this helps,
-Mario Camou.
Carlos Alberto Roman Zamitiz wrote:
> Hi, I attached my Cliente.java
> I have 2 threads: Receptor and Transmisor. Receptor sends and receives
> data from server, using method recibirPeticion(), forever (well, it sleeps
> 3 seconds). When Transmisor sends data, using method enviarPeticion(),
> Receptor must wait until Transmisor ends his transmition.
>
> I get
> java.lang.IllegalMonitorStateException: current thread not owner
>
> What's wrong?
>
> Thanks!
>
> Carlos
>
>
> import java.io.BufferedReader;
> import java.io.PrintWriter;
> import java.io.IOException;
> import java.io.InputStreamReader;
> import java.net.InetAddress;
> import java.net.Socket;
> import java.net.UnknownHostException;
>
> public class Cliente implements Runnable
> {
> static String respuesta="0";
> static Socket socket=null;
> static PrintWriter out=null;
> static BufferedReader in=null;
> static Thread receptor;
> static Thread transmisor;
> static String host=null;
> static boolean indicador=false;
>
> public static void main(String args[])
> {
> new Cliente();
> }
>
> public Cliente()
> {
> if(true)
> {
>try
>{
> host="132.248.59.4";
> socket=new Socket(InetAddress.getByName(host),);
> System.out.println("Creando hilo Receptor");
> receptor=new Thread(this,"Receptor");
> System.out.println("Creando hilo Transmisor");
> transmisor=new Thread(this,"Transmisor");
> receptor.start();
> transmisor.start();
>}
>catch(UnknownHostException e)
>{
> System.err.println("Host desconocido: "+host);
> System.exit(1);
>}
>catch(IOException e)
>{
> System.err.println("Error de Entrada/Salida con: "+host);
> System.exit(1);
>}
> }
> }
>
> public void run()
> {
> while(true)
> {
>if(Thread.currentThread().getName().equals("Receptor"))
> recibirPeticion();
>else if(Thread.currentThread().getName().equals("Transmisor"))
> enviarPeticion();
> }
> }
>
> public synchronized static void recibirPeticion()
> {
> System.out.println("Iniciando Receptor");
> try
> {
>while(indicador==true)
>{
> System.out.println("Deteniendo hilo Receptor");
> Thread.currentThread().wait();
> System.out.println("Continuando hilo Receptor");
>}
>System.out.println("Receptor recibe estado de la sala");
>out=new PrintWriter(socket.getOutputStream(),true);
>out.println("recibir");
>in=new BufferedReader(new InputStreamReader(socket.getInputStream()));
>respuesta=in.readLine();
>System.out.println("La respuesta del Servidor es: "+respuesta);
>Thread.sleep(3000);
> }
> catch(Exception e)
> {
>System.out.println("Paso algo con el servidor: "+host);
>e.printStackTrace();
> }
> }
>
> public synchronized static void enviarPeticion()
> {
> indicador=true;
> System.out.println("Iniciando Transmisor");
> try
> {
>out=new PrintWriter(socket.getOutputStream(),true);
>System.out.println("El usuario carlos aparto una computadora");
>out.println("enviar");
>out.println("carlos");
>out.println("15");
>out.println("21:00");
>out.println("50");
> }
> catch(IOException e)
> {
>System.err.println("Error de Entrada/Salida con: "+host);
>e.printStackTrace();
> }
> indicador=false;
> System.out.println("Notificando...");
> Thread.currentThread().notifyAll();
> }
> }
Problem with TYA 1.2
Hi, I just installed TYA 1.2. My code used to work perfectly with previous versions, now I get a thread dump. Intel Pentium Kernel 2.0.36 JDK 1.1.7v1a Red Hat 5.1 with all updates applied There's also a weird "user programm switched off JIT compiling" message. This behavior is completely reproducible (happens every time). Here's what I get: TYA 1.2 (for J117 / Linux). Copyright (c) 1997,98 The TYA Team Contact The TYA Team via Albrecht Kleine <[EMAIL PROTECTED]> TYA: 74087 byte for java/text/resources/LocaleElements.getContents (()[[Ljava/lang/Object;) TYA: 19766 byte for COM/Umbral/via/applet/ViaApplication. ((Ljava/lang/String;)V) TYA: *** user programm switched off JIT compiling *** TYA:EXCEPTIONS_BY_SIGNALS problem *** panic: TYA:EXCEPTIONS_BY_SIGNALS problem TYA: Signal 6, returning to default handler; SIGABRT 6* abort (generated by abort(3) routine) stackbase=0xb770, stackpointer=0xbfffe7c8 Full thread dump: "Finalizer thread" (TID:0x40659210, sys_thread_t:0x4139de0c, state:CW) prio=1 "Async Garbage Collector" (TID:0x40659258, sys_thread_t:0x4137ce0c, state:R) prio=1 "Idle thread" (TID:0x406592a0, sys_thread_t:0x4135be0c, state:R) prio=0 "Clock" (TID:0x40659088, sys_thread_t:0x4133ae0c, state:CW) prio=12 "main" (TID:0x406590b0, sys_thread_t:0x81f79f8, state:R) prio=5 *current thread* javax.swing.UIManager.initialize(Compiled Code) javax.swing.UIManager.maybeInitialize(Compiled Code) javax.swing.UIManager.getUI(Compiled Code) javax.swing.JPanel.updateUI(Compiled Code) javax.swing.JPanel.(Compiled Code) javax.swing.JPanel.(Compiled Code) javax.swing.JRootPane.createGlassPane(Compiled Code) javax.swing.JFrame.createRootPane(Compiled Code) javax.swing.JFrame.frameInit(Compiled Code) javax.swing.JFrame.(Compiled Code) COM.Umbral.via.applet.ViaApplication.(Compiled Code) COM.Umbral.via.applet.ViaApplication.main(Compiled Code) Monitor Cache Dump: (0x0x4137ce0c): owner "Async Garbage Collector" (0x4137ce0c, 1 entry) java.lang.Class@1080449672/1080920280: owner "main" (0x81f79f8, 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: Waiting to be notified: "Finalizer thread" (0x4139de0c) Dynamic loading lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x4133ae0c) Monitor registry: owner "main" (0x81f79f8, 1 entry) Thread Alarm Q:
Re: Problem with TYA 1.2
Jason and Mark, Thanx for your quick replies! Uncommenting the "#define IGNORE_DISABLE" in tya.c did it. What I'd like to know (I'm really curious!) is exactly WHAT is trying to turn off the JIT. Could it be Swing? Also, Mark told me that this had been covered a few days ago in this list. Sorry then for the wasted bandwidth, I completely missed it. And to the Blackdown and TYA teams, you guys are doing a Great Job! Thank you so much! -Mario. On Mon, 14 Dec 1998, Mario Camou wrote: > I just installed TYA 1.2. My code used to work perfectly with previous versions, > now I get a thread dump. > > There's also a weird "user programm switched off JIT compiling" message.
Re: Java performance
Well, I just ran it on a 233 MHz Pentium with the appletviewer, JDK 1.1.7v1a and TYA 1.2, and got a score of 13.0, while according to the table, the performance of the Dell Optiplex 200 MHz P6, Win 95, Netscape 4.04 is 42.5 (about three times). I don't do Windows, so I can't tell you what the results are on my machine with WinBugs... Now, while the results are certainly not earth-shattering, I've used about 4 versions of TYA and seen (subjectively) increasingly better performance, so you can expect that to improve. Also, I develop with Java under Linux and it's *DEFINITELY* acceptable, especially if you use Jikes to compile. The runtime performance is also good (subjectively), so I'd say, "Go for it!" -Mario. "Marvin McNett II (GTA)" wrote: > I recently ran the Java benchmark at: > > http://math.nist.gov/scimark/ > > on my 300MHz PII Linux machine with Netscape 4.5. To my astonishment, the > results were terrible! Since I can dual boot, I started up Windows 95 (a > rare occurance) and ran the benchmark again (and again with Netscape 4.5). > I found that the score was about 20 times higher (higher is better) using > Windows 95! So, I concluded that Netscape for Linux must not have a > just-in-time (JIT) compiler, whereas Netscape for Windows does. To verify > this, I, once again, ran the test in Linux--this time using JDK 1.1.6. I > I found that the Windows 95 score was still about 8 times higher. So, I'm > wondering, "Is there a problem with Java on Linux?". Am I doing something > wrong? I need to use Java for an upcoming project, but certainly do not > want to use Micro$oft. > > Thank you, > > Marvin McNett II
Re: Read Huge file using Java
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, you will have memory problems unless you have HUGE amounts of RAM in your machine Hope this helps, -Mario. Quanyu Zhu wrote: > 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 Hdisk just left 500M free space. > In my program, Firstly, I used the DataInputStream to read one byte by > byte, but it seems too slow. > Then I used the ReadFully to read the whole file into one large btye > array. The performance imporved a lot. > But what I will deal with is the huge file, more than 500M, how can I > allocate this huge array? > Does anyone have such experience on that? > Is there any way to free the array I allocated like in C/C++? It seems > the only way to free the unused memory is done by garbage collection > thread, do I have any way to destory the memory which I allocated just > using one method ??? > Any hint will be appreciated !!! > > Best Regard > Kevin Zhu > > > __ > Get Your Private, Free Email at http://www.hotmail.com
Re: Read Huge File using Java
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 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:
> data Structure 1
> data Structure 2
> ...
> until data struture.member1 == 0;
>}
>pixel 2:
>{
> Loop 1:
> data Structure 1
> data Structure 2
> ...
> until data struture.member1 == 0;
>}
>...
>What I need is to get the info for the pixel to draw the image.
> Although the pixel is huge, but within each pixel, I need to add the
> data structure member2 to get the value of pixel.
>At first, I just read the pixel by pixel, that is a very small file
> which just contain 11M. For this method, it seems worked very slow.
>Then I used one byte array allocate the size of the file. Then used
> the byte array to convert it to int using shift.
>It improved the performance a lot.
>But the real data file I will deal with is more than 11M. It is more
> than 500M.
>That is my problem.
>So anyone have such idea ?
>
> Best Regard
> Quanyu Zhu
>
>
>
> __
> Get Your Private, Free Email at http://www.hotmail.com
Re: Sun and Linux
Well... % telnet www.blackdown.org 80 Trying 204.180.15.12... Connected to www.blackdown.org. Escape character is '^]'. GET /java-linux/ports.html HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 21 Dec 1998 20:57:37 GMT Server: Apache/1.3b3 Last-Modified: Thu, 17 Dec 1998 14:40:01 GMT [ ... snip ... ] So, if the last modification was adding the probable JDK 1.2 release date, "a month from now" should be mid-January. -Mario. "Harold G. Andrews II" wrote: > It looks like somebody took the advise of an earlier poster and put up a > status for 1.2 on Blackdown's web site. Check out: > > http://www.blackdown.org/java-linux/ports.html#jdk1.2 > > To summarize, less than a month from the time/date it was posted. I didn't > see a date on the page, so I don't know when a "month from now" actually is. > Enjoy. > > -Andy
Re: TYA and Swing; What was the #define again?
Hi Peter, Go into tya.c and UNcomment the "IGNORE_DISABLE" #define -Mario. Peter Schuller wrote: > Hi! > > What was that #define that were supposed to be commented out to get TYA 1.2 to > work with Swing, even though it tries to disable JIT during init? > > Thanks! > > / Peter Schuller > > E-Mail: [EMAIL PROTECTED] > Web: http://hem.passagen.se/petersch
Re: RMI-Question
blaise toad wrote: > only weblogic has a run-time (and a clunky one at that) on Linux, and > it is not OSS. As far as I know there is no OSS'd EJB run-time on > linux. EJBHome (http://www.ejbhome.com) reportedly works on Linux -Mario.
Re: web server
[EMAIL PROTECTED] wrote: > Jinpeng Xie wrote: > > I am wondering whether there is a web server that can process jhtml > > files and can run on Linux platforms. > > > > Java web server can process jhtml, but only run on NT and Solaris. > > I didn't read documentation about apache very recently. > > Try Jigsaw from the W3 Consortium -- it's fully Java: > > http://www.w3.org/Jigsaw/ > > Nathan Meyers > [EMAIL PROTECTED] You can also try Apache JServ which lets you use servlets on Apache (http://java.apache.org), I'm sure there's at least one add-on to JServ that allows you to process jhtml files. Check the mailing list archives at the Apache JServ site (I don't remember which package does it) I'm using Apache JServ on Linux with absolutely no problems. Hope this helps, -Mario.
java-linux hosting
Hi, I read the recent messages Re: hosting the list. Another option might be OneList (http://www.onelist.com). It's a free list-hosting service (paid for by advertising, 3 or 4 lines on each message). They also have list archiving and a web-based admin interface. Thought it might be an interesting option. I am not affiliated with them in any way, just saw the site and thought to forward the info. -Mario.
Re: java-linux hosting
Dwight Frye wrote: > Mario Camou writes : > > I read the recent messages Re: hosting the list. Another option might be OneList > > (http://www.onelist.com). It's a free list-hosting service (paid for by > > advertising, 3 or 4 lines on each message). They also have list archiving and a > > web-based admin interface. Thought it might be an interesting option. > > > > I am not affiliated with them in any way, just saw the site and thought to > > forward the info. > > I have heard both good and bad about Onelist, but the biggest negative I > have heard is the inclusion of advertising with the mailings. :) I hate > advertising. :) > > I run a couple of other lists, and have decided to actually pay a few > dollars and go with a commercial service. I use Lsoft's service (which > you can read about at http://www.lsoft.com/). My lists are small and > non-commercial (the largest list being around 80 subscribers) and I > use their "Ease HOME" service ... which is intended for "non-commercial > and hobby" use. Cost is $15/month for up to 100 subscribers. This > particular level of service (i.e. non-commercial/home/hobby use) can > accomidate up to 1,000 subscribers with pre-published price schedules > for up to 300 subscribers. Beyond that they'll quote prices based on > the type of list and it's traffic. > > Their service is superb. Delivery times are excellent. The "HOME" level > of service is intended to be a "self-supported" situation, but you are > automatically subscribed to a list of list-owners and the "group support" > that comes from this collection of list-owners is actually quite good. > > No, I don't work for Lsoft. No, I don't get a kickback. :) I'm just a > very satisfied list-owner who uses their services. > > -- Dwight As a matter of fact, after investigating further, it seems Onelist has a plan that costs you $4.95 a month where they don't include advertising, plus their list sizes are unlimited. I just started a small personal list (currently 16 members) which seems to be working fine. -Mario.
Whatever happened...
...to http://java.blackdown.org/ ? I just went in and there's some sort of discussion server...
Re: jdk servlets available on Linux
Steve, Check out http://java.apache.org/ -Mario. Steven Rock wrote: > > Just made the leap from wintel to Lunix. I would like to use java > servlets instead of dusting off my Perl-CGI books. Has it been ported to > Linux yet? > > -Steve -- __ |Mario Camou __-- --___ |Chief Technology Officer _-| - _ --_ |Umbral Global, SA de CV - | | O | -___ ___ | | | |__^-' | | |\ /| | ) | | /\ | |mailto:[EMAIL PROTECTED] -_ | | ^ | | | | | | |--< |---' /--\ | |phone:+52(5)251-1928 -| _| | || |___| | | |___) | \ /\ |___|fax:+52(5)245-1804 |_--___ ___-- | - |http://www.umbral.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
