Can I get jar version from class run from within jar ?

I am launching a number of applets from a single jar file. I want to display jar file version on initial applet. I would ideally like the applet to be able to determine from the jar file which it was part of what version it is . Is this possible ?
Applets are swing based & I'm using java plugin

if your jar file has a manifest that specifies the version number, you can use java.util.jar.JarFile to get the information. Other wise, you would just have to induce it based upon the file attributes of the jar file, using java.io. Remember that applets can not, by default, read the local file system, so you might have to use signed applets.

Similar Messages

  • I have a mac with OS 10.4.11, not Intel. Firefox 3.6 now crashes every time starting yesterday. Can I get a version that will run?

    This began suddenly yesterday. Does it mean Firefox is no longer supporting my Mac OS 10.4.11, non-Intel? Where or how can I download a version of Firefox that will run?
    This issue is NOT with the machine I am writing this from so the educated guesses you made below are not applicable. I'm writing from this machine because the afflicted machine no longer lets me run Firefox or even go to the proper page on firefox.com using Safari. Please help!

    If you want to sync it to the iPad from that Mac, you need to upgrade it to at least 10.5.8.
    If you want to copy the music to another Mac, you don't. Move the iTunes folder of the item in the Finder's sidebar over as you would any other folder. If you put it somewhere other than the Music folder, launch iTunes with the Option key held down and point it to that location.
    (61713)

  • How can i get a java executable (*.class) run on a web browser?

    I have created a simple appilcation in java and i would like to view it through a web browser.
    In order to do so, do i need to use an application server or just a web server?
    Can you come up with another solution to solve my problem(view the java application through the web)?
    Thank you in advance.

    If it HAS to be an application (perhaps something you have already written and now need to distribute), then Java Web Start may be an option.
    What is your user base? How many people will be using it? In what environment? How frequently will they use your app? I think you mentioned that it needs to read files. Is that on the user's machine?
    You may be able to create an applet version of your application using the same logic but subclassing some of the components to allow for remote login etc.

  • I can't get 5.1 Surround Sound running Windows 7, Mid-2010 Mac Pro

    Hello,
    So I'm running bootcamp on my Mid-2010 Mac Pro and I can't get Dolby Surround Sound to run from the Realtek HD Audio Manager. Is there a way to produce true Dolby 5.1? I understand this may be more bootcamp related than to the actual hardware itself but I figured this is the best place to start troubleshooting this.
    Thanks

    I can try-dunno how much help I'll be, though
    go here for Realtek drivers for surround sound
    http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=37&Level=5&Co nn=4&ProdID=144
    try this: go to Windows Sound, then playback devices, then click on speakers icon (should have realtek as default). Click on that, and click configure
    if realtek has a sound manager, try clicking on that, and a config dialog might appear
    sorry can't be much more help than that
    JB

  • Just up graded to Labivew 7.1 from 6.1 3-d graphs dont work right where can I get lattest version of cw3dgraph

    Recently up graded to Labivew 7.1 from 6.1.  3-d graphs dont work right.
    VI's using the Activex 3-D graphs developed in 6.1 worked fine. 
    Since up grading to 7.1 the graphs work after a fashion but many
    features don't. Anyone else have a similar problem?  Don't have
    the technical support from Labview, but then I figured the software
    should run as advertised. Where can I get lattest version of cw3dgraph?

    cw3dgraph just shows up at the same time as the new version of LV.
    I have not heard of any changes or fixes.
    I have seen the defaults for cw3dgraphs get lost in the upgrade from 6.1 to LV 7.1.
    I would first try going to the 6.1 version of the graph in edit mode and pop-up >>>CWGraph#D >>> export style
    save the file
    Then in the upgraded version do the import style.
    If that does not fix it post your code and tell us what is wrong. There are things you can do to the 3dgraph that work just fine as you have saved all the correct defaults. If we know what is supposed to happen we may be able to direct to what got lost in the upgrade.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HT4972 So if I have a 1st or second gen ipod touch, where can I get old versions of apps that run on it?

    So if I have a 1st or second gen ipod touch, where can I get old versions of apps that run on it?

    An iTunes library you previously downloaded those versions to, or a backup of that library.
    (78137)

  • How can I get iTunes to display the tracks from a CD in their original (album) order?

    To be absolutely honest, I don't really understand what this box is for, so I shall just use it to repeat and expand on my question. (I have already sent a "Feedback" comment on the same topic).
    How can I get iTunes to display the tracks from a CD in their original (album) order?
    It seems to me that there is something very basic wrong with the way iTunes handles CD Tracks.
    Professionally produced CD tracks are seldom if ever in a randomised order. Why then does iTunes seem unable to display the tracks in the order they appear on the original CD source - whether from a personally owned CD or from a download from the iTunes Store?
    Some music demands a specific, non-alphabetic sequence in order to make sense. Why does it seem that iTunes only offers Alphabetic, or reverse alphabetic order - both of which make a nonsense of the original, often intended order of tracks?
    Why not replace the so-called "cover-art" in the bottom left hand corner if the iTunes window - which, while it may look attractive to some, gives the barest of information concerning the original disc, with a list of the original CD tracks in their original order, so that the user can easily reestablish the order in which they should be played.
    As I would expect legibility might be a problem with doing this, why could not the original contents, (in their original order), at least, be displayed when the "cover art" is double clicked-on - the result of which at present gives me an enlarged version of the "Cover Art". While on the subject of the contents of the source disc, what about all the album notes which someone takes trouble to write in order to increase the appreciation of the music on the CD and the listener's general background knowledge of the artists involved. Such notes, it seems to me, have considerable intrinsic value in their own account. I would, I think, normally be prepared to buy such "Sleeve notes" - so long as a "taster" was supplied (as it is for the music) - for something like the cost of a single 'Tune" on iTunes.
    These two aspects let Apple iTunes down enormously, in my opinion. I think that by chopping even quite protracted sequences of music up into bits does no one any favours - except perhaps Apple's already quite substantial bank balance. People have to be aware that two and a half, to three and a half minutes is a very short time to develop a piece of worthwhile music, and that there are many, many composers, not all of whom are alive today who have written music that huge masses of mankind value for the enrichment of their lives and the human condition in general.
    Please make the viewing of iTunes tracks in their correct order by default possible. By all means have the alphabetical variations available as offering a different approach to the music, but not the sole approach to it - PLEASE.
    Frustratedly yours
    Alan Whitaker
    PS I work at my old 24" iMac Intel Core 2 machine which runs OS "Tiger" - because it is more beautiful to look at, the screen is more pleasant to work on, and because, in some ways it is more capable (it will run FreeHand MX without needing a "patch"), than my more recent 21.5" which runs "Snow Leopard". (I don't find it that much slower, either).

    Dear Mike
    Thanks for the support. I am utterly amazed that after all the hype about how good iTunes is that it cannot play a downloaded CD in the correct order, and that what that order should be is not available directly from within one's own iTunes installation. (I know that one can go back to the iTunes Store to check what the order should be, but having downloaded the tracks surely iTunes is clever enough to retrieve this important information.
    My iTunes to differ from yours in that I have also noticed that it seems unable to download copies of my "talking books" in the correct order either. But in my case it downloads them - from a CD - in order, but with the first track downloaded first - so that it appears at the bottom of the column of tracks so that it would get played last! (At least this is, while being inexplicable, a relatively "logical" bit of blundering and because of this is relatively easy to put right!).
    I like many genres of music, some of which are not really programmed except perhaps by the artist performing them. I know that Frank Sinatra was very careful to programme his album songs to obtain a particular effect and in relation to the keys of the music. iTunes presumes to know better.
    Film scores may be totally randomly put together, in some cases, but in others the order is vital to one's appreciation of the music as a whole and how it relates to the plot of the film.
    In symphonic music most works are divided into sections and are conceived by the composer that way. Some individual sections may gain a life of their own if played separately, but they are never complete in the sense that the composer envisaged them without being placed in their proper context.
    Opera and probably most choral music too, is similar except that the words may well become meaningless if the order is changed at the whim of a piece of ill-written computer code, while ballet music has to be heard totally within its sequential context or it becomes meaningless.
    Finally, I would venture that iTunes, by jumbling up the order of the tracks as recorded on a CD, does an immense disservice, not only to the music on a particular CD, but to music in general, by expressing everything in terms of "Songs" - which it seems to interpret as stand-alone items of between 2 and 4 minutes whatever the genre. Even the way the iTunes publicity speaks of how many "songs" it can store instead of how many minutes or hours of recorded sound. This has to be another brick in the wall of "dumming-down" of people's expectations, and the shortening of their attention spans.
    I don't know about anyone else, but I feel betrayed by Apple over this. Perhaps the look, feel and general presentation of an item are not the most desirable features of a consumer product. Maybe it should be judged more on it fitness for the purpose for which it was sold. There is one other possibility - that Apple are trying to redefine "Music" - and that everything that lasts longer than about 3.5 minutes or is in the form of what could for want of a better term be called symphonic in the broadest sense is something else - not "Music" within Apple's new definition, at all!
    Well that's off my chest! now I can get down to creating some sort of order in my iTunes Libraries, knowing that I have to reconsult all the sources in order to confirm the source playing order.
    Anyway thanks again. At least I know that it is not just me
    alanfromthatcham

  • I can't get new version of itunes to install on Windows 7 64 bit computer. Receive message that reads insufficient privileges to access c:\program files\ipod\bin. Tried to follow some suggestions found here but nothing is working. Any new suggestions?

    I can't get new version of itunes to install on Windows 7 64 bit computer. Receive message that reads insufficient privileges to access c:\program files\ipod\bin. I've followed several threads I've read here but nothing is working.

    For such situation, I'd suggest the following:
    1. Remove current installed office with the fix-it tool in
    KB2739501, and follow the "Remove Office manually" section to make sure there are no remaining files
    2. Either download a trial version of Office 2013 from
    http://office.microsoft.com/, or from
    http://technet.microsoft.com/en-us/evalcenter/jj937170
    3. Reboot your computer in clean boot mode, and run setup again
    Max Meng
    TechNet Community Support

  • Where can I get a version of Mac OS X 10.5? My mac is currently using 10.4.11.

    Where can I get a version of Mac OS X 10.5? My mac is currently using 10.4.11.

    Your best bet is to call Apple and order it, you can find the phone number in the online store in your country. However if your machine is able to run 10.6 I would recommend upgrading to that. Because Snow Leopard is current you can buy it from anyone that sells Apple products such as Apple, Amazon etc. Leopard (10.5) is more difficult to locate though. You can get the phone number by logging into Apple's online store and you will see the number in the upper left of the screen. If you decide to get Snow Leopard instead you can also buy it from the online store, it's $29.00
    Roger

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • How can I get my mail app to sync from my mac to iPhone, I don't have the 'info' option in iTunes?

    How can i get my mail app to sync from my mac to iphone? i dont have the 'info' option in itunes!
    I have created files within the mail app and want them to be the same on my mac and iphone.

    You need a mail server that supports this then. Hotmail premium I believe does, but the free version does not. Gmail supports it, and any ISP that offers IMAP supports this capability. iCloud definitely supports it, so if you create a free iCloud email account and switch your primary email to it you would have this capability.

  • Firefox 5 disabled my mcafee LIVE site advisor...can i get the version 4 reinstalled onto my comp?

    in order for me to run my mcafee LIVE site advisor, i had to switch over to Internet Explorer, which i dont care to use after using Mozilla for a number of years....Mcafee is in process of making this compatible, but, in the meantime....can i get Mozilla version 4 back onto my computer? or has the version been made obsolete?

    Due to security vulnerabilities, rolling back to Firefox 4.0.1 is not recommended.
    Have you considered alternate site reputation tools, such as the WOT add-on?
    Here's the process to roll back to 3.6.18:
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, download and save Firefox 3.6 to your desktop for future installation. http://www.mozilla.com/firefox/all-older
    Close Firefox 5.
    You could install Firefox 3.6 over it (many have reported success) or you could uninstall Firefox first. If you uninstall, do not remove your personal data and settings, just the program.
    Unless you have installed an incompatible add-on, Firefox 3.6 should pick up where you left off. If there are serious issues, please post back with details.
    Note: I haven't actually tried this myself!

  • Can't get adobe digital editions to run

    I downloaded adobe.com/products/ digital editions but my  computers says windows can't run it?? help - I have the lastest flash... ?  (I have windows vista )

    Here is what computer (Windows Vista) says when I try to run the program.  "Adobe digital editions has stopped working. A problem caused the program to stop working correctly. windows will close the program and notify you if a solution is available"
    Date: Sat, 9 Feb 2013 20:59:06 -0800
    From: [email protected]
    To: [email protected]
    Subject: can't get adobe digital editions to run
        Re: can't get adobe digital editions to run
        created by Pat Willener in Adobe Reader - View the full discussion
    1daisy wrote: windows can't run itThat does not sound like an error message Windows would issue; please provide the exact error message you are getting. 
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5061535#5061535
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5061535#5061535
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5061535#5061535. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can I get a version of Pages that is compatible with Mac OSX 10.6.8?

    How can I get a version of Pages that is compatible with Mac OSX 10.6.8?

    Buy an iWork retail package from a source such as Amazon or eBay.
    (88544)

  • AppleScript error with iTunes: Can't get window 'iTunes' of class pcap ...

    Hi there. I'm working on a script that posts iTunes track names to Campfire based on the AirPlay device in use. I've been getting a "Can't get window 'iTunes' of <<class pcap>> 'iTunes' of application 'System Events'" and was hoping someone might see an obvious answer. The error pops up randomly. Some machines receive the error much more often than others. Here's the code:
    global current_track
    global last_track
    global campfire_token
    global airplay_device
    global campfire_room
    global current_device
    (* Begin user defined settings ************)
    set campfire_token to "123456" (* Your Campfire API authentication token *)
    set airplay_device to "Apple TV" (* The name of your AirPlay device *)
    set campfire_room to "https://yourorg.campfirenow.com/room/123456/speak.xml" (* The Campfire room you'd like to post to *)
    (* End user defined settings *************)
    set current_track to ""
    set current_device to ""
    set last_track to ""
    on idle
              if application "iTunes" is running then
                        tell application "iTunes"
                                  if player state is playing then
                                            tell application "System Events"
                                                      tell application "iTunes"
                                                                set minimized of front browser window to false (*This AppleScript can only function when iTunes is not minimized.  *)
                                                                delay 2
                                                                set visible of front browser window to true
                                                                delay 2
                                                                set current_track to current track
                                                      end tell
                                                      delay 2
                                                      set current_device to the description of button 8 of window "iTunes" of application process "iTunes" of application "System Events"
                                            end tell
                                            delay 2
                                            if current_track is not equal to last_track then
                                                      if current_device as string is equal to airplay_device & " AirPlay" then
                                                                tell application "iTunes"
                                                                          set current_track to current track
                                                                          tell current_track
                                                                                    set trackName to (name)
                                                                                    set artistName to (" :: " & artist)
                                                                                    set albumName to (" :: " & album)
                                                                          end tell
                                                                          set track_info to (trackName & artistName & albumName) as string
      (* Replace apostrophes *)
                                                                          set search_string to "'"
                                                                          set replacement_string to "&#39;"
                                                                          set AppleScript's text item delimiters to the search_string
                                                                          set the item_list to every text item of track_info
                                                                          set AppleScript's text item delimiters to the replacement_string
                                                                          set track_info to the item_list as string
                                                                          set AppleScript's text item delimiters to ""
      (* Replace quotation marks *)
                                                                          set search_string to "\""
                                                                          set replacement_string to "&#34;"
                                                                          set AppleScript's text item delimiters to the search_string
                                                                          set the item_list to every text item of track_info
                                                                          set AppleScript's text item delimiters to the replacement_string
                                                                          set track_info to the item_list as string
                                                                          set AppleScript's text item delimiters to ""
                                                                          set shellCommand to ("curl -u " & campfire_token & ":X -H 'Content-Type: application/xml' -d '<message><type>TextMessage</type><body>" & track_info & "</body></message>' " & campfire_room)
                                                                          set shellCommand to shellCommand as string
      do shell script shellCommand
      (*display dialog shellCommand*)
      (*log "Posting to Campfire:" & shellCommand*)
                                                                end tell
                                                                delay 2
                                                      end if
                                            end if
                                            set last_track to current_track
                                  end if
                                  return 1
                        end tell
              end if
    end idle
    Thanks for your help. Any suggestions are appreciated!

    well, for information's sake, the cleaned-up script looks like this:
    (* Begin user defined settings ************)
    property campfire_token : "123456" (* Your Campfire API authentication token *)
    property airplay_device : "Apple TV" (* The name of your AirPlay device *)
    property campfire_room : "https://yourorg.campfirenow.com/room/123456/speak.xml" (* The Campfire room you'd like to post to *)
    (* End user defined settings *************)
    global current_track, last_track, current_device
    on run
      (* init at runtime*)
              set current_track to ""
              set current_device to ""
              set last_track to ""
    end run
    on idle
              if application "iTunes" is not running then return 60
              tell application "iTunes"
                        if (player state is not playing) or (current track is equal to last_track) then return
                        set last_track to current track
                        set minimized of front browser window to false
                        set visible of front browser window to true
                        set current_device to my getDevice()
                        if current_device as string is not equal to airplay_device & " AirPlay" then return
                        set track_info to my mungeText({name, artist, album} of last_track, "", "::")
                        set track_info to my mungeText(track_info, "'", "&#39;") -- Replace apostrophes
                        set track_info to my mungeText(track_info, "\"", "&#34;") -- Replace quotation marks
                        set shellCommand to ("curl -u " & campfire_token & ":X -H 'Content-Type: application/xml' -d '<message><type>TextMessage</type><body>" & track_info & "</body></message>' " & campfire_room)
      do shell script (shellCommand as string)
      (*display dialog shellCommand*)
      (*log "Posting to Campfire:" & shellCommand*)
                        return
              end tell
    end idle
    on getDevice()
              tell application "System Events"
                        tell process "iTunes"
                                  return description of button 8 of window "iTunes"
                        end tell
              end tell
    end getDevice
    on mungeText(itxt, stxt, rtxt)
              set tid to AppleScript's text item delimiters
              if class of itxt is text then
                        set AppleScript's text item delimiters to stxt
                        set itxt to text items of itxt
              end if
              set AppleScript's text item delimiters to rtxt
              set otxt to itxt as text
              set AppleScript's text item delimiters to tid
              return otxt
    end mungeText
    I'm positive there's a better way to check if AirTunes is the active device (maybe by seeing if the current playlist is a device playlist, and checking the source name?), but I don't have any way to test that.

Maybe you are looking for

  • Problem with list and map in GWT

    I have a problem with map and list in GWT. I need to put a map in to a list but GWT does not support ArrayList and HashMap since they are not serialized types. Exactly I want to create following list with out using ArrayList and HashMap ArrayList<Has

  • Family sharing calendar missing

    We are using family sharing. My daughters iPhone 5 is missing the family sharing calendar. She is on her own Apple id and is updated to the latest OS. when I look at the calendar app, the family calendar is not an option. She is set up on a child acc

  • How to do manual back up in conjunction with T.M.

    hello i want to use time machine to perform ongoing back ups of my entire account. however, there is one grouping of files that has to be manually dragged to my back up drive on a daily basis. my question is: if time machine backs up account until dr

  • Pasteboard size is huge when I create a new document

    When I create a new document or open an old document in InDesign CS4, the pasteboard is huge. For example creating an 8.5x11 document results in a pasteboard that is 36 inches wide buy 12 inches high. I have read all the solutions posed in other thre

  • How to format 250Gb IDE disk

    I'm using Sun Ultra 5/10. I'm trying to add new 250 Gb IDE hard disk. But all I can do is format 127Gb. So, I realized there is LBA limitation. Is it possible to break this threshold?