How to run jar file created with higher version on lower version ?

Hi,
I downloaded a jar file and trying to run it on Linux machine with Java version 1.4...
I got error that jar file complied with 1.5 version.
Is there any way to run it on 1.4 version. I don't want to upgrade Java version of my linux :)
Regards,
Ajay

EJP wrote:
On the contrary, the 'reality' is that it is better, and probably easier, once you analyse and present the comparative costs and risks correctly, to get the mandate lifted than to back-port code to platform levels for which it was not designed.The main blockade (judging by my observations) for actually doing it is that this is not a simple code change, which is what programmers really, really, really want to keep it within their comfort zone. All of a sudden you're tasked with software upgrades and the demands that it brings, such as testing to make sure everything still works properly and getting grumpy system's administrators to actually go do it.
I wouldn't be surprised that there are people out there that would rather back port a library than to take the initiative to get Java upgraded :/

Similar Messages

  • Error with running JAR files created with NetBeans

    I have been having difficulty running the JAR files that NetBeans compiles. When I run my code from NetBeans, it always works just fine, but when I try to run the compiled JAR I get the following errors:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass2(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    This is happening for multiple projects now, though I don't remember it happening before. What am I doing wrong? Why is this happening? How can I fix it? Thank you for any insights...

    Oh, I forgot to mention, all the NetBeans samples work, just not apps that I create. This is very frustrating!

  • File created with Trial version cannot be opened by Captivate 5.5 (Ensure that the file isn't open, the file isn't damaged....etc.)

    Hi,
    I have a file created by Trial version of captivate. It was created in a different computer. Now, I have to make some modification in the file. However, when I tried to open it with Captivate 5.5, I got the error shown below. I am not able to use the popular solution provided in this link Click here to view   because the file was not created in my computer. I believe that there is a lock on the file since it was created with Trial version of captivate. Is it possible that I send the file to a representative, and they look into it?

    Was the file created with the same version? You talk about 'trial', but the only trial version available at this moment is Captivate 8. You were never able to open a Captivate project in a previous version, that explains why you cannot open it in 5.5.

  • Logic will not open files created with earlier versions?

    Logic Pro 9 will not open willnot open files created in earlier versions advising that attempts should be mad using Logic pro 7.  My Mac Pro wil not open this version of Logic "because PowerPC applkcations are no longer supported."  Any help would be very much appreciated since I need to have books reprinted.
    Thanks

    Pancenter wrote:
    Won't help, the "installer" (through Logic 8) uses some PPC code, this person is running Lion which means no version of 7 or 8 can be installed.
    Hi
    I think that the PPC installer can be worked around (?):
    Make disk images of the Install Disks, mount them all, then use Pacifist to run the Install process
    Looks like it should work here..
    CCT

  • Is it possible to open AI files created with newer version of Illustrator?

    I am still using AICS2; I've noticed that files created in newer versions without PDF content will not open; is there any workaround for this? I'm missing out on lots of nice stuff....

    >is there any workaround for this?
    Open them in the appropriate version. You can download a 30-day demo of Illustrator 14. You can also ask the supplier to down-save for you.

  • How to run jar file with classpath?

    Hi, all,
    I have some package in my project, with which I have a java help jar file as classpath, when I run my project, I need the jh.jar file in directory /jar/jh.jar.
    Now, I bundled all my class packages into a jar file, my.jar, together with the /jar directory. When i run my jar file with command:
    java -jar my.jar
    It tells me couldn't find javahelp class.
    What shall I do? How can I create my jar file with the jh.jar?
    Thanks in advance.

    Thanks, hjembaek,
    But it doesn't work for me. I am running in windows, it still generate the error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSet
    at own.gui.OwnMenuToolBar.getOwnHelpBroker(OwnMenuToolBar.java:560)
    at own.gui.OwnMenuToolBar.addHelpMenu(OwnMenuToolBar.java:327)
    at own.gui.OwnMenuToolBar.getOwnMenuBar(OwnMenuToolBar.java:188)
    at own.gui.OWNDPTool.initGui(OWNDPTool.java:55)
    at own.gui.OWNDPTool.<init>(OWNDPTool.java:39)
    at own.gui.OWNDPTool.main(OWNDPTool.java:100)
    Here is my command to generate the jar file:
    jar cfm Own.jar temp.txt help own log others
    temp.txt is the file including the main class and class path information
    I have help folder, log folder and own package, others is directory that has the jar file(others/jh.jar)

  • How to run jar files with arguments?

    Hi everybody,
    Is it possible to run a jar file with arguments passed to its MAIN class?
    If yes can you help me on how to do it?
    Thanx

    I am in complete agreement with FahleE. I'll refine it a bit.
    On my machine (running RedHatLinux8.0) you can run the demos like this.
    1. open a console window
    2. go to the directory where the demo you wish to run, say, demo.jar, is located
    for instance for the SwingSet2-demo
    cd /usr/lib/java/demo/jfc/SwingSet2
    3. run the jar file
    java -jar demo.jar
    In order to run it windows style, ie, launching by double clicking, save these lines in a file called
    LaunchJar.sh
    cd /usr/lib/java/demo/jfc/SwingSet2
    java -jar demo.jar
    where demo.jar is the jar file you want to run.
    Right click on the LaunchJar.sh and go to the 'Properties' tab. Check the 'Execute' permissions for Owner/groups/others. You can also do the same thing by chmod command.
    Now double-click on the LaunchJar.sh file: your application should be launched.
    Palash.
    Please Note: It is important to set the path variable to your JAVA_HOME directory....
    Otherwise, instead of
    java -jar demo.jar, you will need to use the full path to your JAVA_HOME/bin directory like:
    JAVA_HOME/bin /java -jar demo.jar.
    Where JAVA_HOME is the directory where you have installed java. Typically it is usr/java or usr/local/java

  • Deploying an application with existing library as jar file created with ANT

    Hello All,
    I am having some trouble with a web application I am deploying to Tomcat. I have an custom library that works perfectly as a jar file included in the lib directory if I include all the jars that that library depends on into the lib directory also. What I would like to do is bundle the required jar files into my libraries jar file, but it failes to work when I do that.
    Any thoughts? Does Tomcat prevent this?
    I am using ANT to create my jar file, but when I look at the contents of my jar file it includes all the requested directories.
    My build.xml looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="myapp" basedir="." default="jar">
    <property name="classes.dir" value="./classes"/>
    <property name="jar.dir" value="."/>
    <property name="java_lib.dir" value="../../../../../Program Files/Java/lib"/>
    <target name="jar">
    <jar destfile="${jar.dir}/${ant.project.name}.jar">
    <fileset dir="classes"/>
    <fileset dir="${java_lib.dir}" includes="jai_codec.jar.jar"/>
    <fileset dir="${java_lib.dir}" includes="xercesImpl.jar"/>
    <fileset dir="${java_lib.dir}" includes="mysql-connector-java-3.1.8-bin.jar"/>
    <fileset dir="${java_lib.dir}" includes="xmlParserAPIs.jar"/>
    <fileset dir="${java_lib.dir}" includes="mlibwrapper_jai.jar"/>
    <fileset dir="${java_lib.dir}" includes="xml-apis.jar"/>
    <fileset dir="${java_lib.dir}" includes="jai_core.jar"/>
    </jar>
    </target>
    <target name="run" depends="jar">
    <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
    </target>
    <target name="clean-build" depends="jar"/>
    <target name="main" depends="run"/>
    </project>
    Like I said...it includes these jar files in my jar file, but will not function properly with my tomcat app. If I exclude these jar files and include them seperately then everything works.
    NOTE: I do not access any of these libraries directly from any servlets, only from my classes.
    Thanks,
    J-Rod

    This probably isn't posted on the correct forum. This JVM forum is for discussing issues related to running java in an Oracle database using the OJVM, Oracle's embedded java VM. Possibly you are trying to use OJVM through JDEV but that isn't clear from your post and I don't believe that the error you are reporting would occur in that case. If it did or if you are in fact trying to run client java via JDEV the problem would be a JDEV rather than OJVM issue and so the JDEV forum,
    JDeveloper and ADF
    is the correct one to use.

  • How to run .jar file

    i created a jar file using jgrasp and it is a very simple application with one .class file.
    It has been added in it and the manifest file looks like:
    Manifest-Version: 1.0
    Main-Class: VivosonicDatabaseTool
    there are two lines at the end. It is a gui application...any suggestions?

    create a jar file via:
    jar cvfm MyApp.jar manifest.mf *.class *.gif
    Manifest File:
    Manifest-Version: 1.0
    Main-Class: Notepad
    Classpath: .\Notepad.jar
    Voila now you can double click your jar file and it will run like an .exe!!

  • Running Jar Files created in Sun Java Studio

    Hi everyone,
    I am still trying to explore the functionalities (especially as regards deployment issues) of this robust IDE. However I do have a problem. I have developed a very basic program that connects to a database (MSSQL) using Java Studio 8. However after building the jar file, if I try to execute the jar file it gives me this message
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver.....
    But all goes well within the IDE and it runs well if I use my notepad or vi editor,compile it from the command line and execute the generated class file. The classpath have been set for all the necessary jdbc jar files.
    Any Help Will Be Appreciated

    1. Sun Java Studio Enterprise 8 is based on NetBeans 4.1 which does not provide direct support for packing an application. One alternative you may want to consider is to use NetBeans 5.0 (http://www.netbeans.info/downloads/download.php?type=5.0) or JSE 8.1 which is based on NB5.0 and which is now in beta (http://developers.sun.com/prodtech/javatools/jsenterprise/downloads/index.jsp).
    You may want to refer to http://www.netbeans.org/kb/articles/javase-deploy.html for packing and deploying a standalone application is NB5.0 or JSE8.1.
    2. Using JSE8, you may want to try copying all the library jars (including database drivers) used by your application to your projects dist directory manually and then package them all into one jar.
    3. You should not have to know the exact location of the jdbc jar on the client machine. How are you instantiating the driver in your code? Are you using 'Class.forName()'? If so, java should be able to pick up the driver from the classpath. (Pl. ref to http://forum.sun.com/jive/thread.jspa?forumID=122&threadID=62696, which may be of help).

  • How to run jar files on pocket pc

    hi,
    I have developed a .jar file on my desktop using jdk 1.4. Now i wnat to put that one on my pocket pc(compaq iPAQ)and make it run.What are the prerequisites i need and how can i get them.Please let me know in steps as i dont know any thing about pocket pc

    Hi,
    following steps are to be done:
    1. First of all, you must download the PersonalJava Compatibility classes, that are to be used in your classpath when compiling your application. You can do that under the following url:
    http://java.sun.com/products/personaljava/pj-cc.html
    2. PersonalJava classes are based on JDK 1.1.x and therefore some classes in JDK 1.4 are not compatible for our purpose. Download the PersonalJava Emulation Environment to be able to test on your desktop before running on your Pocket PC. (Another tool of interest here is JavaCheck, which allows you to check if your code is PersonalJava compatible) You find links to downloads under:
    http://wwws.sun.com/software/communitysource/personaljava/download.html
    3. Now you are ready to install a JVM on your PocketPC. You will surely find one on your Compaq-CD (JeodeVM).
    4. Write a .lnk file to be able to execute your app by only clicking once in a file on your Pocket PC. Example: your jar file is named demo.jar and is placed on your PDA under "My Documents". You main class within the JAR fie is called MyDemo. Now here is the content for the corresponding example.lnk:
    18#"\Windows\evm.exe" -cp "\My Documents\demo.jar" MyDemo
    Place the .lnk file whereever you want on your PDA (observe that we use absolute paths).
    Hope that helps.
    Have a nice day.

  • How to run jar file from command task , located in informatica server machine

    Hello All,I have executalbe jar file located in informatica server machine, I want to execute this jar from command task from powercenter.I am new to Informatica, so please help me with it.I have give all the permission to the file, but still the task fails with following error. Command task instance: execution of command [Command1] did not complete successfully with exit code 256.How can I execute this jar file please help. Thanks

    ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 온라인 추천ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 온라인 추천  ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노 ユ 나이트팔라스카지노 ◈ top015。ℂℴℳ 【Ƹ̵̡Ӝ̵̨̄Ʒ】 나이트팔라스카지노

  • How to open .doc files created with microsoft word 97... when using mac os x 10.7.4?

    hi!  i'm using mac os x 10.7.4 and have Office 2011.  i can no longer open older documents (.doc) created with Microsoft Word 97...  What can i do to get access to these files?
    thanks in advance!

    I had too many of these that I had to convert to a modern format. It isn't easy or consistent but one of these normally works:
    1. Open up Word and use the File/Open command rather than just double clicking on the file. Why does this sometimes work? I don't know! Save in docx format.
    2. Try opening the files in Office 2010 on a Windows machine. Again, immediately save as a docx file. This works more often than the advice above.
    3. Download the free LibreOffice and try opening it there. There will be some format problems but easily fixed. Once again, save in docx format.
    4. Breakdown and look for a dedicated format converter.

  • How to run .pdb file

    we using Oracle 10g on AIX 6 server. In our server, have 3 different Database namely Test, training and production. I want to run a patch file extension PDB. But how can I run PDB file in Test database.

    Hello people,
    is anybody here who can give an example without
    refering to instruction how to run jar file?java -jar yourJarFile.jar
    in case if you want to be refered to instructions later during the day, [url http://java.sun.com/docs/books/tutorial/jar/basics/index.html] here it is

  • How to run .jar on linux & how to create .jar file using java?

    hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
    thanks in advance.

    Look at the manual page for jar:
    # man jar
    Also you can run them by doing:
    # java -jar Prog.jar

Maybe you are looking for

  • Installing Sun Studio 12 on Ubuntu 8.04

    When I try to install Sun Studio 12 with the graphical installer, I get a message half was through that Java is not installed. In my case Sun's Java was already installed. I tell the Sun Studio installer to do the update and it finished what it was d

  • When I click on a tab it comes up blank. Before it came up with website, how do I correct it so it's not a blank page?

    I just want to be able to click on on the tab and have a search engine come up instead of a blank page. It used to do that but now it doesn't. How can I correct the problem??? Thanks.

  • Register system in SLD

    Hi Guru's, Another question! I have a j2ee-system that I would like to register in my central SLD. I go to the server, open the visual admin and go to Server - Services - SLD Data Supplier. The target system I want to connect to has to be reached usi

  • Mr11 not showing Purchasing Document

    I have a scenario where the purchasing document is not being shown in MR11. The GL view that is FAGLL03 shows this particular document but this is not revealed while mataining GR/IR account in MR11. This document is also shown after running MB5S that

  • How to setup a user account?

    i am new to the macbook air and have logged in and made an account but now i want to make another and have no idea how to.