comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Newbie Question JSP posting to MS-SQL DB - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2f656a74da8a8d6 * Thread synchronization - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/172837b7b0667fd1 * Sort Array Problem - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc8b01c6cee7f666 * Indefinite for loop syntax question - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6fb2ebeb7cfb92a9 * EJB: ONE query for multiple rows - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38eb46fdf71c702c * .NET Programmer Needs To Learn Java - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea * starting a process as another user - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d84a7ac122f9d3de * how go load VM parameters programmatically? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c0538ad702b444ed * Test my J2ME MIDP 2.0 game: Taleban vs. Robot - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d33c48591b2afae1 * Cut and paste images - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5232cf428b9e3a4a * Applet and .jar files - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2d57dc6d0a11bb3 * session invalidates after replacing the bean class - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ad0a7f3fb662946 * test if the string is a blank data string - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/681d0b9bedeb1d23 * AudioStream for realaudio and windows media? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b08a4feaf3e96bd * Multiple JVMs; specifying the runtime lib - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0514c6cbf4dc13a * Extracting text data from MS Word document - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/adadc7b9250f0fb1 * re-use the array variable compile error - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4283272c822091ac ========================================================================== TOPIC: Newbie Question JSP posting to MS-SQL DB http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2f656a74da8a8d6 ========================================================================== == 1 of 2 == Date: Wed, Sep 15 2004 12:12 pm From: [EMAIL PROTECTED] (Mike) I am new to Java. I have been trying some simple JSP connections to a MS-SQL table. I wrote one that reads from a test database and table that I set up and it works. I am now trying to write some simple code to use a form to fill in information and have this post to the table. Upon compile I get the following error: cannot resolve symbol symbol : variable Name location: class org.apache.jsp.testpost1_jsp ps.setString(1, Name); ^ I also get the same error for my other ps.setString line. I know that I am connecting to the database, if I put " around the variables (ie. ps.setString(1, "Name");) it posts Name and Email to the database just fine. So my problem appears to be with my variables, but I am not sure what. I am just learning.. Thanks in advance Here is my jsp: <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <TITLE> A JSP file for testing MSSQL database update</TITLE> </HEAD> <BODY> <jsp:useBean id='clock' scope='page' class='dates.JspCalendar' type="dates.JspCalendar" /> <form action="" method=POST> Your Name <input type="text" name="Name"><BR> Your Email <input type="text" name="Email"><BR> <input type="hidden" name="Posted" value="1"> <input type="submit" value="Sign Up"> </form> <% // connecting to database Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" ); Connection con = java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://XXX:1433;User=XXX;Password=XXX"); PreparedStatement ps = con.prepareStatement("INSERT INTO XXX.dbo.MyUsers(Name, email) VALUES (?,?)"); // inserting records ps.setString(1, Name); ps.setString(2, Email); ps.executeUpdate(); %> </body> </html> == 2 of 2 == Date: Wed, Sep 15 2004 4:56 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 15 Sep 2004 12:12:26 -0700, Mike wrote: <% String name = request.getParameter("Name"); String email = request.getParameter("Email"); %> .. ps.setString(1, name); -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane ========================================================================== TOPIC: Thread synchronization http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/172837b7b0667fd1 ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 12:39 pm From: "xarax" <[EMAIL PROTECTED]> "Babu Kalakrishnan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > xarax wrote: > > > > public class MyArrayList > > extends ArrayList > > { > > public Fubar[] getFubars() > > { > > Fubar[] result; > > > > synchronized(this) > > { > > final int kk; > > > > kk = size(); > > result = new Fubar[kk]; > > toArray(result); > > } > > return result; > > } > > } > > > > Two points : > > a) This code isn't threadsafe (unless the class you're extending is a Vector). > If another thread calls add() on a MyArrayList instance between the size() call > and the toArray() call, "result" will no longer contain the data from the list. > > b) The Collections framework is one of the rare cases in the Java library where > synchronization behaviour of classes is reasonally well defined and documented. > As for other complex objects (like say GUI classes, Threads, java.io classes > etc) there is precious little documentation available on whether the superclass > ever executes a method / block with synchronization on the "this" object at all. > So when discussing about the general advisability of synchronizing on "this", an > ArrayList or a Vector would be a bad example to use. Yes, you would have to override the other methods and make them synchronized. But that was not my point. The point was to encapsulate a series of operations into one method, so that the method can handle the threadsafety issues, rather than the client. ========================================================================== TOPIC: Sort Array Problem http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cc8b01c6cee7f666 ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 1:01 pm From: Carl Howells <[EMAIL PROTECTED]> Babu Kalakrishnan wrote: > public int compare(Object o1, Object o2) > { > Integer a1 = (Integer)o1; > Integer a2 = (Integer)o2; > return a1.intValue()-a2.intValue(); // for reverse sort > } > > Note the simplification in the last line. Since the comparator doesn't > insist that the result be any specific value (like 1 or -1), when the > arguments are unequal, 3 comparisons are unnecessary - a simple > subtraction would do since it will return a result with the proper sign. Well, you were so close to being correct. You understood her fundamental problem much better than anyone else who posted did. But that above advice is simply wrong. What happens when that compare is called on these objects? Integer i1 = new Integer(2147483647); Integer i2 = new Integer(-2147483646); Assuming the comparator instance is "comp", comp.compare(i1, i2) returns -3. Last I checked, i1 is not the smaller value there. ========================================================================== TOPIC: Indefinite for loop syntax question http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6fb2ebeb7cfb92a9 ========================================================================== == 1 of 3 == Date: Wed, Sep 15 2004 1:19 pm From: Jim Cochrane <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, Jenny wrote: > Hi, > > I read somewhere that a for loop can have a form for ( ; ; ){...}. I > try to understand the code below. > > 1. Could you tell me why after j becomes 1, it jump to line a? > 2. Could you tell me why after line a, it jump to line int j =0;? > 3. How could one use for ( ; ; ){...} in a real app? > > public class Ball { > public static void main(String[] args){ > int k; > k=1; > for ( ; ; ){ > int j =0; > j++; > if (j>1){ > System.out.println("j is " + j); > break;} //line a > } > }} Your formatting is lousy and is confusing you. Here's a cleaner version that does the same thing, except with an added print for clarity: public class Ball { public static void main(String[] args){ for ( ; ; ) { int j =0; j++; if (j > 1) { System.out.println("j is " + j); break; } //line a System.out.println("j be " + j); //line b } } } > 1. Could you tell me why after j becomes 1, it jump to line a? It doesn't - after finding "if (j > 1)" false (j is 1) it steps to line b. There is no jump involved. > 2. Could you tell me why after line a, it jump to line int j =0;? After line b, the next iteration of the for loop begins, the first line of which is "int j =0;". Your loop will never terminate, of course, because the only exit point is the break statement, which will never be executed because j will never become > 1. > 3. How could one use for ( ; ; ){...} in a real app? The same way one would use "while (true) { ... }". By the way, the following code behaves exactly the same as the above code: public class Ball2 { public static void main(String[] args){ int j; for ( ; ; ) { j =0; j++; if (j>1) { System.out.println("j is " + j); break; } //line a System.out.println("j be " + j); } } } -- Jim Cochrane; [EMAIL PROTECTED] [When responding by email, include the term non-spam in the subject line to get through my spam filter.] == 2 of 3 == Date: Wed, Sep 15 2004 1:33 pm From: "Boudewijn Dijkstra" <[EMAIL PROTECTED]> "Michael Borgwardt" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Jenny wrote: > > I read somewhere that a for loop can have a form for ( ; ; ){...}. I > > Yup, that's an infinite loop, but very bad style. > while(true){} is clearer. > > > 1. Could you tell me why after j becomes 1, it jump to line a? > > j never becomes 1, it is reset to 0 at the beginning of each > loop iteration. Wrong, j becomes 1 just after the statement "j++;" > > 2. Could you tell me why after line a, it jump to line int j =0;? > > It doesn't. If you change the program so that the condition of the > if statement is fulfilled, the break terminates the for loop and ends the > program. Wrong again, the answer is: because the loop hasn't finished yet. > > 3. How could one use for ( ; ; ){...} in a real app? > > [...] I know I would never use a for loop without proper loop parameters. A few notes about the program: - variable k is never used; - each time the loop is repeated, j is set to 0. == 3 of 3 == Date: Wed, Sep 15 2004 2:43 pm From: Sudsy <[EMAIL PROTECTED]> Boudewijn Dijkstra wrote: <snip> >>>3. How could one use for ( ; ; ){...} in a real app? >> >>[...] > > > I know I would never use a for loop without proper loop parameters. I seem to recall that there was a C compiler which generated more efficient code for for(;;) than while(1) Whether it's true or not should not matter to Java programmers. ========================================================================== TOPIC: EJB: ONE query for multiple rows http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/38eb46fdf71c702c ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 1:29 pm From: Timo Nentwig <[EMAIL PROTECTED]> Sudsy wrote: > What happens when you use a ResultSet? Do you think all of the matching > rows are presented to your client at once? What then of the setFetchSize > method? It is ONE query that the database does process; setFetchsize() is only about not holding all the data concurrently in RAM. After all EJB is f*ckingly slow due to an endless count of single stupid SELECTs fired at the RDBMS. ========================================================================== TOPIC: .NET Programmer Needs To Learn Java http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b99c5dff939a0cea ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 1:29 pm From: Jim Cochrane <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, Vincent Cantin wrote: >> Some questions: >> >> 1. Is there a low cost way to learn, compile and develop for this > langauge? >> (aka Visual Studio but not costing an arm and a leg like this platform) > > It is hard to shoot a bullet in your feet with Java. In fact, Java will > embed the bullet in a safe exception just before it touch the feet. So ... > it will not cost you a leg, you will just be notified of a > IllegalArgumentException : "Bullets are not elligible for leg penetration" > ... when the bullet will try to peneter the feet and the penetration will be > canceled. > On the other hand, when the customer comes after you with a gun because your software did not meet the agreed upon specifications, or when the software controlled weapon you are holding fires (because the software switch that had the "safety" on failed with your IllegalArgumentException) and the CO is killed as a result, the above safety argument might not make you much happier. -- Jim Cochrane; [EMAIL PROTECTED] [When responding by email, include the term non-spam in the subject line to get through my spam filter.] ========================================================================== TOPIC: starting a process as another user http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d84a7ac122f9d3de ========================================================================== == 1 of 3 == Date: Wed, Sep 15 2004 2:11 pm From: [EMAIL PROTECTED] (Rebecca) Does anyone know if it is possible if you are running a java app as root, to fire up another java process as a different user? Thanks in advance, Rebecca == 2 of 3 == Date: Wed, Sep 15 2004 3:23 pm From: Stefan Schulz <[EMAIL PROTECTED]> Rebecca wrote: > Does anyone know if it is possible if you are running a java app as > root, to fire up another java process as a different user? Not without using JNI, no. After all, java is supposed to be platform-independent, and such mechanisms vary wildly between different operating Systems. Some might not even know the concept of users. == 3 of 3 == Date: Wed, Sep 15 2004 3:39 pm From: "Matt Humphrey" <[EMAIL PROTECTED]> "Rebecca" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know if it is possible if you are running a java app as > root, to fire up another java process as a different user? If you're using exec, you can probably do it through the shell you execute using the regular *nix commands. Cheers, Matt Humphrey [EMAIL PROTECTED] http://www.iviz.com/ ========================================================================== TOPIC: how go load VM parameters programmatically? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c0538ad702b444ed ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 2:25 pm From: [EMAIL PROTECTED] (robert walker) hi all, i downloaded a systray tool for java and the only api they give specifies running the app with -Djava.dll=c:\xyz where the c:\xyz is where the dll is that enables java system tray icon to work If I cannot start the app with a -D (starting via java web start) is there a way I set the java.dll vm parameter to my dll file location programatically thanks all ========================================================================== TOPIC: Test my J2ME MIDP 2.0 game: Taleban vs. Robot http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d33c48591b2afae1 ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 2:31 pm From: [EMAIL PROTECTED] (Christian Hvid) Please test my new mobile phone game: http://apelab.com/mobile/taleban Click "get demo". The full game is not available for sale yet. The game is designed for the Sony Ericsson K700 but should run on any J2ME MIDP 2.0 enabled phone with a minimal display size of 128x128 (or at least so I hope). If you test the demo on a device other the listed devices (currently it is only tested on the Sony Ericsson K700) and you like the game, then I will send you the full version for free (just throw me an email with the name of your device) ... I hope to sell it online :-D but I will release the source code later as a part of a mobile edition of my framework for small java games. The original game and framework is described here: http://vredungmand.dk/programming/sjg/taleban/index.html -- Christian ========================================================================== TOPIC: Cut and paste images http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5232cf428b9e3a4a ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 2:38 pm From: "ak" <[EMAIL PROTECTED]> > On my 1.4.x, the only DataFlavor returned for an image is > "image/x-java-image; class=java.awt.Image". The class of the object > returned is java.awt.image.BufferedImage. I suppose this is exactly what you need -- Andrei Kouznetsov http://uio.dev.java.net Unified I/O for Java http://reader.imagero.com Java image reader ========================================================================== TOPIC: Applet and .jar files http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e2d57dc6d0a11bb3 ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 2:45 pm From: [EMAIL PROTECTED] (Christian Hvid) I would suggest that you remove the images from your jar and put them along side the jar on your webserver. You will get the same compression as gifs/pngs already are fully compressed and the applet will initialise faster. You can also consider creating a single graphics sheet with all your images in it and crop them from that. [EMAIL PROTECTED] (Marcin Siewiera) wrote in message news:<[EMAIL PROTECTED]>... > I wrote an applet(board game) which is loaded from .jar file. The > applet is loading somehow too slow, its just 120 kB. I reckon the > reason is the applet is getting what it needs from .jar, and as i load > images one by one it takes a while... Is there any way to download > whole .jar when applet starts? > > I access images with > > URL path=null; > try{ > path=getClass().getResource("/game/images/"+filename); > image=Toolkit.getDefaultToolkit().getImage(path); > MediaTracker imgTrack=new MediaTracker(parent); > > imgTrack.addImage(image,0); > // waits until board image is loaded > try { > imgTrack.waitForAll(); > } > catch (InterruptedException e) { > } > > > applet's URL www.bescres.net/play_html.htm (U need JRE 1.42 to run > applet correctly) > I appreciate any suggestions ========================================================================== TOPIC: session invalidates after replacing the bean class http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7ad0a7f3fb662946 ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 3:59 pm From: [EMAIL PROTECTED] (Eqbal) I am using session that never expires (using the session.setMaxInactiveInterval(-1) method). I have a bean on a JSP page that has session scope that remains in session properly. But when I replace the jar file containing the bean class my session seems to get invalidated. Is there any way to avoid this? I am using WAS 4.0.5. Any help/suggestions are appreciated. Thanks. ========================================================================== TOPIC: test if the string is a blank data string http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/681d0b9bedeb1d23 ========================================================================== == 1 of 2 == Date: Wed, Sep 15 2004 4:39 pm From: [EMAIL PROTECTED] (Matt) If I just want to test if a string is blank data string or not. Do you think this method is good enough?? Or any better approach. Please advise. Thanks. public boolean isBlankDataString(String s) { return s.trim().length() == 0; } boolean b = isBlankDataString(" "); == 2 of 2 == Date: Wed, Sep 15 2004 5:11 pm From: "Hal Rosser" <[EMAIL PROTECTED]> > If I just want to test if a string is blank data string or not. Do you > think this method is good enough?? Or any better approach. Please > advise. Thanks. > > public boolean isBlankDataString(String s) > { return s.trim().length() == 0; > } > > boolean b = isBlankDataString(" "); Some Database fields give trouble - if the Field is 'Not required', but does not allow zero-length. In some cases, there will not be anything in that field - so it may be null. I would check that possibility as well, because zero-length does not mean null. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004 ========================================================================== TOPIC: AudioStream for realaudio and windows media? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/1b08a4feaf3e96bd ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 4:50 pm From: Christopher Gokey <[EMAIL PROTECTED]> In case anyone is interested, I ended up putting together a small Java application in Linux that does the conversion from Windows Media and Real Audio on the fly to MP3 using native Linux applications (lame, mplayer, and fifos). This is a definite hack. But, this hack does work for my case and I can now use a Linksys WML11B wireless music device to read stream besides MP3. I've only tested this under Linux so far. Let me know if anyone finds this useful. Beside Linksys, it may also work with other devices that can only read MP3 streams (netgear, homepod, d-link, aireo, soundblaster, etc.); so if anyone has one, I'd be interested in your results. This is more of a hack, I'd much rather prefer to a pure java solution to this, so if anyone runs across or knows of a Java implementation similar to mplayer and lame, I'd like to give it a try and replace these native calls. See these links for more info and where to grab the source: README http://home.comcast.net/~cgokey/java/mp3/README.txt Application http://home.comcast.net/~cgokey/java/mp3/mp3.tar.gz Chris <posted & mailed> Chris Gokey wrote: > Are there any java libraries out there capable of > reading windows media and real audio streams? I have > a linksys wireless internet radio (linksys WML11B) that > only plays MP3 internet urls. I'd like to transcode real audio > and windows media streams into MP3 on the fly for playback on my linksys > device. > > I've experimented with mplayer, lame, and xine under linux, > all native applications -- but was hoping to put together > something more platform independent. I've looked at JMF, > unless I'm reading it incorrectly, it doesn't look like they > support these formats yet. > > Thanks, > Chris ========================================================================== TOPIC: Multiple JVMs; specifying the runtime lib http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0514c6cbf4dc13a ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 5:01 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 15 Sep 2004 10:18:32 -0700, Scott Edward Skinner wrote: > In general, what is the best way to handle multiple JVMs? Java Webstart. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.lensescapes.com/ Images that escape the mundane ========================================================================== TOPIC: Extracting text data from MS Word document http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/adadc7b9250f0fb1 ========================================================================== == 1 of 2 == Date: Wed, Sep 15 2004 5:34 pm From: "Ike" <[EMAIL PROTECTED]> you may want to look at openoffice.org, I believe they are on sourveforge. They read/write MS word files in Java. Secondly, check out http://jakarta.apache.org/poi/ Thirdly try http://www.wotsit.org/ and search on 'word' and you;ll find they have the docs on all ms word formats. -Ike "Max" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I need to extract textual information (as ASCII chars' stream for > instance, or a text file) from MS Word document using Java. As it is > going to be non-MS environment, e.g. UNIX I cannot rely on > Windows-specific APIs. > > Does anybody has such an experience? > I'd be appreciated for any references/hints related to subject > > > MSWord related part of Jakarta POI project isn't looking ready for use > right now? Is it? > > Thank you, > Max == 2 of 2 == Date: Wed, Sep 15 2004 5:52 pm From: "Ann" <[EMAIL PROTECTED]> "Ike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you may want to look at openoffice.org, I believe they are on sourveforge. > They read/write MS word files in Java. > > Secondly, check out http://jakarta.apache.org/poi/ > > Thirdly try http://www.wotsit.org/ and search on 'word' and you;ll find they > have the docs on all ms word formats. > > -Ike > > "Max" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hello, > > I need to extract textual information (as ASCII chars' stream for > > instance, or a text file) from MS Word document using Java. As it is > > going to be non-MS environment, e.g. UNIX I cannot rely on > > Windows-specific APIs. > > > > Does anybody has such an experience? > > I'd be appreciated for any references/hints related to subject > > > > > > MSWord related part of Jakarta POI project isn't looking ready for use > > right now? Is it? > > > > Thank you, > > Max > If you have control, save the word document in RTF format which is mostly text. Then just read it as any other text file. ========================================================================== TOPIC: re-use the array variable compile error http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4283272c822091ac ========================================================================== == 1 of 1 == Date: Wed, Sep 15 2004 5:52 pm From: [EMAIL PROTECTED] (Matt) I tried to re-use the array variable, and it has compile error: illigeal start of expression. any ideas?? String[] ext = {"txt","html","gif","doc"}; ext = {"exe","pif"}; thanks! ======================================================================= 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 --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
