JimP: Setting View Source's srcpath -- how?

Gentlepersons,
Here's a tiny liittle Flex app:
I'd love to show you the source to this app, but I don't know how to do so. I have been pounding Google and reading books (half a dozen so far) and none of them say how to specify the path of the "View Source" menu item.  They say "Just select Project ->Export Release Build, check the View Source option, and voila! You're done!" But that is not the end of the process.  That's just the start.
- How, *exactly*, does one place a Flex app on a given web page? Obviously, I've learned a tidbit or two about this, or I wouldn't be able to place the above app in this web page. But maybe I'm doing it wrong, and perhaps that wrongness is causing my View Source problems.
- The app above is online at http://www.igetitmusic.com/blog/SWFs/Tweener/Tweener.swf. To get it there, I copied the entire bin-release folder to my server's SWFs folder, and renamed it after the project name ("Tweener").  Is this the right thing to do?
- The above app's View Source menu item looks for its source code in some apparently-random place.  I say "apparently-random," because I cannot find documented anywhere the process by which this path's default is determined, and the process by which you set it to something other than the default.
The question, then, is this: What, *exactly* -- leaving out no "obvious" steps -- is the algorithm for publishing a Flex application to the Web, such that its View Source menu item works?
The meta-question is, where is this algorithm documented? I suspect that this as-yet unread tome will hold the key to answering many other similar questions that have been bugging me.
Overall, I am really enjoying the process of learning Flex. It's this "obvious" stuff that's tripping me up (and thereby bugging the crap outa me)...
Respectfully, and with sincere appreciation for any help, I am
Yours,
Jim Plamondon
Austin, Texas
www.igetitmusic.com/blog

Gentlepersons,
This turns out to be a known bug in Flex 3, which has been fixed in Flex 4 (which is still in development).
In the meantime, the workaround is to expose, in the web page in which a SWF is embedded, a separate link to that SWF's source code (labelled something like "click here for source code").
Hoping that this helps, I remain
Yours,
Jim Plamondon
iGetIt! Music
www.igetitmusic.com/blog
Austin, Texas

