How can I run a Java-Application with a Desktop-Icon ?

Hello,
I have got a problem: I want my Java-application directly by clicking on a desktop icon. Is there anybody who can tell me how to do so ? (I don't want to change my application into an exe File !!!).
It would be nice if you could give me a detailed explanation (or a link to thus) because I'm not used to the Windows-Classpath System (...as far as I need this...I don't know).
Thank you very much,
Findus

Ok...in the syntax just postet I forgot to set the absolute path of the file...but eveb if I do so it does not work...here the variations I tried...
D:\j2sdk1.4.1_01\bin>java D:\Viever\Gui
Exception in thread "main" java.lang.NoClassDefFoundError: D:\Viever\Gui
D:\j2sdk1.4.1_01\bin>java D:/Viewer/Gui
Exception in thread "main" java.lang.NoClassDefFoundError: D:/Viewer/Gui
D:\j2sdk1.4.1_01\bin>java D:\Viewer\Gui.class
Exception in thread "main" java.lang.NoClassDefFoundError: D:\Viewer\Gui/class
D:\j2sdk1.4.1_01\bin>java D:Viewer/Gui
Exception in thread "main" java.lang.NoClassDefFoundError: D:Viewer/Gui

Similar Messages

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • How can i run my java Application stand alone?

    Dear all,
    As the topic i want to run my application in a single file without showing the dos prompt or type in the command in dos prompt by the user......
    How can i do that, since in my application , i have used so other package?
    In fact i just want to do something like just run a executable file in windows.
    Thx

    Sounds like your JRE didn't install properly. Either reinstall it or you can enter the file association manually.
    On Windows NT (it may be different on other versions of Windows) take the View/Options menu item from an Explorer window
    Click on the File Types tab.
    Click the "New Type" button.
    Give it the name "Executable jar file" and an associated extension of jar
    Click the "New.." button
    Make the action open
    Make the application something like
    "C:\Program Files\Java\j2re1.4.0\bin\javaw.exe" -jar "%1"
    changing it for your installation.
    Col

  • How can I run a Unix script from a desktop icon?

    I have a Unix script I've created in vi and would like to run it by double clicking on an icon on my desktop. I would like to do this without the additional application layer of Applescript, Automator or Terminal. Is this possible?
    Thanks in advance.
    Howard

    Sounds like a job for platypus.

  • How can I run a vi developed with 7 Express?

    How can I run a vi developed with LabView 7 Express on another machine ? Do runtime versions exist ?

    Apparently, you want to run it on a machine that does not have LabVIEW installed.
    To make a standalone executable of your LabVIEW program, you need to have the Application builder (included in LabVIEW professional and higher, avaliable as an add-on for base and full).
    To run the application, the target system need to have the LabVIEW 7.0 runtime installed (available as a free download).
    There is also the LabVIEW Player. In this case you need to digitally sign your VIs and there are a few limitations. It is meant for for sharing code ideas and is not a viable substitute for the appl
    ication builder.
    Of course you could also get a second copy of LabVIEW.
    Some other options that would work in a very narrow set of situations: Read your LabVIEW license agreement. Under certain conditions you are allowed to install a second copy of LabVIEW on your home computer. If this is for personal educational use only and you qualify, you could also buy the LabVIEW student edition.
    LabVIEW Champion . Do more with less code and in less time .

  • Can we run a java application using Runtime.exec()?

    Can we run a java application using Runtime.exec()?
    If yes what should i use "java" or "javaw", and which way?
    r.exec("java","xyz.class");

    The best way to run the java application would be to dynamiically load it within the same JVM. Look thru the class "ClassLoader" and the "Class", "Method" etc...clases.
    The problem with exec is that it starts another JVM and moreover you dont have the interface where you can throw the Output directly.(indirectly it can be done by openong InputStreams bala blah............). I found this convenient. I am attaching part of my code for easy refernce.
    HIH
    ClassLoader cl = null;
    Class c = null;
    Class cArr[] ;
    Method md = null;
    Object mArr[];
    cl = ClassLoader.getSystemClassLoader();
    try{
         c = cl.loadClass(progName.substring(0,progName.indexOf(".class")) );
    } catch(ClassNotFoundException e) {
    System.out.println(e);
         cArr = new Class[1] ;
         try{
         cArr[0] = Class.forName("java.lang.Object");
         } catch(ClassNotFoundException e) {
         System.out.println(e);
         mArr = new Object[1];
         try{
         md = c.getMethod("processPkt", cArr);
         } catch(NoSuchMethodException e) {
         System.out.println(e);
         } catch(SecurityException e) {
         System.out.println(e);
    try {            
    processedPkt = md.invoke( null, mArr) ;
    } catch(IllegalAccessException e) {
              System.out.println(e);
    } catch(IllegalArgumentException e) {
              System.out.println(e);
    }catch(InvocationTargetException e) {
              System.out.println(e);
    }catch(NullPointerException e) {
              System.out.println(e);
    }catch(ExceptionInInitializerError e) {
              System.out.println(e);
    }

  • How can i share the pages application with another computer?

    How can U share the pages application with another computer?

    Just make sure it is for you or your family.
    If you purchased Pages through the Mac App Store, then just login on the other computer using the same Apple I.D. and you can install it at no extra charge.
    Peter

  • How can i get a java application

    how can i get a java application on my mac pro?

    I'm not sure I understand the question. If the application is a standalone applet, you download it as you would any other application or file. If the applet is embedded in a web site, just go to the appropriate web page.
    If you can provide more specifics about what it is you are trying to download/accomplish, perhaps we can be of more specific assistance.
    Regards.

  • How can I debug webdynpro java application?

    hi,
    How can I debug webdynpro java application?
    Thanks

    Check this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56
    Also check this sdn thread Re: DeBugginng The WebDynPro Application particularly shailesh kumar posting
    /padmanaban
    Edited by: Padmanaban on Sep 26, 2008 1:55 AM

  • How can i run Lightroom 3.6 with RAW files from Canon 650D?

    How can i run Lightroom 3.6 with RAW files from Canon 650D?

    Download the newest DNG converter from Adobe, convert your RAW photos to DNG, and then Import into Lightroom.

  • How can i let my java application closes the other opened windows

    how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance

    you'll have to use JNI to access the windowAPI
    then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
    somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
    regards
    Spieler

  • How can i run my form application on the other site?

    how can i run my form application(already compiled) on the other computer without developer/2000 environment?
    What should i do ?
    Thanks in advance!

    Well you have to install ORACLE developer runtime on your client side. then just copy your complied forms (fmx) files to your client machine and set it up to run.
    Hope this helps
    Faisal

  • I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software.

    I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software. I can buy these softwares.

    http://www.simplehelp.net/2009/02/02/how-to-install-windows-7-in-os-x-using-para llels-desktop-a-complete-walkthrough/
    http://blogs.parallels.com/consumertech/2011/10/24/install-windows-right-from-wi thin-parallels-desktop-7-guest.html

  • How can i run my .class file with out installing java ?

    Hai friends..am new to java , plz help me any one.
    I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
    one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any one

    Your friend will have to install the Java runtime if they want to run Java
    programs.
    Don't go copying files yourself - and especially don't go copying them to the
    location of the Java code. After all, if your friend wants to run 42 different
    Java programs they shouldn't have to have 42 copies of the runtime.
    Just download and run the installer from this site:
    http://java.sun.com/javase/downloads/index.jsp
    Be careful to download the "Java Runtime Environment" not the JDK.

Maybe you are looking for

  • How can I change the Apple ID tied to my I cloud account

    How can I change the Apple ID tied to my I cloud account?

  • Repeatedly being asked for username and password

    Good morning, I have a Windows Home Server which I store my pics and music on, and then sync it with my Mac. I have connected to the WHS and entered my username and password and ticked the checkbox telling it to store these in keychain. I then drag t

  • Asian characters in iPhone?

    Hello. I have a client who does asian inputs and outputs on his old Palm Treo 650 and Pilots (don't remember the models) with CJKOS (http://www.dyts.com/en/cjkos.html ). He would like to get an Apple iPhone. Does iPhone have the abilities to do asian

  • Diffs between Win 3.11 & NT 4.0

    Greetings, I have recently come across an issue that I am not sure how to go about solving...: We have a Forté application whose windows were developed/painted on Windows 3.11. Our client is now switching to NT 4.0, and suddenly our windows look bigg

  • Why does my battery percentage go up when I restart my iPad?

    Sometimes when I restart my iPad the battery percentage goes up and the battery shuts down early. Any advice?