Previous Thread
Next Thread
Print Thread
#123403 04/04/24 08:25 PM
Joined: May 1999
Posts: 613
Likes: 1
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
I want to convert an Apple 2 .nib file to .dsk image format. Apparently AppleCommander (look here) can do that.

When I try to run it on my Mac (running macOS 14.4.1 with Java 15 installed) I get the following error:
Code
***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4918)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.SWT.error(SWT.java:4804)
	at org.eclipse.swt.widgets.Display.error(Display.java:1209)
	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:960)
	at org.eclipse.swt.widgets.Display.create(Display.java:944)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:132)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:798)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:789)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.launch(SwtAppleCommander.java:74)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.main(SwtAppleCommander.java:65)
	... 8 more
Does somebody have experience with AppleCommander on macOS?

Joined: Feb 2004
Posts: 2,561
Likes: 263
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,561
Likes: 263
Have you tried doing what the first line you pasted suggests?

Joined: May 1999
Posts: 613
Likes: 1
Carbon Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 613
Likes: 1
I did now:
Code
╰─ java -jar -XstartOnFirstThread AppleCommander.jar                                                                         ─╯
java.lang.ArrayIndexOutOfBoundsException: Index 110 out of bounds for length 16
	at com.webcodepro.applecommander.storage.physical.NibbleOrder.readSector(NibbleOrder.java:100)
	at com.webcodepro.applecommander.storage.Disk.readSector(Disk.java:564)
	at com.webcodepro.applecommander.storage.os.dos33.DosFormatDisk.getFiles(DosFormatDisk.java:158)
	at com.webcodepro.applecommander.ui.swt.DiskExplorerTab.createFilesTab(DiskExplorerTab.java:237)
	at com.webcodepro.applecommander.ui.swt.DiskExplorerTab.<init>(DiskExplorerTab.java:131)
	at com.webcodepro.applecommander.ui.swt.DiskWindow.open(DiskWindow.java:88)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.open(SwtAppleCommander.java:92)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.openFile(SwtAppleCommander.java:203)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander$2.widgetSelected(SwtAppleCommander.java:285)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4646)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1547)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1532)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1325)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4413)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3989)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.launch(SwtAppleCommander.java:113)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.launch(SwtAppleCommander.java:81)
	at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.main(SwtAppleCommander.java:65)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
But it seems to work now, nonetheless. Thanks.

Last edited by Carbon; 04/05/24 07:01 AM.

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (anoid, AJR, Dorando), 58 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,293
Posts121,521
Members5,067
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com