How can i run java file by double click like Visual basic

i have to run java file by giving a command on DOS promtp.But in Visual basic i easily make a .exe file to run my program. Does java provide this thing?
please help me.

If you have intaled a JRE in your computer, at leasrt in windows, the .jar files are asociated with the VM, so a double click on them will execute the, thats how things work on my computer, with jdk 1.4 installed.
Abraham.

Similar Messages

  • How can i execute "*.java " files in Workshop

    Hi,
    Im sunil,new to this weblogic workshop8.1..i dont know how to execute standalone .java files or servlets in workshop.plz help me and tell the way.
    regards
    Budati sunil

    Im not too sure about the Java project. But single normal java files with public static void maain(String [] args) are very simple to execute.
    1. Write the java code somewhere lets call this class A.
    2. Make a dummy page flow.
    3. In the begin action of this pageFlow, call the main method of the A class directly using A.main(null) since main is a static method. your code will work fine.
    4. If you have to pass a String[] as parameters. Before calling main, create this String[] and then pass it.
    In this way you can make a jsp and take the input from the user also.
    Hope it helps
    Cheeers

  • Adobe X: Can't open multiple files by double-clicking

    I have Adobe Reader version 10.1.0.534 running on Windows XP SP3. Once I have a .pdf file open, I cannot open additional .pdf files by double-clicking on their icon from within a folder or on my Desktop. I can only open them by going through the File>Open dialog in Reader or by dragging the icon onto the open Reader window. I can open the first .pdf file by double-clicking, just not any after that. This behavior is new in Adobe X.
    Does anyone else see this?
    Is this by design? If so, why? It seems to be an unneccessary annoyance and a deprecation.
    Thanks

    Hi Valerie,
    What happens if you try to open the same files after launching Acrobat, by choosing File > Open?
    Has anything changed since on your system since you were able to open Acrobat/PDF files by double-clicking?
    For starters, please try repairing the Acrobat installation by choosing Help > Repair Acrobat Installation.
    Please let us know how it goes.
    Best,
    Sara

  • Can't open PDF files by double-clicking

    really frustrating  - PDF files won't open, nothing happens when I double click my files. Need help to solve this problem shortly.
    I use ACROBAT  XI PRO / WINDOWS 8
    Thanks so much for your prompt consideration
    Val

    Hi Valerie,
    What happens if you try to open the same files after launching Acrobat, by choosing File > Open?
    Has anything changed since on your system since you were able to open Acrobat/PDF files by double-clicking?
    For starters, please try repairing the Acrobat installation by choosing Help > Repair Acrobat Installation.
    Please let us know how it goes.
    Best,
    Sara

  • Open a file in a running java program via double click

    I have already implemented opening my program with the corresponding file after a double click in windows explorer or from the cmd line but how do you open a file into the program if it is already running as MS Word will open a .doc file in the current word instance if you are running it.
    Thx,
    Jim

    Implement some sort of interprocess communication in your program. If you launch an instance, it can check whether another is running and pass a message to it telling it to perform the wished action.

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • How can i run java windows(class) app. from studio creator

    Hi experts,
    I want to run windows application(which write with java and compile javac, i have got *.class) from studio creator.
    For example;
    import java.awt.*;
    import java.awt.event.*;
    public class IlkPencere implements WindowListener,ActionListener
    public Frame p1;
    public Button btnIkinciPencere;
    public Button btnKapat;
    public int X;
    public int Y;
    public void PencereAyarla(String baslik,int genislik,int yukseklik,int konumX, int konumY,Color
    arkaPlanrengi)
    X=konumX;
    Y=konumY;
    p1=new Frame(baslik);
    p1.setLocation(konumX,konumY);
    p1.setBackground(arkaPlanrengi);
    p1.setSize(genislik,yukseklik);
    p1.setLayout(new FlowLayout());
    p1.addWindowListener(this);
    btnIkinciPencere= new Button("Ikinci Pencere");
    btnKapat=new Button("Kapat");
    p1.add(btnIkinciPencere);
    p1.add(btnKapat);
    btnKapat.addActionListener(this);
    btnIkinciPencere.addActionListener(this);
    p1.setVisible(true);
    public static void main(String args[])
    IlkPencere p=new IlkPencere();
    p.PencereAyarla("ANA PENCERE",250,100,0,0,Color.white);
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==btnKapat)
    p1.setVisible(false);
    else if(e.getSource()==btnIkinciPencere)
    IlkPencere p=new IlkPencere();
    X=X+50;
    Y=Y+50;
    p.PencereAyarla("ANA PENCERE",100,100,X,Y,Color.red);
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void windowOpened(WindowEvent e)
    public void windowClosed(WindowEvent e)
    public void windowIconified(WindowEvent e)
    public void windowDeiconified(WindowEvent e)
    public void windowActivated(WindowEvent e)
    public void windowDeactivated(WindowEvent e)
    I am using java server. I want this ; Any client can run my project(create with studio creator) with explorer after click any button after this class run application windows(but this windows application must run on server)
    I don't want to install any program in client PC. Client PC which have got only explorer, may be use this application.
    Thanks,

    or can i hidden explorer tools and address bar. User must use only my application menu.
    How can i solve it.

  • How can I convert Java file into an XML file

    I have a requirement to save a GUI screen developed in Java as UIML(it is xml based language).
    So could anybody help me with how to do this transformation.
    thanks
    JhonMathew

    Actually UIML is XML based technology which is used to represent language independent User Interface. It stores all the information like what all comopnents are present where they are located on screen and what action is called when user clicks on some items on screen like button.
    All this information is stored in structured manner in XML(UIML). So if we have UIML representation of some screen then we can render it in any GUI specific language like HTML, WML, swing etc using language specific renderers and transformers.
    In my case I have swing screen and I have to transform all that information in UIML. Could you please let me know how to start on this

  • HT1338 how can i run java on a Mac OS version 10.6.8?

    My company runs it's email and agent portal through Java, wen I wen through the Java web page to download the software
    it sends me to apple support, does anybody have an idea of how to run java on a Mac book Mac OS v10.6.8?
    help me please my job is depending on this.

    Since August 2012 updates for Java (and especially Java Runtime Environment, which is what you actually need) must now be downloaded direct from Oracle:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.h tml
    Further information here:
    http://www.oracle.com/us/corporate/press/1735645
    and their FAQ’s:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html
    However, if you need the Jave 6 JRE and plug-in, MadMAC0 has posted at
    https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182
    Apple has also posted (Oct 22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • How can i run Java class form  other java application.

    Hi ,
    I have problem to run java class from my java application,
    I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
    i got error (see below),
    Do you have any idea what is wrong?
    java.lang.ClassNotFoundException
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
         at Run.main(Run.java:31)

    What does "run an class" mean? You don't run classes. They're not executables.
    I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader.

  • How can I run java in Window XP?

    Hi, all;
    Since MS didn't support JVM in window XP, do anyone have any idea to run java in Window XP? Thanks for helps.

    Hi, all;
    Since MS didn't support JVM in window XP, do
    , do anyone have any idea to run java in Window XP?
    Thanks for helps.The MS version of Java was not up to date, and for most purposes (like using in Java 2 technology) you have had to download a Sun or IBM JVM anyway. The fact that Microsoft doesn't have a JVM is fine with me save the lack of a JVM in IE 6.x.
    Chuck

  • Why can't I open files with double click, etc?

    Hello, all,
    I have been having problems with my MacBook (Aluminum late 2008, I think, OS 10.5). It runs slowly; files on the desktop and in my "Macintosh HD" often won't open with double-click but have to be opened with File-->Open; there are Word Work Files that won't go away; the trackpad is often stiff and not very responsive; clicking on the mouse is very stiff, despite very easy settings. In short, a lot of things are sluggish. Sometimes, also, I get the spinning beach ball, but not all the time.
    I have run disk permissons repair from Disk Utility many times (both from the desktop and from the MacBook install disk); I have replaced the directory with Disk Warrior at least twice; I have verified that the disk is OK; I have zapped the PRAM; and done other things of that kind.
    I took the MacBook to an Apple Store yesterday. It had been unplugged and much to my surprise, most everything seemed to be working all right. When I opened it today, however, I found everything as it was before I took it to Apple. Including the Word Work files, which I thought were gone.
    If I recall correctly, this started when I was working on a long editing project in Word, but I don't know whether that has anything to do with what has happened. I've done similarly long projects before, and this never happened.
    I could try trashing the Word Work files (there seem also to be quite a lot of folders with "recovered" files), but I don't want to do that unless I can be assured that nothing bad will come from doing that.
    I know this seems quite comprehensive, and may involve several issues, but I'm really unhappy about this and would love to think there is something more I can do, apart from returning to the Apple Store. Besides everything else, how can I khow that I won't find, again, that the MacBook will work fine there but goes back to its troubled state when I return?
    Clues, anyone?
    Thanks,
    jenny

    Hi, Mike,
    I have 211.59 left out of total HD space of 232.57.Space should not be a problem. I'll try using Activity  Monitor today. I have 2 GB of memory. But since this is the first time I[ve had this problem, I don't see how it could be a problem with memory, do you?
    I finished the project more than a week ago. After I shut down the computer, it temporarily returned to normal but subsewuently started acting odd again, although I've done nothing but email since I turned it on again.
    I am going to try getting rid of the Word Work files and see whether that helps. I am wondering whether the book I was working on had something wrong with it (it was written in NeoOffice but opened in Word), or my copy of Word has gotten corrupted. Although I haven't used Word since I finished with the book.
    Sorry this font is so tiny, but although I was able to choose my font in my original message, there doesnt' seem to be a place to do that here. At least, I don't see it.
    I'll get back to you on the Activity Monitor. Thanks.
    jenny

  • Can't write to file when double-clicking jar...

    This issue has me stumped. I have a jar dssetup.jar... The manifest looks like the following...
    Manifest-Version: 1.0
    Main-Class: DSsetUp
    Created-By: 1.3.0_02 (Sun Microsystems Inc.)
    I also have a text file that I read and write to(this file is outside the jar):
    datasource.txt
    If I execute my jar from the command line, I can read and write to the file...no problem. However, if I double click my jar to run it, I can read the text file but cannot write to the text file. Has anyone seen this before?
    Thanks

    It is true ..
    you can not write anything to .jar file directly..
    .jar file is not a common file, it is compressed.
    the following tool give you some cue.
    tool named JavaJar(written by java) can compress and decompress jar,war, ear and.zip...
    may download from http://www.qwerks.com/download/4114/JavaJar.zip
    the tool is very verygood tool.
    but the homepage(www.pivotonic.com) of JavaJar cannot be accessed.
    it is funny.
    good lucky.

  • How to start a java application by double clicking just like windows gui?

    Hi,
    I want to open the user-defined file in my java application. The way is like the notepad in windows:1.double click the file name 2.the file is opened in the java application 3.if this file has opened at the same time ,then the last opened will be read-only.
    Could you tell me how to carry it out ? Thank you
    from Maria

    !!! Please give me a help! i am thirsty for itSo, to get this straight, you have a Java application in a jar. For some reason, you do not execute this directly. Are you aware that you can execute a jar directly without the need to write a C++ exe to do it?
    Anyway, for some reason, instead you have a C++ application which launches the JVM with your jar main class.
    Well, you want to do two things. First of all, on Windows level, you need to associate the file type of your user file with your application. Note that they have to have a specific file extension that you choose. To associate the file type with an executable, you open a windows explorer, go to View, Folder Options, File Types and add an entry for your file type and specify it to open with your application. If you do not know how to do this, google for "windows associate file type with program executable" or something alike.
    Now, if you double-click one of your user files, the associated exe will open, and it will receive the file name as a command line argument. In your C++ application, you will need to pass this argument, a file name, to the Java application where you launch it.

  • OFFICE 2010 can not open EXCEL files by double click, only File Open....

    Hi:
    I am using WIN7 ultimate 64 bit and excel 2010 (office 2010 Pro plus).
    I can not open any excel file(.xls and .xlsx) with a double click on the file. if I double click on the file, the application launches and excel starts, but no file is loaded and no error message, I have to manually go file open and select the file and
    then it opens correctly...
    I have tried every solutions I can find from internet, but none worked....
    1.Repair the office 2010 instalation.------doesn't work.
    2.Right-click the file >>Select "Open With" and select [Excel 2010]>> Check always use this program. ------doesn't work.
    3.Options>>Advanced>>General section>>unchecked "Ignore Other Applications that use Dynamic Data Exchange (DDE)".------doesn't work.
    4.Run>> input "Excel /regserver". ------doesn't work.
    5.Create new user profiles.------doesn't work.
    6.Delete EXCEL folder under "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\".------doesn't work.
    Is there any other solutions can fix this problem? Any help are appreciated. 
    Yong.

    Hello Yong,
    Thanks for posting in our forum. Seems you've already tried lots of things, and I can see that those are all steps that reportedly have worked for others.
    Here is one more thing that you might want to have a try:
    Open Registry Editor
    Go to the registry key HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open\command
    Highlight the key, select the (Default), select "Modify..."
    from the pull-down menu and then enter the value below: "C:\Program Files\Microsoft Office 15\Root\Office15\EXCEL.EXE"
    "%1" (include the quote marks)
    Then OK your way out
    Please have a try and feel free to post back.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • SQL Query with wrong result

    Hello. I have a query with LEFT OUTER JOIN that I think returns invalid results. Here are the problem details: CREATE TABLE DOGERR( IdDog INTEGER, SfPdg CHAR(1), IdVpl INTEGER, SfVpGot INTEGER, SfZrr CHAR(1) INSERT INTO DOGERR(IdDog, SfPdg, IdVpl, Sf

  • Portal themes for SAP GUI for HTML

    Dear SDNs, We have a portal theme designed with good and look and feel, but most of our applications are SAP Transaction iViews for HTML GUI. can we apply the same theme to HTML GUI applications? or at least can we change the background color and win

  • Airport Extreme & MacBook & MacBook Pro: only one can talk to Airport

    I've got an Airport Extreme is in bridge mode and hooked via an ethernet cable to an SMC router. The SMC device is a wireless (and four wired ethernet ports) router. It's attached via ethernet cable to a DSL modem. All the settings on the Airport Ext

  • New GL - Profit Center Accounting.

    Hello, My Client have implementaed New GL and Profit Center Accounting Scenario is activated. Document Splitting also activated and PC is made a zero balance and mendatory field. My query is: how the distribution for the reconciliation account will w

  • Advices for organizing content in SP2013 Foundation

    Hallo everybody we are studying SP to apply it to this situation: some hundreds of "contracts", i.e. collections of documents (varying from 1 to 100 PDFs, DOCs, emails); a hierarchic categorization of the contracts (eg. assistance, consulting, consul