I made a java program, exported it from Ecplise as a runnable jar, and then used an app called "Launch4j" to wrap it with an icon into a .exe
This picture shows another app I have on the left. It has 2 instances open and you can see they overlap on the taskbar. My app is the little house, and the two java icons on the right are 2 instances of my app. How can I make my app overlap on the original icon like the other app?
Edit:
Additionally, in task manager, my app opens as "Java(TM) Platform SE Binary" instead of the .exe file as you can see eclipse does.
Thanks!
I'm guessing that windows uses the AppId to determine what buttons to stack on the taskbar.
So you would need to tell windows the AppId, which I don't think is very easy with Launch4j.
Instead you might try Inno Setup, here's a good answer explaining the differences.
Inno Setup should include examples which tell you how to specify your AppId among other things.
Related
I have created an executable file using NetBeans 8.0.2 (the standard JDK), following the instructions on this website about native packaging: https://netbeans.org/kb/docs/java/native_pkg.html.
Now, how do I change the icon of the exe installer file from the standard Java coffee cup, to my own custom icon? (I was able to change the icon that displays in the installed application's top left window, by directly coding the frame's image resource in the source code of my application).
However I want my custom icon to also be displayed on the actual exe installer file, and the installed application's desktop icon. I had the same issue when I tried an MSI file, instead of and EXE file. I tried searching for other solutions, but none of them have worked for me. I even tried Resource Hacker, but that didn't work for me. How do other people achieve this (seemingly simple/straightforward) thing? I would imagine this requirement is in high demand.
Yes, after looking at a quick video demo of InstallBuilder:
https://www.youtube.com/watch?v=wMXWq2b5IxM
I think this is the easiest solution for customising (plus it offers a whole help of features). It looks like a high-end product. HOWEVER, it is pricey - starting at around $500, but they do have a free evaluation download, so I'll start there. There are some other free tools out there, but InstallBuilder seems to be the most user-friendly I've seen so far.
several years I used to come on the bible of coding and I have (maybe) a question rarely asked. First of all thanks to all people which takes time to answer us.
I have a network with a Linux server and some Windows clients. On the server I have to use a Java application (I don't have source code) but it's hard to use it on the server : graphic card drivers are not update then the resolution of the screen is "small" and not expandable. It's a problem because layouts of the app are not dynamics then some important buttons are not displayed (is it so hard to use a JScrollPane ???). And I don't really want to learn how many times I have to use Tab for each hidden button.
Then one solution is to launch the app on a Windows client through MobaXterm. It works well but at one moment a process need a library.
I tried to launch the app by adding the library path of the library, a *.so file, but didn't work.
The question is : a java application installed on Linux and launched through a windows client need *.so or *.dll library ?
Thanks.
Florent
I'm struggling with specifying which one of the many java installations on my Windows 7 machine would be used by the Internet Explorer for (1) running applete as well as (2) for Java web start.
For example, I am going to that Java-View tab in Java Control Panel, change the checkbox there, then make Java Console visible in the advanced tab and then find from the Console header that not always Java which is checked in the Java-View is actually executing applets in my browser.
In Java Control Panel Java-View along with the "User" tab, there is also a "System" tab.
One usually cannot change anything there, but what does that mean, and does it play any role?
In Java Control Panel Advanced tab you see "Default Java for browsers" checkboxes.
Why Microsoft Internet Explorer checkbox there is always checked and always grayed out?
Is this checkbox important or is it Java-View tab screen, which actually affects IE operations?
Also in jre/bin folder of each java instalation I see javacpl.exe file and can execute each of them, but only one of them, I guess, appears in actual computer Control Panel. How do you determine, which of them is really shown and can be executed through my computer Control Panel? Does it make sense to do anything with alternative javacpl.exe executables - will their execution affect my IE java-related functionality.
Basically, I'm in total confusion of how this mechanism works, and wwould very much appreciate if someone could give some clarification on at least some part of the above questions. And I'm mostly talking here about Java 1.6 and Java 1.7, I guess it would be even more difficult if we try to cover in this question also older java versions.
Thanks a lot for any help on this subject.
Regarding your first question
" which one of the many java installations on my Windows 7 machine would be used by the Internet Explorer for (1) running applete as well as (2) for Java web start."
This can be tested by making your applets contain Java 7 features like "Diamond Operator". Compile it by jdk 1.7 and then try to run in browser, if it runs then your browser is using 1.7 else 1.6.
Second ques -
"In Java Control Panel Java-View along with the "User" tab, there is also a "System" tab. One usually cannot change anything there, but what does that mean, and does it play any role?"
Answer- This is my guess that system tab will contain that option which is configured in JAVA_HOME environment variable OR it can that jdk which was installed more recently installed. Because offcourse default can be only one and not two.
Third question -
"In Java Control Panel Advanced tab you see "Default Java for browsers" checkboxes. Why Microsoft Internet Explorer checkbox there is always checked and always grayed out? Is this checkbox important or is it Java-View tab screen, which actually affects IE operations?"
Answer - The option is grayed out because the option is already chosen for you and you need not specify that.
Hope that helps.
My Goal
I want to make it so that, on first run, my program will make its icon appear in the Windows 7 Taskbar. I know that the icon files are shortcuts in C:\Users\USERNAME\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and mostly want to know this:
My Questions
How, in Java, can I create a shortcut file (.lnk)
Is it possible to even access that without admin privileges?
You should not need admin privileges but you do need to do this in context of the user whose taskbar is being changed.
Here's a library which does what you want: http://alumnus.caltech.edu/~jimmc/jshortcut/
There is a Java library providing the new Windows 7 features for Java. It's called J7Goodies by Strix Code. Applications using it can be properly pinned to the Windows 7 taskbar. You can also create your own jump lists, etc.
I have created an executable JAR file for my Java application. If I double-click then it works fine. But I want to create installer for Mac OS, because I cannot give a JAR file to my users. Any suggestions?
Well, all you have to do here is to create a beautiful icon for your app, bundle it to your jar file to make it look more sophisticated, instead of using the default coffee cup icon.
Here is how you can do it:
http://www.centerkey.com/mac/java/
Please read the sessions starting from session 7.
Mac has java by default. And if your users are not technical, it makes no different for them if they are using a mac .exe or not, right?
Just a comment to clear some of this up. Mac applications normally dont have installers. At all. They dont have a registry and normally you just drag the icon (which is actually a folder with the executables in a specific folder structure) into the applications folder. Thats it. Thats why if you have an executable with a nice icon and you put it in a .dmg image file nobody is gonna know the difference.
I'd agree that a jar should be sufficent; but maybe you want to check this (ClickInstall MacOSX 1.0.2) Installer Build Tool for OSX.
The very first hit on Google for "Mac Installer" is the Wikipedia article about the Mac Installer.
You can click through from there to read Apple's Software Delivery Guide. It tells you in exhaustive detail everything you could possibly want to know about this.
Please, for your own good, read up on How To Ask Questions The Smart Way. You'll get much better results that way.
Try jarbundler from http://informagen.com/JarBundler/.
You can create a nice OSX app including icon with it.
Just ship that. The user can drag this app to Application. No explicit installation step
necessary.
I use this for my projects.
Well, if this is what you looking for, How to Create a Mac Installer for Java Application
give a try, many could help.
This works for me: https://github.com/Jorl17/jar2app
For any changes made in code, I just need to move updated jar file in the folder application.app/Content/Java