Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "javac"
-
I was once at my uncle's 40th birthday party and bored to hell, so he gave me a book that was supposed to be "Python for kids". I started reading it and soon fell in love with programming.
Since then I've often learned new programming languages by reading books or lately mostly the internet.
My books here should be in chronological order:6 -
The biggest annoyance in Java for me is the absence of "real" properties. Writing getters and setters everywhere is ugly, you are generating them anyways.7
-
I have Java 8 installed on both Windows10 and Ubuntu16
My (basic) app compiles fine in windows with javac, and when put into a jar works perfectly. But when cloned to my Ubuntu, javac fails to compile, and the jar fails to run.undefined i should of gone to law school i'm a failure java build errors is mcdonalds still hireing? what is going on33 -
CIA – Computer Industry Acronyms
CD-ROM: Consumer Device, Rendered Obsolete in Months
PCMCIA: People Can’t Memorize Computer Industry Acronyms
ISDN: It Still Does Nothing
SCSI: System Can’t See It
MIPS: Meaningless Indication of Processor Speed
DOS: Defunct Operating System
WINDOWS: Will Install Needless Data On Whole System
OS/2: Obsolete Soon, Too
PnP: Plug and Pray
APPLE: Arrogance Produces Profit-Losing Entity
IBM: I Blame Microsoft
MICROSOFT: Most Intelligent Customers Realize Our Software Only Fools Teenagers
COBOL: Completely Obsolete Business Oriented Language
LISP: Lots of Insipid and Stupid Parentheses
MACINTOSH: Most Applications Crash; If Not, The Operating System Hangs
AAAAA: American Association Against Acronym Abuse.
WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.2 -
javac *.java
28 errors? Okay..
Oh I closed my class too early.
javac *.java
Okay, only 8 errors.
Oh I forgot to close my switch.
javac *.java
19 errors?!
I can see why some people don't like Java.. >.<3 -
End of semester assignments has me like
javac fuckingshitassignment.java
javac shitcodewontwork.java
javac plsgivemefullmarks.java -
Today I learned:
In Java, you're supposed to compile a source file in its package one directory up, outside of its package. You can't compile the source file in its own package directory, for it will state "cannot find symbol" on files in the same package, even though they're in the correct package directory. That can be quite confusing at first.
Given the following directory structure:
|_
|_ \pkg
|_ _ Src1.java
|_ _ Src2.java (interface with static method)
and the following source:
package pkg;
public interface Src2 { static void doStuff() { ... }; } // assuming JDK8+, where static default methods are allowed
package pkg;
public class Src1 { public static void main(String[] args) { Src2.doStuff(); } }
..being inside the pkg/ directory in the console,
this won't work:
javac -cp . Src1.java
"cannot find symbol: Src2"
However, go one directory up and..
javac -cp pkg/*.java pkg/Src1.java
..it works!
Yeah, you truly start learning how the compiler works when you don't use the luxury of a IDE but rather a raw text editor and a console.1 -
The best part is the satisfaction you get when you see the thing you've worked on for a long time being used and making people happy.
-
What is the longest time any of you have been debugging one problem?
For me it was at my first internship where I was creating a multithreaded qt application. I had a problem that took me two weeks to figure out. I was trying to call a function from a qt thread when it wasn't the main thread. Took me two weeks to figure that out since it was my first time doing multithreaded applications, and the fix was dead simple.
Any similar stories?1 -
javac MyDay.java
MyDay.java:5 error: cannot find symbol
Coffee coffee = new Coffee();
^
symbol: class Coffee
location: class MyDay -
So yeah I just had Ubuntu show me two errors directly after startup, then claiming that there is a programming error in aptdaemon and then IntelliJ crashing because of a read-only FS.
After rebooting my VM im faced with a BusyBox prompt saying my disk is corrupted. Fuck VMWare. This is not the first time the disk in my VM got corrupted. -
*through gritted teeth* BLUEJ WHATS UR FKIN PRBLM. DON'T LET ME MAKE SOMETHING THAT WORKS IN YOUR OWN COMMAND LINE BUT NOT MY TERMINAL.
I just want to read a single integer from System.in on different occasions during the same program. You even let me close System.in without a warning and try to reopen it later, which I'VE LEARNED ISN'T SUPPOSED TO WORK. EVER.
BlueJ you have beautiful bracket highlighting but that's it, I'm leaving.
#edit
What the shit javac let's me compile this without warnings from command line?2