Pinning a Java application to the Windows 7 taskbar

I don’t have Windows 7 but here is something that might get you started: On the Java side: package com.stackoverflow.homework; public class MyApplication { static native boolean setAppUserModelID(); static { System.loadLibrary(“MyApplicationJNI”); setAppUserModelID(); } } And on the native side, in the source code of the `MyApplicationJNI.dll library: JNIEXPORT jboolean JNICALL Java_com_stackoverflow_homework_MyApplication_setAppUserModelID(JNIEnv* env) { LPCWSTR id … Read more

What’s the best way to start Java applications on Windows 7?

Try Launch4j (http://launch4j.sourceforge.net/), its a simple jar to exe wrapper (actually wrapping the jar is optional). It should solve your Icon and Taskbar requirements. Its also capable locating installed JRE’s (some configurable rules). The font problem I don’t quite get, Swing should automatically use fonts depending on Windows settings, unless you somehow overwrite that in … Read more

tech