comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Can Java Programmer Learn C++ Quickly? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c7a28aa864e41ec * Problem wtih Java ThreadGroup.activeCount method - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/80c6f5e77859ec02 * Unique key and value - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78fd73e6d5dce7 * JRE is machine dependent but compiler is machine independent - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5245e1f2b98c91fc * Java Interpreters-Compilers books? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/331b42907b87ee11 * Generate UML diagram from struts-config.xml - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9b7445a7e94e15cf * Using hobby source code in your job ? - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4 * jdbc connect to mysql database - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/562500384f66e601 * set DNS on tomcat - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/384b7537e13683e * Asynchronous Messages (using JMS) improves performance even when the desired comm. mode is synchronous - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f88bf50ff9155e9b * Desktop gets blurry when Java starts... - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ac3cec9e99944b9 * MIDP MIDlet: which characters are supported in the phone font? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0 * Configuring Tomcat with HSQLDB - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a7d7ba7804491 * Software Development Engineers needed - open source enviro - Seattle - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a885e00cb42d9536 * Which JVM to use for Tomcat 5.0.28 and Tomcat 5.5.4? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e152476f72d1387a ============================================================================== TOPIC: Can Java Programmer Learn C++ Quickly? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c7a28aa864e41ec ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 6:34 pm From: Stephen Kellett In message <[EMAIL PROTECTED]>, Chris Smith <[EMAIL PROTECTED]> writes >close to the amount of C code out there. C++ is almost non-existent in >open-source, in my experience, probably because once you're that close >to C, people start asking why you don't use C. I disagree - there are some pretty large and useful C++ open source projects out there. I've had users of Xerces and omniORB point me at them for debugging purposes (I can't think of any others right now) - although I see (in another post) that someone has had the bright idea of scanning the open source projects by language category. As to your second point - why anyone would go back to C after the usefulness and much improved type safety and expressiveness of C++ is beyond me. I think many open source projects that have some momentum go back a long way, time-wise, such as Linux, Python and Ruby (I was surprised to find that Ruby is as old as it is, some of the copyrights go back to 1993, with one at 1988). As a result they were started in C because a useful C++ compiler wasn't available (I remember in 1990 working on a cross platform (7 Unix + VMS) app - we wanted C++, but couldn't get anything stable on all the platforms so went with GCC on all the platforms. By the time G++ was useful, stable and available, we had 1 million or more lines of C... no one is going to rework that code that is already working). Stephen -- Stephen Kellett Object Media Limited http://www.objmedia.demon.co.uk RSI Information: http://www.objmedia.demon.co.uk/rsi.html == 2 of 2 == Date: Fri, Dec 10 2004 11:58 am From: Chris Smith Stephen Kellett <[EMAIL PROTECTED]> wrote: > As to your second point - why anyone would go back to C after the > usefulness and much improved type safety and expressiveness of C++ is > beyond me. Oh, I don't think that C is unequivocally better than C++ (though there are advantages for the simpler language); but at least the last time I did much open-source stuff, which was about four or five years ago, there were great numbers of open-source developers who knew C and simply refused to bother with C++. It's still a matter of compatibility with the older language, even for new projects. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation ============================================================================== TOPIC: Problem wtih Java ThreadGroup.activeCount method http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/80c6f5e77859ec02 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 10:45 am From: "avinashrk" Hi Esmond What you have here surely works and i am not contending that...but my code is not as simple as that..it has cloning involved and also implements thr unnavle interfae (these are the 2 main differences)...Now it might be bcos of these differences that I see the behavior of active count In theory the behavior should be as your code shows but we see something different as did Nimph..so i want to know why that happened? also keep in mind I am not a novice programmer and I have shown it to people with about 5 years of Java programming experience and they dont seem to see anything weird I might be doing..So all in all I think there is some problem with threadGroup which I dont know of Avinash ============================================================================== TOPIC: Unique key and value http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f78fd73e6d5dce7 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 10:47 am From: [EMAIL PROTECTED] as an alternative, you might try saving both the key and the value in the 'key' slot. if there is no danger of any key equalling any value, then you can do it all in one hash table. this is 'clever' programming and probably deserves some copious documentation. Hashtable foo = new Hashtable(); myMethod(String key, String value) { foo.put(key,value); foo.put(value,key); } == 2 of 2 == Date: Fri, Dec 10 2004 4:31 pm From: "hilz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > as an alternative, you might try saving both the key and the value in > the 'key' slot. if there is no danger of any key equalling any value, > then you can do it all in one hash table. this is 'clever' programming > and probably deserves some copious documentation. > > Hashtable foo = new Hashtable(); > > myMethod(String key, String value) { > foo.put(key,value); > foo.put(value,key); > } > and what will happen to foo.size() foo.keySet() foo.values() ..... ============================================================================== TOPIC: JRE is machine dependent but compiler is machine independent http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5245e1f2b98c91fc ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 1:53 pm From: Eric Sosman Michael Borgwardt wrote: > Grant Wagner wrote: > > >><[EMAIL PROTECTED]> wrote in message >>news:[EMAIL PROTECTED] >> >> >>>When we download JRE, there are different platforms to choose. That >>>means JRE is machine dependent, but Java Compiler is machine >>>independent. >> >> >>The compiler itself is machine dependant, that is, you need a different >>Java compiler for each platform you run it on, > > > No, because the compiler itself (at least Sun's javac) is written in Java, > so all you need is a (definitely machine dependant) JRE. You need just a little more, but not much. There's a small platform-specific launcher program (about 28KB on Solaris, 45KB on Windows) that gets things started. The real "meat" of the compiler is, as you say, a bunch of Java bytecode. -- [EMAIL PROTECTED] == 2 of 2 == Date: Fri, Dec 10 2004 8:11 pm From: Michael Borgwardt Eric Sosman wrote: >>No, because the compiler itself (at least Sun's javac) is written in Java, >>so all you need is a (definitely machine dependant) JRE. > > > You need just a little more, but not much. There's a small > platform-specific launcher program (about 28KB on Solaris, 45KB > on Windows) that gets things started. The real "meat" of the > compiler is, as you say, a bunch of Java bytecode. True, but the launcher is actually not necessary and exists only for convenience's sake. You could also start the compiler like this: java -cp tools.jar com.sun.tools.javac.Main <compiler arguments> ============================================================================== TOPIC: Java Interpreters-Compilers books? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/331b42907b87ee11 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 8:06 pm From: Hrvoje Blazevic Are there any good books on Interpreter/Compiler implementing in Java? -- Hrvoje == 2 of 2 == Date: Fri, Dec 10 2004 11:10 am From: [EMAIL PROTECTED] check out this site... https://javacc.dev.java.net/ greg Hrvoje Blazevic wrote: > Are there any good books on Interpreter/Compiler implementing in Java? > > -- Hrvoje ============================================================================== TOPIC: Generate UML diagram from struts-config.xml http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9b7445a7e94e15cf ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 11:15 am From: "[EMAIL PROTECTED]" Hi, Is there any tool out there that can generate UML digram from a struts-config.xml file, not the reverse way ? Thanks, Tung Chau ============================================================================== TOPIC: Using hobby source code in your job ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60dfe865a7807c4 ============================================================================== == 1 of 3 == Date: Fri, Dec 10 2004 7:55 pm From: Keith Thompson Albert van der Horst <[EMAIL PROTECTED]> writes: [...] > You turn my carefully worded phrases upside down. > By GPL-ing my code, I do the best I can to give the public > full control of my code. That is what I mean by "effectively". > And indeed the public holds a stake at my code, probably more than > I do. [...] I believe this is incorrect. It's also off-topic in all five of the newsgroups to which it is being posted. The GPL can be discussed in gnu.misc.discuss. Software IP issues can be discussed in misc.legal.computing. Did you have a question about Borland Delphi, C, C++, Java, or Pascal? -- Keith Thompson (The_Other_Keith) [EMAIL PROTECTED] <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do this. == 2 of 3 == Date: Fri, Dec 10 2004 1:40 pm From: "JeffS" It seems to me that most programmers, especially contractors who go from job to job, reuse code they either did as a hobby or wrote for some other employer. It's just that they don't copy and paste it line by line, they modify it for the most current use, and obfuscate it as well. It also seems that this practice would have to be a complete necessity in order to be productive, or at least get better over time. Imagine if every coder completely re-invented the wheel from scratch with every job opportunity. That would be ridiculous. Plus, an employer, just because they paid you to write code, has no monopoly over your knowledge, unless it's a company "trade secret". However, in programming, in spite of all the ridiculous patents going on out there, there are no real "trade secrets", in terms of algorithms or coding techniques. I'm sure that on a pure legal basis I'm probably at least partially wrong. However, I'm also quite sure that code reuse is extremely common amongst coders. They just don't tell anyone about what code they are reusing, and I'm sure that employers are not probing their coders for what code they are reusing. It's kind of a "don't ask, don't tell" situation, and any potential IP or patent infringement is looked upon like "J" walking is looked upon. I am utterly convinced that this is the way it is, based on personal experience, people I know, and the fact that the alternative would mean that programmers could only take one job their entire lives, and software innovation would completely stagnate. To put another way - to have intellectual capital kept under IP/patent wraps would have meant that human beings would still be in caves. == 3 of 3 == Date: Fri, Dec 10 2004 1:46 pm From: "JeffS" A good, safe bet is to make any public hobby code published under a BSD style license. With code written under the BSD license, the code can be used for anything with no restrictions, so long as the user understands there is no warranty and the original author is given credit. ============================================================================== TOPIC: jdbc connect to mysql database http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/562500384f66e601 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 9:16 pm From: "Marcus Krieger" I am using JBuilder and I would like to connect to a mysql database. I was able to connect to a oracle database, however it does not work with mysql! I downloaded the newest drivers from the mysql webseite and put them into my java/bin directory. As I don't know exactly which java folder Jbuilder is using I have put them in both folder - my java folder and the java folder in jbuilder. Additionally, I tried to import the file from Jbuilder, and put them into "Project", "User Home" and "Jbuilder". Whatever that exactly does, with oracle it had worked. Using mysql, I get the following error message: driver:com.mysql.jdbc.Driver url:jdbc:mysql: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver java.sql.SQLException: No suitable driver java.sql.SQLException: No suitable driver That's my code: [..] jdbc_driver="com.mysql.jdbc.Driver"; db_login = "root"; db_password = ""; db_url = "jdbc:mysql://localhost:3306/dbname"; try { Class.forName(jdbc_driver); } [..] DriverManager.getConnection(db_url, db_login, db_password); Any ideas, what I am doing wrong here? Thanks, Marcus == 2 of 2 == Date: Fri, Dec 10 2004 9:23 pm From: Collin VanDyck Marcus Krieger wrote: > driver:com.mysql.jdbc.Driver url:jdbc:mysql: > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > java.sql.SQLException: No suitable driver > java.sql.SQLException: No suitable driver Most likely the connector jar is not on your classpath. If you cannot figure out where to place it, it SHOULD work if you place it in your %SYSTEM_JRE%/lib/endorsed directory. ============================================================================== TOPIC: set DNS on tomcat http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/384b7537e13683e ============================================================================== == 1 of 3 == Date: Fri, Dec 10 2004 12:52 pm From: [EMAIL PROTECTED] (vizlab) Hi, I installed Tomcat5.5.4 on my server hosted by dell. I have a domain name www.foo.com. I can access http://www.foo.com, but I cannot access the first tomcat page by http://www.foo.com:8080. Everything on Tomcat5.5.4 is default. Should I set DNS on tomcat? If so, how? Or I need not set DNS on tomcat and the dell's DNS will automatically resolve the domain name and connect to my server? I have been stucked for a long time. Very appreciate any help. Best == 2 of 3 == Date: Fri, Dec 10 2004 2:43 pm From: Katerina McLean vizlab wrote: > Hi, > I installed Tomcat5.5.4 on my server hosted by dell. > I have a domain name www.foo.com. > I can access http://www.foo.com, but I cannot access the first > tomcat page by > http://www.foo.com:8080. > Everything on Tomcat5.5.4 is default. > Should I set DNS on tomcat? If so, how? > Or I need not set DNS on tomcat and the dell's DNS will > automatically resolve the domain name and connect to my server? > I have been stucked for a long time. > Very appreciate any help. > > Best Hi: 1)Is the Tomcat up and running - i.e. can you access it via localhost:8080 Cat == 3 of 3 == Date: Fri, Dec 10 2004 2:34 pm From: Sudsy vizlab wrote: > Hi, > I installed Tomcat5.5.4 on my server hosted by dell. > I have a domain name www.foo.com. > I can access http://www.foo.com, but I cannot access the first > tomcat page by > http://www.foo.com:8080. > Everything on Tomcat5.5.4 is default. <snip> So are you getting a 404 or a 500? Or is the connection being refused? Honestly, without this information it's impossible to tell what the problem /might/ be, let alone be able to provide a definitive solution... -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. ============================================================================== TOPIC: Asynchronous Messages (using JMS) improves performance even when the desired comm. mode is synchronous http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f88bf50ff9155e9b ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 12:52 pm From: "eJAYBee" I am being told that even when point A to point B communication, originating at point A, is synchronous, send a message to B wait for B to finish processing and send a tagged(to corelate the response to the request) message back asynchronously via another Q will improve the response time and scalability during peak volume vis-a-vis a synchronous API call between A and B. A being a servlet B being an application server hosted on a container. Keep in mind that this application cannot live with the fact that there is a possibility that the response may never come back (timeout). The expected response time during average load is <2sec. Peak load 110 transactions per second. Response time of 5 secs during peak load is unacceptable. Clustering is certainly a consideration. Any opinion, pointers, etc. is welcome. Have a wonderful weekend!! ============================================================================== TOPIC: Desktop gets blurry when Java starts... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4ac3cec9e99944b9 ============================================================================== == 1 of 2 == Date: Fri, Dec 10 2004 9:23 pm From: Tris Orendorff "Mr B." <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > I know, maybe not the best place to ask, but Im at the end of my > wits.. so I'll try > > When Java fires up ( only Sun, not MS ) desktop goes all blurry. > Launching Eclipse, NetBeans etc etc ( even just visiting a java > supported site in IE6 ) starts the blurriness.. > > Uninstalling Java 1.4.2 and reverting back to whatever version comes > with IE6 fixes the problem, but obviously I then can't use Eclipse and > NetBeans > > I think the problem started when I got my 6800GT, but I am not sure, > and ofcause, no matter what driver the problem persists. > Apart from that WinXP Pro + SP2 > > Anybody seen this ? No! However, it sounds like a power-supply problem. It's possible when the VM starts up that the combination of hard drives, CPU and memory being used takes too much power and the video card goes blurry. Does the blurriness stay until you leave Java or does it go away after the VM loads? -- Sincerely, Tris Orendorff -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d++ s+:- a+ C+ UL++++ P+ L+ E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP t+ !5 X- R- tv--- b++ DI++ D+ G++ e++ h---- r+++ y+++ ------END GEEK CODE BLOCK------ == 2 of 2 == Date: Fri, Dec 10 2004 9:57 pm From: Mark Thornton Mr B. wrote: > I know, maybe not the best place to ask, but Im at the end of my wits.. so > I'll try > > When Java fires up ( only Sun, not MS ) desktop goes all blurry. > Launching Eclipse, NetBeans etc etc ( even just visiting a java supported > site in IE6 ) starts the blurriness.. > > Uninstalling Java 1.4.2 and reverting back to whatever version comes with > IE6 fixes the problem, but obviously I then can't use Eclipse and NetBeans > > I think the problem started when I got my 6800GT, but I am not sure, and > ofcause, no matter what driver the problem persists. > Apart from that WinXP Pro + SP2 > > Anybody seen this ? > > Java uses Direct3D and you have set your video card to force the use antialiassing expecting it to only apply to games ... Check the antialiasing options on your video card or try forcing Java to not use Direct3d (I can't remember the necessary option off hand). Mark Thornton ============================================================================== TOPIC: MIDP MIDlet: which characters are supported in the phone font? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/73bdfdf7f36c6ea0 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 4:34 pm From: "Darryl L. Pierce" Michael Borgwardt wrote: >>> What *are* a "country's displayable characters"? >> >> Take, for example, the font used to display Korean characters. > > And do what with it? It's an example of a displayable characters for a specific country's language. Are you interested in information or argument? >>> I don't think there is >>> a formal standard for that, and it's certainly not technically >>> implemented >>> in the Locale class. >> >> Who said anything about the Locale class? > > What else did you mean when you said "It supports whatever locale(s) > are on the phone."? Locale is not exclusive to the set of Java APIs. The word locale, as I used it above, means "[a] geopolitical place or area, especially in the context of configuring an operating system or application program with its character sets, date and time formats, currency formats etc." (dictionary.com) An example of a local supported by a phone would be those phones manufactured in Korea which have only Korean characters displayed by the font set on the phone. Do you understand now? If not, please feel free to ask questions. -- Darryl L. Pierce <[EMAIL PROTECTED]> Visit my webpage: <http://mcpierce.multiply.com> "By doubting we come to inquiry, through inquiry truth." - Peter Abelard ============================================================================== TOPIC: Configuring Tomcat with HSQLDB http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/26a7d7ba7804491 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 1:58 pm From: "j2eekent" Heiner, I can't seem to find any references to TOMCAT in the links you pointed out. Kent ============================================================================== TOPIC: Software Development Engineers needed - open source enviro - Seattle http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a885e00cb42d9536 ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 2:46 pm From: "C++HeadHunter" My name is Ken Johnson and I work for Volt Technical Resources. I'm seeking out people with specific talent and experience for roles at a large online retailer in Seattle!! Experienced software designers/developers (4-5 yrs min.) with C++, Perl, STLs, and Java in a Linux/Unix environment are a bottom line. SDLC experience would be great. My role is to place qualified individuals in front of hiring managers - no HR black hole. I'm hoping I might be able to help you, or someone you know, with this new opportunity. Send me a note for further info, or forward on your resume. Here to help! Ken [EMAIL PROTECTED] ============================================================================== TOPIC: Which JVM to use for Tomcat 5.0.28 and Tomcat 5.5.4? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e152476f72d1387a ============================================================================== == 1 of 1 == Date: Fri, Dec 10 2004 2:55 pm From: Juha Laiho Katerina McLean <[EMAIL PROTECTED]> said: >Is there a suggested version of JVM to use with Tomcats 5.0.28 and 5.5.4? I tried to search, but didn't find any explicit documentation on 5.0.28. Myself, I'd run it with the latest 1.4.x JVM. As for 5.5 series, I think the following statement from the release notes says it all: : Tomcat 5.5 is designed to run on J2SE 5.0 and later, and requires : configuration to run on J2SE 1.4. Make sure to read the "RUNNING.txt" : file in this directory if you are using J2SE 1.4. ... so, unless you have compelling reasons not to, run this with 1.5.x JVM. And if 1.5.x is out of the question, use the latest in 1.4.x series, after reading the appropriate documentation. -- Wolf a.k.a. Juha Laiho Espoo, Finland (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++ "...cancel my subscription to the resurrection!" (Jim Morrison) ============================================================================== You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer" group. To post to this group, send email to [EMAIL PROTECTED] or visit http://groups-beta.google.com/group/comp.lang.java.programmer To unsubscribe from this group, send email to [EMAIL PROTECTED] To change the way you get mail from this group, visit: http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe To report abuse, send email explaining the problem to [EMAIL PROTECTED] ============================================================================== Google Groups: http://groups-beta.google.com
