JInternalFrame not opening in JAR file, but works when not in JAR

I have a folder that contains multiple .class files. I make all the class files into one jar file with this command:
jar cmf mainClass.txt myapplication.jar *.class
The mainClass.txt contains the following:
Main-Class: myapplication
class-path: myapplication.jar
The myapplication.class opens up a JDesktopPane inside a JFrame. It also contains a start menu, which again has elements that opens up misc JInternalFrames inside the JDesktopPane. The problem is this:
When I run the application from a .bat file, everything works fine. However, after making the JAR Executable file, everything works except 1 JInternalFrame. Now, the code for this JInternalFrame is far too much to post, so I'll have to ask as follows;
Are there any reason why a JInternalFrame would not work from inside a JAR Executable, but work when not in the JAR file? Especially when other JInternalFrames are working? What can make 1 JInternalFrame different from the others in this regard?

Perhaps the problem lies somewhere else.
Obviously if other JInternalFrames are working then there is a difference in the one missing internal frame that causes it not to show up.
My guess is that perhaps you are missing one or two classes in your JAR that are used by that JInternalFrame and that an exception is being thrown causing it not to show.
Double check the contents of your JAR and make sure that all the classes are present and that they are the right versions.

Similar Messages

  • I just installed CC Lr 5.5 and it will not open on my laptop but works fine on my desktop.

    I just installed CC Lr 5.5 and it will not open on my laptop, but works fine on my desktop.

    Try this:
    https://helpx.adobe.com/lightroom/kb/unable-launch-lightroom-55.html

  • HT3775 Quicktime is not opening my Mp4 files and I do not know why? Any suggestions?

    Quicktime will not open my mp4 files and I do not know why. ANy suggestions? it happened after I upgraded to IOS 6. Not sure what to do. VLC program will open them but not Quicktime. I can't get them into Itunes either. Thanks!

    Quicktime will not open my mp4 files and I do not know why. ANy suggestions? it happened after I upgraded to IOS 6. Not sure what to do. VLC program will open them but not Quicktime. I can't get them into Itunes either. Thanks!

  • I am trying to open my Nightmare 2.jar file but java will not open. It says check console for error messages but there appears to be none. I have the latest version of java and I have both the 64 bit and 34 bit se6 set to the top of the list.

    Just like in the title of this discussion the file will not open. Any suggestions? That would be grrreat.

    Hi,
    The D810 requires Camera Raw 8.6 or later - the latest version that is compatible with Photoshop Elements 12 is Camera Raw 8.5 as far as I can see.
    You need to either buy a new version of Photoshop Elements or use the free Adobe DNG converter.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • Loadjava resolves jar file but classes are not showing up in user_objects

    Hello, oracle noob here,
    I'm loading a vendor's jar file in oracle with loadjava with the -v -f -r flags and the classes I need and I see them either getting resolved or skipped:
    c:\loadjava -r -f -v -genmissing -u "uid/pwd@mydbatrain" ekahau-engine-sdk.jar
    resolving: class com/ekahau/common/sdk/EConnection
    skipping : class com/ekahau/common/sdk/EErrorCodes
    skipping : class com/ekahau/common/sdk/EException
    skipping : class com/ekahau/common/sdk/EMsg
    Classes Loaded: 114
    Resources Loaded: 1
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0 Thinking everything went well I ran my routine to call EConnection but I get a NoClassDefFoundError on that call, which tells me that the aurora JVM can't find the class.
    After chasing my tail with the server's CLASSPATH, it dawns on me that it should already be in the user_objects table since loadjava should have put it in there.
    But when I query user_objects to see if EConnection is in there,
    SQL> column object_name format a30
    SQL> column object_type format a20
    SQL> select object_name,object_type, status from user_objects where object_name like '%ekahau%';
    OBJECT_NAME OBJECT_TYPE STATUS
    com/ekahau/common/sdk/EMsg JAVA CLASS VALID
    com/ekahau/common/sdk/IMsg JAVA CLASS VALID
    com/ekahau/engine/sdk/Asset JAVA CLASS VALID
    com/ekahau/engine/sdk/Device JAVA CLASS VALID
    com/ekahau/engine/sdk/Event JAVA CLASS VALID
    com/ekahau/engine/sdk/Location JAVA CLASS VALID
    com/ekahau/engine/sdk/Model JAVA CLASS VALID
    com/ekahau/engine/sdk/ModelMap JAVA CLASS VALID
    com/ekahau/engine/sdk/TagMenu JAVA CLASS VALID
    9 rows selected.
    SQL> It's not there along with 104 other class I thought it loaded
    I picked up the idea of running java inside oracle from an OCP and I can run a simple isolated java program myself and even make database calls.
    But it seems I didn't get all the knowledge i need when it comes to loadjava and getting a jar files classes into user_objects to be useful.
    Can anyone help an oracle noob with loadjava?

    Thank you, Gary.
    I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with?  Unless it is using whatever is installed on my machine, in which case would be the thin driver.
    I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
    I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information.  We are using an ID that does not 'own' those tables, per se.  But, why would DBVisualizer show these tables, when OSD does not?

  • Open new jframe doesn't work when put into jar

    I cant get my program to open up a new frame. When i run my program from netbeans it works fine but when i put it into an executable jar it doesn't work. I have three frames, Main, About and SelectLanguage. From Main i can create a new instance of this from this window but it wont open either of the other two. This is the code i use for all three. Please help.
    new About().show();please help.
    clarkie

    well, if that's the code you use for all three, and
    they are different classes, maybe you should call the
    right class name?
    The code you posted isn't helpful, and I can't begin
    to guess what you're doing wrong.nah, i use
    new Main().show();
    new About().show();
    new SelectLanguage().show();also, i get this error:
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    at About.initComponents(About.java:29)
    at About.<init>(About.java:15)
    at Main.aboutMenuItemActionPerformed(Main.java:409)
    at Main.access$2200(Main.java:19)
    at Main$22.actionPerformed(Main.java:344)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
    d(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • My iPad mail will not open.  Have restarted, but still will not open

    My ipad 2 mail will not open.  Touch mail, it moves to mail for a couple seconds then jumps back to main menu...  Have restarted and reset, but does not change anything.
    Bob

    Close the mail app and reset your iPad.
    Closing apps in iOS 7 works like this. Drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that doesn't work, you might want to consider deleting the account and adding it back in - or going into your account on a computer - using webmail - and look for an email that has a large attachment that might be causing problems and causing the mail app to crash.

  • Lightroom 5.3 will not open my A7r files but PS 6 will? Can anyone help?

    I installed LR 5 from disc, then updated tp 5.2, and 5.3.  It still says my Sony A7r file can not be read.  However, my PS 6 opens the file from the sme card.  Any help will be GREATLY appreciated!!
    Sincerely,
    Greg

    The "files cannot be read" message when you import means the DESTINATION specified in the upper-right of the Import panel is not writable by LR, so check where the files are supposedly being copied to.
    The error occurs because the copy-function is unable to copy the files, then the import-function cannot read the files because they don't exist.
    It would be more helpful if the error was given by the copy-function, saying that the files cannot be written, but it's been this way for many versions, now, and Adobe doesn't change it.

  • I try to open a PDF file but it will not. What can i use to read a PDF file.

    What can i use to read a PDF.

    1. Install free Adobe Reader App.
    2. Hold down attachment and "Open In" Adobe Reader
    http://i1224.photobucket.com/albums/ee374/Diavonex/fb20a68a.jpg

  • How to use deafult pdf viewer ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ?

    please tell me how to use default pdf reader in firefox ? when i give windows in my pc pdf file open in firefox deafultly but suddenly its not working how to fix this ? pdf not open when i give ok with preview in firefox its not open its offer again same message

    In order to change the default pdf reader please see: [[View PDF files in Firefox without downloading them]]
    In order to change the file association: [[Applications panel - Set how Firefox handles different types of files]]

  • Double click on jar file but does not launch

    My PC has windows7 operating system
    The jar file was working fine, everytime I double click it would launch, no problems
    Somehow the .jar file association was changed to open with winrar so now when I double click it does not launch and run like before, winrar opens it
    How can I change the file association back to java?
    Regards
    Edited by: muddy777 on Jan 9, 2010 9:42 PM
    Edited by: muddy777 on Jan 9, 2010 10:14 PM

    muddy777 wrote:
    I understand
    I know how to do this in windows xp but in windwos7 there is no way to enter " -jar "%1" %*
    I can only browse to where javaw.exe is located and select itI can't help you specifically, but found this using Google. [http://www.winvistaclub.com/t19.html]

  • Can only open firefox as admin, otherwise get error to say a security component could not be initilaised. Have tried deleted cert8 file but it is not recreated and still will not open

    Had problems with os and now can not open firefox unless I run as admin. Error appears - Could not initialise the application's security component. The most probable cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard drive is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behaviour when accessing security features.
    I have tried deleting the cert8 db file but it is not recreated when I start firefox again. HD has lots of room. Can you suggest anything else to try please?
    thanks, mandi

    If deleting or otherwise removing the cert8.db and secmod.db file doesn't help then try a new profile.
    *https://support.mozilla.org/kb/Could+not+initialize+the+browser+security+component
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • I want to edit my raw images on cs5 photoshop.  But when I go to open the .CR2 file it says  '' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please visit

    I want to edit my raw images on cs5 photoshop.  But when I go to open the .CR2 file it says 
    '' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please visit the Camera Raw help documentation for additional information.  '' 
    When I go to updates in photoshop help i try to update photoshop and photoshop camera raw but it then says 
    '' Updates could not be applied the error log file may help you in identifying the problem. Then, try updating again. If the problems persist, contact customer support for further assistance. 
    Photoshop Camera Raw 8.7.1(CS6) There was an error installing this update. Please quit and try again later. Error Code: U44M1I216 ''  
    I dont know how to get around this please help

    CR2 files from which Canon camera?
    Supported cameras are listed here
    Camera Raw plug-in | Supported cameras

  • I saved my Form Central spreadsheet file once as a excel file but it will not allow me to save it a second time as an excel file.  It says that I cannot complete this action because the file me be open in another application, but it is not open in another

    I saved my Form Central spreadsheet file once as a excel file but Forms Central will not allow me to save the file a second time as an excel file.  I am informed that I cannot complete this action because the file me be open in another application, but it is not open in another application. What is the problem, and how do I solve the problem.  Thank you. Jeff

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

Maybe you are looking for