Open a file into a java app - HOW DO YOU DO IT!!

I have written an html/php editor - I want to set it up so that when you double click on a php file in windows it will open the file into my java ide.
I know this can be done - but how!!! There does not seem to be any info on the web about it - can anyone give me some pointers.
Thanks

Yeah - but the problem is: You can only set files to
open with a .exe file - if you go to the settings and
set the .php file to "open with" you have to select a
.exe file e.g. notepad.exe
However you can't create .exe files in java!!!! So how
do you do it?You have to spend $$$'s
However many /most converters don't work without the relevant updated JVM (but they are *.exe, kind of)

Similar Messages

  • Opening a file from a java app (not applet)

    My program can't find the text file I'm trying to open in my stand-alone java app. I am specifying it like this:
    File filename = new File("myfile.txt");
    FileReader = new FileReader(filename);
    It is in the same directly as the class files. It won't find it when it's in a jar file either. I had a similar problem with an applet a lont time ago, but that turned out to be a security issue, which I assume normal apps don't have.
    So, what's up with this?

    If system become larger, there are duplicated files
    can be found in different directories.
    Using classpath may cause problem, if there are
    duplicated file name.
    If you are coding, you should know exact location of
    the file to be opened.
    "system become larger" - huh? You control the classpath on a per-app basis, not one huge monolithic classpath containing all jars/folders for all apps.
    It's common, well-designed practice to use the classpath. It's bad practice to hard-code directory names and expect all deployments of the app to follow the same directory naming convention. I wouldn't want you to dictate to me where to put the file on my hard drive. I should be able to install it anywhere I want, and let it find it (via the classpath, in this instance).

  • Open PDF file into flex mobile app

    Hy,
    I use this method to open a web page into my flex mobile application and I want to now if is possible to make the same for an PDF file.
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Test">   <fx:Script> <![CDATA[ import flash.net.URLRequest; import flash.net.navigateToURL; import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import flash.desktop.NativeApplication; import mx.events.FlexEvent; private var browser:StageWebView;
    protected function onButtonClicked(event:MouseEvent):void { browser = new StageWebView(); browser.viewPort = new Rectangle(0, 0, 100, 200); browser.stage = this.stage; browser.loadURL("http://adobe.com"); }  ]]> </fx:Script> <s:Button x="209" y="67" label="test" click="onButtonClicked(event)" /></s:View>

    Rangrajan,
    If you have the complete URL to the file; for example http://forums.adobe.com/filename.pdf
    or C:\users\yourname\filename.pdf
    Although I have not used it, you can pass the URL to Drumbeat Insight iFrame
    You can try their product, get prices for source code or library here: http://drumbeatinsight.com/products
    They offer email support for their products.
    You can make your own iFrame, with several sources.  Here is some background.
    http://www.ozzu.com/flash-forum/targeting-iframe-from-flash-t30013.html
    Let me know if this solves your file issue.
    I need to write a server-side app to listen to my web service, upload the PDF, then write a temporary file.pdf to the server,
    before my web app can load the PDF into a web hosted iFrame.
    Adobe needs to make this easy (and I even know some developers in the San Jose Adobe headquarters).
    Bruce

  • IPad Mini - Unable to open mobi files into another app...

    Just got an iPad mini and it appears that I can't open mobi files on my Kindle app. I also have an iPad3 and I have no problems opening mobi files on my Kindle app on it.
    Basically I put my mobi e-books on skydrive and when I want to put them in the Kindle app I just select to open the files in another app and I can select the Kindle app. I am unable to do this with my iPad mini.
    Both my iPad3 and Mini are running IOS 6.1.3. I did some google searches and found that this may be an issue with some iPads running 6.1.3. I installed a file manager app on my Mini and it appears that it sees the mobi files as rar format files so it does not give me the option to open them with the Kindle app.
    Does anyone know if there is a fix for this issue? I was planning on using my Mini as my primary e-book reader and I was hoping to be able to do this without having to convert all my mobi files into mother format
    Any help resolving this issue will be much appreciated!

    After trying various different things and resetting my Mini to factory default several times I was able to figure out how to open the mobi files I have on Skydrive and Dropbox in my Kindle app.
    I had to delete both my Skydrive and Dropbox apps and do it through the web browser.  I was able to download the mobi file with Safari and open the file in the Kindle app.
    Firest I reset my Mini setup and installed only the Kindle, Skydrive and Dropbox apps.  I could not open a mobi file into the Kindle app with either The Skydrive or Dropbox app.  I even reset my Mini and installed the Kindle app with just Skydrive and then reset it again and tried with just Kindle and Dropbox installed I could not get it work.
    Finally, I reset again and installed only the Kindle app and used Skydrive through Safari and it worked just fine.  I tested it with Dropbox and Safari and it also worked. 
    So basically, for whatever reason, my iPad Mini just can not open mobi files into the kindle app using either the Skydrive or Dropbox app.  However, my iPad3 running the same IOS and app versions can do it just fine.  Go figure...

  • How do you convert a jar file into a java file,  ?

    how do you convert a jar file into a java file ?
    I am new to Java ,but have a little experience in C++ and Visual Basic.
    I want to edit and maybe create my own mobile games that are written or converted into jar files.
    At the moment I am using Java NetBeans , and Easy Java( the java pad).
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?

    801283 wrote:
    how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
    I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
    I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
    Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
    Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
    However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
    midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one?

  • How to pass a file into a java method

    I am trying to pass a file into a java method so I can read the file from inside the method. How can I do this? I am confident passing int, char, arrays etc into methods as I know how to identify them in a methods signature but I have no idea how to decalre a file in a mthods signature. Any ideas please ?
    Thanks

    Hi,
    Just go thru the URL,
    http://www6.software.ibm.com/devtools/news1001/art24.htm#toc2
    I hope you will get a fair understanding of 'what is pass by reference/value'.
    You can pass Object reference as an argument.
    What Pablo Lucien had written is right. But the ideal situation is if you are not modifying the
    file in the calling method, then you can pass the String (file name) as an argument to the called method.
    Sudha

  • Opening a document from a Java app

    I need to open a document from my Java app. It is a .rtf file and I would like it to open with the system associated application for rtf files. How should I do that?
    I have tried to figure out the Runtime.exec(), but it doesn't do what I need. I have been able to open Notepad or WordPad (oh, yes, I am on a Win XT system) by specifying them in the exec function, but I can't find info on how to let the system choose the program.
    Thanks for your help.
    Wayne

    Take a look at the JDIC project
    https://jdic.dev.java.net/
    In particular the org.jdesktop.jdic.filetypes.AssociationService class
    https://jdic.dev.java.net/nonav/documentation/javadoc/0.9/index.html

  • I can`t open jar files though my java version is updated

    Hello everybody, I`m using Macbook Pro 13` with Lion on it.
    As it says in the title, I can`t open jar files though, my java version is updated.
    It says, I shuld check the console.
    Right now, my java version is, "1.7.0_15", and i`m trying to open a jar file created 3 days ago, by some developer.
    Although, if im trying to open jar file created 1 year ago, it doe`s open.
    Why is that? and, How can i fix it?
    Thanks.

    Franeo wrote:
    Hello everybody, I`m using Macbook Pro 13` with Lion on it.
    As it says in the title, I can`t open jar files though, my java version is updated.
    It says, I shuld check the console.
    With Java 6 and prior, you had to enable logging first before you could view error messages in Console.  I am guessing that you need to check the Java Control Panel to see if logging is turned on.

  • Integrating Explorer into a Java App?

    Is this possible?
    As I am going to be outputting some HTML, I would like to integrate IE into a java app that has been created.
    I would just like to know if it's possible, and ideally, a suggestion on where I can read more on how to do it.

    its possible, but very hard unless people have done it already (?) - you'd have to use JNI which lets you glue native code to java
    JEditorPane and JTextPane are Swing components that can render simple html which might be enough for your needs?import javax.swing.*;
    import java.io.*;
    import java.net.*;
    public class JEdTest1 {
       public static void main(String [] arg) throws Exception {
          URL url = arg.length>0 ? new URL(arg[0]) : new URL("http://java.sun.com");
          JEditorPane jep = new JEditorPane(url);
          jep.setEditable(false);
          JFrame frame = new JFrame("JEditorPane");
          frame.getContentPane().add(new JScrollPane(jep));
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(320,256);
          frame.show();
    }asjf

  • I work in schools and would like to know what if a school opens an iTunes account to purchase apps, how many iPads can the same app be loaded onto legally?

    I work in schools and would like to know if a school opens an iTunes account to purchase apps, how many iPads can that app be loaded onto legally?

    One iPad per purchase, assuming the iPads will be used by different users. If the school wants to purchase an app for multiple iPads, they have to have one license for each iPad. In the US, there's an academic volume purchase plan:
    http://www.apple.com/itunes/education/
    Regards.

  • Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    CS6 was the last version capable of opening Pagemaker files. It's included with Cloud subscriptions, so if you don't have it installed (or an earlier version) you can download it from your cloud subscription.
    To open them you use File > Open..., but the quality of conversion can range between nearly perfect and total garbage, depending on the PM file and the status of links (unembed images before trying to convert).

  • Whenever i type in the google box to search every letter i type firefox asks what would i like to use to open this file this is so annoying how do i get it to stop doing this?

    whenever i type in the google box to search every letter i type firefox asks what would i like to use to open this file this is so annoying how do i get it to stop doing this?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why can't I open my files in download hd app ?

    Why can't I open my files in download hd app ?

    I can't find "Download hd". The question is better addressed to the developer of that app. Unless you have the name wrong?

  • Went to open a file in words and got message. "You need a newer version of Pages to open this document." I have latest version.  All other files open w/o a problem.  Please help.

    Went to open a file in words and got message. "You need a newer version of Pages to open this document." I have latest version.  All other files in words open w/o a problem.  Please help.
    Thank you.
    <Email Edited by Host>

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • In safari, on a web page if you need to double click to get into an entry box, how do you do it?

    In safari, on a web page if you need to double click to get into an entry box, how do you do it?

    Yes, there seem to be big problems in this area in Safari.
    Report the problem to Apple at http://www.apple.com/feedback/iphone.html

Maybe you are looking for

  • Help: Not Downloading Apps?

    Every time I download apps it just keeps displaying the loading bar, but it won't fill up so I can use the app..? The only way I can download and use new apps is when I sync to my comp I can download them from their and install them on the phone. Has

  • Extra Phantom display reported

    I've tried a search but I'm not sure how to phrase this problem. I have a 2006 mac pro with 2 x NVIDIA GeForce 7300 GT installed from new. I have always run 3 monitors, a 20" Viewsonic LCD in the middle and 2 x 19" CRT's either side (Samsung on the l

  • Illustrator files printing in different sizes than was specified..

    Hi there, I am having a problem with some labels I have been making. I specify that I want the document to be 6.5 cm x 10 cm, and after I have laid them out in a page and printed them, I find that they are too big to fit on the surface I measured for

  • Panther to Tiger using LaCie Firewire DVD drive

    First, it was suggested I start a new topic, because of using an external Firewire drive. I have the proper Tiger "Retail" install disk. This is for a friends iMac that did not come with a DVD/Combo drive. Anything anyone can suggest. I'm hoping the

  • How to manage pages without changing the view?

    Hi! Often, at the stage of creation of the project such as the logo I create many similar pages for each of the mutation idea. Usually, at the end, leaves me a few dozen versions for further work. At this stage I want to make the ordering party and t