Do You Need Java For Mac

0 views
Skip to first unread message

Ciara Geddis

unread,
Jan 25, 2024, 5:38:44 PM1/25/24
to nausnoozbonsa

My mate and I are gonna make a game for Steam and I, as the programmer, want to use Java as that is my current favorite language. So I need to know, does Steam notify the user that they need Java for a game when they buy/download/install it?

To answer your question directly, no Steam doesn't notify the purchaser that the game needs Oracle's Java Runtime Environment installed to play the game. That's because there shouldn't be any need to, any game that has a dependency on the JRE will download and install it as part of the normal Steam installation procedure. This is no different than games that have dependencies on Microsoft's Visual Studio, DirectX or .NET runtime. There is even a standard JRE depot that you can use.

Do You Need Java For Mac


Download Filehttps://t.co/GbtkSsV3pY



I would think that even if you were to use c++, you would need to ship your game with a bunch of Redistributable, at least on Windows. Unless you can manage to not use Visual Studio tools and such. I don't know what happens for Mac users.

Every jsp page is "compiled" into a .java file which then is compiled using the javac compiler into .class and then finally executed by the application server. So yes, you do not Java installed to run JSP -- and more specifically you will need JDK not just the JRE!

This is the situation. I have a Java based web application as as WAR file. It is developed using Java and several libraries like Hibernate, Java Mail and Quartz scheduler. Now, we need to deploy this to our linux server.

I am fairly new to Java, and whenever we have written programs in school, we put each class in a separate java file, but I do not remember why this was (if there was even a reason). Right now I am going back over my notes and trying to "understand" how it all works.

E.g. if we have a class 'Vehicle' and a class 'Car' extending 'Vehicle', do we need to save 'Vehicle' and 'Car' in java files 'Vehicle.java' and 'Car.java', respectively, or could both classes be saved in (say) 'Test.java'?

Duplication disclaimer: my question differs from this one, as mine asks whether it is possible to put multiple classes in one .java file; I am specifically interested in the explanation, i.e. why it is/not possible. I am not interested in what the method is called (the linked question just says 'it is necessary, now what is it called?'): my question is more basic than this.

A source file that contains the above code as-is won't compile, as each .java file can contain only one public class/interface/enum (btw, these are called "type"s). As a result you have to do this to keep them in the same file:

I have a bit of trouble understanding to what extend Java is included in Ignition 7.9 and Ignition 8.0 and what does this mean?
From what I understand Java should be included in Ignition 7.9 and 8.0 but I discovered that I still need Java installed on my server in order to start the gateway?

It's only needed for people who do Java Desktop GUIs, and there's alternatives now. I spent a few years doing JavaEE apps and console-based apps. Never needed to touch Swing, and I was a successful JavaEE developer.

I don't view swing as a core part of java in the same way as I think of streams, threading, collections, etc. I do quite a lot of interviewing and it's fairly rare for me to run across swing on someone's resume.

As with any library, if you learn Swing deeply you'll probably forget most of it by the time you need it again. My recommendation would be to increase your breadth of learning until you need to use Swing.

There's also a LOT of swing info out there (much of it bad, unfortunately), so if you have a cursory understanding of the library and when it's appropriate to use, you should be able to google what you need to know.

It really depends on what you want to do. Swing is a great API for GUI work. You can make some pretty powerful widgets, but it does have a large learning curve, to say the least. I would guess that most java developers that are focusing on web development will never have a need for swing, so you could safely ignore it if you wish.

Never touched it. My experience with ExtJS has been a lot more valuable. The Swing apps I have used have been miserably slow. Anyway, if I need to learn Swing, I will, just like I learned X/Motif and Tcl/Tk and .NET and ExtJS. If I can't convince a potential employer that I can do that, then I haven't managed the interview well.

I think that if your product doesn't use it and isn't likely to ever use it, there's no reason to expect Swing knowledge as a baseline for "what makes a Java Developer". Just like any job skill, I think you need to always look for the right mix for the position, and if the position isn't going to use Swing, why bother expecting that the candidate knows it?

My dad was playing minecraft and advised him to get optifine so i did that. When i went to try opening it nothing happened and showed no java logo like its just an unknown file extension. (the file was a .jar). then i checked java in the search bar and java didnt show up. i then downloaded java then after that it was installed and i was able to install optifine. im so confused

