Note that there are some explanatory texts on larger screens.

plurals
  1. POJar Distributable Not working
    primarykey
    data
    text
    <p>I've developed an app using DropboxAPI in Netbeans and i'm using Swing to build a GUI.</p> <p>The app works fine if I run it from IDE but when after I clean&amp;build it, the .jar file in /dist won't open at all.</p> <p>So I've opened my command line and I've got this error</p> <pre><code>java -jar "%PATH_TO_MY_APP%\FileTransferSpeedMonitor.jar" Error: An unexpected error occurred while trying to open file %PATH_TO_MY_APP\FileTransferSpeedMonitor.jar </code></pre> <p>So I decided to make multiple searches with different keywords but to no avail. The strangest thing is that when I try to run the .class files that have a static void main method inside them, I get an error that no main method is defined although it works fine from IDE.</p> <p>I'm not sure if the mismatch below is relevant because other swing apps are working fine (ex: Celsius Fahrenheit tutorial), anyways, my app doesn't seem to throw any exceptions or any sign that something is wrong but I need to find out what's causing all this.</p> <pre><code>C:\Users&gt;java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing) </code></pre> <p>and Netbeans 7.3.1</p> <pre><code>Product Version: NetBeans IDE 7.3.1 (Build 201306052037) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 Runtime: Java(TM) SE Runtime Environment 1.7.0_05-b05 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) ... </code></pre> <p>later edit #1 - added manifest.mf data</p> <pre><code>Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.4 Created-By: 1.7.0_05-b05 (Oracle Corporation) Class-Path: lib/dropbox-core-sdk-1.7.5-javadoc.jar lib/dropbox-core-sd k-1.7.5-sources.jar lib/dropbox-core-sdk-1.7.5.jar lib/jackson-core-2 .2.3.jar lib/org-apache-commons-io.jar X-COMMENT : Main-Class will be added automatically by build Main-Class: dbftsm.swing.ExploreDBX </code></pre> <p>later edit #2 - added output from CLI , not making any sense at all</p> <pre><code>%path_to_buld%\dist&gt;java FileTransferSpeedMonitor.jar Error: Could not find or load main class FileTransferSpeedMonitor.jar </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload