Re: borland/inprise jit for blackdown 1.2pre2
how do all the JIT's compare? Is it faster than TYA, and is TYA faster than blackdown's port of sun's jit? noisebrain wrote: > If you so choose you can download this jit and run it in place > of the one that comes with 1.2pre2. The blackdown community > is familiar with two similar replacement jit's - tya and shujit. > > On Mon, 27 Sep 1999, Riyad Kalla wrote: > > > Sorry to sound arrogant... but how does this effect us? Will this go into > > the blackdown release from now on? > > > > > > - Original Message - > > From: noisebrain <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, September 27, 1999 11:58 AM > > Subject: borland/inprise jit for blackdown 1.2pre2 > > > > > > > > > > http://www.borland.com/jbuilder/linux/ > > > > > > " > > > The JBuilder JIT for Linux preview release is based on the > > > proven JBuilder JIT for Windows that has been shipping for > > > over three years and provides significant performance > > > improvements for Java 2 applications on the Linux platform. For > > > example, compilation is 33% faster when using the JBuilder > > > JIT for Linux in place of the default JIT included with the > > > Java 2 Linux JDK > > > > > > noisebrain --- www.idiom.com/~zilla > > > > > > > > > -- > > > 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] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
required Libraries
Hi, I am running a SuSe Linux 6.1 on my box and have libc 2 installed on my system. When I try to install JDK 1.1.1 using rpm, I get the message libXm.so.2 is needed by jdk1.1-1.1.7v1a-3. Where do I get this library ? MfG Rolf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: required Libraries
On Tue, Sep 28, Rolf wrote: > I am running a SuSe Linux 6.1 on my box and have libc 2 installed on my > system. > When I try to install JDK 1.1.1 using rpm, I get the message libXm.so.2 > is needed by jdk1.1-1.1.7v1a-3. Where do I get this library ? Try 'rpm --nodeps --force yourrpmname.rpm'... -- mit freundlichen Gruessen, Carsten Hoeger - SuSE Professional Services - SuSE GmbH, Schanzaeckerstr. 10, 90443 Nuernberg, Germany Tel: +49-911-7405356 Mo-Fr 09-17.00, Fax: +49-911-3206727 http://www.suse.de/bsupport/index.html Email: [EMAIL PROTECTED] Braune Blaetter schmeissen sich vom Baum und sind tot. Es ist Herbst. (O. Kalkofe) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [Java Error]
I got this message too, and what I did was to call java (java, javac, appletviewer...) with '-green' option. But now, Im getting another message 'Class format error' or saying that the main class have more than xxx bytes... Don't remember right now. Anyone know this message? Best regards, Alejandro > I figured it out. I needed to use the glibc2.1 version, instead of 2.0. > > "William D.Webb" <[EMAIL PROTECTED]> wrote: > > I'm trying to get java working on my Linux system. I have it installed and > > the bin in my path. Whenever I try to run anything java, I get the > > following Any ideas? > > > > *** panic: GC: getStickySystemClass failed: java/lang/ref/Reference > > CLASSPATH may be incorrect > > SIGABRT 6* abort (generated by abort(3) routine) > > stackpointer=0xb660 > > > > Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): > > "main" (TID:0x404c71e0, sys_thread_t:0x804bf68, state:R, native > ID:0x400) > > pr > > io=5: pending=java.lang.OutOfMemoryError > > Monitor Cache Dump: > > Registered Monitor Dump: > > utf8 hash table: > > JNI pinning lock: > > JNI global reference lock: > > BinClass lock: > > Class linking lock: > > System class loader lock: > > Code rewrite lock: > > Heap lock: > > Monitor cache lock: owner "main" (0x804bf68) 1 entry > > Thread queue lock: owner "main" (0x804bf68) 1 entry > > Dynamic loading lock: > > Monitor registry: owner "main" (0x804bf68) 1 entry > > > > > > > > > > Get free email and a permanent address at http://www.amexmail.com/?A=1 > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > > Get free email and a permanent address at http://www.amexmail.com/?A=1 > > > -- > 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]
serial communication
hi guys, anybody did work using commapi's. can anybody send me some code sites or some of your codes, it will be of great use to me. Thanx in advance, MUTHU. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: required Libraries
Isn't libXm the motif lib? Try using the static motif JDK or installing motif. Does the JDK work with lesstif? > -Original Message- > From: Rolf [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 28, 1999 5:26 AM > To: [EMAIL PROTECTED] > Subject: required Libraries > > > Hi, > > I am running a SuSe Linux 6.1 on my box and have libc 2 > installed on my > system. > When I try to install JDK 1.1.1 using rpm, I get the message > libXm.so.2 > is needed by jdk1.1-1.1.7v1a-3. Where do I get this library ? > > MfG > > Rolf > > > -- > 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: borland/inprise jit for blackdown 1.2pre2
On 27-Sep-99 noisebrain wrote: > > http://www.borland.com/jbuilder/linux/ It works perfectly. Well, I didn't get a 33% gain in compilation time, only a 15% (maybe because I use the -O flag?), but my game gains a lot of speed and now is almost as fast (hmmm... less slow :) ) as in windows. I ran several tests and seems rock solid too. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Drag and Drop
Hello, Thanks for your reply. I guess I did not make question clear. I am trying to write a program that works with network nodes, basically a icon, and network links. In the Visual Basic program that I wrote, during run time I can drag nodes around a canvas and connect nodes together with links. Both nodes and links respond to right botton clicks. The problem I am having is that I have not seen any books or tutorial that talks about how to move around during run time. The reason I am thinking of changing to Java is that I took several classes in Java couple of years ago and I really like the language. I am pretty much at the limit of VB so I want to find another way of writing this program. Thanks for your help -- On Mon, 27 Sep 1999 15:07:13 Dustin Lang wrote: > >Hi, > >> I am new to Java programming. >> I would like to know is it possible to drag and drop buttons or >> picturebox from one location to another? Also, it is possible to draw a >> line and have the line respond to a mouse click? > >In Java the language, compilers, runtime, and development tools are all >separate entities. I've never used VBasic (yuck!), but assume that at >least two of those are integrated. You're not looking for a Java book, >you're looking for a visual or integrated development environment. Search >the archives for IDE. There are several available; it's also possible to >do without a visual development environment (that's what I do). > >Cheers, >dstn. > > > >-- Dustin Lang, [EMAIL PROTECTED]-- >User, n.: a particularly slow and unreliable input/ >output device that is attached by default to the >standard input and output streams. > > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: borland/inprise jit for blackdown 1.2pre2
I've tested Borland javacomp with my 35K lines application, which uses a lot of swing+threads+rmi, and most of it worked fine (some problems). The most exciting was the performance improvement in some points. Important: my code does not run with sunjit ... performs better with tya ... but unfortunately doesn't work in linux when all features of my application are activated. Even disabling the jit or native threads it does not perform well, but it is getting better ;-) []'s o-oo---ooo----o---oo Antonio S. R. Gomes, Msc Student Department of Computer Engineering and Industrial Automation FEEC-UNICAMP home-page: http://www.dca.fee.unicamp.br/~asrgomes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Drag and Drop
Denny Lee wrote: > > Hello, > Thanks for your reply. I guess I did not make question clear. I am trying to write >a program that works with network nodes, basically a icon, and network links. In the >Visual Basic program that I wrote, during run time I can drag nodes around a canvas >and connect nodes together with links. Both nodes and links respond to right botton >clicks. The problem I am having is that I have not seen any books or tutorial that >talks about how to move around during run time. > I did the exact same thing a year ago. However, I didn't use drag and drop at all. I used the Component.move() function to move things around by hand. I am not at liberty to mail you source code, but with swing and lightweight components, it isn't too hard. I wish I could mail you the source, because I spent countless hours making it infinitely extendable, but since the company i worked for changed focus, the project was pretty much trashed. Here is some of the basic problems that I remember i ran into. I made my own "components": Nodes, Wires, and the Canvas. For you, you might not need to create wire components if you are handling only point to point links. You can render them in the canvas. For me I had to, because I had many different types of wires, (ethernet wires that connect to multple nodes, FDDI rings, point to point links, etc). I've had problems with different components getting the right mouse events, so i had to do the following hack. I had the canvas handle the moving and creation and selection of nodes and I had the nodes themselves handle anything else special (like popup menus, etc.). But if you add a mouse listener to the node, the parent no longer gets the events. So when you get a mouse event, you have to duplicate it, translate it to the parent's xy viewpoint and then call mousePressed() -- or whatever to the parent. There may be a way to do it using processMouseEvent() interface, but I couldn't figure it out. Listeners played a huge role in my program. I wrote my own listeners / events -- very easy to do. The wires listened to the nodes it was connected to and resized / repainted when the node was moved. It also listened to "deletion" events so it could also fire its own death. If you are doing this for production, you might want to watch out for memory leaks due to listeners not being cleaned up properly. When dragging wires from one place to another, take a look at the Graphics.setXORmode or something, it is extremely useful in making the performance good. When selecting wires, take a look at the function contains() in Component. I don't remember any other serious problems i had, except for some bugs in swing. A lot of them have been fixed in the latest releases. Good luck! -rchit -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Drag and Drop
Thanks for everyone's reply. I am sorry if this is off topic for this list. Thanks again. -- On Tue, 28 Sep 1999 12:45:51 Rachit Siamwalla wrote: > >Denny Lee wrote: >> >> Hello, >> Thanks for your reply. I guess I did not make question clear. I am trying to >write a program that works with network nodes, basically a icon, and network links. >In the Visual Basic program that I wrote, during run time I can drag nodes around a >canvas and connect nodes together with links. Both nodes and links respond to right >botton clicks. The problem I am having is that I have not seen any books or >tutorial that talks about how to move around during run time. >> > >I did the exact same thing a year ago. However, I didn't use drag and >drop at all. I used the Component.move() function to move things around >by hand. I am not at liberty to mail you source code, but with swing and >lightweight components, it isn't too hard. I wish I could mail you the >source, because I spent countless hours making it infinitely extendable, >but since the company i worked for changed focus, the project was pretty >much trashed. > >Here is some of the basic problems that I remember i ran into. > >I made my own "components": Nodes, Wires, and the Canvas. For you, you >might not need to create wire components if you are handling only point >to point links. You can render them in the canvas. For me I had to, >because I had many different types of wires, (ethernet wires that >connect to multple nodes, FDDI rings, point to point links, etc). > >I've had problems with different components getting the right mouse >events, so i had to do the following hack. I had the canvas handle the >moving and creation and selection of nodes and I had the nodes >themselves handle anything else special (like popup menus, etc.). But if >you add a mouse listener to the node, the parent no longer gets the >events. So when you get a mouse event, you have to duplicate it, >translate it to the parent's xy viewpoint and then call mousePressed() >-- or whatever to the parent. There may be a way to do it using >processMouseEvent() interface, but I couldn't figure it out. > >Listeners played a huge role in my program. I wrote my own listeners / >events -- very easy to do. The wires listened to the nodes it was >connected to and resized / repainted when the node was moved. It also >listened to "deletion" events so it could also fire its own death. If >you are doing this for production, you might want to watch out for >memory leaks due to listeners not being cleaned up properly. > >When dragging wires from one place to another, take a look at the >Graphics.setXORmode or something, it is extremely useful in making the >performance good. > >When selecting wires, take a look at the function contains() in >Component. > >I don't remember any other serious problems i had, except for some bugs >in swing. A lot of them have been fixed in the latest releases. > >Good luck! > >-rchit > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: borland/inprise jit for blackdown 1.2pre2
What performance does a JIT improve? Are you talking about the time to run an uncompiled application with this JIT vs. another JIT (i.e. performance improvement is in the JIT compilation not in running the application)? Or are you saying that the compiled code from this JIT is faster than the comiled code from javac or jikes? > -Original Message- > From: Antonio S. R. Gomes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 28, 1999 2:15 PM > To: [EMAIL PROTECTED] > Subject: Re: borland/inprise jit for blackdown 1.2pre2 > > > > I've tested Borland javacomp with my 35K lines application, > which uses a > lot of swing+threads+rmi, and most of it worked fine (some > problems). The > most exciting was the performance improvement in some points. > > Important: my code does not run with sunjit ... performs > better with tya > ... but unfortunately doesn't work in linux when all features of my > application are activated. Even disabling the jit or native threads it > does not perform well, but it is getting better ;-) > > > []'s > > o-oo---ooo----o---oo > Antonio S. R. Gomes, Msc Student > Department of Computer Engineering and Industrial Automation > FEEC-UNICAMP > home-page: http://www.dca.fee.unicamp.br/~asrgomes > > > -- > 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: borland/inprise jit for blackdown 1.2pre2
On Tue, 28 Sep 1999, Burkhart,Kelly wrote: > > > What performance does a JIT improve? Are you talking about the time to run > an uncompiled application with this JIT vs. another JIT (i.e. performance > improvement is in the JIT compilation not in running the application)? Or > are you saying that the compiled code from this JIT is faster than the > comiled code from javac or jikes? > > > I've tested Borland javacomp with my 35K lines application > > ... If I understand your question ... The most perceptible improvement was visible in the *execution* of my application, which code was already compiled. Notice that I've tested the *same* bytecode with different jit's. I think there's a misunderstanding here: Bytecode optimizations are performed by the compiler (javac). The jit plays no difference in the 'level' of optimization of the compiled byte code (*.class). Maybe you will spend less time to generate the code... JIT's improve **only** the execution time, given that the byte code is available. But they do not change the way bytecodes are generated - That's JAVAC's job. Once the byte code is available it can be: - interpreted (there's nothing else to do in terms of performance that JAVAC hasn't done before) - compiled just-in-time (now a better jit will really make the difference - that's may case!) --Antonio DCA/FEEC/UNICAMP -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: borland/inprise jit for blackdown 1.2pre2
On Tue, Sep 28, 1999 at 04:30:33PM -0500, Burkhart,Kelly wrote: > > > What performance does a JIT improve? Are you talking about the time to run > an uncompiled application with this JIT vs. another JIT (i.e. performance > improvement is in the JIT compilation not in running the application)? Or > are you saying that the compiled code from this JIT is faster than the > comiled code from javac or jikes? A JIT compiles in memory, on-the-fly, Java bytecode into machine code. The result is, for code that is executed more than once, a big improvement in execution speed of your applications. The javac compiler is itself a Java application, using a JIT will improve compilation time as well. --Paolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Runtime problems
Well I installed the glib2.1 version as Riyad had suggested, thanks, jre or java -help no longer report permission denied. I am still getting a permission denied from from the classes.zip, despite changing its permissions, and the directories to it, to rwx for all. I also get this error for a .jar in its own directory. Obviously there is a permission problem with my system, though I don't know why. As mentioned, this is a fresh install, not over a previous install, a new disk, and there seems to be this problem. I am amazed at this problem on a new install. Sean On Mon, 27 Sep 1999 19:54:25 -0700, dave madden wrote: > =>From: "Hartnett" <[EMAIL PROTECTED]> > =>... > =>"/usr/jdk117/bin/../bin/checkVersions: /tmp/ldd.out.858" Permission denied" > >Do you know why you'd be getting a "Permission denied" error related >to this file? I'd check the permissions on /tmp: > >ls -lgd /tmp > >You should see: > >drwxrwxrwt 4 root root 3072 Sep 27 19:46 /tmp/ > >If you see anything else in the permissions column, you've got a >problem. I suspect that you have other permission problems as well, >particularly since you mention that you installed a new disk in the >system. In fact, I'd go out on a limb and guess that you tried to >copy the working system over to the new disk with "cp -R" or some >such, and it worked fine (as far as you could tell) while logged in as >root. All clues that will point to directory permission problems, once >you've been sysadmining for far too long. > >d. > >PS: No, I don't know an easy way to fix the permissions on all the >directories once you're in this sorry state. I learned my lesson long >ago, and now use cpio to copy directory trees. -- ICQ# 10073477 http://people.ne.mediaone.net/tardis/index.html .. Printout - A document to verify data you know is wrong anyway. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: borland/inprise jit for blackdown 1.2pre2
I think that the speed depends on what benchmark you run, though the new borland jit seems generally faster than the sunwjit that comes with 1.2pre2. There's a table of timings of several linux jits versus C at www.idiom.com/~zilla/Computer/javaCbenchmark.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: swing and syntax question
There always has to be one top level peer to connect to the video hardware. I think the correct is that Window, Dialog and Frame are heavyweight. I the awt every component was heavyweight. With Swing, Java is doing the drawing for button, scroller etc. john On 27-Sep-99 berry wrote: > > >> > Another question: >> > >> > With Swing classes, at what point is native code actually >> > called to do drwing . If you could tell me, I am wondering what classes > it >> > happens in and what is specifically happening. In 1.1 it would be >> > the peer classes. >> >> I know that one : ) >> swing uses >> Canvas >> Frame >> Dialog >> Window >> The native peers are called there. >> > > I thought that the whole point of swing was that there were not any peers. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- E-Mail: John N. Alegre <[EMAIL PROTECTED]> Date: 28-Sep-99 Time: 19:24:55 This message was sent by XFMail -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDBC problem!
Hello Everybody,
I have written one program in java2 to write the data
in postgresql. I am storing one integer and one string
in the database. When i read the string from the file
it is proper. But when i store it, it gives the
following exception:
java.sql.SQLException: ERROR: parser: parse error at
or near ""
I am not able to detect the error. Can any one run the
code and correct the problem?
When I assign the string test1 some fixed value and
store it then the program works fine.
Here is the code:
//Import Various Classes
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.text.*;
// THE CLASS DEFINITATION OF MAIN FRAME.
class db1
{
Connection db;
Statement st;
//THIS IS THE MAIN METHOD
public db1(String args[]) throws
ClassNotFoundException,FileNotFoundException,IOException,SQLException
{
String url = args[0];
String usr = args[1];
String pwd = args[2];
int pid1;
String test1=null;
Class.forName("postgresql.Driver");
// Connect to database
System.out.println("Connecting to Database URL = " +
url);
db = DriverManager.getConnection(url, usr, pwd);
System.out.println("Connected...Now creating a
statement");
st = db.createStatement();
st.executeUpdate("create table temp125(pid
int4,filen char(200))");
PreparedStatement ps = db.prepareStatement("insert
into temp125 values (?,?)");
try
{
FileInputStream fin=new FileInputStream("test1");
DataInputStream din=new DataInputStream(fin);
try
{
pid1=din.readInt();
System.out.println(pid1);
int len1=din.readByte();
byte[] lent=new byte[len1+2];
for(int i=0;i<=len1+1;i++)
{
lent[i]=din.readByte();
}
test1=new String(lent);
System.out.println(test1);
ps.setInt(1,pid1);
ps.setString(2,test1);
try{
int x=ps.executeUpdate();
}
catch (SQLException ex){
System.out.println("Exception="+ex);
}
}
catch(IOException e1)
{
System.out.println("IO");
}
}
catch(FileNotFoundException e)
{
System.out.println("File not found");
}
ps.close();
System.out.println("Now closing the connection");
st.close();
db.close();
}
public static void main(String[] args)
{
try {
db1 temp = new db1(args);
} catch(Exception ex) {
System.err.println("Exception caught.\n"+ex);
ex.printStackTrace();
}
}
}
*
The file which i read is test1 which is something
like:
wyt7GIsstustututuC4??
Please run the code on your computer and let me know
the problem.
Thanking You
=
KOTHARI ALPESH D.
STUDENT M. TECH.
CEDT
INDIAN INSTITUTE OF SCIENCE
BANGALORE-560 012
INDIA
__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
