目前没有任何东西(甚至不是java咖啡杯)出现。
我使用lein new reagent name
创建了我的应用,并且我尝试过这些jvm选项:
java -Xdock:name=Name
-Xdock:icon=/Users/bmaddy/Downloads/logo.jpg
-Dapple.awt.UIElement=true
-Djava.awt.headless=false
-jar name.jar
答案 0 :(得分:1)
为什么不使用Java互操作? 在这个SO post问题之后:
private Flight[] flight = new Flight[10];
flight[0] = new Flight("AA101", "Boston", "Sacremento", 421.33, 22, 6);
flight[1] = new Flight("AA102", "Lincolin", Jacksonville, 612.08, 22 6);
flight[2] = new Flight("AA103", "Rochester", "Columbia", 510.83, 22, 6);
flight[3] = new Flight("AA104", "Boise", "Aspen", 411.12, 22, 6);
flight[4] = new Flight("AA105", "Fort Collins", "Louiseville", 654.22, 22, 6);
flight{5} = new Flight("AA106", "Seattle", "Dallas" 326.14, 22, 6);
flight{6} = new Flight("AA107", "Phoenix", "Little Rock", 974.22, 22, 6);
flight[7] = new Flight("AA108", "Cheyenne", "Louiseville", 521.43 , 22, 6);
flight[8] = new Flight("AA109", "Louiseville", "Buffalo", 452.21, 22, 6);
flight[9] = new Flight("AA100", "Anchorage" , "Tampa", 874.72, 22, 6);
答案 1 :(得分:0)
事实证明,仅使用Seesaw会出现使停靠图标出现的内容。这足以满足我的需要。
(ns name.server
(:use seesaw.core)
我试过的其他东西:
这里描述的automator方法只给出了启动应用程序的图标,并且它在运行时没有留下来: https://discussions.apple.com/thread/4805123
这里有一些好主意,但我无法让它们中的任何一个起作用:https://apple.stackexchange.com/questions/191609/how-to-create-a-app-folder-from-an-executable-jar
从头开始构建一个.app
包导致了一堆我无法解决的LSOpenURLsWithRole() failed with error -10810
错误,但这似乎是最正确的方法。