Help on jar versioning

I cant seem to get versioning on jar files to work.
In my .jnlp file I have:
<jar href="images.jar" version="1.3"/>
I named the jar file to images__V1.3.jar.
But I get an exception:
"Missing version field in response from server when accessing resource ("http://..../images.jar, 1.3)"
It sounds like I'm defining it wrong in the .jnlp? Am I missing a tag somewhere?
When I dont use a version, ie just images.jar, everything works ok.
I am using Java WebStart 1.2.0_01.
Thanks

If it is any comfort I am having the same problem, so I will be very interested in the answer as well.
I have tried both versioning using file naming and including a version.xml file in the directory.
Was using the developers guide document as a reference.
Andreas

Similar Messages

  • Issue with CIS jar version  - cis-application-8.0.0.jar on content server

    We are having a problem adding this jar to our custom component. We are using this APIs to check-in some programatically.
    Following is the error when we try to deploy our component with this jar
    ===============================================================
    IdcAdmin: Content Server idc status: Stopped successfully
    Starting the Content Server idc... The server terminated unexpectedly.
    02.28 11:36:35.834 main NativeOsUtils version mismatch. The native code version is "7.1.0.2" and the Java version is "7.0.6.0".
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x00002ac72c918500, pid=26841, tid=47034930753168
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_11-b03 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x3a8500]
    ========================================================
    The content server version is 10.1.3.3.
    And the jar version is cis-application-8.0.0.jar. We are able to use the same jar standalone. What could be the problem? Should we need to upgrade to a diffrent jdk version? I am worried that might cause more problems.
    Regards,
    Pratap

    Thanks for your inputs.
    So far I have been looking at only CHECKIN_NEW_FORM and CHECKIN_SEL_FORM services for creating and updating content. items These services require files to be attached. I checked the definitive guide and found that there are 2 other similar services,CHECKIN_NEW and CHECKIN_SEL, that don't need the file to be attached. Instead we can specify the file path of the primary file. Since the xml content file to be checked is in th content server itlsef, these services can be used in my case. Moreover since my content checkin logic is in the context of a service, my code become more simpler.
    I began working on it and am calling executeServiceSimple("CHECKIN_NEW") or executeServiceSimple("CHECKIN_SEL") based on whether the content to be checked in is new or to be updated. I am setting all the metadata values of the content file in the m_binder local data of the service object.
    I thought this should work cleanly but I am getting the below error
    ============================================
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
    Caused by: intradoc.data.DataException: !csCheckinFileKeyNotSpecified,primaryFile
    at intradoc.server.DocServiceHandler.addFile(DocServiceHandler.java:3251)
    at intradoc.server.DocServiceHandler.addFiles(DocServiceHandler.java:410)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sitestudio.SSClassHelper.invokeRaw(Unknown Source)
    ======================================================
    I printed out all the local data in the m_binder object. The primaryFile value is pointing to the right file path. The file is also been created in the correct location.
    The dID, dDocName, dOriginalFile, dRevLabel values are all set properly. But still I am getting this error. I am not able to figure out the cause of this. Please help. Is this approach incorrect?
    -Pratap

  • Where get weblogic.jar version 8.1 or 9.2?

    I need to get weblogic.jar version 8.1 or 9.2 to use with Hermes because 10.3 apparently does not have class weblogic/security/subject/AbstractSubject... I failed finding it on the net...
    Thank you
    Leonard

    I've got the exakt same problem using weblogic.Deployer .... -appversion, weblogic 10.0 in this case. Works fine with our new jaxws based webservices.
    Would be nice if this problem was solved, especially since weblogic10 resolves softlinks so our old method of linking to new versions doesn't work anymore. And the fact that "Changing the source location is not allowed for a previously attempted deployment" doesn't help either.

  • Any way to get Java Plug-In-like handling of jar versions?

    I have jars intended for use with the Java Plug-In with version #'s in properties files (computed by the various tooling for updating these on the server). The jars themselves have no notion of jar #.
    I would like to re-use these jars and version #'s with Java Web Start to avoid conditional GETs, but without jar diffing in this case (as I already have many small jars due to lack of jar diffing in the Java Plug-In).
    Is there any way I can get Java Web Start to act like the Java Plug-In in this regard (i.e. the jar version # is a statement from the server, the client does a normal GET against the jar URL if its own version is not that stated by the server)?
    [Don't get me wrong, jardiffing is cool, but having to do everything differently between Java Web Start and the Java Plug-In is [b]not cool.

    Best way IMO would be to create a Socket connection to it so that you could connect with a client app and feed in data that way

  • Help using jar file!

    Help using jar file!
    Hello
    I have created a jar file by using
    jar cvmf Manifest.txt myjar.jar 1.class Mydirectory
    In 1.java file :I have used
    JEditorPane editor;
    editor.setPage(getClass().getResource("/Mydirectory/default.htm"));
    If I am only giving myjar.jar file to the client without Mydirectory then also it is working fine by showing default.htm in JeditorPane.
    But my problem is I want to use
    Runtime.getRuntime().exec("cmd /c start IEXPLORE"+targetstr) ;
    targetstr will be the filename with path of the default.htm
    If I am giving myjar.jar file with Mydirectory to the client it is working but I don't want to give Mydirectory to the client .
    What should I do?
    Is there any solution for this?
    Using another jar file which will include mydirectory can solve this problem?
    Is there any othe concept in java so that I wll be able to hide Mydirectory from client?
    Please help.

    It seems like you could extract the .htm file from the jar, either with Runtime.exec or using the Jar API classes.

  • JMF, Linux, wrong codec selected when using jarred version of app

    I have problem realising an AVI player when I try and run Linux JMF application when whole application is bundled into jar file and I try and run it using
      java -cp <..JMF/lib/jmf.jar:/home/codroe/fobs4jmf.jar..> -jar app.jarIn jmf.log I see:
    ## Player created: com.sun.media.content.unknown.Handler@1cd2e5f
    ##   using DataSource: com.sun.media.protocol.file.DataSource@911f71
    ## Building Track: 0
    ## Input: XVID, 720x576, FrameRate=25.0, Length=1244160 68 extra bytes
    !! Failed to handle track 0
    XX   Unable to handle format: XVID, 720x576, FrameRate=25.0, Length=1244160 68 extra bytesThis is exactly the message I usually get when some part of JMF cannot find "jmf.properties" file (if for example could not find .jmfdir), but looking at strace from application run it does appear JMF found my jmf.properties this time, but still chose not to use omnvidea codec:
    stat64("jmf.properties", 0xfeffc410)    = -1 ENOENT (No such file or directory)
    stat64("/home/codroe/JMF-2.1.1e/lib/jmf.properties", {st_mode=S_IFREG|0644, st_size=31354, ...}) = 0
    open("/home/codroe/JMF-2.1.1e/lib/jmf.properties", O_RDONLY|O_LARGEFILE) = 11When I run my unbundled (i.e. not wrapped up in jar) version of Linux application (same classpath), it finds jmf.properties no problem, and choses omnivoidea codec and now is able to play the video with good things in jmf log:
    ## Player created: com.sun.media.content.unknown.Handler@30c221
    ##   using DataSource: com.omnividea.media.protocol.file.DataSource@a401c2
    ## Building Track: 0
    ## Input: FFMPEG_VIDEO, 720x576, FrameRate=25.0, Length=414720 0 extra bytesMy windows version works fine in both configurations, jarred or not jarred.
    From Linux strace log I it shows my working non-JARed version has selected omnividea codec:
    gettimeofday({1100876842, 175149}, NULL) = 0
    stat64("/home/codroe/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    stat64("/home/codroe/JMF-2.1.1e/lib/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    gettimeofday({1100876842, 179815}, NULL) = 0
    stat64("/home/codroe/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    stat64("/home/codroe/JMF-2.1.1e/lib/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    gettimeofday({1100876842, 182979}, NULL) = 0
    gettimeofday({1100876842, 183206}, NULL) = 0
    gettimeofday({1100876842, 184371}, NULL) = 0
    gettimeofday({1100876842, 184591}, NULL) = 0
    stat64("/home/codroe/com/omnividea/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    stat64("/home/codroe/JMF-2.1.1e/lib/com/omnividea/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
    gettimeofday({1100876842, 191005}, NULL) = 0but as I don't see this in trace from JAR version, and because in JMF log it says:
    ## Player created: com.sun.media.content.unknown.Handler@30c221
    ##   using DataSource: com.omnividea.media.protocol.file.DataSource@a401c2I believe it has not selected correct codec for a reason I don't understand.
    [I checked I only have one version of jmf.properties on system].
    Any ideas why jarred version is different from non-jarred version?
    version information:
    # JMF Version 2.1.1e
    ## Platform: Linux, i386, 2.6.5-1.358
    ## Java VM: Sun Microsystems Inc., 1.5.0
    and using fobs4jmf from http://fobs.sourceforge.net

    correction, for the last bit I should have said, for non-working jarred version in JMF log I see:
    ## Player created: com.sun.media.content.unknown.Handler@1cd2e5f
    ##   using DataSource: com.sun.media.protocol.file.DataSource@911f71indicating wrong codec selected

  • There was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    there was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    Force Quit the application from the Apple menu.

  • Help with JAR Files

    OK, folks, I need some help here...
    And I have researched on this prior to this post, but I still don't get it.
    I have a simple application in Reminder.java file. When I compile it, I get Reminder.class and Reminder$ReminderThread.class, because I have an inner class.
    I place those files in Reminder directory. I want to make an executable JAR file, so I made a manifest file outside the Reminder directory that contains these lines
    Manifest-Version: 1.0
    Main-Class: Reminder.Remindersince the Reminder.class is within the Reminder directory, I understood I had to have a prefix "Reminder."
    In the command line, I type
    jar cmf manifest Reminder.jar Reminder/Reminder.class Reminder/Reminder$ReminderThread.classAnd I do get a Reminder.jar file, but when I double-click on it, I get a popup saying "Could not find the main class. Program will exit!"
    So, what am I doing wrong and how can I fix this? As I said, I have researched, but I can't understand what went wrong nor how to fix the problem.
    Any help will be greatly appreciated.

    Never mind, I solved it, I was missing a carriage return in my manifest file. I feel so stupid now...

  • Need help with jar in jar

    Hi folks, I've got a serious(for me!) problem. I have a programm which contains several other jar files in a directory. If I run the program with Eclipse it works quiet well but if I create a Jar file from the whole program I always get the error message: No class def found error. It's the classes used from the included jar files that could not be found. So what should I do? In the jar file are all used class and jar files. Everything is there in the right order. But it doesn't work.
    I hope you can help me with that. One idea was that these other jar files have to be added to the manifest.mf ?! I've got no idea.

    For me it workes like this:
    manifest.mf:
    Manifest-Version: 1.0
    Main-Class: gui.testgui
    Class-Path: lib/castor.jar lib/xercesImpl.jar lib/xml-apis.jar
    I make my jar:
    jar cvfm myjar.jar manifest.mf .
    The dot stands for the directory where I am. All files and directories of this directory are jared.
    The information in my manifest-file are used to generate a manifest for the jar.

  • DeployJava.js update JAR versions

    Hello,
    I am using deployJava.js to deploy my applet. It works great and correctly caches the applet locally on the users machine.
    However, when I want to update the applet server-side, it does not detect that the file has changed and the client does not get the new version.
    the APPLET tag had a great feature where you could go:
    <param name="cache_version" value="0.0.6.B">
    and incrementing the value of this would force the client to re-download that JAR since it had been changed.
    I have tried adding this parameter in the deployJava.js case but it has no effect.
    Any help would be appreciated.
    Jesse

    Apparently no one has reported this is a bug on the bug parade. I did that, for what it's worth. I am shocked that this has been allowed to remain open for two years.

  • Please Help! .jar file don't work.

    Hi, I've written a swing program that works fine when run from command prompt but it doesn't work when I create a self executable jar file and run it.
    Here's the generated classes after compiling the source file:
    TheGMailClient.class (main class)
    TheGMailClient$1.class
    MailSender.class
    MyAuthenticator.class
    I also have a GIF image file.
    Here's what written in the manifest file:
    Manifest-Version: 1.0
    Created-By: 1.4.2_05 (Sun Microsystems Inc.)
    Main-Class: TheGMailClient
    I've created the jar file with the following command:
    jar cvfm TheGMailClient.jar MANIFEST.MF -C classfiles .And here's the exceptions shown after running the jar file (I've run the jar file from command prompt using the java -jar command to view the exceptions):
    java.lang.NoClassDefFoundError: javax/mail/MessagingException
            at TheGMailClient.actionPerformed(TheGMailClient.java:238)
            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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
            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)It seems to me that some classes are not found. How can I overcome this problem? Please help me guys! I'm really stuck in here.

    The error is occuring because the jar ignores the system classpath.
    You need to set your classpath in the manifest file to find the external jars.
    Otherwise the external jars will not be found.
    In your case class javax/mail/MessagingException
    For example:
    Manifest-Version: 1.0
    Created-By: 1.4.2_05 (Sun Microsystems Inc.)
    Main-Class: TheGMailClient
    Class-Path: . jars/mail.jar jars/activation.jar
    The path will need to be correct in the above related to your system.
    Also because you mention a gif image.
    You will need to add the image to the jar - you haven't.
    make sure you are loading the GIF image file in a manner that can be used from a jar.
    Image image = null;
    try {
      image = ImageIO.read(getCkass().getResource("logo.gif"));
    catch {
      // what ever
    }You may need a relative path to the image in the jar depending on where the gif is.
    For example image = ImageIO.read(getCkass().getResource("images/test.gif"));
    rykk

  • Please help. "compatible version already installed"

    Firstly I have installed Application Server Platform Edition end after that I try to setup portal server and I see there were application server enterprise edition with the downloaded package, and try to setup all. I have try to setup the Java Enterprise System and I have made some wrongs, maybe because of my mistakes maybe another things but there were no folders which I have defined. And when it was loading there is only one screent OrionUninstallersun-ps7_0-entsys. When I try to uninstall the system I have seen there is only this file "/var/sadm/prod/sun-ps7_0-entsys/uninstall_Sun_Java_tm__Enterprise_System_2005Q4.class" There were no another file. I have tried to unistall but I cant make it. After that I have deleted all the files about Java Enterprise System. When I try to setup again Java enterprise system, at start, it is saying "Compatible Complete, Compatible Version Already Installed A Complete, Compatible version of the Sun Java System Web Server 6.1 SP5 2005Q4 has been detected on this host" . When I pass to the next steps this time it is asking me "Please locate the web server that the load balancing plugin is for. Plugins are avalilable for either the Sun or Apacher Web Servers" When I bring it with default value "Invalid Web Server Location" message is coming. What I have to do please help me. Why the files is not loading?

    I am using linux and I have tried this command
    rpm -qa |grep sun | xargs rpm -V
    and it is giving very long list
    missing /opt/sun/portalserver/portal/export/request/calendarSSOAdapterService.request
    missing /opt/sun/portalserver/portal/samples/Calendar/calendarChannels.xml
    missing /opt/sun/portalserver/portal/samples/Calendar/calendarProvider.xml
    missing /opt/sun/portalserver/portal/web-src/WEB-INF/classes/CalendarProvider.properties
    missing /opt/sun/portalserver/portal/web-src/WEB-INF/classes/LotusNotesCalendarProvider.properties
    missing /opt/sun/portalserver/portal/web-src/WEB-INF/classes/MSExchangeCalendarProvider.properties
    missing /opt/sun/portalserver/portal/web-src/WEB-INF/lib/calendarprovider.jar
    missing /opt/sun/portalserver/portal/web-src/WEB-INF/lib/jcapi.jar
    missing /opt/sun/portalserver/portal/web-src/docs/en/desktop/calendar.htm
    missing /opt/sun/portalserver/portal/web-src/docs/en/desktop/sunlogo.gif
    after that what I have to do?

  • Need help with Jar file

    I am writing an Application in Java using swing and all that good stuff but I am currently ready to do some beta testing to find any other errors.
    The problems is I want it to be easy to use so I was just going to throw the classes ina jar file so they could just run the jar files.
    For some reason I keep getting a cannot find main class error??
    Here is the manifest file for the Jar file
    Manifest-Version: 1.0
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    Main-Class: VRPServer.class
    VRPServer is the class that has the main in it.
    if I go to the command line and run I get
    E:\JAVA\VRP\Server>java -jar VRPServer.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: VRPServer/class
    if I double click the jar I get a pop-up saying "Could not find the main class, program will exit."
    I really don't understand Jar files all that well, I went through the tutorials but still can't see why this isn't working. Any help is appreciated. :)

    I think your problem is that you shouldn't add the '.class' to the name of your main class in your manifest; it should simply be the fully-qualified name of the class, for example:
    Manifest-Version: 1.0
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    Main-Class: mypackage1.mypacage2.MyClassHope this is all it takes.
    Shaun

  • JAR Versioning

    Hi,
    I am trying to use a manifest file to version my jar, it contains a number of different packages but I just want to version the whole jar. I have tried a using the implementation and specification tags, but I seem to be unable to retrieve the manifest data from the jar. I do not get any errors but neither do I get a version number.
    Here is the contents of my manifest:
    Manifest-Version: 1.0
    Created-By: My Company
    Name: com.xx.yyy.ppp.ttt.hy
    Implementation-Title: "jar name"
    Implementation-Version: "1.2.6"
    Implementation-Vendor: "My company"
    I have tried with and without quote marks, I have tried using the Package Class to list out all the packages and the implementation and specification versions and all i get is nulls for my packages and the JRE info.
    Am I missing something here, I have looked around on the forums and the specs and I cant see what I am missing so any help would be great.
    Thanks!

    Hi, I tried it out and it works.
    My manifest.mf looks like this:
    Manifest-Version: 1.0
    Implementation-Version: 3.1415
    the code I use to retrieve the info is
    public static void main(String[] args) {
    Class clazz=myClass.class;
    String version=clazz.getPackage().getImplementationVersion();
    System.out.println("version="+version);
    I got the 3.1415 in the output!

  • I have a new error on startup & rebooting doesn't help--Error: Platform version '1.9.1.4 is not compatible with minVersion =1.9.1.5 maxVersion =1.9.1.5 ...Had to use IE and download FF 3.6

    There aren't a lot of details in addition to what I put in the question field. Just got the FF beta v4 and used it fine, but when I attempted to launch it today, I got the error. The only info not listed there is the error title, XULRunner, which may be helpful. Other than that, I have a screen shot of it if that would be helpful. That's about it.

    Do a clean (re)install:
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

Maybe you are looking for

  • Troubleshooting transfer of iTunes from external hard drive to Windows 7 and a new computer

    I had to transfer data from a Western Digital external hard drive to a new computer with Windows 7.  My iTunes library is there but the individual play lists cannot be found.  Are they there somewhere?  The data was transferred before iTunes software

  • Meduim burn problem

    Hey folks, I've tried a few different burning softwares, searching for Itunes alternatives. All of them are failing to burn because of a "medium write error". What does this mean & how can I resolve this issue? Much Thanks, Jackson

  • PO doc types

    Hi, What are the different document types available for purchase orders?

  • Differences between R12 and 11.5.9 in Oracle Learning Management Module

    Hi, I am into One Upgrade Project. I would like to know what are the differences between R12 and 11.5.9 in Oracle Learning Management and need to know any new Tables, Views, Forms and Reports got upgraded?. Thanks & Regards, Srinivasulu Vakati

  • Renaming movie file

    I can't rename one of my movie files in itunes. Everytime I change the title through the info, it goes back to the original title. I checked to make sure that I had read/write privleges and I do. What should I do?