Permission denied, please try again.

Started by bjornredtail, May 28, 2008, 07:06:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bjornredtail

0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

The first of many errors... I think I'll start live blogging this!

The 1@8: Hour 1, started writing code, staring with constructor. I had some problems getting the whole lot to compile because of typos in the notes the professor gave us.

That error above was from copying the whole lot to the CSC server, where I'll be doing all my work from now.

To be continued...
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

..
Hour 1.5...

I. Hate. Java.

Exception in thread "main" java.lang.NoClassDefFoundError: studentsearch

Umm... Why?

    public static void main(String [ ] args)
    {
        System.out.println("Program Running");

        studentsearch searchOps = new studentsearch("foo"
                                                    ,"foo","foo",
                                                    "foo","foo");
    }

Seriously, What The Ferret? THAT was totally working before I changed the classpath. Now, not even the first print statement works.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

The Lady Shael

~The Lady Shael Varonne the Benevolent of the Southern Islands, First Empress of Mossflower Country, and Commandress of the Daughters of Delor

RWLers, your wish is my command...as long as it complies with the rules.


bjornredtail

Yup... Tis the classpath. I think I'll write a little shellscript to automate my builds and stuff, too.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

/home/amusselm/csc_assignments/cpe365/lab7/: Permission denied.
6:24pm vogon ~/csc_assignments/cpe365/lab7$
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

Okay, so it most definitely is the classpath. For some reason, when I attempt to add  /app/oracle/product/10.2.0/client_1/jdbc/lib to the classpath, it dies. Or rather, gives the above error message. Almost like main cannot see the very class that it is in!
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

@06:50pm vogon ~/csc_assignments/cpe365/lab7$ java -classpath /app/oracle/produ10.2.0/client_1/jdbc/lib studentsearch
Exception in thread "main" java.lang.NoClassDefFoundError: studentsearch
6:51pm vogon ~/csc_assignments/cpe365/lab7$ java studentsearch                 
Program Running
Driver not found
Could not open connection
6:51pm vogon ~/csc_assignments/cpe365/lab7$

0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

Lab Hour 2:
Weirdest classpath issue ever. I haven't the faintest idea what is going on here, I can get it to run, or I can get it to load the driver, but not both. I think I'm going to close my ssh shells and go practice. At least I'll be doing something useful. The good news is at least the professor's code also fails. :)
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

Lab Hour 2: (Count by number of hours of actual work) .
I sent an e-mail to the professor. His response: Use Eclipse  :o
Ack.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

Lab hour 2.75...
Greetings from the CSL.

No, the program isn't working. Same old classpath issues. Even though I'm doing what my professor told me to do. But, the good news is, it's NOT due tomorrow.

But, I've got to play a concert this weekend. So, I'll keep working for a wee bit.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!