« first day (1639 days earlier)      last day (3366 days later) » 

12:05 AM
Cool, Java is used in Sim cards :D
 
@TheMuffinCoder Java is used everywhere
 
@OMGtechy Yay! Java is even in our coffee!
 
yes!
 
wait that mean's it literally is everywhere
it's watching our every move
the javabots are waiting for the right moment to strike, then they will take control of the world and eliminate C#
 
@TheMuffinCoder you may be able to help me
 
12:19 AM
 
LOL
 
xD I made that in 3 minutes
with Microsoft paint
 
the timing of that was perfect
"you may be able to help me"
"get well soon"
 
Anyway, I have a Java problem and you know some Java so :D
 
12:20 AM
It was meant for Lasse
@OMGtechy yay i may be able to help :D
ask away!
 
I have a package called UnionFind, a class in that UnionFind package called Test which has a method called main. When I try to run it, I get "cannot find main class" etc, so I try java -cp . UnionFind.Test and it still says the same.
 
xD that has happened to me many times
Are you using the console compiler or eclipse?
 
console
javac
javac Test.java IdArray.java
 
:( well this is shameful to say but (i compile everything with eclipse...)
 
to be exact
:O
 
12:23 AM
it may have to do with the filename be captizalized
When i coded with Java in android, I spent weeks trying to see what was wrong
 
well it won't compile if it's not
 
turned out I couldn't have captials in the filename
try that :D
 
hmm I'll try it again
 
hey OMG, why dont you use a IDE
 
na won't compile
 
12:24 AM
or is the project too big?
 
I am just most comfortable without
 
8
Q: Java can't find main class

IAmYourFajaI have written the following Java source file (Hello.java): package com; public class Hello { public static void main(String[] args) { System.out.println("Hello!"); } } I save this to C:/tmpjava/Hello.java. From the command line, I navigate to that directory and run javac Hel...

That may be similar to what you have right now
 
Yeah I looked at that, didn't seem to help
that's where i got -cp from
thanks though :)
 
2
Q: java Could not find or load main class

Pranav ChughIm using fedora 19. Content of HelloWorld.java : class HelloWorld { public static void main( String args[] ) { System.out.println( "Hello World!!" ); } } I can successfully compile it using javac HelloWorld.java But i cannot run it using java Hello...

That one may help too! :P
 
thanks again :P just says the same stuff though
seems I don't need -cp though
 
12:26 AM
:P I never have problems when I compile with console
Just when in eclipse the build paths get messed up when I move folders
 
maybe I need to specify an outfile or something
apparently not
 
Hey OMg is that the only class you're using?
 
there are two
both in the same package
Hmm I'll try removing the package name from the file with Main
aha, well it ran and crashed
 
I think this is the problem
98
Q: Error: Could not find or load main class

DaveI am having trouble compiling and running my Java code, intended to allow me to interface Java with a shared object for Vensim, a simulation modeling package. The following code compiles without error: javac -d . -cp ./apache-log4j-1.2.16/log4j-1.2.16.jar:./vensim.jar SpatialModel.java Vens...

Unless u saw it already :P
 
it's not, but thanks :) all the files are in the same dir
at least it runs now, even if it does crash
 
12:30 AM
xD does it run the main method atleast?
 
yeah and insta crashes :P it didn't like me having the package name there
for some odd reason
 
hey I can try compiling it if u want
 
sure
let me shove it on github
probaby my lack of Java skills causing me to do something stupid
 
:P I'll check
 
I'll add the package name back in
 
12:32 AM
Your C++ skills are enough for Java :D
@OMGtechy github? (just reminding :P)
 
just making the repo :)
 
@OMGtechy kk I'll compile it :D
@OMGtechy It compiled perfectly
No errors
 
same here
just doesn't run
 
12:41 AM
And it runs
 
oh whut
commands?
 
xD u program doesn't write anything to the screen
 
it doesn't no
 
I added System.out.println("Start"); at the beginning and System.out.println("End"); at the end to see it
it works
 
cool, what're you using to compile / run it?
the commands
 
12:42 AM
cough well
am using eclipse
it's really easy
 
I'm pretty sure eclipse will tell you what it's doing in the background
 
I just created a project
 
well at least my code is ok, so I just need a flag somewhere it seems
 
xD it's still running
How much is it doing?
 
very little
 
12:43 AM
WHOA
 
I think I fixed it
 
It's using 59% of my CPU
 
If I go outside the directory and then type UnionFind.Test it works
 
it runs?
 
yeah how strange
odd java quirk I guess
I found the bug
 
12:45 AM
xD
 
infinite loop
 
oh
no wonder it's using 59% of my cpu
ouch it went up to 95%
 
I've pushed the changes
git pull, recompile and try again
should be fine now
 
Hey OMG
are u following examples from a book for this?
 
no
 
12:46 AM
why are u using Java then?
 
1) why not 2) that coursera algorithms thing uses it, so I may as well
I like to expand my language horizons at every chance I get
 
xD
kk, I thought everyone here disliked java
like Icy
 
I do too aha
Not for good reason though
I should probably drop HTML and CSS from my site
 
I can't remember shit about it
not like that aha
 
12:49 AM
xD I only like java, python, php, javascript, and C++
 
you LIKE PHP?!
 
oh no.... am i the only one here who likes php?
 
in the frigging world
 
it has a cool elephant as its logo
 
I'm sold
 
12:50 AM
xD do u hate PHP?
what about Ruby
Am been curious on learning it
 
I know little of PHP tbh, but everything I've seen I don't like
I know even less about Ruby
 
xD
the dark side has been revealed
I like how I can generate HTMl easily with php
and so easily
 
I'm gunna remove a load of stuff from my website
all these libraries listed etc
it means nothing, I'm better off putting what I've used and where
 
step one # remove support for IE <8
 
step two ???
step three profit!
 
12:55 AM
@OMGtechy Oh no! It's troll logic
 
it's unstoppable
 
to make things worst, I learn all my php so far from codecademy.com
 
that's not a bad thing at all
it's a good site
 
whee
am also ashamed that I learned all my javascript there, and my current python knownledge
 
why?
 
12:58 AM
I also completed their entire course for HTML and CSS there
... and I finished it all going to w3schools
 
is this your coding confession or something?
 
i havent said how I learned java....
 
here it comes
 
gulp... I learned Java from....
 
thenewboston?
 
12:59 AM
youtube videos
 
close enough
 
@OMGtechy WHOA HOW U KNOW
 
magic
 

« first day (1639 days earlier)      last day (3366 days later) »