« first day (841 days earlier)      last day (4118 days later) » 

11:00 PM
@Jordan Are you using the command-line or an IDE like Eclipse, IntelliJ, or NetBeans?
 
1 min ago, by Code-Guru
@Jordan What do you type? And what is the exact error message?
 
user1174868
command line
 
Jordan you names the file as HelloWorld.java?
 
@Jordan So please answer my question so that I can help you.
 
user1174868
how the fuck do I copy shit from cmd?
 
11:00 PM
@Jordan What OS?
 
sigh
 
user1174868
win7
 
I think you use the | copy tag on teh end of the command
 
user1174868
I type javac "E\Users\Jordan\Desktop\HelloWorld.java"
 
@Jordan Click the upperleft corner of the cmd window and go to Edit-> Mark. Then highlite what you want to copy and press Enter.
 
11:01 PM
Oh, it is |clip
For ex dir | clip
 
user1174868
E:\Users\Jordan C>java "E:\Users\Jordan C\Desktop\HelloWorld.class"
Error: Could not find or load main class E:\Users\Jordan C\Desktop\HelloWorld.cl
ass
 
@Jordan You only need to specify the class name not the name of the ".class" file. In otherwords, remove the .class at the end.
@Jordan Out of curiosity, what textbooks do you have?
 
user1174868
It says it cant find the file
 
again, post the exact error message
 
user1174868
Introduction to Programming Using Java, Sixth Edition by David J Eck
 
user1174868
11:05 PM
Cant copy for some reason now
 
@Jordan try my method?
 
@Jordan Start reading on page 51.
 
user1174868
I dont know what that means
 
It explains exactly what to do
 
java "E:\Users\Jordan C\Desktop\HelloWorld" | clip
 
user1174868
11:06 PM
@Code I dont have page numbers, online copy
 
@Jordan PDF?
 
user1174868
website
 
Section 2.6.2 then
 
user1174868
clip not recognized
 
5 mins ago, by Code-Guru
@Jordan Click the upperleft corner of the cmd window and go to Edit-> Mark. Then highlite what you want to copy and press Enter.
 
user1174868
11:07 PM
I did that
 
user1174868
It wont copy anymore
 
Then paste here
 
user1174868
E:\Users\Jordan C>java "E:\Users\Jordan C\Desktop\HelloWorld"
Error: Could not find or load main class E:\Users\Jordan C\Desktop\HelloWorld
 
user1174868
now it works for an unknown reason
 
@Jordan If you did it as I described, it will copy to the clipboard. Then you can paste as usual.
@Jordan What directory contains the HelloWorld.class file?
 
user1174868
11:09 PM
my desktop
 
hello I'm back
 
user1174868
@CC that is some strange looking stuff they typed into the command line
 
user1174868
I think all that stuff they typed is not needed, I changed the path to my java folder
 
@Doorknob welcome back
 
11:16 PM
hey @Code
 
hi
 
@Jordan That link has some things that aren't necessary for a simple HelloWorld program.
 
user1174868
hmm
 
user1174868
nothing can ever go right when I do it
 
user1174868
E:\Users\Jordan C>java "E:\Users\Jordan C\Desktop\HelloWorld"
Error: Could not find or load main class E:\Users\Jordan C\Desktop\HelloWorld
 
11:18 PM
@Jordan s/when I do it/ever/g
 
user1174868
I dislike java
 
user1174868
no clue why it is used for an intro course, I will spend more time setting it up than doing the assignment lol
 
Yeah, C should be an intro to programming
 
The first PL I learned was c++
 
user1174868
I think scheme is better, but yeah C is easier to set up for sure
 
user1174868
11:20 PM
actually python is probably the best
 
imo ruby > python, but many many people disagree. :P
 
@Jordan That is fairly common the first time you are setting up and learning a dev environment for any language.
 
user1174868
so when I get the java filed created i compile it, when it is compiled I get a class file, what then am I suppose to do?
 
Run it?
 
@LewsTherin IMO, there are other languages that are easier to learn than C, especially for anyone who has no experience with programming.
 
