Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: scrat
  • Order by date
  1. scrat

    How do you compile JSPs with JRE?

    Thanks for your suggestion. It turns out that the jre does not include tools.jar, which has the compile wherewithal. You live and learn. :)
  2. scrat

    Tomcat 4.1.24 doesnot Start up

    You say you have NOT set CATALINA_HOME. Why? You need CATALINA_HOME set correctly to run tomcat.
  3. scrat

    How do you compile JSPs with JRE?

    Okay. So thinking this through for a second, obviuosly the JRE cannot compile JSPs because it hasn't got a compiler. So a more realistic question is, can you precompile jsps and deploy them in a war file?
  4. scrat

    How do you compile JSPs with JRE?

    Hi, Having developed a struts application using Tomcat 4.1.24 and JDK 1.3.1_06, I tried mocking up the client's WIN2K machine environment with JRE 1.4.0. After getting past the bug in setclasspath.bat (deleting the tests for jdb and javac, which will not exist in the JRE), I find that the JSPs...
  5. scrat

    reflections/default-constructor issue

    How interesting. Yes, Java provides default constructors but I suspect Java does a special and actually makes the default constructor as required if it cannot find another constructor. getConstructor() only displays real constructors. Not much help really... scrat
  6. scrat

    Oracle 9 Joins

    Many thanks Allan.
  7. scrat

    Oracle 9 Joins

    Hi, Could anyone please confirm whether the old Oracle method of doing table joins with the (+) syntax still works on Oracle 9. It seems as though O9 supports ANSI standard join syntax like ...from courses c INNER JOIN enrolment e... I need to assess the impact of migrating to O9 without the...
  8. scrat

    Mouse events. Mouse Listners

    Hi Knackers, Java receives MouseEvents from your system. There are two listeners for MouseEvent; MouseListener and MouseMotionListener. MouseListener just gets the click events whereas MouseMotionListener gets every change in position of the mouse. Normally you use MouseListener. There are a...
  9. scrat

    What's the class loading order ?

    Wow! Just tried out -verbose; That's one for the notebook. scrat
  10. scrat

    What's the class loading order ?

    Hi Perseus, Classes are loaded in the order defined by the classpath. If you have duplicate classes in the classpath, the first one found will be used. I do not know that you can verify which classes are loading. Ideally you should not have duplicates of the same class location in your...
  11. scrat

    Unreported excep. IOException must be caught or declared to be thrown

    Hi garishnikov, I cut and pasted your code and it compiled fine for me. scrat
  12. scrat

    JPanel update/redraw

    Hi Jeff, Yeah, this is a common problem. Although repaint() will redraw the screen, System is not going to get a chance to do the update because you are doing your database processing. Having said that, I notice there is a repaint() method that takes a long value to do the Component update...
  13. scrat

    Taking a label from a JButton?

    Hi Jisoo22, JButton extends AbstractButton, which has a method getText(), which will return the button label. You may experience difficulty referencing your JButton from the inner ActionListener class. The following does the same but uses an anonymous inner class to get access to the getText()...
  14. scrat

    Possible Loss of Precision

    Hi Doug, If you subtract 256 from any of the numbers that are greater or equal to 128, that would translate 0 to 255 into -128 to 127. You would have to add 256 again to negative number on retrieval. scrat
  15. scrat

    hello all... let me start by say

    Hi, Try copying your entire error message into a Google search (www.google.com). It looks like it is a known problem with Jbuilder, but I know nothing about that.
  16. scrat

    try...throw new ...catch

    Hi Patricktwo, It looks like it can not find FirstNameException. Presumably you have written this somwhere else but is not visible to checkFirstNameInput(). Without seeing how it is written, I can not guess what is wrong. The following compiles and might be some help: String sFirstName...
  17. scrat

    Getting the x,y of an object in a canvas

    ...that are required to be an ActionListener and a MouseListener. The following implements all the methods required to compile. import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionEvent...
  18. scrat

    Applets and threads

    Hi Bean, There is a wonderful book by David Flanagan called Java Examples in a Nutshell. It has an number of examples which are available at http://www.oreilly.com/catalog/jenut2/ and one of these is an applet clock. It is not exactly what you asked for but should enlighten you in the...
  19. scrat

    How do I find the number of instances of a Class? getClasses()???????

    Hi JoE, One solution would be to maintan a static count of your class. Static variables exists only once per class, irrespective of the number of instances of that class. The idea is to increment the count each time a class is created and decrement the count at finalization. class Person {...
  20. scrat

    THROW AN EXCEPTION???

    Hi Larson, You do not need to explicitly define your method as throwing NullPointerException because it is a descendant of RuntimeException, which can be thrown during the normal operation of the Java Virtual Machine. If you want to track down exactly where your app is trying to use a null you...

Part and Inventory Search

Back
Top