I am trying to make a .exe file from a .jar file, and it is working fine. My only problem is that when trying to run it on another computer that I didn't make it on, Windows SmartScreen says it's an unknown app and blocks it from running. I am running Windows 10. Any ideas?
Thanks!
Related
How can I find the Jar File that my Program is running from, when it is being packed using jpackage (as a URI, URL or File)? I could easily do this on Windows because I know where it is going to be installed, but I would like to make this work on all platforms (Windows, Linux and MacOS). I am unable to experiment with this since I don't have a Mac nor a Linux Machine.
I want to be able to update my Application before/after starting it.
Thanks!
I have created a java program (in Eclipse). I have successfully compiled it to a .jar file which I can run on windows without any problems. I want to give this program to a friend who has a MacOSX. So my aim is to:
Create a file which can be run on MacOSX
The twist is that I have to configure it on my Windows computer since I don't have access to a Mac. Any advice would be of great help!
I am not sure what you are referring as "create a file which can be run on macOSX"
If you want to run on any OS you just need a JRE on that particular system without it you cant run. It will provide a runtime environment to run a jar file. Then use below command to run the jar.
java -jar Myjar_file.jar
I have an exe and with java I need to make it starts at Windows Startup.I tried copying the exe in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp but I don't know if it is correct. What is the code to do that?
I'm having issues running a jar file I compiled from an eclipse project. I'm fairly new to Java so I'm likely missing something simple.
When I run the jar file from the command line:
javaw -jar test1.jar
the program runs fine. But when I double click the jar it doesn't run. I believe the issue has to do with 32 bit versus 64 bit java (double clicking the jar file opens the "javaw.exe *32" process whereas running from the command line opens "javaw.exe"). I'm using the swing GUI libraries, if that makes a difference.
Is that the issue?
Is there a way to make eclipse export a .jar file that will be compatible with "javaw.exe *32"?
Thanks.
EDIT:
I figured out the error was related to using generics with JList, which is only supported in Java 7. Double clicking the .jar was running a 32-bit version of Java 6, which is what was throwing the error. Thanks for the help guys
We have a Java-JNI application that runs fine on Windows XP, and Windows 7.
When I try to run it on Windows 8 I basically get a cannot create file error.
If I point the file to be created in the Users/documents folder the application works.
If I point the file to be created in a C:\Tests folder or the Program Files (X86)/application folder it fails.
Similarly If I try to shell an application from the Program Files (X86)/application folder it fails.
It seems that using java on Windows 8 or Windows 8.1 has some file/folder creation restrictions.
Any suggestions. We do not want to migrate the entire application to a users folder at this time.
Thanks, Don