doug byrnes

Greenhorn
+ Follow
since Apr 12, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by doug byrnes

Thank you Bill!!!
Thank you Cindy!!!

Got it!!!
whew!
20 years ago
Thank you!!!
Um, ok... package name for both is (say)
package com.myclient.mycompany.util;
Both files are located in
c:\wuzawoo\jinkaboo\com\myclient\mycompany\util
I am in also c:\wuzawoo\jinkaboo\com\myclient\mycompany\util
Then, to make sure current location is on classpath (I am working in Windows) I did this:
set classpath=%CLASSPATH%;.
(Hmmmmm.... anyway, isn't Foo.java looking for XmlUtil.java (not .class), so does the classpath matter?)
As to your question about where I am sitting... I am sitting by the window... the morning light is slanting in through the blinds, making dappled patterns on the desktop... imparting an aura of warmth and calm to the room... could this be causing the problem?
20 years ago
I have a really basic question about compiling... I have to compile someone else's code... I have (say) two .java files, both with the same package name, in the same directory... one is called XmlUtil.java and defines object XmlUtil... the other is called (say) Foo.java and references XmlUtil... when I javac Foo.java it says basically "cannot resolve XmlUtil...". XmlUtil has been compiled and is on the classpath... what am I doing wrong? I know the code works and is legal...
20 years ago
I would like a chance to win the book, but I don't have anything useful to say right now! I am just learning JSPs. So I don't want to clutter up the other threads. I did have a question earlier that I posted and got just the answer I needed, for which I am very grateful!
21 years ago
I am trying to work with an array of objects but I can't get it to work! Can anyone tell me how come this code gives a Null Pointer error:
class bar
{
bar() { }
private int x, y;
public void setcoords(int inx, int iny) {this.x = inx; this.y = iny;}
}
class foo
{
private static bar[] mybar = new bar[100];
public static void main(String[] args)
{
mybar[2].setcoords(2,2); // GIVES NULL POINTER ERROR
}
21 years ago