Similar Messages

  • JimP: Setting srcview in View Source -- how?

    Gentlepersons,
    I'm reposting this question because my previous posting on this topic had an error in it that made responding difficult.  My bad.
    Run this tiny Flex app (which does absolutely nothing of interest):
         http://www.igetitmusic.com/blog/SWFs/Tweener/Tweener.swf
    ...and then select its "View Source" menu item (by right-clicking or command-clicking on it). Up comes the source code, which is in
         http://www.igetitmusic.com/blog/SWFs/Tweener/srcview/index.html
    Coolness!
    The same applet is embedded at the bottom of a blog posting here:
         http://www.igetitmusic.com/blog/2009/05/shape-of-frustration.html
    ... by embedding a link to exactly the same SWF as above (that is, to http://www.igetitmusic.com/blog/SWFs/Tweener/Tweener.swf).
    Now, select the "View Source" menu item in the BLOG's reference to the applet.
    Whoa, Nellie!  It doesn't work!  It looks for the source code in the wrong place: http://www.igetitmusic.com/blog/2009/05/srcview/index.html.
    Where did that path name come from?
    What algorithm is the View Source menu item using to generate the path name to its source code?
    How can I override this algorithm's behavior so that embedding [swfpath]/foo.swf into [whatever]/aPage.html will cause the View Source menu item of that object look for its source at [swfpath]/srcview/index.html, not [whatever]/srcview/index.html?
    Respectfully, and with sincere appreciation for any help, I am
    Yours,
    Jim Plamondon
    Austin, Texas
    www.igetitmusic.com/blog
    P.S.: PLEASE DO NOT tell me that "you can generate source by checking the "View Source" checkbox in the "Export Release Build..." dialog. Clearly (this is clear, isn't it?), the problem isn't generating the source, it is finding the source at runtime.

    Gentlepersons,
    This turns out to be a known bug in Flex 3, which has been fixed in Flex 4 (which is still in development).
    In the meantime, the workaround is to expose, in the web page in which a SWF is embedded, a separate link to that SWF's source code (labelled something like "click here for source code").
    Hoping that this helps, I remain
    Yours,
    Jim Plamondon
    iGetIt! Music
    www.igetitmusic.com/blog
    Austin, Texas

  • I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library from all of my devices?

    I would like to set up my email on the apple tv as well as have my husband's email on there so we can view both sets of photos and videos - it is already set up in his name - how do i add my name so as to view my photo library and songs from MY phone ?

    this is not a reply - i asked the question - still trying to learn how all this works - someone please HELP ME

  • How can I turn off word wrap in the View Source output?

    I'm trying to extract HTML from Word and one way to do that is to save the Word file as a .htm file and then View Source in a browser and copy that. But the words are wrapped in the View Source file. I want each paragraph to be all on one line. Is there a setting for the View Source feature that will turn off word wrap?
    Once I have that done and copied into a plain text editor, I will use Search>Replace to get rid of all the stuff Word puts there and just end up with the simple paragraph tags at the end of each paragraph, all on one line.

    You can disable wrapping and syntax highlighting in the View menu in the Edit > View Source window.

  • In ios 7 I can't see my old playlist of videoclip in landscape view. Anybody know how can I set it?

    In ios 7 I can't see my old playlist of videoclip in landscape view. Anybody know how can I set it?

    Hello everyone,
    I faced this same issue, but not from updating to iOS 7.
    In my case all my music playlists disappeared. In another post I found a process which got them back, but after I'd done so I noticed that my Apps list and my books list were both empty, even though I'd bought plenty of books & apps. The following trick I discovered restored both of these lists.
    1. Within iTunes, select the Apps tab within the library, to show the (empty) window of all your apps.
    2. Now in a finder window, open your iTunes folder. On my computer this is in my Music folder.
    3. Within the iTunes folder, locate and drag the "Mobile Applications" folder into the apps window.
    Presto!!
    The same thing worked for finding the missing books, except that the books folder is stored one level deeper, within the iTunes Music folder, and of course I dragged it into the books window.
    I don't know if it matters, but I'm still running OSX 10.6.8 because I have use some legacy OSX apps that won't run in anything more recent, but my iTunes version is 11.1.4.
    I hope this helps a few people...

  • How to set image source path in formsweb.cfg file in forms 11g

    Hi,
    I had written HTML code in the formsweb.cfg file in forms 11g. In the below code i am unable to retrive image file(i.e., .gif, .jpeg) from the server or local machine.
    In the below HTML code i set image source in the image tag as below:
    <img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF"
    Is this correct path to fetch the images from the server or local machine .
    Please help me out how to set path for image in html or is there any alternate process to retrive images.
    Here is the code :
    [INDIVIDUALUAT]
    workingDirectory=D:\Aims10dev\Work
    form=LMstartup.fmx
    userid=rmenu/rmenu@RLIFEQA64
    codebase=/forms/java
    imageBase=codebase
    width=1005
    height=750
    WebUtilArchive=/forms/java/frmwebutil.jar,/forms/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar,life-icons-round.jar,Agilis_Icon.jar,life_Icon.jar,personalize.jar,hyperlink.jar,amazingbutton.jar
    archive=frmall.jar
    separateFrame=False
    lookandfeel=Generic
    EndUserMonitoringURL=True
    usesdi=yes
    #HTMLbeforeForm= <table width="1005" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="/forms/html/agilis-life-logo.gif" width="200" height="80" /></td><td width="10"><img src="/forms/html/agilis-life-new11_02.gif" width="36" height="80" /></td><td width="805" valign="top" background="/forms/html/agilis-life-new11_03.gif"></td></tr></td></tr></table>
    HTMLbeforeForm=<body topmargin="0" leftmargin="0" > <table width="1005" height="100" border="0" cellspacing="0" cellpadding="0"><tr><td width="200" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-logo.gif" width="200" height="80" /></td><td width="10" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_02.gif" width="36" height="80" /></td><td width="550" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_03.gif" width="550" height="80" /></td><td valign="bottom"><table width="219" height="90" border="0" cellspacing="0" cellpadding="0"><tr><td height="36" valign="bottom" align="center"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agile-logo.jpg" height="36"></td></tr><tr><td height="10" valign="bottom"> <div align="right"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none; color:#00000; " >Home | Change Password | Logout</span></div></td></tr><tr><td colspan="3" valign="bottom"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF" width="100%" height="39" /></td></tr></table></td></tr></td></tr></table></body>

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

  • How can I view source on an app (preferably before installing)?

    An app for Firefox OS is programmed in HTML and JavaScript. So, just like a webpage, I should be able to View Source, right? That's always been the empowering Mozilla approach, as far as I understand. View Source is great for learning by example (just like how I originally learnt HTML!), but also for open audit. Ideally I'd like the opportunity to look over the code before I agree to install.
    If I go to https://marketplace.firefox.com/app/astroalpaca using my desktop browser, or if I find it in Marketplace using my ZTE Open, I can't see a View Source option anywhere. Where is it please?
    I can understand not showing it on a small phone screen, but there's no reason why someone visiting Marketplace with a laptop/desktop web browser shouldn't download and inspect the app package.
    If it doesn't exist (I'm starting to suspect this is the case), then where's my empowerment? What makes these fxos apps any less of an impenetrable consumer black box than android apps?

    Wow OK. So for future reference, "View Source" (Ctrl+u) doesn't do it, since I guess the button comes from JS. So instead you need to:
    * Open the inspector (Ctrl+shift+c)
    * Click on the install button (to inspect it, not to install it).
    * In the panel you get to see the source code for the button which includes the URL to the .webapp file (it might be hosted separately as in the example, or on the marketplace)
    * You can copy and paste that URL and then open that file to see where the app content is delivered from, and then if you follow those paths you can view the HTML, JS etc.
    So that's really quite buried, but I'm glad that at least it's technically possible! Not quite as easy as Ctrl-U ;)

  • Where is View Source? How can the source code of a website be viewed?

    Where is View Source? How can the source code of a website be viewed?
    View Source used to be accessed via a drop-down menu, but no longer. Why?
    I'm using Firefox 24.0.

    1.)Get into Firefox.
    2.)open any page that you want to see the source code.
    3.)After complete opening of the page do"right click"then you can see view page source,click it to see Source of the page.
    Thank you.

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • Ffox hangs when I try to view source code - any ideas how to stop this?

    Ffox hangs when I try to view source code - any ideas how to stop this?
    hangs forever... have to use control-alt-del to close :-(

    Usually a USB error. Read here:
    http://support.apple.com/kb/ts3694#4000

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • How to hide system related info (J2EE Engine, JVM, OS) from View Source

    Hi Experts,
    We are developing an external facing webdynpro application for our customers. When i  right click on webdynpro application in browser and select View Source , it is showing all system specific information such as  DC names including model DC , JVM , System OS information (below is  exact details).
    I believe this  will give enough information for Hackers to know about system with out much efforts. Is there any we can avoid showing this information part of browser view source.
    Your comments are  highly appreciate.
    This page was created by SAP NetWeaver. All rights reserved.
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDR; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2), client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Accessibility mode: false
    Web Dynpro runtime:
    Vendor: SAP, build ID: 7.0013.20080513102531.0000 (release=NW04S_13_REL, buildtime=2008-05-15:05:17:09[UTC], changelist=41322, host=pwdfm114), build date: Wed May 28 15:51:08 EDT 2008
    Web Dynpro code generators of DC companyname.us/projUI:
    SapDictionaryGenerationCore: 7.0014.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:49:06[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro: 7.0014.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:51:55[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore: 7.0014.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:37:23[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 7.0014.20071029095230.0000 (release=645_VAL_REL, buildtime=2007-11-10:16:06:13[UTC], changelist=466194, host=pwdfm101)
    SapWebDynproGenerationCTemplates: 7.0014.20071029095230.0000 (release=645_VAL_REL, buildtime=2007-11-10:16:06:13[UTC], changelist=466194, host=pwdfm101)
    SapGenerationFrameworkCore: 7.0014.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:36:46[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 7.0014.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:55:29[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary: 7.0014.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:46:17[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon: 7.0014.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:37:28[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCore: 7.0014.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-11-10:15:55:37[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda: No information available!
    Web Dynpro code generators of DC companyname.us/projECCModel:
    SapDictionaryGenerationCore: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:42[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro: 7.0013.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:00:50[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:23[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapWebDynproGenerationCTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapGenerationFrameworkCore: 7.0013.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:44:42[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:26[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary: 7.0013.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:54:53[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:30[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCore: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:37[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:50[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    Web Dynpro code generators of DC sap.com/tcwdcorecomp: No information available!
    Web Dynpro code generators of DC companyname.us/projModel:
    SapDictionaryGenerationCore: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:42[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro: 7.0013.20070703112649.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:00:50[UTC], changelist=454024, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:23[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapWebDynproGenerationCTemplates: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:15:27[UTC], changelist=455669, host=pwdfm101)
    SapGenerationFrameworkCore: 7.0013.20060719095755.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:44:42[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:26[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary: 7.0013.20060719095619.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:54:53[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon: 7.0013.20061002105432.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:45:30[UTC], changelist=419384, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCore: 7.0013.20061002110128.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:04:37[UTC], changelist=419396, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates: 7.0013.20061002105236.0000 (release=645_VAL_REL, buildtime=2007-08-11:14:57:50[UTC], changelist=419377, host=PWDFM101.wdf.sap.corp)
    J2EE Engine:
    7.00   patchlevel 34391.450
    Java VM:
    Java HotSpot(TM) 64-Bit Server VM, version: 1.4.2_13-b06, vendor: Sun Microsystems Inc.
    Operating system:
    Windows 2003, version: 5.2, architecture: amd64
    Edited by: Aravinda Boyapati on Nov 23, 2009 11:54 PM

    Hi Armin,
    I have the same behavior here. Prod is showing all this info. I assume this is some variable that we need to setup in Prod J2EE. Could you please tell me what is it?
    Also, would that change the stack trace? - Currently, we have WDP dumps in Prod, something that I would get rid off (and have just a 500 error page defined).
    Thanks,
    Daniel

  • How do I "view source" in firefox 6

    Since upgrading to Firefox 6 the option to "view source" is apparently no longer available (I used in in Firefox 5 only yesterday and am missing it already). Can it be made available please?

    You can also go to Tools Menu -> Web Developer -> click View Page Source
    Check and tell if its working.
    To help other users find solutions, please return to this Thread and '''Sign-in''' to the forum with your Username and Password:
    click on '''"Solved It"''' Next to the reply ABOVE that '''BEST''' solved your question
    '''DO NOT click "Solved It" next to this reply

  • View source shows not only HTML but also external JS and displays it in an unorganized format, how come?

    Whenever I use the view source feature, the pane does not only show the HTML, but it also pastes in all Javascripts which are in an external file. On top of that all the indents are gone making it pretty much unreadable.
    I have this issue with every single site I try to view the source of. I turned of and uninstalled all add-ons. Started up in safe mode. But nothing seems to work. I had this in firefox 3.6 and upgraded to 4 hoping it would solve it but it doesn't.

    If you have the problem in three different browsers, it suggests something "upstream" or shared at the system level, since each has a separate cache and Safari/Chrome use Webkit, not Gecko, as their rendering engine.
    Is it possible that all the source views use a font which has become corrupted? In Firefox you could test that theory by changing your Monospace font here:
    Edit > Preferences > Content > (Fonts & Colors section) Advanced button
    If that doesn't help, do you browse through a proxy server either on your Mac, your network, or out on the internet? Sometimes a security scanner has an embedded proxy server.

  • Very Easy Question: How to view source code of JAR file

    Hi Experts,
    1) Can we can see the content of JAR file?
    2) How we can we see content of JAR file?
    3) I have with me JAR file. It is sap.compcui_gpoadp~ObjectAndDataProvider.JAR. I have to make some changes in the JAR file source code. How I can find the source code?
    I tried to see the source code using NWDS. However, I can not see the code.
    Regards,
    Gaurav

    >
    Gary wrote:
    > Can I make changes in the source code of JAR file? Can I make changes in the code?
    You cannot do this by simple repacking/rearchiving of JAR, because it contains special descriptor with fingerprint. In general, JAR is unmodifiable, however, you can create a new one with modified sources.
    You can try to import the JAR in some Java project in Eclipse, for example. Then make your changes and use the Eclipse's Export JAR wizard in order to repack the modified source Java files in a new JAR.
    >
    Gary wrote:
    > Can I rename the JAR file and still it will usable? Please confirm.
    I general, yes, the operation is allowed. However, you cannot do this with JAR deployed on some J2EE server or Portal, for example. Because there are references to it.
    >
    Gary wrote:
    > Please let me know if by any chance I can see the content of JAR file in NWDS.
    Yes, sure. Use Import from Archive wizard in Eclipse. Or add the JAR in the class path of some Java project and Eclipse will show you the content of it.
    BR, Sergei

Maybe you are looking for

  • Displaying values in columns

    DB : 10.2.0.4.0 Os : solaris 5.10 I have a table with the below rows and columns EARNINGS     EARNINGS_VALUE Allowance     97.28 Salary     3,404.80 Allowance_1     875.52 Allowance_2     194.56 Allowance_3     291.84 {code} I want to display this as

  • Reg Mass maintenance in Material master

    Dear Gurus,                        I have uploaded HALB material wth movng avg price by mistake....I want to change it to std price in accounting view. Kindly guide me how to change it as standard price.

  • Line Constructor

    Hi I have point geometries with id and i want to construct line geometry from this. If there are only two points for a line, i can pass start X, start Y, end X, end Y to sdo_ordinate_array. But if i have intermediate vertices for a given id, how to d

  • Illustrator CC crashes on opening or creating a file

    Out of the blue Illustrator CC has decided to crash immediately on trying to open or create a file. I am on a 64 bit windows 7 machine.

  • How to fix corrupted Flash cs5 Project?

    I should have known better than to attempt to copy MovieClips from a Flash cs4 project that got converted into a Flash cs5 project, I copied a couple MovieClips to my flash cs5 project and then it asked me if I want to overwrite the components or not