user1174868
11:21 PM
run it how
 
@Jordan Um... execute the class file?
 
@LewsTherin You're asking? =p
 
java Something.class
 
@Jordan Isn't that where this conversation started?
 
user1174868
execute it or type java?
 
11:21 PM
I still say no matter that first language, Haskell makes a great second
 
@Doorknob No!
 
@Code-Guru No, I was being sarcastic.. :P
 
user1174868
I am retracing my steps
 
no ".class"
 
oh, right
 
11:22 PM
You don't need .class ha
 
that last time I did that was... I don't even remember XD
 
@Doorknob sorry if that was too harsh ;-)
 
It wasn't :P
 
user1174868
So what is wrong with my path? E:\Users\Jordan C>java "E:\Users\Jordan C\Desktop\HelloWorld"
Error: Could not find or load main class E:\Users\Jordan C\Desktop\HelloWorld
 
I try to avoid the word "no" as much as possible.
@Jordan Where is the HelloWorld.class file?
 
user1174868
11:23 PM
on my desktop
 
user1174868
staring at me
 
put quotes around "Jordan C"
oh wait nvm
 
user1174868
it compiled like that
 
um...
did you put a main method?
public static void main(String[] args) {}
 
user1174868
I dont know what that means but my code has that line in it
 
11:25 PM
post your code (NOT copy/paste here but in pastebin.com )
 
user1174868
 
oh, ok
and how did you compile it?
 
user1174868
E:\Users\Jordan C>javac "E:\Users\Jordan C\Desktop\HelloWorld.java"
 
@Jordan Is it the .java file staring at you or the .class file?
 
That's the problem!
 
user1174868
11:27 PM
both are on my desktop
 
oh
never mind then
 
@Jordan If you did that, the .class file is in "E:\Users\Jordan C", not the Desktop.
 
he probably moved it
I'm assuming because he said both are on the desktop @Code
 
user1174868
There is a HelloWorld.java and HelloWorld.class on my dekstop
 
@Doorknob but the JVM can't find them
 
11:28 PM
@Jord try java "E:\Users\Jordan C\HelloWorld"
 
cd to Desktop
And java HelloWorld
 
@Jordan I strongly suggest that you create a folder for your Java programs. You will eventually have a lot of .java and .class files which you probably don't want filling up your desktop.
 
Yeah. I keep mine in C:\Java but if you don't want to clutter up your C (or E) drive put the folder for your projects on your desktop
Also I highly recommend Eclipse, it's an amazing IDE
 
user1174868
that worked
 
@Doorknob Amazing.. lol
 
user1174868
11:30 PM
@Lews No clue why, but that worked :(
 
user1174868
I obviously do not understand cmd
 
@Jord try eclipse
I couldn't program without it
 
user1174868
I was reccomended to not use it to better learn the language at first
 
@Jordan Np, but follow Code-Guru's and Door's advice :P
@Jordan Good advice.
 
user1174868
Yeah definitely
 
user1174868
11:32 PM
thanks for the help everyone, can't believe it was so simple
 
np :)
 
@Jordan What worked for you?
 
7 mins ago, by Lews Therin
cd to Desktop
7 mins ago, by Lews Therin
And java HelloWorld
@Code-Guru That, I think. ^
 
user1174868
@Doorknob Yes that was it
 
interesting
 
11:40 PM
indeed
 
@LewsTherin it's getting better every page!
 
I'm making a Javascript game for some reason
I don't know why I decided to :P
 
haha
Make a Java game!
 
I have a bunch of those.
 
or better yet an Android game!
 
11:42 PM
I don't have an Android device so no. :P
 
PHP guy, new to java.. I changed the database name (url) in the context.xml of the application and restarted tomcat, still the application uses old database .. can someone help with the limited information above
 
no
need more information
 
:(
 
or maybe ask on Stack Overflow?
 
@Code-Guru More torture to me :(
 
11:44 PM
what other information you may need
 
11:56 PM
@LewsTherin Go get it!
@Stewie That doesn't sound like a java question...
 

« first day (841 days earlier)      last day (4118 days later) »