Visual Java development using visual Tcl !
Hello all, I was looking one month ago for a good, free visual Java development tool. Didn't find anything that suit me so I decided to patch vTcl (visual Tcl) in order to generate also Java GUI code. I succeeded, it works fine for me so if anyone is interested in such a thing please take a look at : http://www.flex.ro/vtclava/index.html Nice screenshots, demos, howto, downloads available. If you are interested and you liked it you can add it to the "Free java development tools for Linux". Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
UGLY BUG parsing the date of "1999-04-30" in jdk 1.1.7 on Linux RH 5.2
Hello all,
I have discovered a bug (?) in jdk 1.1.7-v1a-glibc
I am running a RedHat 5.2 i386 Linux with 2.2.5 kernel on a K6II-350
MHz/64 Mb RAM
I am setting a new SimpleDateFormat with "-MM-dd" parsing format and
I'm trying to parse and use some dates.
Curiously, the ONLY date that doesn't work corectly is 1999-04-30 (ie
April 30 in 1999).
Any (29)30(31) of other months are working just fine!
I am sending you also a small program to check and proove the error.
The output of the program is :
Parsing and testing the date of 1999 April 29
The parsed day is Thu Apr 29 00:00:00 GMT+02:00 1999
The date formatted as -MM-dd is 1999-04-29
Parsing and testing the date of 1999 April 30
The parsed day is Thu Apr 29 23:00:00 GMT+02:00 1999
The date formatted as -MM-dd is 1999-04-29
The above error doesn't exist when running the jdk 1.2 pre-release-v1 on
the same system !!!
[root@teo eforie]# java -version
java version "1.2"
Classic VM (build Linux_JDK_1.2_pre-release-v1, native threads, sunwjit)
[root@teo eforie]# java april30
Parsing and testing the date of 1999 April 29
The parsed day is Thu Apr 29 00:00:00 GMT+03:00 1999
The date formatted as -MM-dd is 1999-04-29
Parsing and testing the date of 1999 April 30
The parsed day is Fri Apr 30 00:00:00 GMT+03:00 1999
The date formatted as -MM-dd is 1999-04-30
Please note the differences (GMT+02) <-> (GMT+03) between them.
The program has been tested on the same machine (but different users teo
& root)
Here comes the test program!
//program april30.java
//
import java.text.*;
import java.util.*;
public class april30 {
private Date thedate;
private SimpleDateFormat sdf;
public april30(String s) {
sdf = new SimpleDateFormat("-MM-dd");
sdf.setLenient(false);
try {
thedate = sdf.parse(s);
} catch (ParseException pe) {
System.out.println("An exception occured trying to parse
string "+s);
}
}
public String toISO() {
return sdf.format(thedate);
}
public String toString() {
return thedate.toString();
}
public static void main(String[] argv) {
System.out.println("Parsing and testing the date of 1999 April 29");
april30 a1 = new april30("1999-4-29");
System.out.println("The parsed day is "+a1.toString());
System.out.println("The date formatted as -MM-dd is "+a1.toISO());
System.out.println("");
System.out.println("Parsing and testing the date of 1999 April 30");
april30 a2 = new april30("1999-4-30");
System.out.println("The parsed day is "+a2.toString());
System.out.println("The date formatted as -MM-dd is "+a2.toISO());
System.exit(0);
}
}
//--
I will REALLY need jdk 1.1.7 to work corectly because some of my
customers are already using java applications with this bug :-(
And we have only 8 days left ...
Best regards,
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA
import java.text.*;
import java.util.*;
public class april30 {
private Date thedate;
private SimpleDateFormat sdf;
public april30(String s) {
sdf = new SimpleDateFormat("-MM-dd");
sdf.setLenient(false);
try {
thedate = sdf.parse(s);
} catch (ParseException pe) {
System.out.println("An exception occured trying to parse
string "+s);
}
}
public String toISO() {
return sdf.format(thedate);
}
public String toString() {
return thedate.toString();
}
public static void main(String[] argv) {
System.out.println("Parsing and testing the date of 1999 April 29");
april30 a1 = new april30("1999-4-29");
System.out.println("The parsed day is "+a1.toString());
System.out.println("The date formatted as -MM-dd is "+a1.toISO());
System.out.println("");
System.out.println("Parsing and testing the date of 1999 April 30");
april30 a2 = new april30("1999-4-30");
System.out.println("The parsed day is "+a2.toString());
System.out.println("The date formatted as -MM-dd is "+a2.toISO());
System.exit(0);
}
}
Problems with numeric keys on swingall.jar for jdk 1.1.7 for Linux
Hello, I am using a jdk 1.1.7-v1a version on a RedHat 5.2 i386 Linux I am using also a swingall.jar version (I don't know how to find the SWING version) that has 2196234 bytes long. Using an AWT TextField I can use the numeric keypad to enter digits. Using a SWING JTextField the numeric keypad is dead. Using an older SWING version (copied from a Win95 JBuilder) the numeric key pad is working !!! But other methods (for JTable) were not designed at that time. That seems that SWING is broken. I heard about a lot of SWING versions (1.0.x , 1.1 , 1.1.1 beta 1) Where I can find the latest SWING version for Linux that works with 1.1.7 and accepts numeric keypad inputs? Thanks in advance, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with numeric keys on swingall.jar for jdk 1.1.7 for Linux
Constantin Teodorescu wrote: > > I am using a jdk 1.1.7-v1a version on a RedHat 5.2 i386 Linux > > I am using also a swingall.jar version (I don't know how to find the > SWING version) that has 2196234 bytes long. > > Using an AWT TextField I can use the numeric keypad to enter digits. > Using a SWING JTextField the numeric keypad is dead. > > Using an older SWING version (copied from a Win95 JBuilder) the numeric > key pad is working !!! But other methods (for JTable) were not designed > at that time. > > That seems that SWING is broken. > I heard about a lot of SWING versions (1.0.x , 1.1 , 1.1.1 beta 1) > > Where I can find the latest SWING version for Linux that works with > 1.1.7 and accepts numeric keypad inputs? I will respond to myself :-) I have downloaded 5 minutes ago JFC/SWING 1.1.1 beta 2 from developer.javasoft.com and it has the same problem. JTextFields does not accept digits from the numeric keypad. What should I do ? Any clue ? -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems with numeric keys on swingall.jar for jdk 1.1.7 for Linux
Riyad Kalla wrote: > > java.sun.com and then go to (on the left panel) Java Foundation > Classes, all of them should be in there. Get 1.1 final or 1.1.1beta, I > don't know how stable the beta is though. I got also JFC 1.1 and 1.1.1 beta 2 (from java.developer.com) and both of them don't work with numeric keypad. Please not : JUST SWING JTextField (JTextArea) component have that behaviour !!! Because AWT TextField accepts digits from numeric keypad !!! > Is your "num lock" on? :) Oouups ... I didn't checked :-) > Could it have to do with your X-system and/or WM? I am using KDE but I switched to : LessTif , AnotherLevel , AfterStep , fvwm ... but it's the same problem !!! When I'm pressing NumLock , only - and + signs can be entered ! The jdk 1.2 pre-1 is working fine with numeric keys in JTextField on my RedHat 5.2 So ... I am waiting for jdk 1.2 Thanks for your help, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
with jdk 1.2 , top reports multiple JVM , 70 Mb each !
Hello all, I'm testing jdk 1.2 pre-v1 on my RedHat 5.2 i386 system (64 Mb RAM) I'm checking the memory footprint of the java machine with 'top' in another xterm window running a simple program that make some simple math calculations, for loops, string and hashtable operations , i.e. nothing graphical. When I am running the program, five (5) 'java' programs are displayed by 'top' program, each of them taking 70Mb of RAM When I am running the same program but with -green option, a single 'java' program is displayed, with the same 70 Mb of memory footprint reported. The same program under jdk 1.1.7 takes only 4 Mb of RAM ! Does this information helps someone? That behaviour is normal ? It's just a debugging phase ? Anyhow, I was happy to discover that jdk1.2 finishes my little program 3 (three) times faster than jdk 1.1.7 and in approx. the same time as jdk 1.1.7 + TYA 1.3 Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: with jdk 1.2 ... (renamed "poor man's speed test")
Peter Schuller wrote: > > > Anyhow, I was happy to discover that jdk1.2 finishes my little program 3 > > (three) times faster than jdk 1.1.7 and in approx. the same time as jdk > > 1.1.7 + TYA 1.3 > > What?!?!?! Is that a "real" program? That is, with method invokations and > stuff, and not just a calculation benchmark? Something like that! For anyone who is interested in trying it, take it from http://www.flex.ro/iute.java I have to repeat , IT IS NOT EVEN AN AMATEUR BENCHMARK PROGRAM!!! It makes 10.000 loops calling only one method that make some string, hashtable and math operations. I used to test JDK 1.1.7 speed on Windows against Linux. Don't expect to something interesting. But JDK 1.2 finished the program 3 times faster than JDK 1.1.7 so , this does mean something, isn't it? Something goes faster deep inside ... :-) If you want to check also garbage collection speed, uncomment System.gc() at the end of the loop. Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem
François NOWE wrote: > > The compilation works fine, but when I execute the class I've message on > output. It's a library that doesn't exist on Linux RedHat 5.2 You can force the replacement with something else line that : as root, do a ln -s /usr/lib/libstdc++.so.2.8.0 /lib/libstdc++-libc6.0-1.so.2 (on a single line, the mail program may split the above into two) then try your program again. If you are a Linux and Java newbie, take a look at http://www.java.ro/vtclava/index.html You will find there something to help you writing quick Java visual applications. I recommend you to get jdk 1.1.7 for Linux that works fine, it's stable enough. Just wait for a new release of jdk 1.2 For the moment it's too hot ... :-) Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java on Linuxla.blackdown.or
Pallavi Gawande wrote: > > I know little bit about Java ie. 1.1. > I start feeling that Xwindows & Motif doesn't have scope.So I want to > learn Java.But I liked Linux very much,so I want to learn Java on > Linux. > So Please give me your kind suggesions.How to start and all. > Suggest some good site also. > Thanking you.Waiting for immediate reply. For developing simple visual Java application under Linux it will be interesting if you will take a look at http://www.java.ro/vtclava/index.html It's free, it generates SWING code and it's very simple. Visual Tcl is intuitive and you will need only a couple of minutes to learn it. I'm using it for developing bigger applications (accounting and stock inventory) and it works just fine. Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Sun's HotSpot for win32 available for download !
Hello, I have downloaded two hours ago the HotSpot for win32 (Win95/98/NT). Tried it. It works. Don't know how fast it is, maybe someone could make some real tests with it. Nothing exciting to see ... I'm just waiting for Linux jdk 1.2 final release instead :-) Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Installing TYA, been there? done that?
Christopher Rowan wrote: > > Having trouble getting tya to install on RedHat5.2 Blackdown 1.1.7. > > ./configure tells me it can't find my version. You should try with : ./configure --with-jdk=/usr/local/jdk1.1.7 --libdir=java (you should enter above your path to jdk1.1.7) make and then make install export JAVA_COMPILER=tya or java -Djava.compiler=tya yourprogram It works just fine, right out of the box. Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Redhat60 and Java2
Jani Mikkonen wrote: > > I resently switched from SOT linux which is based on Redhat 5.2 to > RedHat60 and now Java2 reports similar message to this on every binary > file ive tried. We have tried here RH 6.0 and all versions of JDK. For the moment , only JDK 1.1.6 is working fine on RH 6.0 Best regards, -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
