comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Which default icons are available? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b3280633bea86871 * can eclipse be configured to work with msjava projects? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e1ea83c3a7250fe4 * String Integer Input check - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0afe846354ae58d * background image help - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0ae1fde552f3595 * Distributable libraries? - 5 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8f7365e0f965e0d * Java on Linux - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b359a0d20324fdbe * old Java compiler - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0a7bed0e02e6a2a * Using java.util.regex in JDK 1.3 - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a4390453d4e5927 * Problem with double buffering.. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9aeb201d21113d93 * Creating primitive data types from contents of String - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d8fc307a0b9125d * program arguments - 3 messages, 3 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0 * Changes in Java 5 API - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2e6669251d29b8d3 * Where do I get the javacc java api document? - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4 * sun.net.ftp.FtpClient - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5862aa0b850dd30e * Setting "root" in Tomcat - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6adf1698a52bbc81 * How to create a excute file - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/453049a84ae975c2 * Returning String[] from C program (JNI) - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7e52caf60c639e7b * two mains in one jar - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8b16dbfe60872ca ========================================================================== TOPIC: Which default icons are available? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b3280633bea86871 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 8:58 am From: DeMarcus <[EMAIL PROTECTED]> Thomas Weidenfeller wrote: > DeMarcus wrote: > >> I've found something like UIManager.getIcon( "Some icon string" ) >> but which icon strings are available to me? > > > This is not documented anywhere. In general, there is no reliable API to > get internal icons, especially not in a PLAF-independent way. You can > get the UIDefaults via the UIManager and print all the defaults (it is a > Map). There is e.g. a small tool called ShowUIDefaults.java out there > doing this with a GUI. > > This list will contain among other things the icon key/value pairs, so > you will see which ones are available for the current PLAF. But another > PLAF or another VM implementation might provide a completely different > set of icons, or no icons at all. > > If you want to deal with Metal only, you can use > javax.swing.plaf.metal.MetalIconFactory to get Metal-Related icons. This > is at least a public API, although not a really good one. You could also > snoop round in the javax.swing.plaf.basic.BasicIconFactory for some more > icons. > > /Thomas Ok, thanks. I'll check that out. /Daniel ========================================================================== TOPIC: can eclipse be configured to work with msjava projects? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e1ea83c3a7250fe4 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 9:00 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 15 Nov 2004 17:27:37 +0100, Maciek Zywno wrote: > I am to work with a legacy project done in msjava (java 1.1.8). The MSVM stopped at 1.1.4, Sun made a 1.1.8. You will need to be clear on that before you proceed. Is it *Sun* 1.1.8, or the 1.1.4 MSVM? F'Ups set to c.l.j.programmer. -- 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: String Integer Input check http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0afe846354ae58d ========================================================================== == 1 of 2 == Date: Mon, Nov 15 2004 9:46 am From: "VisionSet" <[EMAIL PROTECTED]> "Eric Sosman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So do myString.toCharArray(), then step through and check each char with > > Character.isDigit(myChar[i]) > > That might be useful as a pre-screening step, but > is certainly not definitive. For example, what would > the scan conclude about "999999999999999999999999999"? > Or about "-42", for that matter? The problem space was far from clearly defined, my solution was equal in this regard the OP can glean from it what he will. -- Mike W == 2 of 2 == Date: Mon, Nov 15 2004 11:28 am From: "Ann" <[EMAIL PROTECTED]> "Paul Wagener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi folks, > > Problem: > User is expected to input a String type. > How to check if the input is valid and not of Integer type? > > Thanks a lot! > Paul ------------------- If there is a '-', it must be first. All other chars must be digits. ------------------- public class TryInt { public static void main(String[] args) { String numStr = "-7898787"; int numInt = 0; int start = 0; boolean flag = false; System.out.println("Input: \"" + numStr); if (numStr.charAt(0) == '-') { flag = true; start = 1; } for (int i = start; i < numStr.length(); i++) { char a = numStr.charAt(i); if (Character.isDigit(a)) { numInt = numInt * 10 + a - '0'; } else { System.err.println("Invalid integer character \'" + a + "\' at position " + i); System.exit(1); } } if (flag) numInt = -numInt; System.out.println("Output: \"" + numInt); } } ========================================================================== TOPIC: background image help http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b0ae1fde552f3595 ========================================================================== == 1 of 3 == Date: Mon, Nov 15 2004 9:51 am From: "Ann" <[EMAIL PROTECTED]> "marcus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > BTW, what do you mean "I have a tree?" > > Ann wrote: > > I have a tree and the background color is set as follows: > > > > newContentPane.setOpaque(true); //content panes must be opaque > > newContentPane.setBackground(new Color(1.0f, 0.6f, 0.6f)); > > > > I would like to use a gif file instead of a solid color > > as a background image. How to? Or where to look please. > > It is a Jtree. I copied the demo from the "How to Use Trees" tutorial on the sun web site. == 2 of 3 == Date: Mon, Nov 15 2004 10:40 am From: Keith James <[EMAIL PROTECTED]> >>>>> "Ann" == Ann <[EMAIL PROTECTED]> writes: [...] Ann> It is a Jtree. I copied the demo from the "How to Use Trees" Ann> tutorial on the sun web site. This is answered in messages with IDs [EMAIL PROTECTED] and [EMAIL PROTECTED] (go to Google groups advanced search). In addition there's an example at http://codeguru.earthweb.com/java/articles/179.shtml -- - Keith James <[EMAIL PROTECTED]> Microarray Facility, Team 65 - - The Wellcome Trust Sanger Institute, Hinxton, Cambridge, UK - == 3 of 3 == Date: Mon, Nov 15 2004 11:02 am From: "Ann" <[EMAIL PROTECTED]> "Keith James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >>>>> "Ann" == Ann <[EMAIL PROTECTED]> writes: > > [...] > > Ann> It is a Jtree. I copied the demo from the "How to Use Trees" > Ann> tutorial on the sun web site. > > This is answered in messages with IDs [EMAIL PROTECTED] > and [EMAIL PROTECTED] (go to Google groups advanced search). > > In addition there's an example at > > http://codeguru.earthweb.com/java/articles/179.shtml > > -- > > - Keith James <[EMAIL PROTECTED]> Microarray Facility, Team 65 - > - The Wellcome Trust Sanger Institute, Hinxton, Cambridge, UK - Thanks, it looks promising, I'll try it out. ========================================================================== TOPIC: Distributable libraries? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/c8f7365e0f965e0d ========================================================================== == 1 of 5 == Date: Mon, Nov 15 2004 9:59 am From: Steve Sobol <[EMAIL PROTECTED]> Chris Smith wrote: > The JRE is redistributable, and there is a README.TXT file in the JRE > listing those pieces that can be excluded. The remaining pieces must be > redistributed as a part of the complete JRE. You are not required to > run the JRE installer, and the JRE will work without the installer > having been run. > > If it's important to you, though, that the files be only ".dll" or > ".so" files, then you're out of luck. No... I just really would prefer not to have to distribute the command-line executables and some other unecessary stuff; this is a project where I'd build an executable that loaded the JVM and app using the Invocation API, and I don't want to have to bundle 10-15 MB worth of extra stuff with the app. I'll check the README - thank you. -- JustThe.net Internet & New Media Services, http://JustThe.net/ Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED] PGP Key available from your friendly local key server (0xE3AE35ED) Apple Valley, California Nothing scares me anymore. I have three kids. == 2 of 5 == Date: Mon, Nov 15 2004 11:32 am From: Steve Sobol <[EMAIL PROTECTED]> Steve Sobol wrote: > Chris Smith wrote: > >> The JRE is redistributable, and there is a README.TXT file in the JRE >> listing those pieces that can be excluded. The remaining pieces must >> be redistributed as a part of the complete JRE. You are not required >> to run the JRE installer, and the JRE will work without the installer >> having been run. >> >> If it's important to you, though, that the files be only ".dll" or >> ".so" files, then you're out of luck. > > > No... I just really would prefer not to have to distribute the > command-line executables and some other unecessary stuff; this is a > project where I'd build an executable that loaded the JVM and app using > the Invocation API, and I don't want to have to bundle 10-15 MB worth of > extra stuff with the app. I'll check the README - thank you. Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun says are optional. *shudder* -- JustThe.net Internet & New Media Services, http://JustThe.net/ Steven J. Sobol, Geek In Charge / 888.480.4NET (4638) / [EMAIL PROTECTED] PGP Key available from your friendly local key server (0xE3AE35ED) Apple Valley, California Nothing scares me anymore. I have three kids. == 3 of 5 == Date: Mon, Nov 15 2004 11:40 am From: Mark Thornton <[EMAIL PROTECTED]> Steve Sobol wrote: > Chris Smith wrote: > >> The JRE is redistributable, and there is a README.TXT file in the JRE >> listing those pieces that can be excluded. The remaining pieces must >> be redistributed as a part of the complete JRE. You are not required >> to run the JRE installer, and the JRE will work without the installer >> having been run. >> >> If it's important to you, though, that the files be only ".dll" or >> ".so" files, then you're out of luck. > > > No... I just really would prefer not to have to distribute the > command-line executables and some other unecessary stuff; this is a > project where I'd build an executable that loaded the JVM and app using > the Invocation API, and I don't want to have to bundle 10-15 MB worth of > extra stuff with the app. I'll check the README - thank you. > The command line executables are only just over 1MB (unpacked) in total for 1.5, so there isn't really a lot to be saved there. The big items are in the lib directory. Mark Thornton == 4 of 5 == Date: Mon, Nov 15 2004 11:55 am From: Chris Smith <[EMAIL PROTECTED]> Steve Sobol wrote: > Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun > says are optional. Make sure that (unless you need otherwise) you're getting the Windows- only version. MindIQ distributes an application with the 1.4.2 JRE, and the entire resulting file is about 30 MB in size; the JRE is probably about 67% of that. -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation == 5 of 5 == Date: Mon, Nov 15 2004 12:08 pm From: Eric Sosman <[EMAIL PROTECTED]> Steve Sobol wrote: > > Ack. The *entire* 1.4.2 JRE is 40MB. And there are only a few items that Sun > says are optional. What are you measuring (or, how are you measuring it)? >From the download page for 1.4.2_06, the download sizes are Windows 14.96 MB Linux 13.24 Solaris SPARC 14.08 (+ 4.47 for 64-bit) Solaris x86 12.48 None of these is anywhere near 40MB, and the total of all four (five) is 54.76 (59.23), also not convincingly close to 40MB. (Disclaimer: Just because I'm writing about Sun stuff from a sun.com address, don't assume I speak for Sun. "The Secretary will disavow all knowledge," as 'tis said.) -- [EMAIL PROTECTED] ========================================================================== TOPIC: Java on Linux http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/b359a0d20324fdbe ========================================================================== == 1 of 3 == Date: Mon, Nov 15 2004 10:13 am From: [EMAIL PROTECTED] (Lesley) Hi Last time I did any Java programming was on a Windows machine in 2000/2001. I have no clue how to install Java on a Linux box but I'd like to be able to use Java again. Mostly because I am teaching somebody how to program and, for particular reasons, we are using Java. He has a Windows box but I do not want to wreck the Linux install on my laptop. It would be convenient to use the laptop to work out a syllabus and work out some examples. I have Blackdown Java installed on the laptop and I have a vague idea that this is related to the Sun Java stuff but :- 1. I don't know how to work out if I have the SDK installed or not. 2. I don't know what the relationship between Blackdown and the Sun Java is. I want to avoid conflicts in example programs. 3. There used to be a path one had to set to the path of the class libraries installed on the machine. How is this managed in Linux? Through the PATH environment variable? 4. Have there been any *huge* changes in the language since 2K? I'm using books I bought then. TIA for any answers, hints tips etc Regards LesleyB == 2 of 3 == Date: Mon, Nov 15 2004 11:17 am From: "John C. Bollinger" <[EMAIL PROTECTED]> Lesley wrote: > Last time I did any Java programming was on a Windows machine in > 2000/2001. > > I have no clue how to install Java on a Linux box but I'd like to be > able to use Java again. Mostly because I am teaching somebody how to > program and, for particular reasons, we are using Java. You could try downloading the Sun-supported Linux install package (from Sun, of course) and using it. Check whether its compatible with your Linux distribution. You might also want to check out the Java Packaging Project, but that might be more than you need. > He has a Windows box but I do not want to wreck the Linux install on > my laptop. > It would be convenient to use the laptop to work out a syllabus and > work out some examples. I have Blackdown Java installed on the laptop > and I have a vague idea that this is related to the Sun Java stuff but > :- > 1. I don't know how to work out if I have the SDK installed or not. You could look for the Java compiler (javac) on your laptop. Try "find / -name javac -print". It will probably take a while to run, but it will display the name and location of any file of the specified name that it finds. > 2. I don't know what the relationship between Blackdown and the Sun > Java is. I want to avoid conflicts in example programs. If your only talking about tutorial-type example programs then you are unlikely to run into any problems of consequence. Certainly the Java language, the Java virtual machine, and the standard Java class library have never been open to incompatible reimplementation under the terms of any Java license I am aware of Sun ever issuing. > 3. There used to be a path one had to set to the path of the class > libraries installed on the machine. How is this managed in Linux? > Through the PATH environment variable? You are thinking of the classpath. It works under Linux just the same as under windows: you specify the CLASSPATH environment variable and / or specify the path on the java or javac command line via the appropriate switch. It has not for a long time been necessary to put the standard class libraries in your classpath, however -- only user classes. > 4. Have there been any *huge* changes in the language since 2K? I'm > using books I bought then. Depends what you mean. In the simplest terms, yes, there have been huge changes. On the other hand, it is unlikely that much valid Java source written even to Java 1.1 would fail to still be valid Java source. Class files compiled four years ago ought still to run on today's newest Java VMs. But there have been a great many additions to the standard class libraries, and in the most recent Java release (1.5.0, a few weeks ago) there are several very significant additions to the Java language itself. Have you considered that attempting to teach programming via a language that you're not current with might be an unnecessarily difficult challenge? And that the student might be better served by instruction in a language that the instructor is fluent in? John Bollinger [EMAIL PROTECTED] == 3 of 3 == Date: Mon, Nov 15 2004 11:48 am From: Oscar kind <[EMAIL PROTECTED]> Lesley <[EMAIL PROTECTED]> wrote: > > I have no clue how to install Java on a Linux box [...] The correct procedure depends on your distribution. If it is RedHat or another distribution that uses rpm (or can handle it using alien), you want to download the rpm file from sun (same URL as for Windows: http://java.sun.com/). The procedure is as follows: 1. Make the file executable. 2. Run the file; it creates an rpm file. 3. As root, install the rpm file in the usual manner. If your distribution is something else, use the generic Linux distribution. This requires a bit more work though: 1. Make the file executable. 2. Run the file; it unpacks into a subdirectory. 3. As root, move the newly created subdirectory to a convenient place, such as /usr/local . 4. As root, change the ownership to root.root . 5. As root, add JAVA_HOME to /etc/profile (adjust the path correctly): export JAVA_HOME=/dir/to/java The next part is subjective, but I'd do it thus: 6. As root, link the binaries to /usr/local/bin to make them generally available: ln -s ${JAVA_HOME}/bin/* /usr/local/bin/ 7. As root, link the manual pages to /usr/local/man/man1 to make them generally available: ln -s ${JAVA_HOME}/man/man1/* /usr/local/man/man1/ 8. Reload your environment, and you're set. -- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2 ========================================================================== TOPIC: old Java compiler http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a0a7bed0e02e6a2a ========================================================================== == 1 of 2 == Date: Mon, Nov 15 2004 10:16 am From: "Andy Flowers" <[EMAIL PROTECTED]> Thomas Weidenfeller wrote: > Andy Flowers wrote: > > Oh sure, in these times of viruses, worms, and trojan horses it is a > really "good" idea to get windows software from unknown sources [No, I > am not claiming that the stuff from java-virtual-machine.net is not > genuine, just that it is not a good idea to get software from unknown > sources in general]. > This was just an example. Personally I dig out my Visual J++ CD. == 2 of 2 == Date: Mon, Nov 15 2004 10:28 am From: Andrew Thompson <[EMAIL PROTECTED]> On Mon, 15 Nov 2004 18:16:41 GMT, Andy Flowers wrote: (MSVM) > ..Personally I dig out my Visual J++ CD. Where do you bury it? [ ;-) ] -- 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: Using java.util.regex in JDK 1.3 http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a4390453d4e5927 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 10:30 am From: "Chris" <anon> > Instead of trying to take out the 1.4 regex classes, use another regex > package, like one of these: > > http://jakarta.apache.org/regexp/ > http://jakarta.apache.org/oro > > Porting your code to use one of these shouldn't be too much work. I came to the same conclusion. ORO seems to work pretty well, and the port doesn't seem very difficult (so far). ========================================================================== TOPIC: Problem with double buffering.. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9aeb201d21113d93 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 10:38 am From: [EMAIL PROTECTED] (Angelo) [CUT] > With 99% certainty I can say the problem is in your code. Yes, is in my code :) I setted the background color with getBackground(), but in the tutorial was setted black. Thanks :) ========================================================================== TOPIC: Creating primitive data types from contents of String http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4d8fc307a0b9125d ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 10:54 am From: "John C. Bollinger" <[EMAIL PROTECTED]> Joona I Palaste wrote: > Trying to dynamically read or write variable names in the program source > code at run-time is pretty much always a sign of a design problem or a > misunderstanding of how compiled languages work. And it is rarely, if ever, good design even in languages where it might be made to work. (E.g. Perl) Such languages, by the way, must necessarily handle the situation internally in a manner similar to the Map-based approach suggested elsewhere in this thread for handling it in Java. John Bollinger [EMAIL PROTECTED] ========================================================================== TOPIC: program arguments http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/44d9b350ac879ea0 ========================================================================== == 1 of 3 == Date: Mon, Nov 15 2004 11:08 am From: Jeff Kish <[EMAIL PROTECTED]> Hi. I posted this on an eclipse group awhile ago, but did not see any response. Don't really know java or eclipse well enough yet.. I want to pass a parameter to the program. In the debug I add these parameters: "-inputfiles c:\xmlfiles\*.xml" When I get in my main I find that instead of what I expected: args[0] "-inputfiles" args[1] "c:\xmlfiles\*.xml" I get: args[0] "-inputfiles" args[1] "c:\xmlfiles\file1.xml" args[2] "c:\xmlfiles\file2.xml" : : args[n] "c:\xmlfiles\filen.xml" So it seems to "unroll" my parameter with a wildcard into a list of files. Is this normal "java" thing, or is this something eclipse is doing or what? (I'm trying to pass each filename into some other methods, and fully expected to have to invoke some sort of system/file level object to get the files represented by the wildcard). I'm having some problems downstream of this, but wanted to understand what is occurring. Thanks Jeff Kish == 2 of 3 == Date: Mon, Nov 15 2004 11:21 am From: "Andy Flowers" <[EMAIL PROTECTED]> Jeff Kish wrote: > > Is this normal "java" thing, or is this something eclipse is doing or > what? > Simple to check. Run you application outside of the IDE and see what happens. == 3 of 3 == Date: Mon, Nov 15 2004 11:29 am From: Henry Law <[EMAIL PROTECTED]> On Mon, 15 Nov 2004 14:08:22 -0500, Jeff Kish <[EMAIL PROTECTED]> wrote: >I want to pass a parameter to the program. >In the debug I add these parameters: >"-inputfiles c:\xmlfiles\*.xml" I don't know what is meant by "in the debug", but I do know that if you were to do this as a UNIX shell command the asterisk would be acted upon (expanded as a wild card) before the compiler/debugger even saw the command; I suspect the same is true in the Seattle operating system. Does escaping work in Windows? That's what you'd do in UNIX. Maybe try ... -inputfiles c:\xmlfiles\\*.xml -- Henry Law <>< Manchester, England ========================================================================== TOPIC: Changes in Java 5 API http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2e6669251d29b8d3 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 11:18 am From: "xarax" <[EMAIL PROTECTED]> "Pablo Santa Cruz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear Fellows, > > Sorry if it has been discussed earlier but I searched this newsgroup, > java site, and java 5 documentation without luck. > > I have been using org.apache.xpath.XPathAPI included in j2sdk1.4 > without problems. > > Now, I upgraded to java 5 to do some testing and, sadly, this class > now is named: > > com.sun.org.apache.xpath.XPathAPI > > Does anybody knows the reason of this change? > > What other classes have been renamed? > > It would be a difficult transition if a lot of class names changed. :( > > Thanks in advance. XPath is now a standard part of J2SE 5.0; look at the JavaDoc for javax.xml.xpath package. The 1.4 support package was renamed to com.sun... to encourage the transition to the standard package at javax.xml.xpath. HTH ========================================================================== TOPIC: Where do I get the javacc java api document? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6c8f306325d131f4 ========================================================================== == 1 of 2 == Date: Mon, Nov 15 2004 11:25 am From: [EMAIL PROTECTED] (mike) regards: Where do I get the javacc java api documents? thank you best wishes == 2 of 2 == Date: Mon, Nov 15 2004 12:03 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 15 Nov 2004 11:25:31 -0800, mike wrote: It is best to use the latest JavaDocs, 1.5. > Where do I get the javacc java'cc'? I have heard of javac, but not javacc. The online version is here, <http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html> >..java api documents? ..and here <http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html> You can also download them here.. <http://java.sun.com/j2se/1.5.0/download.jsp> The best group for people starting in Java is.. <http://www.physci.org/codes/javafaq.jsp#cljh> HTH -- 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: sun.net.ftp.FtpClient http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5862aa0b850dd30e ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 11:29 am From: Neeraj Vibhasrao Kulkarni <[EMAIL PROTECTED]> Hi all, I am new to this group.. and was wondering if there are any documentation or api references for the sun.net.ftp.FtpClient class..? basically i want to know all the methods that i can use and their description.. Neeraj Vibhasrao Kulkarni Georgia Institute of Technology, Atlanta Georgia, 30332 Email: [EMAIL PROTECTED] ========================================================================== TOPIC: Setting "root" in Tomcat http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6adf1698a52bbc81 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 11:46 am From: [EMAIL PROTECTED] (2kuser) Sudsy <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Wendy S wrote: > > "2kuser" <[EMAIL PROTECTED]> wrote: > <snip> > > The Servlet specification requires the container to provide you with a > > place > > to write temporary files, check SRV.3.7.1 for full details. (Retrieve > > context attribute javax.servlet.context.tempdir for the path.) Or create > > your own context parameter in web.xml and specify a path, then use that to > > place your files in a known location. > > > > The problem with what you're doing is that as you've noticed, the file can > > land in odd places depending on how and by what user Tomcat is started. > > Server admins aren't going to be happy with you trying to write files all > > over the place, and they may even have the directories marked read only so > > you can't do it. > > Wendy is quite correct. Do investigate ServletContext#getRealPath, however. > Try this link (for 1.4 at least): > <http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)> Thanks for the leads...Unfortunately I'm new to Tomcat XML config files and "contexts" etc and so am still confused. I tried wading through the JNDI stuff, but it didn't really tell me what I needed either,although, from what I can gather, I think that JNDI might be the way to go. I'll muddle forward and figure it out! Cheers, Trent. ========================================================================== TOPIC: How to create a excute file http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/453049a84ae975c2 ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 12:03 pm From: "Ferenc Hechler" <[EMAIL PROTECTED]> Hello S.H1, if you use Eclipse you can use my Plug-In "Fat-Jar" to build "executable" jars ( http://fjep.sourceforge.net/ ). Basically it packs all classes and jars together into one jar and sets the Main-Class attribute, so that this jar can be executed with "java -jar <myexecutable>.jar". If you have installed the JRE under windows there is a file-association with ".jar" which allows you to execute your application by simply doubleclicking the <myexecutable>.jar-file. Best regards, feri "HS1" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello all > > > > I want to create an execute file (only one .exe file for Windows) for my > project. This project uses some available component such as JFree for > creating report or mysql-connector to connect to a mySQL database)... . So > when I want to create the file, do I have to add all of those libraries > into > this file? > > > > Thank you for your help > > S.H1 > > ========================================================================== TOPIC: Returning String[] from C program (JNI) http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7e52caf60c639e7b ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 12:07 pm From: [EMAIL PROTECTED] (Ann) How can I return a string[] from a cprogram to a java program? private native String[] readRFIDData(); JNIEXPORT jobjectArray JNICALL Java_RfidDM_readRFIDData (JNIEnv *, jobject); Above is the definition of a jni method . I have gone through the sample code, but they explain how to return arrays from C++. Can someone please suggest? I am not good at C. Much thanks, ========================================================================== TOPIC: two mains in one jar http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e8b16dbfe60872ca ========================================================================== == 1 of 1 == Date: Mon, Nov 15 2004 12:11 pm From: "Ferenc Hechler" <[EMAIL PROTECTED]> what about adding a Switch-Main-Class which parses the command-line and starts Main1 or Main2 based on the parameters? ======================================================================= 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
