- Running minecraft jar on windows
- How to run a JAR file on Windows 10 [QUICK GUIDE]
- How can I run a JAR file on Windows 10?
- 1. Add Java to Windows
- 2. Download a JAR file opener
- File Viewer Plus
- 3. Use Java(TM) Platform SE binary
- 4. Run a JAR file from the Windows Command Prompt
- 5. Add a third-party JAR executor to Windows
- Running minecraft jar on windows
- Minecraft Forums
- Running Minecraft.jar on Windows
Running minecraft jar on windows
How do you select the jar file?
That is what i don’t get.
This application works for some external applications.
If I choose a .Txt file then it will launch Notepad. As Notepad is the default application on my system for files with an extension of .Txt so when a file with that extension is clicked on Notepad opens displaying the files text. After one second (and a bit for a loop to end) it will embed Notepad in a Panel on the form.
When I chose a .Bmp file Windows Live Photo Gallery (WLPG) was the default .exe for files with an extension of .Bmp on my system. This app would not work with WLPG. So I changed the default .exe for files with an extension of .Bmp on my system to Paint. As you can see in the second image below this app works with Paint. Paint was launched and after it displayed with the image in it then it was embedded into the Panel.
Some windows apps like Internet Explorer or Windows Explorer spawn off a child .exe or something when you use them. Those kinds of apps, which WLPG may be one of them, will not work with this program. I haven’t researched that to know what the correct terminology is to use for apps like that but I’m just trying to give you an idea of that.
It’s possible it may work with whatever app is the default .exe on your system for files with an extension of .Jar. You may have to set the thread sleep to a longer duration than 1000 for an app that takes a while to load. I don’t know for sure.
If the app that runs when a .Jar file is clicked on does not have the ability to load a new .Jar file itself then you will have to exit it before selecting a new .Jar file to load using the Button click event. So you will have to provide code to kill the app or click on its exit button or something so that a new app can be embedded in the panel when a new .Jar file needs to be loaded.
Although people don’t like to use the Kill command. I suppose it can cause loss of information. So in the form closing event I commented that out and am using CloseMainWindow which works but I’m unfamiliar with using it.
When running this app in debug mode you need to use the apps exit button or system menu to exit the app rather than using Visual Studios stop debugging function. Otherwise whatever app was embedded in the Panel will still be running when you stop debugging.
Also I commented out the filter for the OpenFileDialog as I don’t have any .Jar files on my system to use the filter with. So you can comment that back in if you want.
How to run a JAR file on Windows 10 [QUICK GUIDE]
- To run a JAR file on your Windows 10 device you certainly need to have Jave installed.
- You’ll find below a path to the latest Java version in case you need it.
- Then, you can find JAR file openers or executors, and we recommend some.
- Using Command Prompt is also a handy solution if you don’t want to install third-party tools.
A JAR file is a Java archive package format that might include a Java program within it. While you can extract JARs with archive software such as 7zip, you can’t run a pure Java JAR app as you would with other programs in Windows.
Since that’s the case, we’ll cover how you can run a pure Java app JAR file in Windows.
How can I run a JAR file on Windows 10?
1. Add Java to Windows
The crucial thing you need upfront is to have Java installed. Without it, Java apps aren’t going to run in Windows. This is how you can install or update Java in Windows 10:
- First, open Command Prompt(Admin) by pressing the Win key + R keyboard combination and entering cmd in the box.
- Next, input java -version in the Command Prompt and press Enter. It will then provide further details on your Java version as below.
- The current version of Java is Version 8 Update 131. If you don’t have Java or the most up-to-date version, you can add it for free.
- Run through the Java setup wizard. Then, open your browser to verify that the program is working.
2. Download a JAR file opener
You can open JAR files and hundreds of different formats with a single application. File Viewer Plus is a universal file viewer for Windows that can open and display over 300 different file types.
The new updated version has a plethora of features that will save you big time on opening, viewing, or editing files.
File Viewer Plus supports the most popular text, audio or video file type, as well as archive, source code or web files.
File Viewer Plus
3. Use Java(TM) Platform SE binary
- Open the File Explorer and the folder that includes the file you need to run.
- You should right-click the JAR file and select Open with from the context menu.
- Click Choose another app and then select to open it with Java(TM) Platform SE binary.
- Click the Always use this app to open JAR files check box.
- Press the OK button to close the menu.
- Now you can run the selected JAR, and all other JARfiles will also be associated with Java.
4. Run a JAR file from the Windows Command Prompt
- Press the Win key + X hotkey and select Command Prompt (Admin) to open it as administrator.
- Then input the following command (replacing the example with the actual path of the file you need to run) and press Enter: java -jar c:pathtojarfile.jar
- Alternatively, you can open the folder that includes the JAR in the Command Prompt first by entering cd / followed by the directory. Then, you can input java -jar file.jar without the folder path.
That will open the executable JAR file so long as it contains a manifest file to specify the application’s entry point. (The developers should have already included that in the archive.)
If you develop your own Java programs, you’ll need to convert the JAR to an executable format.
5. Add a third-party JAR executor to Windows
There are also executor programs for Windows that enable you to run JAR files the same as any other program . Jarx is one of them and you can add it to Windows by clicking Jarx-1.2-installer.exe on this page.
Click the jarx .exe to run the software, which doesn’t really have a GUI as such (except an About jarx window). Then you can double-click the JAR files to run them in Windows.
If you’re having trouble accessing the JAR file or you get some kind of an error, take a look at this nifty guide to finding some great fixes.
With all this, you can now run JAR files in Windows. If you need to fix a JAR file that isn’t opening, check out this Windows Report guide.
If you have any other suggestions or questions, leave them in the comments section below and we’ll be sure to take a look.
Running minecraft jar on windows
How do you select the jar file?
That is what i don’t get.
This application works for some external applications.
If I choose a .Txt file then it will launch Notepad. As Notepad is the default application on my system for files with an extension of .Txt so when a file with that extension is clicked on Notepad opens displaying the files text. After one second (and a bit for a loop to end) it will embed Notepad in a Panel on the form.
When I chose a .Bmp file Windows Live Photo Gallery (WLPG) was the default .exe for files with an extension of .Bmp on my system. This app would not work with WLPG. So I changed the default .exe for files with an extension of .Bmp on my system to Paint. As you can see in the second image below this app works with Paint. Paint was launched and after it displayed with the image in it then it was embedded into the Panel.
Some windows apps like Internet Explorer or Windows Explorer spawn off a child .exe or something when you use them. Those kinds of apps, which WLPG may be one of them, will not work with this program. I haven’t researched that to know what the correct terminology is to use for apps like that but I’m just trying to give you an idea of that.
It’s possible it may work with whatever app is the default .exe on your system for files with an extension of .Jar. You may have to set the thread sleep to a longer duration than 1000 for an app that takes a while to load. I don’t know for sure.
If the app that runs when a .Jar file is clicked on does not have the ability to load a new .Jar file itself then you will have to exit it before selecting a new .Jar file to load using the Button click event. So you will have to provide code to kill the app or click on its exit button or something so that a new app can be embedded in the panel when a new .Jar file needs to be loaded.
Although people don’t like to use the Kill command. I suppose it can cause loss of information. So in the form closing event I commented that out and am using CloseMainWindow which works but I’m unfamiliar with using it.
When running this app in debug mode you need to use the apps exit button or system menu to exit the app rather than using Visual Studios stop debugging function. Otherwise whatever app was embedded in the Panel will still be running when you stop debugging.
Also I commented out the filter for the OpenFileDialog as I don’t have any .Jar files on my system to use the filter with. So you can comment that back in if you want.
Minecraft Forums
Running Minecraft.jar on Windows
[INFO] Starting minecraft server version Beta 1.2_01
[WARNING] **** NOT ENOUGH RAM!
[WARNING] To start the server with more ram, launch it as «java -Xmx1024M -Xms1024M -jar minecraft_server.jar»
[INFO] Loading properties
[INFO] Starting Minecraft server on 76.116.32.138:25565
[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
[WARNING] Perhaps a server is already running on that port?
i get this error and im not running another server.. any ideas?
I’m talking about for the FAILED TO BIND PORT! not NOT ENOUGH RAM! by the way.
- Coal Miner
- Join Date: 1/28/2011
- Posts: 132
- Member Details
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Coal Miner
- Join Date: 1/20/2011
- Posts: 117
- Member Details
If you just run ‘ipconfig’ or look at your network connection status, does your IP address really say 76.116.32.138, or did you get that from going to ‘whatismyip.com’ or something?
You shouldn’t get a ‘failed to bind port’ error because of a port forwarding situation. (Port forwarding won’t affect your ability to bind a port at all, just outside connections and their ability to send anything to that port.)
If your computer’s IP address is really something like 192.168.0.101, is it possible you should have that in the config instead? Your router’s job is to know that things sent to its public IP (76.116.32.138) on a certain port (25565) get translated (NAT) and forwarded (port forwarding) to your computer at its actual private IP address (gotten from ipconfig.)
I guess this depends what the setting in the config does. If it tells the outside world where to find your minecraft server or something, then I guess it would be the public IP it needs. Though, «failed to bind port» is usually consistent with what I said above, it’s looking for a network adapter with address 76.116.32.138 on your system and not finding one, and thus failing to bind its listener to that port on that address.
The other possible situation is some other process has already bound to that port. You’d get an error like that if you tried to run two different web servers at once on the same port. One would bind port 80 and the other would try to do the same and get a conflict, and «fail to bind the port.»
BTW, if you have to add your computer’s IP address to a file, I suggest you make sure it always gets the same IP address. This can be done in your router’s DHCP configuration, by adding a reserved IP address for your computer’s MAC address. Otherwise it will change randomly, depending what other devices you turn on first and whether you had visitors over with their iphones / laptops, and your port forwarding will break. If I reboot my router and turn things on in a different order I can get anywhere from .101 to .108.
This should go outside of the DHCP pool range, so if your router starts assigning addresses at 192.168.1.100, give your computer a reserved address of 192.168.1.90 or something.
BTW this is coming from a networking background not a minecraft server background. I’m saying what this error usually means for other apps. It’s a fairly standard error message, but the minecraft config file you mention I’m not familiar with.
- Coal Miner
- Join Date: 1/20/2011
- Posts: 117
- Member Details
Here’s something you can try:
Open a command prompt as Administrator (right click -> Run as Administrator)
Type netstat -a -b
Wait a while for it to finish, it will take a bit. Look for anything running on port 25565. If you see something, that process is probably conflicting when minecraft server tries to bind that port, giving you that error.
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Coal Miner
- Join Date: 1/20/2011
- Posts: 117
- Member Details
Hmm wonder if I added that somehow? I can’t remember.
Try holding ctrl+shift when you launch the command prompt. That’s a shortcut for running the program as administrator.
If you’re on XP you don’t have to run it as administrator because you probably already have admin privs.
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Coal Miner
- Join Date: 1/20/2011
- Posts: 117
- Member Details
Details time. What is your actual specific version of Windows?
Is it 64-bit or 32-bit?
etc. etc. details etc. details
Pretend someone came to you and told you «I have car trouble how do I fix it». You’d be like «uhhhhh»
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Coal Miner
- Join Date: 1/20/2011
- Posts: 117
- Member Details
You just told me your troubled car runs on gasoline and has wheels. I still know almost nothing about what you are doing and what you have tried.
Which version of Windows 7? Home? I can’t figure out why you would not see the «Run as administrator» option or be able to use the other shortcut to gain admin privilege if you’re using the same OS as I am.
How are you launching? Have you addressed the memory warning by creating a shortcut or a batch file and using the settings it suggests in the error message? Are you running a firewall?
Are you using a router? What is your computer’s internal IP address? What is your network’s external IP address?
Which Java are you using to launch? Have you installed 64-bit Java or are you using the one from «Program Files (x86)»? Figure out what version of Java you have installed, or just go update it for purpose of good measure.
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
ive tried launching it with the .bat and without
i have trend micro titanium internet security
im using a netgear wnd3700 router my internal ip is 192.168.1.150 and my external is 76.116.32.138
i have 64-bit java installed
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Carpenter
- Location: Philadelphia
- Join Date: 1/24/2011
- Posts: 61
- Member Details
- Out of the Water
- Join Date: 3/3/2011
- Posts: 3
- Member Details
OKAY, I THINK I’VE GOT THIS.
If you’re warnings say «[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind
[WARNING] Perhaps a server is already running on that port?»
. Or something like that, what this means is. there is a service already running
I think this should fix it, it worked for me.
If your port is still in fact :25565 and you haven’t fu#$ed with it, this should work
You need to run command prompt (start > run > (type command) cmd > enter
In the command prompt, type the following (with your server NOT running) netstat -a -n -o (make sure to include spaces, and use «o» not «zero»)
You will get a big list of IP addresses. you’re looking for any and all of the ones that have port :25565 next to the IP.
Then, write down the PID number that matches that IP address
Now, ctrl+alt+del to open task manager.
In task manager > click the processes tab > click view (at the top) > select colums > check PID (process identifier) > click Ok
Sort your Processes in Task Manager by PID then kill the PID numbers you had to write down.
Start your server, and all should be well.
***NOTE***
Your ports and all that **** still need to be forwarded, this is AFTER you have done all of that stuff. You will likely need to do this process EVERY TIME you restart your PC.
Let me know if it worked, it worked for me!
- Tree Puncher
- Join Date: 3/1/2011
- Posts: 29
- Member Details
If you just run ‘ipconfig’ or look at your network connection status, does your IP address really say 76.116.32.138, or did you get that from going to ‘whatismyip.com’ or something?
You shouldn’t get a ‘failed to bind port’ error because of a port forwarding situation. (Port forwarding won’t affect your ability to bind a port at all, just outside connections and their ability to send anything to that port.)
If your computer’s IP address is really something like 192.168.0.101, is it possible you should have that in the config instead? Your router’s job is to know that things sent to its public IP (76.116.32.138) on a certain port (25565) get translated (NAT) and forwarded (port forwarding) to your computer at its actual private IP address (gotten from ipconfig.)
I guess this depends what the setting in the config does. If it tells the outside world where to find your minecraft server or something, then I guess it would be the public IP it needs. Though, «failed to bind port» is usually consistent with what I said above, it’s looking for a network adapter with address 76.116.32.138 on your system and not finding one, and thus failing to bind its listener to that port on that address.
The other possible situation is some other process has already bound to that port. You’d get an error like that if you tried to run two different web servers at once on the same port. One would bind port 80 and the other would try to do the same and get a conflict, and «fail to bind the port.»
BTW, if you have to add your computer’s IP address to a file, I suggest you make sure it always gets the same IP address. This can be done in your router’s DHCP configuration, by adding a reserved IP address for your computer’s MAC address. Otherwise it will change randomly, depending what other devices you turn on first and whether you had visitors over with their iphones / laptops, and your port forwarding will break. If I reboot my router and turn things on in a different order I can get anywhere from .101 to .108.
This should go outside of the DHCP pool range, so if your router starts assigning addresses at 192.168.1.100, give your computer a reserved address of 192.168.1.90 or something.
BTW this is coming from a networking background not a minecraft server background. I’m saying what this error usually means for other apps. It’s a fairly standard error message, but the minecraft config file you mention I’m not familiar with.
i changed my ip to static and put that as my server ip and now its working.