JAR Executable works in netbeans but not under Dos?

Hi all,
I have created a jar executable and it works fine in netbeans(it was not created in netbeans) but I can't get it to run on the command line. If I type java ClassName.MainClass it will run but not using the command java JarFile.jar or java -jar JarFile.jar
Any help would be most appreciated.

When creating the manifest file did you add a carriage return at the end of the manifest? e.g.
Main-Class:Hello.class
(carriage return here on new line)
I think it runs into problems if you dont add a carriage return ( a new blank line after manifest).
Hope this helps
Riz

Similar Messages

  • Direct URL Working In IE but not with New Domain

    Hey Guys
    Something very weird here.
    This music player for www.arikecansing.com works in Mozilla
    but not IE. The site is being hosted here
    www.tahnaiya.com/clients/arike and that link works in IE but not
    under the other domain www.arikecansing.com Weird huh? Does anyone
    know why this is?
    The playlist.xml file is this but do note that i did change
    the mp3 name so the mp3 cannot be downloaded. This site is for my
    client. I would extremely appreciate any help
    <?xml version="1.0" encoding="utf-8" ?>
    <mp3s>
    <file name="song 1" file="
    http://www.tahnaiya.com/clients/arike/music/everything.mp3"
    />
    </mp3s>
    I did try changing the file to this but it still didn't work
    <?xml version="1.0" encoding="utf-8" ?>
    <mp3s>
    <file name="song 1" file="
    http://www.arikecansing.com/music/everything.mp3"
    />
    </mp3s>

    I am not sure...but have you heard that NS 6/Mozilla are use based on standards. So they dod not support some of the proprietary JS/CSS/Misc functionality of IE or NS 4.0+ versions. You can read more about the JavaScript differences on Netscape's NS6 evangism site. Maybe you are missing something. I think I remember reading something about getElementByID/Name ...

  • Works on emulators but not on mobile devices

    Hello,
    My project works on emulators but not on mobile devices (no image and on Samsung it says "unsupported file").
    Please help, I don't know what to do. My configurations: MIDP 2.1, CLDC 1.1.
    Thanks in advance.
    Edited by: Vitali.pom on Oct 27, 2011 12:01 PM

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • CS6 Plugin works on windows but not mac

    Hi,
    We have been developing a plugin for InDesign since CS3 and have recently ported it to CS6 (it was ported to all previous versions too, as they came out).
    I followed the porting guide etc. and on windows it compiles and runs just ok - the plugin works correctly.
    But when i compiled the same files on our mac machine and put the .indesignPlugin file in th plugins directory i can't see our plugin's context menu.
    I can see that it is in fact loaded on startup (when i remove it ID loads 325 extensions, when i put it back - 326), but still it dosen't seem to work...
    I initially thought that the versioning was off but our PluginVersion resource relies solemnly on SDKDef.h , i also tried putiing the file in CS5's plugin directory and got an error message that CS6 is required - so the version info is fine i guess.
    We are using xCode 3.2.5 (because we have to support Mac OS 10.5 and 10.4) to build on mac and i've never had problems before - it worked on CS4, CS5 and CS5.5.
    The changes i made when porting were minor and only in the code - so what has changed? and how come it works on windows but not on mac?
    Any input is greatly appreciated, i've already spent days trying to understand this.
    Thanks,
    Dan.

    Hi and thank you for replying.
    The resources do get compiled correctly (i assume this because we do get a .indesign file at the end - which means the ODFRC ran ok). they are linked correctly in the mac project (i saw a file that determines the version - it's linked the same way against my win and mac projects and the win version works fine so i guess that's ok too).
    the context menu is just another menu on the "menu bar" (don't know how to call it?) - i.e where the "file" and "edit" etc. menus are.
    I can't seem to understand how come this works fine under windows but not under mac - they are essentially the same projects linked against the same resources (the difference being iCode vs VC10 projects).
    can this be related to the fact we're using xCode 3.2.5?
    Thank you.

  • Rollovers work in Netscape but not IE?

    I have the rolloverbuttons working great with Netscape but when I run my app in IE the images aren't showing up. The jar is loading fine and when I use the default rollovers ( [ROLLOVER]exit ) they work fine, but my images aren't showing up. Thanks for any and all help.
    Jeremy.

    Hytrical wrote:
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7) which displays page errors.
    I didn't see any errors when I looked at yourhome page in IE7 (on Vista). So which page elements were producing an error and what was the error you were seeing? Did you delete the cache in IE7 to check whether it was a caching problem? Tools > Internet Options > Browsing history (choose to delete)?
    John

  • Applets work in NS but not in IE

    Hello,
    I would very much appreciate tips on setting up sun java so that I can make applets that work in IE.
    Now, my IE have no problems with applets found on the web, for example this one is ok:
    http://java.sun.com/applets/jdk/1.1/demo/Animator/example1.html
    But, the examples installed with j2sdk1.4.1_07 will only work in Netscape. In IE these applets just display a grey applet area. (IE6/XP and IE5.5/Win98)
    So far:
    Have read installations instruction and ReadMe files. Installed j2sdk1.4.1_07, added PATH, code compiles fine. Console programs work ok. I also compiled a Hello World applet, which also worked in NS, but not in IE.
    Any help greatly appreciated.

    Me again...
    Right... Maybe I am answering my own question here? It seems that the programs compiled with j2sdk1.4.1_07 will NOT run under the JVM 1.1.4 from Microsoft Corp?
    So, anything that I compile with the later sun package will most likely fail on IE browsers unless the user have upgraded their JVMs?
    If so, then what version of Sun Java can be recommended to achieve reasonable amount of compatibility with the IE5.5 and IE6 that are out there?

  • My external iSight works in iChat, but NOT quicktime 7 pro

    I'd like to get in on this...
    My external iSight works in iChat, but NOT quicktime 7 pro when i try to make a movie recording. No audio, no video, nothing. But, iChat works. This is on a brand new mac pro with the latest leopard. Any ideas????

    Hello Tommy Igoe
    With no other video capable apps running and your working iSight connected and turned on when you launch QT 7 Pro, try these suggestions to see whether one of them fixes your problem:
    (0) Try all suggestions applicable to your system from Apple's How to Troubleshoot iSight.
    (1) Check that your QuickTime Player > Preferences > Recording settings are correct.
    (2) Repair Permissions and test to see if iSight works with QT Pro now.
    (3) Disconnect all peripheral and test again to check for hardware or software conflicts.
    (4) Download and reinstall QuickTime 7.4 for Leopard. Repair permissions and test movie recording.
    If you must post back for other suggestions, please clarify and expand on your QT problem. Please be specific. For example, can you see but not execute the QuickTime Player > File > New Movie Recording menu command? Can you execute the menu command but find that the recording window does not open? Does the recording window open but you find the "Record" button is not clickable? Etc.?
    Also please tell us whether you found that QuickTime is the ONLY problem app in EVERY user account you tried when you used Apple's Troubleshooting suggestions.
    Finally, if you currently have ANY other problems with your Mac, please describe them all.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1)  External iSight

  • Web sites containing mms links work in IE but not Firefox 4.0

    Web sites containing mms links work in IE but not Firefox 4.0. when I play the video in IE, I go into IE, and locate the mms link under properties, when I right click. If I copy the mms link form IE directly into firefox, it will work. There ought to be a better way to do this. Also, I am using a hardware firewall, not a software firewall, and no proxy.

    You need to use the file:// protocol, but you may still encounter problems if you fix that.
    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • SanDisk ImageMate works on Vista, but not on Leopard

    I bought an iMac when my old Windows XP machine from Dell died last Christmas, and am mostly very pleased with it. I used Boot Camp to install Vista Home Basic on it also, because I still needed to run some Windows software.
    I recently acquired a digital camera from my daughter, along with a SmartMedia card reader by SanDisk (model SDDR-55 ImageMate). On the SanDisk website I found a driver for Windows that would work for 95, 98, ME, 2000, and XP. I downloaded it after not finding one for Vista listed. Similarly, there was a driver that would work for Macintosh OSX and OS 10.1. I downloaded it after not finding one specifically for Leopard.
    I installed both drivers under their appropriate OSes and plugged the ImageMate into a USB port on the computer. What I found was that it worked fine under Vista but was not recognized at all by Leopard. I contacted SanDisk and they had me verify that it was not a problem with the USB port. Also, they had me try to install it on another Mac (my daughter has a Mac laptop running Leopard) and it didn't work there either. So I know the ImageMate works and the USB port works.
    SanDisk then suggested I contact Apple. Is there anything I can do to get the ImageMate working on Leopard?
    One thing I noticed was that when I ran Terminal and went to /System/Library/Extensions and looked at a couple of files created during the install on the Mac, the owner and group were different from all the other files, so I made them match the others thinking file ownership might be the problem. Alas, it was not. (I did the install while logged in as admin.)
    Can anybody point me in the direction of what to do next?
    Thanks in advance,
    Sherry

    Many thanks to both of you for responding. My guess is that my ImageMate is getting old and SanDisk isn't going to help support it. I'm sure they'd rather I replace it by buying one of their newer models.
    One of my lesser attractive qualities is that I am cheap, and hate to throw away anything that still works. Since this little doobie still does (under Vista), I'll probably limp along with it there until I can't stand it anymore and buy a new one. I appreciate learning that some require drivers and some don't: that will help when it comes time to buy a replacement.
    Neither here nor there, but this is the 2nd device I've had difficulty with getting to work on Leopard but not on Vista (the other being my HP PSC 1315xi printer/scanner/copier).

  • Flashplayer 11.7 works in Chrome but not in IE9 or 10.

    Flashplayer 11.7 works in Chrome but not in IE9 or 10. Add-on enabled, ActiveX filtering is off. Uninstalled/reinstalled. I went through the adobe help checklist to no avail. Ideas??

    What operating system are you using?  Is it 32 or 64 bit?  Given that the addon appears and is "enabled", you might want to try these steps:
    How do I fix Windows permission problems with Flash Player?
    In addition, are you using any virus/firewall software that might be interfering?  You might want to try rebooting in safe mode with networking enabled to see if Flash works under that scenario.
    http://windows.microsoft.com/en-us/windows7/start-your-computer-in-safe-mode

  • Some websites keep asking to enable cookies in my browser when they are and I can't get this sites to see that, they worked fine yesturday but not now, any help

    Some websites keep asking to enable cookies in my browser when they are and I can't get this sites to see that, they worked fine yesterday but not now. I've restarted the browser, restarted the computer, disabled then enabled cookies in the privacy settings and still nothing. Any help?

    Hi,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • When using the camera downloader in Adobe Bridge CS6 with Nikon D5200 we are unable to see previews of the photos and it is very slow to download. The issue occurs under a the users rights, but not under admin level. This is a new issue

    When using the camera downloader in Adobe Bridge CS6 with Nikon D5200 we are unable to see previews of the photos and it is very slow to download. The issue occurs under a the users rights, but not under admin level. This is a new issue.

    Hi Jdentremont,
    Lync client gets user photos by first querying the Address Book Web Query (ABWQ) service on the server, which is exposed through the Distribution List Expansion web service. The client receives
    the image file and then copies it to the user's cache to avoid downloading the image each time it needs to be displayed. The attribute values returned from the query are also stored in the cached Address Book Service entry for the user. The Address Book Service
    deletes all cached images every 24 hours, which means that it can take up to 24 hours for new user images to be updated in the cache on the server.
    To troubleshoot your problem, please follow the steps below:
    1.  Navigate to
     “X:\share\1-WebServices-1\ABfiles\000000000\000000000” folder. (ABS file share)
    You should see some photo files in this folder as the following screenshot.
    2. Delete all the files in this folder.
    3. On test PC, delete local cache files.
    %userprofile%\AppData\Local\Microsoft\Office\15.0\Lync\[email protected]
    4. Sign-in Lync with the test account.
    5. Go back to the ABS file share, check if there is any Photo file in the folder.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