You can use the built-in runtime to run other Java programs, possibly anything (I'm not sure if it is a complete installation or just has what Minecraft needs):

-installing-forge-without-installing-java/

You can also make a batch file which includes the path to the runtime; for example (replace "amidst-v4-2.jar" with the name of the Optifine/Forge installer and paste into a text file and save it with the extension ".bat". Other (non-Windows) OSes have their own batch file formats):
@echo off
"C:\Program Files\Minecraft\runtime\jre-x32\bin\javaw.exe" -Xmx1G -jar amidst-v4-2.jar
pause
NOTE: The path will be different for a 64 bit OS ("Program Files (x86)" and "jre-x64") and if you have Minecraft installed to a different location (not the .minecraft folder, but where the launcher itself is installed to if you use the default install location). Also, the "pause" at the end keeps the window open so any errors can be seen (otherwise, it will close before you have a chance to see anything; this also goes for running it normally by double-clicking).

Otherwise, there really is no reason to have to download a standalone system JRE these days; I only have a JDK installed for mod development (which is still on Java 7 since MCP 1.6.4 compiles for Java 6 by default and I haven't had to use any newer language features, hence I have to use the Minecraft runtime to run programs that require Java 8, like AMIDST).

Also, Forge has an executable installer for Windows, which should be able to run like any normal program (IMO, no major mod developer should be relying on a Java-based installer these days; Java 8, the version recommended for Minecraft and required to run many mods due to Forge having issues with newer versions, is itself so old it may soon no longer be publicly available, and Oracle recommends providing your own runtime).

These requirements apply to all components of the Jenkins system, including the Jenkins controller, all types of agents, CLI clients, and other components.You do not need to build your application with the same version of Java used to run Jenkins itself;see the "Running Java-based tools and builds on Jenkins" section below.

Since vscode-java 1.2.0, it publishes platform specific versions to Microsoft VS Code marketplace. The platform versions have JRE 17 embedded in Java extension for platforms such as win32-x64, linux-x64, linux-arm64, darwin-x64, darwin-arm64. The embedded JRE will be used to launch the Java Language Server by default. Users are only responsible for configuring Project JDKs to compile your Java projects. For example, if you are working on JDK 8, you only need to install JDK 8 and no longer need to install JDK 17 additionally.

Because vscode-java depends on the Eclipse JDT.LS, the same requirement applies to vscode-java but on a more agressive timeline: vscode-java usually consumes JDT.LS builds that depend on bleeding edge JDT features, effectively shipping pre-release versions of Eclipse Platform/JDT. As of Jun, 8, 2022, Java 17 is now required for running vscode-java.

NO you don't! Well you should, be we're not here to judge. It is still possible to compile/run Java applications from Java 1.5 to 16, provided the proper java.configuration.runtimes are configured in the user's settings.json.

Worth mentioning - I've installed Java manually, as I often need to switch between version 8 and 19. All I need to do is to set %JAVA_HOME% system variable.
Now what does TechnicLauncher really checks to verify the Java version, as simply typing java -version in the command prompt returns the very valid version per TechnicLauncher's requirements?

By looking at the .exe file bytes, I think I know the answer: it's checking for the registry entries, isn't it? Why? Why not parse the java -version output? So much more reliable... or at least add that step if the registry entries weren't found...

If there is no way to let me see the repository so I can create a pull request, can anyone tell me what registry keys I need to set in order for the launcher to figure out the Java version so it can run?

Take this, save as a .reg file, change the paths to the jre you have, run to add entries (assuming you are using a 64-bit version of Java) and that is what the launcher needs to 'validate' the installed Java version.
If you have a different Java version installed and are wondering what the PRODUCTVERSION should be - look closely at the FullVersion value and you should figure out the pattern.

I still do not understand why would it search for the registry keys instead of parsing the java -version output... so my original point stands and perhaps the devs should take adding that option into consideration

Dude I had to make an account just to thank you. I had an install script error for the version of java that the launcher suggests, and many people online have had the same issue with no resolution. Java just wouldn't install. I tried a different version here : =8 but the launcher didn't pick it up. If anyone else gets the error "script error line 1 char 1 expected')' " then this worked for me. Download a java runtime from somewhere other than the normal website like the one I listed (which is where microsoft sends you to when looking for java 8), then follow the steps above. To create a reg file easily I searched registry editor in the task bar, navigated to one of the locations above, exported it as a .reg file then copied the info above into the file. After that I edited the paths with my own (make sure to use the double back slash \\), saved the file, then double clicked it to run and the launcher found it and worked fine. Again thanks to you Nyuno! Lifesaver!

dd2b598166
Reply all
Reply to author
Forward
0 new messages