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!!

Similar Messages

  • 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 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

  • 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 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 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 :/

  • 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

  • Help! How to create Jar file for a packaged class?

    Hi!
    I am new in jar complexities. I made a swing frame that just prompts a JOptionPane when executed. I accomplished the same using jar without packaging my class SwingTest.
    But when i package it, it doesn't run. Can any one tell me how to make jar file of packaged classes and include images in the jar files too!
    Really Thanx!

    Call the Jar from the commandline to see the exceptions thrown.
    java -jar <jarFileName> <className>

  • How to create .JAR file in JSE 8?

    I don't know how to create a .JAR file from my project. I found a .JAR file in .../dist under my project folder, but I could not run it.

    This Swing app has 2 class files, requires Swing Library to be imported (of course), and requires no other files. It seems like the program does not import Swing Lib. so that it can display the JFrame inside.
    1. I have JRE installed separately so I can run Jar files directly by double-clicking. I also tried to run within command prompt, and had the same result. No error or exception warning found.
    2. As I said, the program requires no other files.
    3. I repeat that it works fine within JSE as well as JBuilder. the Jar created by JBuilder (same code) works fine, too.
    4. This Jar file is the only one Jar that I found in my project folder, and has the same name with the project. (But anyway, there's no folder contains 2 files with the same name, so this verification is not necessary).

  • How to run ear file in java application server

    i want how to run .ear file in java application server
    1. i m created ear file
    2. i m created jar file (bean,home,remote)
    3.i m created war file(in the form of jsp)
    but till now i couldnt run ear file
    how to run
    please hel me

    You must create :
    1.Jar file
    2.War file
    And then put them into an ear file
    Exemple : myapp.ear contains
    myappEJB.jar
    myappWEB.war
    META-INF/application.xml
    and application.xml looks like this :
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
                            http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
        <display-name>myapp</display-name>
        <description>Demo application</description>
        <module>
            <ejb>myappEJB.jar</ejb>
        </module>
        <module>
          <web>
             <web-uri>myappWAR.war</web-uri>
             <context-root>/myapp</context-root>
          </web>
        </module>
    </application>Good luck

  • How to include .jar files in coldfusion code 

    To Integrate our cfm code with paypal jar files we do the
    following steps with our local coldfusion server ,and to run and
    integrate the paypal Java SDK jar files, I think we need to do the
    same process on the server, can you suggest any thing to do the
    following setting for my domain on the server, without setting the
    class path in coldfusion administrator.
    The ColdFusion application server must be configured to know
    the location of the PayPal JAR
    files, and your ColdFusion Markup (CFM) pages must be
    configured with the absolute path to
    the PayPal API certificate for the PayPal API user on whose
    behalf the calls are made.
    1. Install the PayPal Java SDK “Installing the
    SDK”.
    2. Copy a subset of the Java SDK JAR files to a location
    accessible by the ColdFusion
    application server. The JAR files are in SDK_root\lib and
    their exact names are as
    follows:
    – bcmail-jdk14-128.jar
    – bcprov-jdk14-128.jar
    – paypal_base.jar
    – paypal_stubs.jar
    sax2.jar
    – xerces.jar
    – xpp3-1.1.3.4d_b4_min.jar
    – xstream.jar-1.1.3.jar
    3. With the ColdFusion Application Server Administrator, add
    the absolute path of the
    location you determined in Step 2 to the Java and JVM
    CLASSPATH environment variable.
    4. Restart the ColdFusion Application Server.
    Suggest me how to include .jar files without setting
    classpath.

    > Suggest me how to include .jar files without setting
    classpath.
    Copy them to {CF_HOME}\lib, where {CF_HOME} is, for example,
    C:\CFusionMX7. Restart Coldfusion.

  • How to make Jar files in JBuilder

    I would like to know how to make jar files using JBulider. I have a problem with a project that I am working with in Swing. I have made the project on JBuilder and when I make a jar file it will not run upon clicking.
    Any body with an answer, please help
    Abhi

    It sounds like your Main-Class is not set properly in your manifest. To set your Main-Class, please follow these directions:
    http://java.sun.com/docs/books/tutorial/jar/basics/run.html

  • How to make jar file for this compilation method ?

    can any one tell me how to make jar file for this compilation
    D:\java\browser\IEInJava>javac -classpath jdic.jar;. IEInJava.java
    D:\java\browser\IEInJava>java -cp jdic.jar;. IEInJava
    *this is a compile code:-*
    D:\java\browser\IEInJava>javac -classpath jdic.jar;. IEInJava.java
    *and this is a run code:-*
    D:\java\browser\IEInJava>java -cp jdic.jar;. IEInJavanow how make JAR file ?

    Assuming IEInJava only uses classes inside the jdic jar, this is one way. D:\java\browser\IEInJava> jar cf yourjar.jar IEInJava.classThen to run it you would use D:\java\browser\IEInJava> java -cp jdic.jar;yourjar.jar IEInJavaAnother way would use the jar manifest file to specify the Main-Class and Class-Path.

  • How to run .exe files with Virtual PC for Mac

    Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
    Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
    Thanks in advance!
    Have a nice day!

    Always nice to see new faces
    Honestly I've no idea of what an OS is or where do I get that.
    This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
    http://www.parallels.com/
    http://www.vmware.com/products/fusion/
    OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
    The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
    There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
    http://www.codeweavers.com/products/cxmac/
    In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
    With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
    You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
    Message was edited by: dechamp to try to be more accurate with a fairly complicated issue...

Maybe you are looking for

  • Change encoding of input message sent by J2EE Adapter

    Hi all, I get a input message with a wrong encoding (Sender SMTP Adapter). Within XML prolog, there's a declaration of UTF-8. Having a look at the message, it's ISO-8859-1 encoded. That mean's I've to do one of the following options: a) change encodi

  • SAP NW702 SP6 - SAP console is not working

    Dear Team, I have installed SAP NW702 trail version in Windows Server 2008 R2, after a weeks i have encountered this issue. SAP MMC console is not started and still in idle status. Please find the below error messages, "SAP Basis System: Initializati

  • Some comments show as XML markup?

    In a few documents that are shared for review, some of the comments look like code, how do I correct this?

  • Web Container not getting Overloaded

    Hi, In my web container for WLS 10.3; I have OverloadProtectionEnabled flag set to 'true' at the domain level. I have a web application that uses in-memory session persistence. The maximum number of sessions is also configured. <wls:session-descripto

  • WD VelociRaptor VS Intel SSD

    Well, it's going to be a matter of what is more important to you.Assuming a static budget:SSD is going to mean more performanceHDD is going to mean more spaceYou're going to need to outline the following:Your budgetThe amount of storage you need nowT