Server Help

Trash Talk - Java Help

Animate Dreams - Fri Jan 26, 2007 11:58 pm
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. =\
CypherJF - Sat Jan 27, 2007 12:09 am
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.
Animate Dreams - Sat Jan 27, 2007 12:24 am
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?
Mine GO BOOM - Sat Jan 27, 2007 12:41 am
Post subject:
Right-click inside the command prompt, select Mark. With left-mouse button, click and hold for a selection rectangle. Right-click, Copy.
Animate Dreams - Sat Jan 27, 2007 1:42 am
Post subject:
That's useful, thanks. I'll remember that.
Smong - Sat Jan 27, 2007 7:56 am
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.
Animate Dreams - Sat Jan 27, 2007 1:42 pm
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.
Cyan~Fire - Sat Jan 27, 2007 2:58 pm
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? icon_confused.gif
Animate Dreams - Sun Jan 28, 2007 8:02 pm
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.
Cyan~Fire - Mon Jan 29, 2007 12:47 am
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!
Animate Dreams - Wed Jan 31, 2007 11:35 am
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....
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group