Rrrgh.

Jan. 23rd, 2004 12:34 pm
[personal profile] napoleonherself
Suddenly remembered that there was an assignment I might have to have done today... tiny thing, really, five minutes of work and I'd be done.

Of course, that was before I realized that the computer was going to decide to play another of its cruel tricks on me re: compiling goddamn Java.

So I'm working on a class called PenguinSpiral, right? And I compile and run via command line. I change something, recompile, run, change something else, recompile, run... so you'd think you'd be seeing a bunch of
C:\DOCUME~1\NAPOLEON\A201> javac PenguinSpiral.java

C:\DOCUME~1\NAPOLEON\A201> java PenguinSpiral
, right?

Nuh uh. First, I lose ability to cd to a disturbing number of folders. Among them are any attempts to keep my homework files somewhere OTHER than on the already-horribly-cluttered desktop. Okay, okay, so I'll put it on the desktop already, stupid computer. Sheesh.

Then it decides that it won't compile properly anymore. If the class I'm trying to compile includes other user-defined classes that are sitting cheerfully right next to it, ready to go, then the compiler simply won't read those other classes. Won't. They don't exist. Finally I find a way around that: if I compile *.java every time, it works.

Yeah. Just compile every. Single. Thing. In the directory. Every time. Perfect.

On top of that stupid thread exception thing I already knew about, this means my command window winds up looking like this. For now. I'm sure next time I go to do something I'll find some other unpleasant surprise.

So, in conclusion, five minutes of work? Ha. Try more'n thirty.

I. HATE. Java.

Date: 2004-01-23 11:01 am (UTC)
From: (Anonymous)
Type "set CLASSPATH=." and you won't need to add the -cp . each time. Same thing, different way to set it.

Not sure about the NoClassDefFound bit... I'll research that later.

In other news, I forgot my password, so I'm posting anonyxidusly.

Date: 2004-01-23 02:16 pm (UTC)
From: [identity profile] napoleonherself.livejournal.com
Nope, still doesn't work without the thingy. Unless I just have to type that every time I open a new command window, which, like, sucks.

Blerg, eat universe.

Date: 2004-01-27 08:35 pm (UTC)
From: (Anonymous)
Yup, every new window, unless you add it to C:\AUTOEXEC.BAT and reboot.

Anonyxidusly again...

Date: 2004-01-28 12:16 pm (UTC)
From: [identity profile] napoleonherself.livejournal.com
I don't think I have one of those...

Profile

blarg

January 2016

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 9th, 2025 10:27 am
Powered by Dreamwidth Studios