latest
How to install Java on Ubuntu
It's super easy to install Java on Ubuntu as long as you're familiar with using a few commands
If you're a programmer, it's likely you'll have to install Java on your desktop or your laptop. After all, it's one of the top programming languages used by developers, and there are many apps, frameworks, and tools that require you to have Java installed on your system. In fact, there are actually three types of Java you can run, all of which have their own advantages. There's the Java Runtime Environment, which is for consumers and lets you run Java apps; the Java Development Kit known as OpenJDK, which is open source and used by developers; and the Oracle Java, which is a licensed version of Java maintained by Oracle, the company that makes Java with additional features like Flight Recorder and Mission Control.
On this day 28 years ago, Java 1 was released
Java has since gone on to be one of the most widespread programming languages in the world
If you've ever used a computer or mobile phone or played games like Minecraft, you've probably interacted with Java without knowing it. It's a powerful programming language that allows developers to write a program once and then run it anywhere. On this day, 28 years ago, the JDK was first released in the form of Java 1 after being released in an alpha state in May 1995 at Sun Microsystems.
So, you just installed Java on your new Mac, only to realize that you don't need it. Or maybe you've used it on macOS Sonoma for a while but have now moved to an alternative. Either way, you may want to uninstall Java on your Mac. While the process may not be as straightforward as deleting a regular app, it's still doable. To help you uninstall Java, we've listed the detailed steps you need to follow below.
How to download and install JDK on Windows
Are you a developer using the Java Development Kit? It's easy to install on Windows in just a few simple clicks.
Windows 11 is a great operating system for productivity, but if you're a programmer, there's a high chance you're going to need to install and use Java as part of your workflow. Oracle has the Java Development Kit (known as JDK for short) that you can use to help build your apps. It comes with all the tools you'll need, like a virtual machine, debugging tools, and more. Installing the JDK on Windows is actually quite easy, so here's how to get started with it.
How to set the Java path in Windows 11
Facing issues coding Java on Windows 11? Set the path first, using these steps
If you have a brand new PC or laptop running Windows 11 and want to install Java on it, a key step in this process is to set the Java path. Otherwise, you’ll keep seeing a "command not found" error when you run Java commands. You won’t be able to compile code either, as your computer won't be able to find the Java compiler without an address. Additionally, Integrated Development Environments (IDE), scripts, applications, and other development tools that rely on the Java path won’t function correctly, which means you’ll have to navigate to the specific Java directory each time you run a line of code. Adding the “bin” to your system’s PATH is also required; this allows you to use command-line tools and utilities conveniently by making them globally accessible.
How to install Java on macOS
Java is still used in some apps and websites, and you might need to install it for these to work properly. Here's how to do it.
Though there has been a shift away from Java for a while, there are still some apps and websites that depend on it to work properly. As such, some users can daily drive the best Mac computers for years without ever having to install Java. However, others might discover early on that an app or website they use often requires Java to be installed. Luckily, you can install Java on Macs with either Intel or Apple Silicon processors straight from Java's website. By following the steps below, you can install Java on your Mac in just a few minutes.
Android Development Basics: How to add Kotlin to an existing Java Android project
If you're looking to access Kotlin APIs from an existing Android project that's written in Java, here's how you can do so in Android Studio.
Kotlin is pretty great. It's got a whole bunch of useful language features, and the syntax is generally clean and simple. It's also cross-platform, and the base language can compile to a whole bunch of different languages and platforms.
Android Development Basics: How to add View Binding to an Android Gradle project
View Binding makes it easier to write code that interacts with views. Here's how to set it up in your Android Gradle project.
Most Android developers are probably familiar with the classic findViewById()
method. Pass it an ID of one of the Views in your XML layout and it'll return a reference to the inflated version of that View. That's all assuming you passed the right ID though, and that the View actually exists. findViewById()
has no checks built in to prevent you from trying to retrieve a View you can't retrieve. Enter View Binding.
Supreme Court sides with Google over Oracle in Java API copyright dispute
The U.S. Supreme Court has granted victory to Google over Oracle. Google was accused of copyright infringement for its use of Java APIs.
Nearly 11 years after the dispute began, Google v Oracle seems to have finally come to an end. In a 6-2 decision delivered by Justice Breyer, the U.S. Supreme Court reversed the decision of the U.S. Court of Appeals for the Federal Circuit, granting Google victory in the over decade-long dispute over copyright infringement.
[Update 3: Oracle's response] Oracle's lawsuit over Google's use of Java in Android has been revived
Google could now owe billions of dollars to Oracle, as a federal appeals court has ruled that Google's use of Oracle-owned Java APIs in Android is not considered as fair use.
The Google-Oracle feud has been ongoing since 2010. Java was created by Sun Microsystems back in the 1990s and Oracle acquired the company in 2010. A few months later, Oracle accused Google of using its copyrighted APIs and patents to develop Android and filed a lawsuit. Since then, we have seen the two companies wage a protracted legal battle in US courts.
Square announces their In-App Payments SDK for Android, Flutter, and iOS
Square recently announced its new mobile payments SDK. This SDK allows developers to integrate Square right into their app, without any extra hardware.
Many of you have probably heard of Square Inc. They're a company that specializes in financial services, especially when concerning mobile payments and point-of-sale systems. You've probably seen their card readers at restaurants, retail stores, or even outdoor events.
This Ultimate Coding Bundle is Free
This Ultimate Coding Bundle from the XDA Depot is currently free. Yes, 27 Hours of Comprehensive Coding Instruction Is Absolutely Free.
If you're just getting started with learning Ruby, Java, Javascript or Google Go Lang, this is a great place to start. Before purchasing one of the more in-depth bundles from the XDA Depot, check out this one for free. This collection of beginners coding courses is valued at $737. If you get it through the XDA Depot, you pay nothing. Here is what you'll find in this bundle.
Unlike most other mobile OSes, Android allows users to modify its source code to make the most of it. This is accomplished by editing code from the AOSP or AOSP-derived projects before compiling. However, not all of us build our own ROMs from source. Thus, there's the world of decompiling and Smali editing.
Odin and Heimdall were pretty badass gods in the Nordic mythology. But to Samsung device owners, these are important and powerful tools designed to flash stock ROM files, much like Flashtool on Sony phones. In short, they are an essential part of Samsung Android development here at XDA.
Android is meant to be open source. And most components, despite being covered by the Apache license, have publicly available source code. Unfortunately, the sad truth is that only Nexus devices owners can do Java modifications without digging into Smali assembler language, which is not simple and needs much more effort than Java. Also, decompiled applications can't be imported to Eclipse or Android Studio.
Android is an operating system that uses a lot of programming languages. The most common languages are Java (or Android Java if you prefer), C, XML, Bash, as well as a few more. Android applications can be decompiled by APKTool and a few similar tools, and their output is Smali. I know that many of you will disagree with me, but Smali is quite complicated language---much more than Java.
It's fair to say that unless you've spent some time digging around inside APK files and making some heavy duty modifications to apps or the Android OS itself, you probably haven't come face-to-face with a .smali file in its natural environment. They are a common component in many of the most popular Android tweaks and hacks out there such as adding toggles, extending the power menu, and adding CRT screen off animation.
Everyone has experienced the desire to program at one point or another. However, there are generally four limiting factors: Time Constraints, Study Material, Mental Blocks, and Attention Span. So clear your schedule, clear your mind, and self-medicate your ADD with a nice cup of your favorite coffee because here's the material you need to learn how to program.