Open a java file from c#

Does anyone know if it's possible to open a java file from a c# web form?
Any links would also be appreciated,
Thanks,
Clivert

I don't know anything about C# web forms (that's pretty far away from the topic of this forum) but I expect anybody answering the question would need to know what you mean by "open" and "a java file" in that context.
For example it might mean to cause a text editor to run and display the source code for a Java class. Or it might mean for a Java JVM to start running and execute the main method of a Java class.

Similar Messages

  • Reading Java files from a EAR file

    I want to read all Java files from a EAR file and from inner (inside EAR) EAR or WAR file with out unpacking.
    suppose "Demo.ear" contaions the following files:
    abc.java
    programs / a.java
    programs / b.java
    src / index.java
    src / com / myFolder / main.java
    src.war
    and suppose "src.war" again contains some java files inside differenet folders.
    The main problem is that i can read all java files from "Demo.ear" but unable to reading from "src.war" b'coz my program is using JarFile class constructor which needs a archive file path, So only top level archive having the path but not the inner archives.
    So, pls help me out to this problems
    Thanks in advance

    Maybe you can use java.util.zip.ZipInputStream to
    open the Ear and recursively to open the files in
    it; I'm not sure whether this will result in a full
    unpacking of the file in some temporary directory,
    though.
    Please let me know if it worked the way you wanted,
    I'm curious about it.This jerk just created the third thread about the same topic, because he didn't understand your suggestion, which I already provided earlier.
    http://forum.java.sun.com/thread.jspa?threadID=790015

  • Open a local file from a web Service

    Hello!
    Likely this is a trivial question, but I need to open a local file from a Web Service and i don't know how to get the file path. I mean that I have a WS source code placed in a proper package (my.ws.package) with an additional configuration XML file placed in the same directory. I need to read it, but if I use merely
    File conf = new File("Conf.xml");it can't find it. I've tryed with:
    MyWS.class.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()in order to get the file path, but a
    java.security.AccessControlException access denied (java.lang.RuntimePermission getProtectionDomain)arises...
    I don't know...
    Suggestions?
    Thanks.
    Anhur

    Hello!
    Likely this is a trivial question, but I need to open a local file from a Web Service and i don't know how to get the file path. I mean that I have a WS source code placed in a proper package (my.ws.package) with an additional configuration XML file placed in the same directory. I need to read it, but if I use merely
    File conf = new File("Conf.xml");it can't find it. I've tryed with:
    MyWS.class.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()in order to get the file path, but a
    java.security.AccessControlException access denied (java.lang.RuntimePermission getProtectionDomain)arises...
    I don't know...
    Suggestions?
    Thanks.
    Anhur

  • When i open an mp3 file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place.  The exception is when you drag it to the Automatically Add To iTunes folder.
    It does not convert the file.  You can delete the original if you wish.

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • How to open an InDesign file from CMIS repository?

    We are using CS SDK 2.0 , looking to use CMIS to keep versionning of .indd file. The uss case as following:
    form our de4veloped InDesign pluging, user click a button
    the button will open a .indd file from cmis repository
    plugin check-out the file, open it within InDesign IDE
    user make changes
    user make save
    the plugin export a pdf and swf files from the current document, if the files exists it will update, aslo on CMIS repo to keep also versions of exported pdf and swf, if files not exist in first time .. it will create
    when user clos the document , it will check it in.
    the problem there is no sufficent sample code for, even was thinking to use Adobe Drive, but there is no Adobe Drive SDK for Flex.
    i used to fuse the sdk, but
    private function getFileByPath(sPath:String):Fileable {
    appStatus = ">> get File By Path";
    message = "";
    viewEnabled = false;
    var request:GetObjectByPathRequest = new GetObjectByPathRequest(session);
    var oFileable:Fileable;
    request.path = sPath;
    request.execute(onSuccess, onError);
    function onSuccess (event:GetObjectByPathResponse) : void {
    oFileable = event.object;
    //var oDoc2:Document = new Document(event.object);
    doc = event.object as Document ;
    //children = new ArrayCollection(vectorToArray(event.target));
    appStatus = ">> getFileByPath : Success";
    viewEnabled = true;
    return oFileable;
    private function checkOutFile(oFile:Document):Document{
    appStatus = ">> Check Out File";
    message = "";
    viewEnabled = false;
    var request:CheckoutRequest = new CheckoutRequest(session);
    request.object = doc;
    var oDocument:Document;
    request.execute(onSuccess, onError);
    function onSuccess (event:CheckoutResponse) : void {
    oDocument = event.object ;
    appStatus = ">> Check Out File : Success";
    viewEnabled = true;
    return oDocument;
    private function openTestFile():void {
                                            appStatus = "Open Test File";
                                            message = "";
                                            viewEnabled = false;
                                            var oFile:Fileable  = getFileByPath("/Collaboration/test.indd");
                                            //var oDoc2:Document = new Document(oFile);
                                            var oDoc:Document  = checkOutFile(doc);
    i do not know what method in the CS SDK to open document fom active window and  how to map CMIS Document to com.adobe.indesign Document ?

    Dear Seoras
    i fixed the to return the cmis path:
    public function resolveRemotePath(file:File):String
                                  if (file.nativePath.indexOf(LOCAL_FILE_CACHE.nativePath) != 0)
                                            return null;
                                  var remoptePath:String =file.nativePath.substr(LOCAL_FILE_CACHE.nativePath.length);
                                  trace("resolveRemotePath [11] : "+ remoptePath);
                                  if(File.separator!="/") {
                                            //var pattern:RegExp = /(\/)/g;
                                            var pattern:RegExp = /(\\)/g;
                                            remoptePath =  remoptePath.replace(pattern ,"/");
                                            trace("resolveRemotePath [22] : "+ remoptePath);
                                  return remoptePath;
    i have another issue, why everytime update the generated pdf it creates new pdf file with same name in the cmis repo .. does the pdf is not updatable over the cmis service ???
    Regards

  • How do I get Adobe Acorbat to open a .pdf file from a sharepoint library without having to checkout the file

    I have a customer that is using Adobe Acrobat pro version 10.1. When they try and open a .pdf file from a SharePoint site, the user is prompted to check out and open the file or open the file. Is there a way to get Adobe Acrobat to open the .pdf file without prompting to check out or open?
    Thanks
    Jim

    This is mostly a lion thing, rather than a PSE thing. To disable applications opening where they left off last time for all the programs on your computer, go to system preferences>general and untick this box:
    You can also do on a per-program basis, but it's more complicated and the best thing to do is to search around for directions on the web and see which way is least uncomfortable for you.
    There's an odd little glitch in PSE that it opens the last image you had open, even if you closed it before quitting last time. Adobe says this is correct behavior, but of course it isn't.

  • I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a n

    I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • Creating Java file from XML data

    I have a information regarding a java file like class Name, attribute name,type, and function details in a XML file now I want to create a java file from this XML. Kindly tell me the some way to solve this problem as soon as possible.
    Thanks
    Sumit Kumar Agarwal

    So how does it take this file
    file>
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    </file>
    and create these three different one?
    1.)
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    2.)
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    3.)
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    Is it not going to just grab each element after the file tag? I'm just confused about that.

  • Starting exetutable java file from java code

    Hi I was wondering how I can start a executable java file from java code?
    thanks

    Hi Mkaveli,
    Yes, it's possible. If you have a JAR executable, you've just to call the main method of its starter class. For a simple executable class, just call its main method.
    This way :
    SomeStarter.main(null); // if there's no argumentSmall precision : the executable JAR or class must be specified in the classpath of your application.

  • Open an xml file from a URL

    i am trying to open an xml file from a URL.
    i have been using the standard (i think!) xml suite, part of the System Events. is this possible? is this the best way? are there alternatives? any good tutorials of how to use it too?
    the file i am trying to open is: http://www.tvrage.com/feeds/episode_list.php?sid=xxxx
    where "xxxx" is a number of a show, e.g. 2930 is buffy
    regards
    jingo_man

    It works!!
    I used the URL and BufferedReader classes to fill the parser. Here's how:
    // create a new object of type URL
    URL xmlURL = new URL( "http://ServerName/DbName/PageName?OpenPage&username=myname&password=mypassword");
    // Create the SAX2 parser
    SAXParser saxParser = spf.newSAXParser();
    xr = saxParser.getXMLReader();
    // Set the ContentHandler
    DefHandlerClass myHandler = new DefHandlerClass();
    xr.setContentHandler( myHandler );
    // read the URL stream into the BufferedReader
    BufferedReader in = new BufferedReader( new InputStreamReader(xmlURL.openStream()));
    // parse the document
    xr.parse( new InputSource( in ) );
    // close the input stream
    in.close();
    PjR

  • How do I open a .m4a file from Mail into Music app?

    How do I open a .m4a file from Mail into Music app?
    I mixed down a song from my band's latest session and saved it as a .m4a file (Apple AAC Audio format) and I e-mailed it to myself. Then on my phone I opened the e-mail message in Mail and held a long-press down on the attached .m4a file. But I do not see the option to open it up into the Music app. It only gives me the options of iMovie, WeChat, and USB Disk. Why would I want to open it up in those? It's a song. It should open up into the Music app so I can play it. What the heck?
    Please don't tell me that I have to use iTunes to do this and sync my phone to my computer, because I *do not* want to add these songs to my iTunes library. They are *practice session tracks* that I want to listen to then delete later when we have new versions.
    If there is no way to open them into the Music app, then is there a music player app I can get somewhere that will let me simply save audio files from Mail into it, and use it as a player for those songs? That's all I want to do.
    The only reasonable workaround I have found so far is to save them as .mp4 audio files, which the iPhone thinks are movies, so it lets me save them into the camera roll as Videos.
    Voice Memos would be acceptable as a place for them to be able to open into as well, but of course that's also not on the options list. Sigh.

    TJBUSMC1973 wrote:
    You'll have to use iTunes, add it to your iTunes library, then sync it.  You can always delete it from your iTunes library later.
    Why is that such an issue for you?
    Why do people insist on replying to threads without even reading the original post? I explained it there already!
    I don't have to use iTunes to save an image from Mail into my camera roll, or to save a PDF from Mail into iBooks. Why should I have to use iTunes to save a music file into Music app?
    But I'll repeat it since evidently you can't be asked to read the original posts before spamming a thread with questions that have already been answered. I *do not* want to add these songs to my iTunes library.
    My iTunes library is a sacred temple into which I only allow to enter the very best and highest-fidelity musical recordings of all time. I refuse to sully and soil my iTunes library with crappy practice mixdowns from my band, etc.
    Want to know why? Because I like to be able to hit "shuffle all" on my iTunes library and know that something that will improve my existence will emanate forth from this amazing device that I have invested thousands of dollars into (yes, I count my cell phone plan amongst the expenses).
    I shall not have the crappy burner mixdown tracks from my band's practice sessions come up every five songs (we generate TONS of these... literally hundreds... and they are all high-bitrate .m4a tracks in the 10-15 MB range). I let iTunes keep my music folder organized on my computer. It makes copies of everything being placed into it, and I don't want 159 GB of copies of burner tracks hiding like roaches throughout my temple. We don't name these files anything sensible (in fact the guy who mixes them down intentionally gives them random weird names) and they lack metadata. So there's no easy way to delete them back out of iTunes once they're in there. It's a huge pain; I used to do it, but I swore it off years ago and *I'm never going back!*
    The REAL question is, why does Apple force me to have to use iTunes—the most convoluted, kludgy piece of bloatware ever to issue forth from Cupertino—to do something as simple as adding an MP3 from Mail into the Music app on my phone? Why can't there be something simple—something equivalent to the Camera Roll inside the Music app, not only for the files I want to save from Mail, but also for my Garage Band exports, not to mention all the exports from all the various synthesizer, drum machine, and recording apps I use on a daily basis in iOS?
    It would be awfully nice to be able to play the songs I've recorded right in the Music app without having to go through the rigamarole of adding those files to my iTunes library, tagging them with metadata, syncing, etc. etc. yadda yadda yadda—just to delete them again as soon as I've synced so they don't pollute my computer's iTunes library!
    I bought Apple for ease of use, not so I would be forced to jump through a million hoops just do to something that ought to take one tap to accomplish!  That's ridiculous!

  • Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?

    Why I cannot open raw files (NEF) from camera Nikon D3200 through Adobe Bridge and/or Photoshop ?

    Thanks for the tip. It worked out perfectly.
    De: ssprengel [email protected]
    Enviada em: terça-feira, 14 de janeiro de 2014 19:14
    Para: Aecio Paes Leme
    Assunto: Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?
    Re: Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?
    created by ssprengel <http://forums.adobe.com/people/ssprengel>  in Adobe Camera Raw - View the full discussion <http://forums.adobe.com/message/6012775#6012775

  • I cannot view PDF in Firefox at the first time but once I manually open the PDF file from my local computer, I can view other PDF files via Firefox webbrowser

    I install Adobe Acrobat 9 in my laptop which runs on windows 7. I use Firefox 3.6.8 and have the problem with the PDF file. The problem is I cannot open the PDF file in Firefox web browser at the first time I launch firefox. It shows a warning box without any message. Only OK button is shown so I can close it. However, if I manage to open the PDF file from my local computer by just using adobe acrobat itself then the PDF can be opened in the Firefox web browser. I followed the instruction on the mozilla help but nothing works for me. The problem still exists. I wonder if anyone have the same problem like me and know how to solve this. Thank you so much

    Hi there!
    I cannot help you, but I think we have a common problem: We got a system here running Vista SP1 with Acrobat 9 standard on it. When we open a pdf file it works normally, but when we open another pdf file, we see the first one in that second window.
    Think that missing option to watch several files within a single window-thing messed up more than meets the eye ... but as we just purchased the 15 licenses, we have to use version 9.
    I didn't find any clues on this problem, but I will post any new hints I get.

  • I just installed Camera Raw 8.7.1. It put the folders in a "Pug-Ins" folder under \Programs\Common Files. My Photoshop CC 2014 is in \Programs\Adobe\Adobe Photoshop CC2014. When I try to open a NEF file from my Nikon D750, CC 2014 says it cannot open it;

    I just installed Camera Raw 8.7.1. It put the folders in a "Pug-Ins" folder under \Programs\Common Files. My Photoshop CC 2014 is in \Programs\Adobe\Adobe Photoshop CC2014. When I try to open a NEF file from my Nikon D750, CC 2014 says it cannot open it; it is an unsupported file type. So what do I need to do? TIA, Rob

    *** Moved to Photoshop Discussion Thread ***

Maybe you are looking for

  • Unable to completely install Office Pro 2013 in Windows 8.1

    I had Windows 8 on my computer and purchased Office Pro 2013 and tried to install it. It completed part way and then it kept asking me for a password. Then it displayed the Letters and numbers I was to retype and tried that 4 times with no avail. To

  • Airport Wirless Router Linksys

    have a wireless Linksys router that I put a 128 bit encryption. It was driving me mad that when booted up in OS 9 I could not use my password. I tried using the entire 24 character code as a password, and it works. That is how you use 128 bit encrypt

  • Sign On Help using jPos!!!

    Dear All, We are developing a client application that should communicate with the Utiba Uchoose Server. According to the Utiba spec we have to send, 2-byte length header in Binary format (Network byte order) (Note: this length header denotes the numb

  • How do I submit a Report link with a URL for one of the values

    Hi -- I have a Report link on a column, and I want to set an item to one of the report columns which contains URL values (like "http://...."). If I do that, the URL ends up in the hyperlink and is not escaped, so the colon confuses things. How do I g

  • Getting rid of horizontal tab chars in a field

    I have a database column thats CHAR 10. In that field I have a tab character (Hex 0009)  I've tried several things to replace that with a space (Hex 0020). Any code suggestions would be appreciated.