HelloI have a problem with the startup.the Launcher jar file. I want to install a launcher to launch the minecraft Launcher game, but in the console when entering "sudo java -jar TLauncher-2.895.jar " outputs an error:
i downloaded the zip file extracted it and made the jar executable i download the java with sudo apt install default-jdk and i cant seem to run the jar file neither by double clicking or in the terminal with sudo java -jar can i pls get some help
I've noticed that I've been getting terrible performance on Minecraft and have narrowed it down to the fact that Minecraft is not able to switch from the Integrated graphics card to usisng my AMD Radeon Graphics card. I will leave my specs and software versions at the bottom of the page if you want to skip to that.
I've tried many other 'solutions' in other threads on multiple forums but unfortunately they all lie with the same problem that they're either too old to be compatible with the current version of Radeon Settings or don't actually answer the issue. (upgrading my drivers or disabling integrated graphics. I have updated my drivers and I'm not going to disable my integrated graphics because they're used for other software that are always open.)
Do notice that the Minecraft launcher is different from the actual minecraft game. The Minecraft launcher has been detected by the graphics card and I believe it's powering it but the actual game is powered by the integrated graphics card. The Minecraft game is a java environment which when I added it to the Radeon Settings showed me that it was another game called Jedi Academy or something along those lines. Even when Minecraft is running, the graphics card it uses is still the integrated one after adding the Javaw.exe environment to the Radeon settings.
Does anyone have any suggestions or fixes of their own? Thanks in advance.
Minecraft > Install > runtime > jre-x64 > bin > javaw.exe
Click on javaw.exe and you'll add it to your switchable graphics section. That's all! Just make sure it's on high performance and you're set.
Adding on to what you said. I had set java.exe. javaw.exe. Minecraft.exe. And a whole bunch of things to high performance in the graphics settings. It wasn't using my dedicated gpu still. If this helps anyone. I remembered doing research on this in the past and I checked my power options and set my power plan to high performance (Actually ultimate performance). Thus switching from those settings that focus on power saving and probably overwrite the command to use the dedicated gpu in my case.
I have an updated Radeon Software, and I added the javaw.exe, but it still uses the integrated GPU instead of my AMD GPU, while I try to add another app, it uses the AMD GPU, like for example, I add and opened up Minecraft, and it's using the Intel UHD Graphics GPU, while I add and open Roblox it's using the AMD GPU, which is weird, but I already updated the OpenGL and stuff, but it still doesn't work! I tried via the Settings app, it also doesn't work, help me pls
As stated previously using windows built-in Graphics settings you can force the applications to use the graphics card. The main applications that you are looking for are java.exe and javaw.exe.
You can find these files in a number of places:
For modded using the lastest Curse Forge launcher by Overwolf:
C:\Users\*ProfileName*\Twitch\MinecraftInstall\runtime\bin
C:\Users\*ProfileName*\Twitch\MinecraftInstall\runtime\jre-x64\bin
C:\Users\*ProfileName*\Twitch\MinecraftInstall\runtime\jre-legacy\windows-x64\jre-legacy\bin
(jre-legacy is probably the one you are looking for as they said they would continue to use the legacy launcher)
The latest (recently updated) Minecraft Launcher from Mojang:
C:\Users\*ProfileName*\AppData\Local\Packages\Microsoft.4297127D64EC6_8wekyb3d8bbwe\LocalCache\Local\runtime\jre-legacy\windows-x64\jre-legacy\bin
Feel free to add any other locations there might be as the install locations have changed from launcher to launcher
The legacy win32 launcher and I believe one older version exists. To find out where these files are just launch the game, open task manager and right-click the Java(TM) Platform SE binary program, and click the open file location to find out where it is running from.
You want to set those to the High-Performance setting.
-As of writing this may be optional.
In order for these files to be configured using Radeon, you have to go into your Radeon application and add the javaw.exe and maybe the java.exe files to your game, in the Gaming tab. To add a game go to the said tab and look for three dots on the right, click them. and press "Add A Game..."
You can then configure the game however you wish, with the exception of the "Anisotropic Filtering" setting, which you want to disable, This setting was causing white borders around blocks, which has to do with the texture filtering.
Also, the Anti-Aliasing setting needs to be set to "Use application settings."
And just finding one version of the file seems to set correctly for all other locations, so only one is needed in Radeon and only the javaw.exe file is needed.
that's a basic thing to do if u want to force use of gpu. Already did all of this and nothing is working, my integrated is giving me around 80-90 fps but after a while of playing the screen starts stuttering. I have tried vsync and all the video settings and they didn't work so i'm lost. any ideas?
The in game settings are not going to enable/disable gpu usage. From what I can tell it could only be a driver issue, I would make sure other games use the gpu. I would also make sure you have a currently supported gpu. I do not really see why the gpu would not be recognized and use for minecraft by windows if you followed the above steps. Therefore, it would have to be either the gpu itself or the game. Minecraft java can be a bit finicky to work with due to its age too.
A FormatFlagsConversionMismatchException is an unchecked runtime exception which is thrown when a conversion and a flag are incompatible in the source code. This is a very common exception encountered when the programmer tries to format the string. Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown.
The FormatFlagsConversionMismatchException class has a constructor that constructs an instance of this class with the specified flag ( f ) and conversion ( c ). So whenever there is an incompatibility between the flag and the conversion, this exception is thrown.
On observing the first few lines of the output, it is evident that this exception occurred because of the flag and the conversion not being compatible, which is caused by the # flag, which is not compatible with %s in the String.format() method.
Analyzing the result makes it obvious that the flag component is empty and that java.util.Formatter is to blame for the issue. This is so that printf() may interpret the format string and produce output using the java.util.Formatter class. And failure to escape the character that is generating this issue while printing the percentage (%) in the printf() statement's output.
Additionally, it's a good idea to precisely follow the syntax of string formatting methods and escape any essential characters. As a workaround, developers can also use other methods to format which are present in the StringBuilder class.
Managing errors and exceptions in your code is challenging. It can make deploying production code an unnerving experience. Being able to track, analyze, and manage errors in real-time can help you proceed with more confidence. Rollbar automates error monitoring and triaging, making fixing Java errors easier than ever. Sign Up Today!
I try to open a zip file, and I get a pop up saying, " The java jar file could not be launched. check the console for possible error messages." I have read that the solution is by accessing Java Preferences, but the last update took that away. Does anybody know what to do? Does anybody know any alternative Openers I can use for zip files? Anything other than Java? Java is really bugging me I can't stand it. But if there is a solution, I will use it. Thanks in advance everyone.
Ctrl-click on the .zip file, hover your mouse over Open With, and in the submenu select Archive Utility. If Archive Utility isn't listed, click on "Other..." in the submenu, click on your main hard drive, and then go to System > Library > CoreServices and click on Archive Utility, then click on Open.
There are only two or three persons who might see your posting, so it's never a good idea to post a "me too", especially one this old. Answers will likely only come if you start a new discussion item in the appropriate Forum for you OS, explaining your situation in much more detail than you have. That will allow maximum exposure and get you much more help faster. That's just the way the Forum works.
sorry i said zip files, i also mean Jar files. Java Jar files. Also, when I use archive utility, all it does is make a copy of the folder and puts it on the desktop. What's next. Thanks a lot in advance.
Then the Java Preferences was replaced by the Java Control Panel accessed via System Preferences->Java. See if that has a preference to "Enable Logging", otherwise it may not show up in Console's Log List.
Thanks MadMacs0, for I enabled Logging to be able to see this error messsage. Do you know how to access the page that says whether you are using 32-bit or 64-bit under the Java Control Panel? everyone says that is the solution to my problem, but unfortunately it was all under "Java Preferences."
3a8082e126