Wondering if anyone can tell me why trying to open a .jar file with Win7 Explorer ("Open With" C:\Windows\explorer.exe) would cause the computer to continually create (over 200+ in a couple seconds) explorer processes?
Thanks!
Maybe do you want to view the contents of the jar? Take a look to this page. Or try with what is written on this page if you want to execute the jar without the command shell.
EDIT:
The problem of windows explorer is described in this page and in this too.
I'm wondering why you are trying to open a jar file using Windows Explorer...change the properties...set it to run with java.exe....everything should be fine...and coming to the 200+ question...unless it is a virus or something, it should not behave in such a way...strange to see that happen....try opening other jars in a similar way...you'll get to know the problem and the eventual solution...
Had the same problem with opening JAR files.
From here(thanks Alberto Solano):https://social.technet.microsoft.com/Forums/windows/en-US/9237ca68-645c-4718-9a51-24788f312c4b/windows-7-hangs-when-opening-a-file-with-explorerexe?forum=w7itproperf
This works(thanks MVied):
Run Registry Editor
Browse to \HKEY_USERS\S-1-5-21-(random numbers with dashes)\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts(whatever file extension is broken, i.e. '.jpg')\
Delete the folder called 'UserChoice'
Related
For my college project, I created a MapGenerator to create maps for the project. It is a group project, so I converted my .java files to .exe using Launch4J.
I then shared it to my friends using Google Drive. But then, while downloading, my friends said that Google said that the download is potentially dangerous. They just selected "Keep" and continued the download. The problem came when Windows doesn't let them to run that app at all. We know it's a safe application and does nothing wrong other than creating .csv files.
So, is there any way to assure Windows that this is a safe application and allow it to run the application?
PS: I use IntelliJ without gradle or maven, just IntelliJ (if this is a necessary info)
You can select the exe you want to run --> Click properties --> Under the general tab beside the security option --> check the unblock. Then it should definitely run
To have your exe like other software , you have to get your exe signed but I don't know how to do it. The solution I gave is a duct tape glue solution and I thought it would help.
You can check this link for more info:-
Signing a Windows EXE file
Every time I try to save a.jar file for my programming course and it doesn't open, and yes I save the META.MF whit the correct path, I even stop making them on the Terminal and use Net Beans but same problem Error: Could not find or load main class a3t8e1.A3T8e1 maybe I need to download something else.
I search on the internet and download the jar launcher but nothing better.
this is the .jar unpacked
Please try to right click the .jar file and click the Get Info. Under the Open with, select the Jar Launcher.app. After that, try to reopen your related .jar file.
I've created a very simple RCP application (essentially just a default view).
I then created a product file and Exported the product (as many online guides have demonstrated). However when I run the .exe file a java console is shown alongside my application splash screen. Is this normal behaviour? (I wasn't expecting a console to show as it's been exported/deployed).
Current research suggests I should:
run with javaw.exe
use another installer
Any further insight or advice would be appreciated.
Look in the .product file at the 'Program Arguments' (on the 'Launching' tab in the editor). Remove the '-consoleLog' argument.
I have a very strange problem, that I can't figure out, the thing is that my aplication runs perfectly on the IDE (Eclipse), but not when exported, when I run the jar (double click) the aplication start but some functionality is missing (loading from a template file, but this does not happend when loading from a normal file), when I try to run it from console (java - jar my.jar) in order to see any error message it turns out that my aplication works perfectly fine! :S ...
Some more info:
My app is running over windows 7
I start the task manager, and I noticed that when I start my aplication using double click its under the name java.exe *32, and when I do it from command line its under the name java.exe (without "*32"), as far as I know I programmed nothing related to a 32 or 64 bits functionallity.
"Solved"
Well I was not able to solve it the way I wanted, as far as I was able to find, i found that there were a problem between the 2 java versions I was running x32 & x64, I deleted the 32 bit version and it start working as a charm, but I'm still not sure about what happend, I give my thanks to #Sajal Dutta one of its comments help me to understand part of the problem, thanks to all of you anyway, I'll keep searching until I find the problem...
When you create a jar from Eclipse, your assets don't get copied over to jar or location is not preserved. Open the jar and check if you have your templates in the right location or you have it at all.
To have the exported jar include your assets/resources-
Right click on your project in Eclipse. Then New -> Source Folder.
Name the source folder anything. e.g. template_src.
Copy or drag the entire directory of your template to template_src. Then make the jar.
Since it works via the command line but not when double-clicking the jar, it is likely that the working directory is different (and that you're loading the template with a relative path). When you run an executable jar by double-clicking, on some operating systems, the working directory is the home directory whereas when you run from the command line, it's the directory you're currently in.
The "files" in the jar are not handled by File, but are resources;
URL url = getClass().getResource("...");
InputStream in = getClass().getResourceAsStream("...");
Then, the file paths inside a jar, or on a non-Windows platform are case-sensitive.
"Template_A.xml"
is not
"template_a.xml"
Also you might inspect the jar with 7zip or WinZip.
So, when I double click a file in windows explorer, Intellij fires up, but instead of just showing me the file I want to see, shows up the following message:
I think I get what it means: it means this given .java file isn't associated with an Intellij project.
That's actually true, but even so I'd like to be able to open the file and see it with syntax highlighting and such.
How to overcome this problem?
Thanks
It's a known limitation which we plan to address in the future versions to allow opening and editing individual files without project context.
Please watch/vote the related issue.
I don't think you can'tcan by default. I'm assuming you are opening downloaded files or such. What I would is create a project (Scrapbook for example is a good name) on desktop and I would put/download the file I want to see in the corresponding src folder. That way when I'm clicking it would open properly.
Most of the syntax highlight and such goodness of idea comes from a proper project setup (proper JDK paths, libraries, etc).