So I have had minecraft for a few years on my computer, I havn't had the internet for a few months, and minecraft was working, then when the internet turned back on, my launcher opens up, the Mojang ad pops up, and then it goes back to the log in page. Raptr and Twitch.tv have today announced a new partnership. Starting today, those with a free Raptr account and Twitch channel will be able to use Raptr's desktop app for game streaming. This will make it easier and more affordable to stream content via PC.
Active3 months ago
I can't open or run my .jar file.
I just installed java, but I tried to open the .jar with other programs first, so the double-click defaults to something else and I can't change it back.
Above command returns:
'java' is not recognized as an internal or external command, operable program or batch file.
Is there a way I can still open/run this?
e: OS is Windows 8.
Also, I downloaded the .jar file; didn't create it myself (if that's relevant)Not sure if it contains an executable (but I think it does).
5377037
8,0641212 gold badges3232 silver badges6363 bronze badges
nivk
![]()
32011 gold badge33 silver badges1414 bronze badges
15 Answers
you can use the command prompt:
Hope it works for you.
RiggsRiggs
There are two different types of Java to download: The JDK, which is used to write Java programs, and the RE (runtime environment), which is used to actually run Java programs. Are you sure that you installed the RE instead of the SDK?
KevinKevin
6,0481313 gold badges5454 silver badges9999 bronze badges
Use cmd prompt and type
To run your jar file.
for more information refer to this link it describes how to properly open the jar file.https://superuser.com/questions/745112/how-do-i-run-a-jar-file-without-installing-java
CredozCredoz
In cmd you can use the following:
However, you need to create you .jar file on your project if you use Netbeans. How just go to Run ->Clean and Build Project(your project name)
Also make sure you project properties Build->Packing has a yourFile.jarand check Build JAR after Compiling check Copy Depentent Libraries
Warning: Make sure your Environmental variables for Java are properly set.
Old way to compile and run a Java File from the command prompt (cmd)
I hope this info help.
Jonathan Caceres RomeroJonathan Caceres Romero
I was having this same issue for both Windows 8 and Windows Server 2012 configurations.I had installed the latest version of JDK Java 7 and had set my
**JAVA_HOME** system env variable to the jre folder: *C:Program Files (x86)Javajre7* I also added the bin folder to my **Path** system env variable: *%JAVA_HOME%bin *
But I was still having problems with double clicking the executable jar files. I found another system env variable
OPENDS_JAVA_ARGS that can be used to set the optional properties for javaw.exe. So I added this variable and set it to: -jar
Now I am able to run the executable jar files when double clicking them.
Barbara MooreBarbara Moore
In Netbeans please delete current you create the jar file and on the project explore of Netbeans please clean and build 2 or 3 times and right the project folder in project explore and build the jar file.
Thomaskutty Baby EranakulamThomaskutty Baby Eranakulam
Go to your java directory,Copy this pathC:Program FilesJavajdk1.8.0_40bin
Right click on my computer , click properties, then go to 'Advanced system settings'click , Environment variables.go to 'System variables' table, find an entry named 'path'.Double click it and go to the end, put a semicolon and paste your path, apply and ok.It should run now.
Shantanu SrivastavaShantanu Srivastava
first of all, we have to make sure that you have downloaded and installed the JDK.In order to download it click on the following link
(Do not forget to check 'Accept License Agreement', before you choose the version you want to download)
For Windows OS 32-Bit (x86) choose 'jdk-8u77-windows-i586.exe'
For Windows OS 64-Bit (x64) choose 'jdk-8u77-windows-x64.exe'
Install the file that is going to be downloaded. During the installation, pay attention, because you have to keep the installation path.
When you have done so, the last thing to do, is to define two 'Environment Variables'.
The first 'Environmental Variable' name should be:
JAVA_HOME and its value should be the installation path
(for example:
C:Program FilesJavajdk1.8.0_77 )
The second 'Environmental Variable' name should be:
JRE_HOME and its value should be the installation path
(for example
C:Program FilesJavajre8 )
As soon as you have defined the Environment Variables, you can go to command prompt (cdm) and run from every path your preferred 'java.exe' commands. Your command line can now recognize your 'java.exe' commands.
:)
P.S.: In order to define 'Environment Variable', make a right click on 'This PC' and select 'properties' from the menu. Then the 'System' window will appear and you have to click on 'Advanced system settings'. As a consequence 'System properties' window shows. Select the 'Advanced' tab and click on 'Environment Variables' button. You can now define the aforementioned variables and you're done
Origamer7Origamer7
You must create a Haroldo Gondim
manifest file and specify your class that has the main method. you can build your jar file with manifest file as a parameter.
3,73099 gold badges3131 silver badges5353 bronze badges
metinmetin
An easy way to execute .jar files is to create a batch file.
Let's say you placed your jar file on your Desktop;
Copy this code to a .txt file, modify 'YourName' and save as 'myjar.bat'. Then whenever you double click, the jar file will be executed.Hope this helps.
Berk SoysalBerk Soysal
You may have several JDKs installed in your PC. Some older JDK installers also copy some java files such as
java.exe , javaw.exe into C:WindowsSystem32 folder.
I had a similar issue, and searched the internet for a solution and none of the suggestions didn’t not open by double clicking the
.jar file.
In my case the reason is I have multiple JDK & JRE versions installed on my computer. Since I am a software developer working with several different versions for different clients I need to use multiple JDKs in my PC (Windows 10 Pro). So I do not want to change the system variables (i.e.
JAVA_HOME , JRE_HOME or PATH ), instead I use command prompt to run java in user process whenever I wanted to use a different version.
When installing JDK it registers the
.jar file association with latest version we installed in the PC. If you right click on the .jar icon and select properties, it will show that file opens with “Java(TM) Platform SE Binary”. If we look at the registry key: HKEY_CLASSES_ROOTjarfileshellopencommand , it will point to latest JDK version.
It is not a good idea (sometimes annoying) to change the registry key every time I want to run an app build from a different version.
So in my situation it is impossible to just double click the
.jar file to execute it. But instead I found a work around solution myself.
Scenario:
Multiple JDKs (1.7, 1.8, 9.0, 10.0, 11.0, and 12.0)are installed in the PC, so the latest installed was 12.0.
Problem
Want to double click an executable
.jar developed using JDK 1.8 and didn’t work
This is my work around solution:
It should now open the app.
DushDush
Short trick: after I only REMOVED SPACES from names of the folders, where the .jar file was, double-clicked worked and the file executed.
FilipppFilippp
I had this problem a while back and the solution was really easy.
Just uninstall the current version of
Java , download an older one, then uninstall the older and install the latest again.
Twitch Desktop App For Windows 10
For example:
Java 8 Update 73 current install Java 7 Update 95.
How it works: estani
Java 's registry keys were messed up, and when you install the older version they get fixed.
10.6k22 gold badges5050 silver badges4040 bronze badges
Twitch Desktop App Curse![]()
TeodorTeodor
If the intention of the question is to view the contents of the JAR file, then the following java command would help.. (provided, JDK location is added to the environment variables.)
Windows Command prompt>jar tvf yourJarFile.jar
Reference: http://docs.oracle.com/javase/tutorial/deployment/jar/view.html
Santosh Kumar ArjunanSantosh Kumar Arjunan
I downloaded the latest JDK 7u10. Once you do that, try running your jar, It should execute.
Brian
2,50944 gold badges2121 silver badges4444 bronze badges
ArjunArjun
protected by Community♦Jun 9 '18 at 9:17Twitch
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged javawindowswindows-8jar or ask your own question.
Posted by2 years ago
Archived
Java Isnt Working In Twitch Desktop App For Mac Free
Hey guys, I recently downloaded the twitch launcher to play the farming valley modpack. I played it for one day but when I went to play it the next day, the launcher no longer worked. It says that I don't have java, but I just installed java a few days ago. I have tried installing java again, installing the newest version of java, restarting the twitch app, and restarting my computer. None of this has worked. If anyone has any advice on how to fix this, I would appreciate it. Thanks.
4 comments
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |