Author |
Message |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Fri Jan 26, 2007 11:58 pm Post maybe stupid Post subject: Java Help |
 |
|
|
|
Okay, I have NO idea what this error means. Can any of you help me out? This is for a class, but I have no where else to turn to at 11 in the morning. =\
I'm glad Windows doesn't let me copy/paste from command prompt, that definitely saved me loads of work.
java.PNG - 52.02 KB
File downloaded or viewed 44 time(s)
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Jan 27, 2007 12:09 am Post maybe stupid Post subject: |
 |
|
|
|
the JVM couldn't find the specified class in the class path. Make sure the blah.class exists in the class path and that it contains the public static void main() method. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sat Jan 27, 2007 12:24 am Post maybe stupid Post subject: |
 |
|
|
|
I just put all my .java files in the bin folder, and compile from there. Since I just compiled it, shouldn't the class be right there, too?
|
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Sat Jan 27, 2007 12:41 am Post maybe stupid Post subject: |
 |
|
|
|
Right-click inside the command prompt, select Mark. With left-mouse button, click and hold for a selection rectangle. Right-click, Copy.
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sat Jan 27, 2007 1:42 am Post maybe stupid Post subject: |
 |
|
|
|
That's useful, thanks. I'll remember that.
|
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sat Jan 27, 2007 7:56 am Post maybe stupid Post subject: |
 |
|
|
|
The file name and the class name inside the file must be identical, including upper/lower case, look at the R in russell. _________________ ss news
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sat Jan 27, 2007 1:42 pm Post maybe stupid Post subject: |
 |
|
|
|
-.- Thanks. I already submitted the assignment, but luckily I didn't have any run-time errors, so it looks like I'll be fine.
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Jan 27, 2007 2:58 pm Post maybe stupid Post subject: |
 |
|
|
|
Animate wrote: | I just put all my .java files in the bin folder, and compile from there. |
Nooooooooo! That's what my programming fundamentals prof told us to do, which is especially gay. Instead, put them in some directory in My Documents or something and set your path to have the java\bin directory in it. If you don't know how to do this, ask.
I think there's an issue with quicktime overriding the classpath and generally being gay. Fix it by typing "set classpath=%classpath%;." (Include the period in the string.) This will make it look in the current directory.
And WTF, you uploading an image that's more than half empty space?  _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sun Jan 28, 2007 8:02 pm Post maybe stupid Post subject: |
 |
|
|
|
Well, I remember setting up Python on my computer before and Brain told me to set some kind of path, and to be honest, I never figured out exactly what it was. I know basically what it did, but not how to use it. Also, the path reset every time I rebooted my computer, so I decided it probably wasn't worth figuring out.
Besides, I'm kind of apathetic about the whole ordeal in the first place, I don't really like Java. I hope I never have to code anything complex enough I'll need complex classes, and I end up coming out of that class feeling like it was a waste of my time. If I had my choice, though, I'd end up learning a useless language like Lisp. Which I would really like to learn, I don't know why. I guess it's like wearing designer clothes, maybe it would make me cool.
And about the image... tried to "cut" those parts out, but I guess I just don't know how. I was using MSPaint, and I'd select a group, right click and hit cut, hoping it would do more than just color it white, but it didn't so I decided to upload it as it was. But whatever.
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Jan 29, 2007 12:47 am Post maybe stupid Post subject: |
 |
|
|
|
I'm not using XP right now, so I can't give you perfect instructions, but try Control Panel -> System -> Advanced -> Environment Variables. You can edit your PATH permanently there. Just add ";C:\Program Files\Java\jdk1.6.0\bin" to it.
Animate wrote: | And about the image... tried to "cut" those parts out, but I guess I just don't know how. I was using MSPaint, and I'd select a group, right click and hit cut, hoping it would do more than just color it white, but it didn't so I decided to upload it as it was. But whatever. |
Click and drag the corner!
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Wed Jan 31, 2007 11:35 am Post maybe stupid Post subject: |
 |
|
|
|
Cyan~Fire wrote: |
Click and drag the corner! |
o=
I was going to post an ASCII drawing of a guy with his mind exploding, but it didn't work with this font, and I couldn't figure out how to change it. So, just imagine something really cool....
|
|
Back to top |
|
 |
|