comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * We need good and free Java Rules Engine (JSR 94) - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3acb5cb7f397d8e5 * How to invoke jar cammand in the java source code? - 5 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1ba789da4111ad18 * Class.forName - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a74afcc2c89ce07e * MIDlet Database - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/22c02d60b8400694 * store whole InputStream in a String - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d510835287103e9 * Thread synchronization - 3 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/172837b7b0667fd1 * disable JVM type checking - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c959b168b0177d64 * Compiler trick - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2992422eec9fe49 * RMI: remote call or local call - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fc3a94862dd47001 * Returning object created 'in' bean onto a page - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ed73c683bf5ad4d1 * JTextpane and mxing with HTML. - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38545902389e05e * Build using Ant gets Stuck - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/81c38a47dd409f6a * What is Embedded Java? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bacf063e98ecf899 * Tomcat + java.io.FileNotFoundException - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ba2cca95c5415a5 * FTP File Transfer; file contents getting changed ? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31644f91c9b89f0d * Help to select a lightweight java ide with intellisense, debugging - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b6d23e24f796f53 * Quake2 in Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60f3193b21a6bb3 ========================================================================== TOPIC: We need good and free Java Rules Engine (JSR 94) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3acb5cb7f397d8e5 ========================================================================== == 1 of 2 == Date: Mon, Sep 13 2004 1:08 am From: "toni" <[EMAIL PROTECTED]> Hi. We are new to Java Rules Engine API (JSR 94). We developing web application (JSP and EJB) with plenty business logic and rules, and after searching SUN's web, we find out about Java Rules Engine API (JSR 94). So, we need advice about good, free rule engine which can be incorporated in our server-side web application (*.ear). We don't know much about various rule engine, so maybe this question will be odd. Does some rule engine can be incorporated in our *.ear, or rule engine is stand-alone server? We still don't know where we'll deploy our ear, accordingly we don't know does our future server support/have any rule engine. BTW, if you know about good tutorial, faq, book about java rule engine please tell us. Thanks in advance! == 2 of 2 == Date: Mon, Sep 13 2004 1:43 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 13 Sep 2004 10:08:14 +0200, toni wrote: > We are new to Java Rules Engine API (JSR 94). ... 'We'? Is that the Royal 'We', or are there a group of you? > So, we need advice about good, free rule engine.. It sounds like more you need either a consultant, or Google for your basic research. What have rule engines are you considering? What information have you ascertained thus far? -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology ========================================================================== TOPIC: How to invoke jar cammand in the java source code? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1ba789da4111ad18 ========================================================================== == 1 of 5 == Date: Mon, Sep 13 2004 1:37 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 13 Sep 2004 16:10:13 +0800, wangyin wrote: > Andrew Thompson wrote: >> On Mon, 13 Sep 2004 14:05:43 +0800, wangyin wrote: >> >>>>You want to "Make a zip file", wangyin? >>> >>>I want to find a name of direction >> >> Is that a directory you mean, with a >> lot of files and other directories? >> >>>..with a String variable,and use jar >>>command to zip it! ... > Oh,I can't use JFiledialog. Why not? Please explain, rather than leave me to guess. >..but How to copy a zip file to save local disk? I do not understand, and when you write short sentences it does not help. Explain point by point: "I want to.. 1) ask user for string (file/directory name) to zip. 2) get file/directory, put in zip. 3) if file is directory, zip all other file/directory in it. 4) close zip." Note in that simple description, I wrote more lines than you put in any post so far wangyin. If there is confusion over what you want to do, you need to write more words, not less. -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology == 2 of 5 == Date: Mon, Sep 13 2004 2:04 am From: "KC Wong" <[EMAIL PROTECTED]> > Note in that simple description, I wrote > more lines than you put in any post so far > wangyin. > > If there is confusion over what you want to > do, you need to write more words, not less. And if you have difficulties in communicating in English, use a translator. e.g. http://www.systranbox.com/systran/box == 3 of 5 == Date: Mon, Sep 13 2004 2:03 am From: wangyin <[EMAIL PROTECTED]> Andrew Thompson wrote: > On Mon, 13 Sep 2004 16:10:13 +0800, wangyin wrote: > >>Andrew Thompson wrote: >> >>>On Mon, 13 Sep 2004 14:05:43 +0800, wangyin wrote: >>> >>> >>>>>You want to "Make a zip file", wangyin? >>>> >>>>I want to find a name of direction >>> >>>Is that a directory you mean, with a >>>lot of files and other directories? >>> >>> >>>>..with a String variable,and use jar >>>>command to zip it! > > ... > >>Oh,I can't use JFiledialog. > > > Why not? Please explain, rather than > leave me to guess. > > >>..but How to copy a zip file to save local disk? > > > I do not understand, and when you write > short sentences it does not help. > > Explain point by point: > "I want to.. > 1) ask user for string (file/directory name) to zip. > 2) get file/directory, put in zip. > 3) if file is directory, zip all other > file/directory in it. > 4) close zip." > > Note in that simple description, I wrote > more lines than you put in any post so far > wangyin. > > If there is confusion over what you want to > do, you need to write more words, not less. > Sorry andrew thompson I'm newbie to use newsgroup!Sorry! == 4 of 5 == Date: Mon, Sep 13 2004 3:01 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 13 Sep 2004 17:04:10 +0800, KC Wong wrote: >> If there is confusion over what you want to >> do, you need to write more words, not less. > > And if you have difficulties in communicating in English, use a translator. > > e.g. http://www.systranbox.com/systran/box Good idea. Another suggestion might be to post in *both* English and your language, you might find another poster understands and can help translate. -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology == 5 of 5 == Date: Mon, Sep 13 2004 3:03 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 13 Sep 2004 17:03:47 +0800, wangyin wrote: > Sorry andrew thompson I not angry, wangyin. > I'm newbie to use newsgroup!Sorry! 'Sorry', less. Talk, more. :-) -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology ========================================================================== TOPIC: Class.forName http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a74afcc2c89ce07e ========================================================================== == 1 of 2 == Date: Mon, Sep 13 2004 2:09 am From: "Robert Klemme" <[EMAIL PROTECTED]> "Ulf Jonson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > Any one who can tell me the diffrerence beteween writing: > > Class.forName("com.mysql.jdbc.Driver"); > > or > > Class.forName("com.mysql.jdbc.Driver").newInstance(); > > is it the same thing? Not at all. The first line loads the class while the second line loads the class and creates a new instance of the driver. If you use the second approach, you can directly obtain a connection from the driver instance like: Driver d = Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection c = d.connect( dbUrl, properties ); But these are equivalent: Class cl = Class.forName("com.mysql.jdbc.Driver"); Class cl = com.mysql.jdbc.Driver.class; and Driver d = Class.forName("com.mysql.jdbc.Driver").newInstance(); Driver d = new com.mysql.jdbc.Driver(); > Is this the answer? Taken from sun website: > http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html FUP to comp.lang.java.programmer since this is not really database specific. robert == 2 of 2 == Date: Mon, Sep 13 2004 4:03 am From: "Vincent Cantin" <[EMAIL PROTECTED]> > But these are equivalent: > > Class cl = Class.forName("com.mysql.jdbc.Driver"); > Class cl = com.mysql.jdbc.Driver.class; > > and > > Driver d = Class.forName("com.mysql.jdbc.Driver").newInstance(); > Driver d = new com.mysql.jdbc.Driver(); Not totally equivalent, since the first versions won't check the existency of the class at the compile time. ========================================================================== TOPIC: MIDlet Database http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/22c02d60b8400694 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 2:41 am From: [EMAIL PROTECTED] (Stewart) I've just started to look at MIDlet and their database functionality. Can you anyone tell me if it is possible to install a pre-populated database with the Midlet. I have a quite a lot of data that i want to pre-load. Thanks Stewart ========================================================================== TOPIC: store whole InputStream in a String http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d510835287103e9 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 2:36 am From: "Chris Uppal" <[EMAIL PROTECTED]> Mike Schilling wrote: > "Paul Lutus" <[EMAIL PROTECTED]> wrote in message > [...the usual...] > So you've said, ad nausem, with no attempt at logic or reasoning. You're > not John Cleese, you're Eliza. "Eliza Lutus", hmm... that might just stick.... -- chris ========================================================================== TOPIC: Thread synchronization http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/172837b7b0667fd1 ========================================================================== == 1 of 3 == Date: Mon, Sep 13 2004 2:41 am From: "Chris Uppal" <[EMAIL PROTECTED]> Thomas G. Marshall wrote: > This post is huge. I'm going to try to respond to as few of the salient > points as I can that I believe we are at odds with. If I snipped > something too important to miss, then I apologize, and please let me know. [Sorry about the delayed response, to this and to other posters in this thread. To be honest, I'd run out of appetite for the subject, and wanted to let it lie for a few days] > Mutexes, semaphores, and all notions of synchronization and concurrency > control that I can think of exist in computer science with or without > object orientation. > > Do you agree? I do, but maybe there's one of our points of difference. I'm working in a totally OO context -- I'm not even slightly interested in the fact that some of the concepts I work with can be dislodged from their entanglement with Java's vision of OO. I don't /want/ to disentangle them -- working with the "grain" of Java and allowing OO to manage the conceptual difficulties of synchronisation is to me /obviously/ the best way to work. Now I can quite see that if you are attempting teach /programming/ (as opposed to /Java/ or at least OO programming), and the use of Java is just an expedient choice, then I can see why you would want to keep the concepts as clearly separated as possible. But I submit that by doing so, you risk /not/ teaching your students the best way to use the tools in hand. > > (This is probably as good a point as any to mention that if I were > > interviewing prospective junior programmers, and they said that > > synchronisation was to protect passages of code, then I'd very likely > > fail them on that basis alone > > That would be a mistake. Mistaken or not, you have not as yet persuaded me that I would be well advised hire someone who has been trained the way that /it seems to me/ you are advocating. > > The first point is that (as you know, of course) synchronised blocks > > (and methods) don't /really/ protect passages of code -- not unless > > you conceptualise the code as being duplicated "in" each object. > > Not exactly. The code /execution/ is duplicated "in" each thread. When I > say that I am protecting lines of code from simultaneous execution Well no. I /doesn't/ prevent simultaneous execution, nothing like it -- as you well know, the same synchronised method, say, can be executed on two different instance simultaneously. And it's precisely that feature of Java's approach to concurrency that I think you are failing to emphasise. With the result that you then have to force an unnatural expression of synchronisation in order to compensate for the confusion you have caused by emphasising the code rather than the objects. > > I think that if you put the emphasis on the code in this way, then you > > are actively inviting the mistake of forgetting that the > > synchronisation is bound to the object. > > And what of non-object oriented languages? As I've said, they are neither interesting nor relevant to me (for the purposes of this discussion -- of course!). Your position may be different. I'm interested in the best, most natural, and easiest to make "right", way to program /in Java/. I'm not interested in the commonality of the concepts of computer science, because if I were using a different language, then the grain of that language would be different and I'd approach the subject in a different way. Of course, I'm able to take that view because, in part, I've had a good education that /does/ include the language-independent abstractions -- I'm not knocking the idea of teaching them. But you have to decide which you /are/ teaching: good practical OO/Java programming, or computer science. -- chris == 2 of 3 == Date: Mon, Sep 13 2004 2:37 am From: "Chris Uppal" <[EMAIL PROTECTED]> Mike Schilling wrote: > You've snipped the context. I was replying to your point that you prefer > > synchronized(this) {} > > to > > private Object lock = new Object(); > synchronized(lock) {} > > and explaining the dangers of the former. > > This idea isn't peculiar to me, by the way. Bloch makes the same point in > _Effective Java_. I'm still not sure I'm following you. Is your objection that without a "hidden" lock object, it is possible for an arbitrary bit of foreign code to execute a synchronised block on the object in question, thus potentially preventing it from making further progress in its real task ? If so then I think the reasoning is backwards, maybe even circular. It seems to me that the only reason "someone else" is likely to lock "your" object inappropriately is that the practice of taking out locks on other-than-self is being followed. What I call spaghetti synchronisation (I admit the term is loaded). If you consider that in the normal case (and overwhelming majority at that), an object will hold a lock only on itself, then the "danger" is obviously chimerical. But, in order to avoid it, you (if I'm interpreting you correctly) throwing away the obvious benefits to comprehension of allowing the objects to carry the conceptual load. That's how I see it anyway. (I haven't read "Effective Java"; I remember looking at it in a bookshop and thinking "nah", but I can't now remember whether that's because I thought it misguided -- as in this case -- or just that it was telling me stuff I already knew. I shall have to check it out again.) -- chris == 3 of 3 == Date: Mon, Sep 13 2004 2:42 am From: "Chris Uppal" <[EMAIL PROTECTED]> Thomas G. Marshall wrote: > I was going to let this go, but I just cannot. I think I've now said all I have to say on this subject, but I did want to add to: > Particularly when the user grabs a thread safe list using > Collections.synchronizedList(). Ugh, yes! I'm inclined to think that that wrapper should be deprecated. It doesn't protect the semantics of the data /in/ the collection, only of the data structures used internally /by/ the collection. And since protecting the meaning (which can only be done from outside) will naturally protect the implementation too, there seems to be little need for the wrapper. It is just an error waiting to happen... -- chris ========================================================================== TOPIC: disable JVM type checking http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c959b168b0177d64 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 2:43 am From: "Chris Uppal" <[EMAIL PROTECTED]> Yu David Liu wrote: > Is there a way to disable JVM type checker without hacking into its > source code? No. About the nearest you can come is to dodge its type checking by implementing all (or most) of your language semantics above the level of Java objects -- so the JVM only ever sees objects of one (or a small number of) types. Effectively this means that you are interpreting your language rather than "translating" it into Java or JVM bytecodes. > I'm writing a compiler, and the translation target language is Java. The > source language of the compiler has its own type system; we don't need > an extra layer of type checking. <grin> And will /your/ language implementation include an escape hatch so that creators of subsequent language implementations can target it without bothering with your type checker ? > To make things worse, we need to get > around Java's nominal subtyping to make our structural subtyping system > work. Any ideas? You may find some ideas in "Component Pascal" implemented for the JVM. See, for instance: http://www.citi.qut.edu.au/research/plas/projects/cp_files/ComponentPascal.html -- chris ========================================================================== TOPIC: Compiler trick http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a2992422eec9fe49 ========================================================================== == 1 of 2 == Date: Mon, Sep 13 2004 2:46 am From: "Chris Uppal" <[EMAIL PROTECTED]> Andrew Thompson wrote: > /** Your second CDummy class did not compile. */ I think Razvan's point is that it doesn't compile. I wouldn't expect it to, anyway. I haven't tested it (so I'm setting myself up to look stupid here ;-) but I'd expect the compiler to reject the code because 'yy' is not initialised in every path. We are cleverer than the compiler, so we can see that it /is/ initialised on every path. But the important point is that the compiler is using specific /rules/, which are part of the Java language definition, to determine what is legal and what is not. According to those rules (which are deliberately simpler than they have to be) 'yy' is not "definitely assigned" before its use in the println(). Chapter 16 of the Java Language Specification (second edition) defines the rules for definite assignment, -- chris == 2 of 2 == Date: Mon, Sep 13 2004 3:45 am From: Joona I Palaste <[EMAIL PROTECTED]> Chris Uppal <[EMAIL PROTECTED]> scribbled the following: > Andrew Thompson wrote: >> /** Your second CDummy class did not compile. */ > I think Razvan's point is that it doesn't compile. > I wouldn't expect it to, anyway. I haven't tested it (so I'm setting myself up > to look stupid here ;-) but I'd expect the compiler to reject the code because > 'yy' is not initialised in every path. > We are cleverer than the compiler, so we can see that it /is/ initialised on > every path. But the important point is that the compiler is using specific > /rules/, which are part of the Java language definition, to determine what is > legal and what is not. According to those rules (which are deliberately > simpler than they have to be) 'yy' is not "definitely assigned" before its use > in the println(). > Chapter 16 of the Java Language Specification (second edition) defines the > rules for definite assignment, The fact that the compiler is not sentient and does not possess a human sense of deduction causes frequent amazement among newbies. Just a few weeks earlier we had a question why this kind of code does not compile: public class MyClass { public void doIt() { /* ... */ } } public class Test { public static void main(String[] args) { List list = new ArrayList(); /* ... */ Object obj = list.get(0); if (obj instanceof MyClass) { obj.doIt(); } } } I think the poster even expected this form of main() to compile: public static void main(String[] args) { List list = new ArrayList(); /* ... */ Object obj = list.get(0); int i=500; if (obj instanceof MyClass) { i=401; } if (i%2 == 0) { return; } obj.doIt(); } If the deduction involves knowledge of the environment around the Java program, then the question becomes even more interesting. =) -- /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ \-- http://www.helsinki.fi/~palaste --------------------- rules! --------/ "As we all know, the hardware for the PC is great, but the software sucks." - Petro Tyschtschenko ========================================================================== TOPIC: RMI: remote call or local call http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fc3a94862dd47001 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 2:55 am From: Esmond Pitt <[EMAIL PROTECTED]> Nigel Wade wrote: > On Thu, 09 Sep 2004 03:51:46 -0700, Buu Nguyen wrote: > > >>Hi everyone, >> >>I have a RMI application in which data must be secured. I do as >>follow: the first time a client connect a server, it receives a unique >>key which serves as an identifier, which is to be passed into every >>remote call to server, so that the server can distinguish it against >>other clients and give it approriate permissions. Great, rite! The >>problem is that if the call is not remote, i.e. server object call >>each other then I have to pass a fake key (as it is a server object, >>not client thus have no key) and the security is checked on that fake >>key! I want to know if there is anyway to distinguish whether the >>current method is called by client object or other server object. Just call RemoteServer.clientHost(). If it returns, the call is remote; if it throws an exception, it is a local call. ========================================================================== TOPIC: Returning object created 'in' bean onto a page http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ed73c683bf5ad4d1 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:00 am From: [EMAIL PROTECTED] (Amit) Hello everybody: I am trying to use a session level object created (and filled) in a java bean. The problem is to verify user id and pwd provided, and if they are valid, create and return a user object. This user object is intended to have a session scope. The exact setup is as follows; 1. The user id and pwd are passed to the jsp page from login.html page. 2.The jsp page contains a reference to the object theUser, that i want to use with session scope <jsp:useBean id='theUser' scope='session' class='User'> 3. There is another bean on the page, log, an object of login class. This bean contains a method to check the database, and if user exists, it returns a User object. uid=request.getParameter("userid"); pwd=request.getParameter("passwd"); . . . theUser = log.checkLogin(uid,pwd); if (theUser==null) { %> <h3> Login Failed </h3> <a href="login.html"> Please Try Again </a> <% } The code in Login.checkLogin is as follows. Presently i have hardcoded the values,instead of accessing the database. public User checkLogin(String userid,String passwd) { User user = null; if(userid.equals("user") && passwd.equals("123")) { user = new User("rishi", "yadav", "Mr.", "","M") ; } return user; } 4. Now comes the actual problem. theUser is able to access the values stored in returned object, and i am able to display them. But as soon as i go to some other page ( using forward ), the theUser object exists alright, but it doesnt contain the values. My guess is that since i am setting the values in checkLogin() and passing only a reference, the reference has only page scope. So what should I do to be able to use a object created in a bean and returned to a page? Any, really any comments and suggestions shall be more than welcome Thanks for your time Amit ========================================================================== TOPIC: JTextpane and mxing with HTML. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38545902389e05e ========================================================================== == 1 of 3 == Date: Mon, Sep 13 2004 3:14 am From: "Kalpesh Modha" <[EMAIL PROTECTED]> Hello. If I wanted to load up a html file with the satPage command and then add some components like a JButton can I do that with JTextPane. As I have tried and it just ignores any components that I add after the setPage command. Many thanks for your help. Kalpesh Modha. == 2 of 3 == Date: Mon, Sep 13 2004 3:24 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 13 Sep 2004 10:14:54 +0000 (UTC), Kalpesh Modha wrote: > If I wanted to load up a html file with the satPage command and then add > some components like a JButton can I do that with JTextPane. > > As I have tried and it just ignores any components that I add after the > setPage command. ..What does it do for the JButtons you add, before the setPage command? Note there are two better groups for questions of this nature, one for GUI problems [1], the other for learners[2]. Further described.. [1] <http://www.physci.org/codes/javafaq.jsp#cljg> [2] <http://www.physci.org/codes/javafaq.jsp#cljh> -- Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology == 3 of 3 == Date: Mon, Sep 13 2004 3:37 am From: "Kalpesh Modha" <[EMAIL PROTECTED]> thanks I'll post two those group and also look at the links. "Andrew Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 13 Sep 2004 10:14:54 +0000 (UTC), Kalpesh Modha wrote: > >> If I wanted to load up a html file with the satPage command and then add >> some components like a JButton can I do that with JTextPane. >> >> As I have tried and it just ignores any components that I add after the >> setPage command. > > ..What does it do for the JButtons you > add, before the setPage command? > > Note there are two better groups for > questions of this nature, one for GUI > problems [1], the other for learners[2]. > > Further described.. > [1] <http://www.physci.org/codes/javafaq.jsp#cljg> > [2] <http://www.physci.org/codes/javafaq.jsp#cljh> > > -- > Andrew Thompson > http://www.PhySci.org/ Open-source software suite > http://www.PhySci.org/codes/ Web & IT Help > http://www.1point1C.org/ Science & Technology ========================================================================== TOPIC: Build using Ant gets Stuck http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/81c38a47dd409f6a ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:15 am From: [EMAIL PROTECTED] (Roshan Pai) Hi Tony, Thanks for your reply. The problem is that the build that was taking 30 Minutes on the whole, now takes around 1 1/2 hours. Thats a 300% jump. This is what is surprising. Also I did not understand what you meant by 'narrowing', can you please explain that a bit more in detail. Thanks Tony, Regards, Roshan Pai "Tony Morris" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Have you tried narrowing it down? > "Divide and conquer" is your friend. ========================================================================== TOPIC: What is Embedded Java? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bacf063e98ecf899 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:21 am From: "Ralph White" <[EMAIL PROTECTED]> Some notes: - wireless and embedded is not the same. Some embedded systems are wireless but many are not. "Embedded Java" refers to Java running on embedded systems, whether these systems are wireless or not. - J2ME is one popular flavour of embedded Java, but by no means the only one. - The rest of your points are J2ME specific and they seem to assume CLDC/MIDP, which is not the only J2ME technology either. ========================================================================== TOPIC: Tomcat + java.io.FileNotFoundException http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ba2cca95c5415a5 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:26 am From: [EMAIL PROTECTED] (apatruduque) Hello everybody, I have a question about how to access a file from a .jsp. In summary: fileA.jsp uses classA in /WEB-INF/classes to read /xml/fileB.xml (all paths relative to tomcat) classA uses the File class to access fileB.xml. To put you into context, I´m new to java but have some experience configuring tomcat. Environment: Debian Linux with tomcat 4.0 and jre_1.4.2 The problem is that I'm constantly getting filenotfoundException. After googling for a while I found out the following: 1- the File class uses paths relative to the working directory. I temporarily solved it by using the absolute path /var/lib/.... But this is not a solution since I have to deploy the application in different OS´s (Linux, Windows and Mac) and I´m not changing the path every time I deploy. 2- Reading the Tomcat FAQ I found out that to read a file I must use the ServletContext.getResourceAsStream() method. However, classA is not a Servlet... 3- I made classA derived from HttpServlet and I used the ServletContext().getRealPath("/xml/fileB.xml") to obtain the path and this path to open the file. I also tryed getResourceAsStream() with success. My question is: How can I access fileB.xml from classA without deriving it from the servlet class? Am I making something wrong with the design? Thanks a lot in advance, Alfonso ========================================================================== TOPIC: FTP File Transfer; file contents getting changed ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/31644f91c9b89f0d ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:45 am From: Alex Hunsley <[EMAIL PROTECTED]> steve wrote: > On Thu, 9 Sep 2004 06:24:17 +0800, Carl Howells wrote > (in article <[EMAIL PROTECTED]>): > > >>steve wrote: >> >> >>>thats odd!! >>> >>>I'm going to run that on my systems to see what results i get. >>>steve >>> >> >>You quoted over 500 lines just for that? Please trim the text you are >>replying to down to the relevant amount. > > > sorry Mr policeman. is there something you want to say. > Perhaps you can go play in another news group. > > may i recommend alt.wankers. Way to go, Steve. You break common usenet etiquette and then when somebody, quite rightly, points it out to you and tells you how to fix it, you throw the toys out of the pram. Don't expect to get as much help as you otherwise could out of this group (or usenet in general) if you are going to behave like a child. Do expect to end up in many killfiles. alex ========================================================================== TOPIC: Help to select a lightweight java ide with intellisense, debugging http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b6d23e24f796f53 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:46 am From: [EMAIL PROTECTED] (Amit) Hi ppl: I am a dyed-in-the-wool vc++ programmer and have been working on Java for the past one year. I am missing an ide that can offer some very useful features like debugging and intellisense, and is not too heavy. I have worked on the following two ide's *JCreator - light weight, no debugging, no intellisense *Netbeans - excruciatingly slow (on PII 256 MB, PIV 128 MB), offers debugging and intellisense Are there any ide's that you might have used which offer these features. I would be grateful if you could give any hints, suggestion. thanks Amit ========================================================================== TOPIC: Quake2 in Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a60f3193b21a6bb3 ========================================================================== == 1 of 1 == Date: Mon, Sep 13 2004 3:55 am From: "Vincent Cantin" <[EMAIL PROTECTED]> "java programmer" <[EMAIL PROTECTED]> ¦b¶l¥ó news:[EMAIL PROTECTED] ¤¤¼¶¼g... > A couple of days ago a new version of the jake2 project was released at > source forge. > Java friends are invited to take a look at and have fun with it - you'll > surely be surprised > about the result - just as we were :-) > http://www.bytonic.de/html/jake2.html > http://sourceforge.net/projects/jake2/ > > regards, > RST Amazing ! That's exactly what I need to convince my boss to let me use Java. ^_^ ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> <a href=http://English-12948197573.SpamPoison.com>Fight Spam! Click Here!</a> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
