IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New OK, I give ... how do I set up Java?
I followed Mike's steps, and at the end he says, "Then of course set up your CLASSPATH and PATH". Umm ... how?

I read the docs on configuring, I tried every combination I saw, and I keep getting:
drook@droogy:~/java/code$ java HelloWorldApp.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class
I've unset classpath and I'm executing from within the same directory as the class. I downloaded the code from the Sun tutorial and compiled it fine. What am I missing?
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New Take off the .class part.
That's being treated as a package.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New So why is every ...
Why does every FUCKING tutorial have that wrong in the SAME GODDAM WAY?! That's fucking BRAINDEAD! I want those two hours of my life back, who do I complain to?
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New Don't worry...
...in learning Java, you'll have much more time than 2 hours to squander along the way.
New I know, but seriously
Why does every tutorial have the exact same non-functional syntax? Is there something about my local install that makes it behave differently?
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New *ahem*
[link|http://www.google.com/search?q=%22java+HelloWorldApp.class%22|"java HelloWorldApp.class"]...

Make a habit of googling for your exceptions, too: [link|http://www.google.com/search?q=%22java.lang.NoClassDefFoundError%3a+HelloWorldApp/class%22|"java.lang.NoClassDefFoundError: HelloWorldApp/class"] (this works because it's a common tutorial name, apparently)

With respect to your "every tutorial" comment, go to the horse's mouth:
[link|http://java.sun.com/docs/books/tutorial/index.html|http://java.sun.com/...torial/index.html]
Specifically: [link|http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html|http://java.sun.com/...upojava/unix.html]

"Don't believe everything you read on the Internet." ;-)

Alternatively, don't read everything you believe on the Internet either, I suppose.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New ICLRPD (new thread)
Created as new thread #189738 titled [link|/forums/render/content/show?contentid=189738|ICLRPD]
New Note to self... don't try to learn new languages while tired
[siiiiiggghhhhh]

Man I hate these damn machines.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New I just specify it within the Java command
something like:

java
-classpath \\xx_app_dir\\java;\\java;\\java\\jdk\\j2sdk1.4.2\\lib\\tools.jar HelloWorldApp

or whatever other paths you may need. Once you figure it out, you can add them to the classpath environment variable.
     OK, I give ... how do I set up Java? - (drewk) - (8)
         Take off the .class part. - (admin) - (6)
             So why is every ... - (drewk) - (5)
                 Don't worry... - (ChrisR) - (1)
                     I know, but seriously - (drewk)
                 *ahem* - (admin) - (2)
                     ICLRPD (new thread) - (ChrisR)
                     Note to self... don't try to learn new languages while tired - (drewk)
         I just specify it within the Java command - (ChrisR)

Blaphemer!
47 ms