Skip to main content



      Home
Home » Newcomers » Newcomers » Export to JAR issues(Can't export running java program into self running java application)
Export to JAR issues [message #1764008] Tue, 23 May 2017 17:55 Go to next message
Eclipse UserFriend
As part of a java training course, I wrote a version of Farkle as my final project and now I'd like to import it out of an IDE so I can pass it around to my friends and peers.

The program is console based and runs fine in Netbeans, Eclipse, and 2 online sandboxes. In Ecliplse it runs and exports into .JAR with warnings (all that scan.in never gets closed), but from what I understand, it still should export.

When I export in either Netbeans or Eclipse, it makes the JAR file. When I launch the JAR, there is a few second delay ending with the following error:

The Java JAR file "Farkle.jar" cound not be launched. Check the Console for possible error messages. (I can't make heads or tails from anything in the Console).

Like I said, the program is Console based, so I don't know if that's the issue. And the only thing I import is java.util.* so I can't imagine libraries being an issue.

Since the program runs in these IDE's, I'm suspecting that maybe I'm missing something obvious in the export process?

My launch config makes sense: Farkle - Farkle (the project is Farkle and the class with main is also called Farkle.java. And I've tried the top 2 library handling options (Extract required libraries and Package required libraries).

Besides that I'm completely stumped on getting my game out of an IDE and into a free standing application.

Any thoughts?

Thanks,
core
Re: Export to JAR issues [message #1764010 is a reply to message #1764008] Tue, 23 May 2017 18:28 Go to previous messageGo to next message
Eclipse UserFriend
Corey Saines wrote on Tue, 23 May 2017 17:55
I can't make heads or tails from anything in the Console

Maybe someone here can. Share those details.
Re: Export to JAR issues [message #1764061 is a reply to message #1764010] Wed, 24 May 2017 09:28 Go to previous messageGo to next message
Eclipse UserFriend
So I cleared the console log, re-ran the JAR and here are the results. Half of them appeared during the lag between double clicking the JAR and the error message. The other half followed the error message.

5/24/17 7:24:44.417 AM ApplicationManager[30604]: [EventWatchFile] open(/Users/csaines/Library/Application Support/Google/Chrome/(null)/Preferences) has failed: No such file or directory
5/24/17 7:24:44.436 AM com.apple.xpc.launchd[1]: (com.apple.ReportCrash[30610]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
5/24/17 7:24:44.830 AM com.apple.xpc.launchd[1]: (com.spigot.ApplicationManager[30604]) Service exited due to signal: Trace/BPT trap: 5
5/24/17 7:24:44.830 AM com.apple.xpc.launchd[1]: (com.spigot.ApplicationManager) Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
5/24/17 7:24:44.881 AM ReportCrash[30610]: Saved crash report for ApplicationManager[30604] version 1.1 (1.1.18) to /Users/csaines/Library/Logs/DiagnosticReports/ApplicationManager_2017-05-24-072444_EGSD-CSaines-2.crash
5/24/17 7:24:44.883 AM ReportCrash[30610]: Removing excessive log: file:///Users/csaines/Library/Logs/DiagnosticReports/ApplicationManager_2017-05-24-072116_EGSD-CSaines-2.crash
5/24/17 7:24:54.954 AM ApplicationManager[30611]: [EventWatchFile] open(/Users/csaines/Library/Application Support/Google/Chrome/(null)/Preferences) has failed: No such file or directory
5/24/17 7:24:55.391 AM com.apple.xpc.launchd[1]: (com.spigot.ApplicationManager[30611]) Service exited due to signal: Trace/BPT trap: 5
5/24/17 7:24:55.391 AM com.apple.xpc.launchd[1]: (com.spigot.ApplicationManager) Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
5/24/17 7:24:55.398 AM ReportCrash[30610]: Saved crash report for ApplicationManager[30611] version 1.1 (1.1.18) to /Users/csaines/Library/Logs/DiagnosticReports/ApplicationManager_2017-05-24-072455_EGSD-CSaines-2.crash
5/24/17 7:24:55.399 AM ReportCrash[30610]: Removing excessive log: file:///Users/csaines/Library/Logs/DiagnosticReports/ApplicationManager_2017-05-24-072126_EGSD-CSaines-2.crash


BTW, I'm on a MacBook Air, OS X 10.10.5...if anyone cares....
Re: Export to JAR issues [message #1764087 is a reply to message #1764061] Wed, 24 May 2017 12:06 Go to previous messageGo to next message
Eclipse UserFriend
I exported a simple gui program that I downloaded from a book's resources, suggesting that it's my program that's the problem. Yet my program runs fine in netbeans, eclipse, and every other online sandbox I've tried, so I don't understand why it won't work as an exported JAR. What other information I can upload? Would you guys want to see my whole program and if so, how would I upload it. It's made up of one main class and 3 support classes. Or, are there any classic issues that I could look for in my program?
Re: Export to JAR issues [message #1764170 is a reply to message #1764087] Fri, 26 May 2017 06:35 Go to previous message
Eclipse UserFriend
Exactly how are you trying to launch the jar once you export it?
Previous Topic:ECLIPSE NEON INTERNET CONNECTION PROBLEM
Next Topic:Eclipse library issue on Linux
Goto Forum:
  


Current Time: Tue Mar 25 00:46:22 EDT 2025

Powered by FUDForum. Page generated in 0.08623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top