Maybe you are looking for

  • Please help!  Strange problem with HTTPD.Conf and OC4J (I think)

    Hi, We have been trying to configure the 10g "infrastructure" Apache server/instance to work with our own authentication module, and as part of this, we need to configure a directory alias containing some of our JSPs. To do this, the only thing that

  • I can't use the add attachment options in mail

    Hi all, Im having a little bit of trouble here. Everything was working fine. but all of a sudden I can't add attachments to an email in Mac mail by using the add attachments shortcut button or by file add attachments. All that happens is after aproxi

  • ComboBox with Lovs on Jdev 11g r2

    I'm facing this Error on JSF on Jdeveloper 11g r2, Windows7. I'm Using a ComboBox with Lovs on af:table. I'm getting this Error below when I invoke the (Search) option... to see the popup list. it works fine in every other case, if I select from the

  • Problem on Multi based queries

    Hi,gurus,    I have two DSO(BI 7.0), ZDSO1 and ZDSO2, in ZDSO1, there are three characteristics ZCH01, ZCH02, ZCH03 and one key figure ZKF01, the key is ZCH01, while in ZDSO2, there are three characteristics ZCH01, ZCH04, ZCH05 and one key figure ZKF

  • Alt-tab doesn't work properly

    Alt-tab is supposed to display the icons for the applications that are running. If I keep the alt key depressed, the icons are supposed to stay visible. But on my system, they are only visible for a couple of seconds, and then the window for the icon