Absolute paths to eclipse project root? Why?

I am a dedicated follower of the Flex and related technologies since its first appearance (some years back, Flex 1.5)
Flash Builder (formerly Flex Builder) back then (version 2) seemed to have a problem with paths relative to project location.
More precisely, parts of generated projects always point to absolute locations either inside or outside the eclipse project workspace.
Unfortunately, the problem still persists. In the past I had reported this issue (long time to remember/extract details now) but without success as it seems.
This is very important for projects intended to be developed by more than one persons (different development machines, different paths etc.)
for an example, with Flash Builder 4, create a new Flex project (Web), activate WTP integration, complete project generation and then check files
.actionScriptProperties and .flexProperties
you will observe absolute path references to essential files
here is an example of my .actionScriptProperties
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties mainApplicationPath="Main.mxml" projectUUID="43b42874-f3f0-4b6b-932c-6a1d4e492b56" version="6">
<compiler additionalCompilerArguments="-services &quot;D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/services-config.xml&quot; -locale en_US" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
<libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/fds.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/libs/player/playerfds.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="1" linkType="1" path="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent/WEB-INF/flex/locale/{locale}"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="Main.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>
here is a copy of my .flexProperties
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="6" flexServerType="8" flexWarLocation="D:/lcds/lcds.war" serverContextRoot="/WebContent" serverRoot="D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent" serverRootURL="http://localhost:8400/net.eliasbalasis.flex.web.sample" toolCompile="true" useServerFlexSDK="false" version="2"/>
D:/lcds/lcds.war i suspect is fine because it is the location of the LiveCycle Data Services WAR used to create the project (it is external anyway)
However, D:/eclipse-win32/workspace/net.eliasbalasis.flex.web.sample/WebContent is not fine at all. It is a location inside the project workspace. It should be referenced using some kind of variable, similarly to ${PROJECT_FRAMEWORKS} above.
I observed that there is a variable ${DOCUMENTS} under Eclipse-->Preferences-->Workspace-->Linked Resources which references the Eclipse project workspace root (extremely convenient).
Unfortunately, it seems that this variable can only be used within the context of other eclipse configuration files like .project and .classpath but not within the context of .actionScriptProperties and .flexProperties
This is the same exact issue I reported in the past (see above)
Flex Builder/Flash Builder family of products are the only Eclipse Based tools I have so far worked with that have such a big trouble handling file path locations relative to eclipse workspace root
OOPS. CORRECT ME IF I AM WRONG PLEASE.
I just replaced the eclipse workspace root with ${DOCUMENTS} and the project still compiles and generates deployment packages successfully.
Perhaps the "Linked Resources" variables work in the context of flex configuration files.
However I am not 100% sure.
Please verify or otherwise provide a solution, as I am ready to select Flex technology products for the development of a new quite complex, multi developer, large scale system and this will be the only reason making me consider abandoning Flex and use other technology products

I loooove Eclipse for reason.
Yes, you are right, use of variables is great thing.
However, there are 2 ways
1.
Use all paths relative to Eclipse workspace root. No absolute paths anywhere and No variables.
2.
Use tool-supplied variables (like ${DOCUMENTS} supplied by FB4 plugin pointing to Eclipse document root)
However, although the variable is supplied by FB4 plugin, when a project is generated its files still contain absolute path references
I had to manually introduce the ${DOCUMENTS} variable in project files discovering that variables work in the context of FB4 plugin project files.
In earlier versions of FB plugin variables where not processed.
Congratulations FB4 team, you saved the day.
All I am saying is that there shouldn't be absolute paths in generated FB project files. Replacing manually currently works but it is not the easiest thing for all users. I happened to know where to look. Others may not.
I believe FB team has to consider making actual use of the supplied variables in next version of FB (or alternatively, not use variables at all)
p.s.
You will love Eclipse, trust me :-)

Similar Messages

  • How determine the absolute path of the aep-project?

    As in the script to determine the absolute path of the project?

    Try this for the platform-specific path:
    app.project.file.fsName
    or this for the URI path,
    app.project.file.fullName
    Dan

  • [svn] 4267: Change path to Assets.swf in eclipse . project file from full hardcoded path to use the FLEX_SDK variable as the base path .

    Revision: 4267
    Author: [email protected]
    Date: 2008-12-09 10:32:36 -0800 (Tue, 09 Dec 2008)
    Log Message:
    Change path to Assets.swf in eclipse .project file from full hardcoded path to use the FLEX_SDK variable as the base path. There is still an issue with Assets.swf not getting referenced correctly. If you import the framework project from Blazeds/trunk into Eclipse and get an error related to Assets.swf or that says "Unable to export SWC oem" for the time being try right clicking on the framwork project in Eclipse and selecting properties. Then in the properties panel, select Flex Library Build Path and then the Assets tab. On the Assets tab, check the check box next to Assets.swf and click Ok. This usually fixes the reference for me.
    Modified Paths:
    blazeds/trunk/development/eclipse/projects/flex/3.0/framework/.project

    Revision: 4267
    Author: [email protected]
    Date: 2008-12-09 10:32:36 -0800 (Tue, 09 Dec 2008)
    Log Message:
    Change path to Assets.swf in eclipse .project file from full hardcoded path to use the FLEX_SDK variable as the base path. There is still an issue with Assets.swf not getting referenced correctly. If you import the framework project from Blazeds/trunk into Eclipse and get an error related to Assets.swf or that says "Unable to export SWC oem" for the time being try right clicking on the framwork project in Eclipse and selecting properties. Then in the properties panel, select Flex Library Build Path and then the Assets tab. On the Assets tab, check the check box next to Assets.swf and click Ok. This usually fixes the reference for me.
    Modified Paths:
    blazeds/trunk/development/eclipse/projects/flex/3.0/framework/.project

  • FileExists() using web-root, not absolute path...

    Is there a way to use FileExists() with some sort of %webRoot% system variable, rather than me having to know the absolute path in advance?  For example if my app is running on one machine where the webroot is C:\ColdFusion9\webroot\ and on another machine where it's E:\Inetpub\webroot, is there a way for me to write a single piece of code that will check for the existence of "%webroot%\webSite\myFile.cfm"?
    I guess what I'm really looking for here, is a system variable called something like %webRoot% in ColdFusion 9...  Does such an animal exist?
    Thanks,
    Laurence MacNeill
    Mableton, Georgia, USA

    Let assume my function is contained in a .CFC file in C:\Inetpub\webroot\myapp\mycfcs
    So if I used the following statement:
    <cfif FileExists(ExpandPath(..\newcfcs\AttendeeInfo.CFC))>
    it would return true if the file C:\Inetpub\webroot\myapp\newcfcs\AttendeeInfo.CFC existed, yes?
    If that's the case, then great -- thanks!
    L.

  • How to get the absolute path of logicalhost server domain on Windows?

    My logicalhost server domain behaves strangely. I am reading a file from collaboration definiton, that is located in the logicalhost/is/domains/domain1/config folder. I thought, that this folder is used as an application root folder so I can read files like ./file from there. And it worked.
    But then I've installed the domain as a Windows service, restarted the PC. When the domain1 gets started, I get exceptions saying that the file can't be found. Then I restart the domain (in domainmgr.bat) and it works again.
    I am pretty sure that using the absolute path will solve this issue, so my first question is: How to get the absolute path of logicalhost server domain on Windows?
    And my second question is: Why does this happen?

    The default folder for a Windows Service is the system32 folder contrary to the instance root folder when starting it as a normal process.
    That's the why, haven't tried the how, but you should be able to get the value by calling System.getProperty("com.sun.aas.instanceRoot").
    Hope this helps
    Paul

  • How do I open a file outside of my eclipse project?

    Hello everyone!
    I am trying to get my program to open a file that is outside of my build path.
    I am taking the URI of the file after selecting it from a file chooser and then trying
    to get it to open.
    The file is to be used in a widget that I created and the code looks like the following:
    fileSource = new dSourceDialog(thisClass).getReturnFile();
    if(fileSource != null){
    System.out.println(fileSource.toURI().toString());
    new StandaloneTabWidget(fileSource.toURI().toString(), true);
    jTabbedPane.setVisible(true);
    Console output is as follows:
    file:/D:/Program%20Files/Protege_3.3.1/examples/pizza/pizza.owl
    SEVERE: Unable to load project from: file:/D:/DevEnvironment/testGUI/file:/D:/Program%2520Files/Protege_3.3.1/examples/pizza/pizza.owl -- Project.getProjectInstancesReader()
    There were erros at loading prj: Project(pizza)
    My program does not work because my intention is to open:
    file:/D:/Program%20Files/Protege_3.3.1/examples/pizza/pizza.owl
    while my program, while running in Eclipse, tries to open:
    file:/D:/DevEnvironment/testGUI/file:/D:/Program%2520Files/Protege_3.3.1/examples/pizza/pizza.owl
    If anyone could help it would be greatly appreciated!
    ~Chris

    You say that this:
    fileSource.toURI().toString()
    Opens this:
    D:/DevEnvironment/testGUI/file:/D:/Program%2520Files/Protege_3.3.1/examples/pizza/pizza.owl
    Instead of this:
    D:/Program%20Files/Protege_3.3.1/examples/pizza/pizza.owl
    I see two approaches to solve this:
    1) Take the return value of fileSource.toURI().toString() and parse out a substring begining with the
    second occurance of 'D:' to the end of the string using .subString()
    2) Put this in your code:
    File file = new File("");
    System.out.println(file.getAbsolutePath());
    The above will show you where the directory location that the class you have it running in is located. Get that path
    and alter it programmatically to get the location of your file, assuming the file location is always known relative to where your program is deployed (example: both are in the D drive)
    Note the above is dangerous because your application may be deployed to who knows what subdirectory in production.
    Note also that the fact that one of your directories has a space in it (Program Files) may cause problems. If it does, try to put the file in a directory that doesnt have a space in it to see if that's really the problem.
    You can also look into absolute path verses relative path (example: "../../myProject")

  • Frame 12 converting relative paths to absolute paths

    Hi all,
    We recently upgraded to Frame 12 and now have a persistent issue with relative paths to referenced images becoming absolute.  These paths do not traverse a drive and so I believe Frame should be maintaining a relative path for these. In most cases -- perhaps in all, although I have not done exhaustive testing --  the problem paths are for images on a master page.
    Any idea why this might be occurring and what we can do to fix it?  Our docs team shares files checked out from a server, and each time one of us opens a document, it has an absolute path to a location on another writer's computer.  We each maintain the exact same directory structure for all Frame/image files, and again, the path to the problem images is local and does not traverse the C drive.
    Thanks in advance,
    Shelley

    May or may not be relevant, but do the affected relative paths need to traverse the root directory of the logical drive?
    I seem to recall, in experiments some years ago on FM7.1, that the final /../ needed to be at least one level down.

  • Oracle BI Publisher desktop - insert field does not make absolute path

    Hello everyone,
    I am using the Oracle BI Publisher desktop 11.1.1.5
    Lets have the given demodata
    <demodata>
         <person>
         <name>Peter</name>
         </person>
         <relative>
         <name>Mike</name>
         </relative>
    </demodata>
    As you can see the tag <name> is used as subchild in person, relative.
    next i start winword 2007 using the bip-extension. There is a button 'insered field' that opens a window with the demodata tree.
    When i pick person->relation->name there will be the expression <?name?> insered.
    Thats my problem, i need the absolute path to be insered, in this case <?/demodata/relation/name?>
    If the adressing is not absolute starting from the root the rendered Report will show 'Peter' as it is the first occurence of the <name> tag.
    I have not find out where to configure the word-plugin to make absolute paths in fields.
    Any ideas ?

    Thank you for your answer
    sure, it is possible to edit the fields by hand but my xml-structure is autogenerated (MDA-approach), nested and quiet complex. Manual tasks can lead to typing errors and sometimes i forget to edit one field afterwards.
    It would be just very handy when the tool does the work for me, it has all the information anyway.
    I wonder why am the first person that is having this request. In my opinion adressing starting from the root is clear and without ambiguity. In every field i can exactly read using the expression which element in the tree is used.
    In conclusion, it would be nice if the plugin let the user decide whether to use the short or the long syntax
    greetings,
    martin.

  • Can I link to images using absolute paths in HTML Help and still see them locally?

    I'm publishing HTML help pages to a Web server.  All .htm files on the Web server are in their own folder, and all image files are in a separate folder.  Links to images are generally of the form <img src="/images/clear.png" height="14" width="8">.  That is, the images use an absolute path reference from the doc root folder (rather than relative path from the current file folder, such as "../images/myImg.png").
    I can modify the HTML for the images to follow this convention, but then I cannot see the images locally within RoboHelp, but must instead wait until the files are integrated with the Web server.  Is there a way to set up a RoboHelp project so that I can force an image path of "/images" both locally and in the HTML?
    Using RoboHelp 9.0.1.232.
    Thanks.

    RoboHelp expects the images to be within the project and will need that if you are to see them when working. It then uploads them to the server when you publish.  There is a check box when you publish so that only updated files get  uploaded.
    You could point Resource Manager to the server folder with the images and then link to those images. What happens then is the image gets downloaded into your project so that you see it when working. If the server image changes you will see the icon in Project Manager changes so that you can update the local copy. It would be a one-off exercise changing your workflow.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Query JVM for executing JAR absolute path

    Good morning
    In order to use resources in an executed JAR file, I use the following :
    URL url = JARFILENAME.class.getResource(myResourceRelativePath);But, JARFILENAME is the name of the JAR file which is being executed and I would not like it to be hard coded. Is there anyway to query the JVM the absolute path of the executed JAR file ?
    Thanks a lot
    Christophe

    Good Afternoon everybody,
    Thank you very much Owen ! Your words were very helpful to me.
    In order to help other people who would like to process text files embedded in an executable JAR file, here all my sources for this example.
    HOW TO PROCESS TEXT FILES EMBEDDED IN AN EXECUTABLE JAR FILE WITH PACKAGED CLASS FILES
    File list for the project (after executing the makefile) :
    .\build
    .\docs
    .\src
    .\makefile.bat
    .\JarTextResourcesReaderDemo.jar
    .\sources.txt
    .\JarTextResourcesReaderDemo(Sources).zip
    .\build\cbismuth
    .\build\txt
    .\build\manifest.mf
    .\build\cbismuth\demos
    .\build\cbismuth\utils
    .\build\cbismuth\demos\JarTextResourcesReaderDemo.class
    .\build\cbismuth\utils\jar
    .\build\cbismuth\utils\jar\textreader
    .\build\cbismuth\utils\jar\textreader\JarTextResourcesReader.class
    .\build\txt\myTextFile.csv
    .\docs\cbismuth
    .\docs\package-list
    .\docs\resources
    .\docs\stylesheet.css
    .\docs\allclasses-frame.html
    .\docs\allclasses-noframe.html
    .\docs\constant-values.html
    .\docs\deprecated-list.html
    .\docs\help-doc.html
    .\docs\index.html
    .\docs\index-all.html
    .\docs\JarTextResourcesReader.html
    .\docs\JarTextResourcesReaderDemo.html
    .\docs\overview-frame.html
    .\docs\overview-summary.html
    .\docs\overview-tree.html
    .\docs\package-frame.html
    .\docs\package-summary.html
    .\docs\package-tree.html
    .\docs\cbismuth\demos
    .\docs\cbismuth\utils
    .\docs\cbismuth\demos\JarTextResourcesReaderDemo.html
    .\docs\cbismuth\demos\package-frame.html
    .\docs\cbismuth\demos\package-summary.html
    .\docs\cbismuth\demos\package-tree.html
    .\docs\cbismuth\utils\jar
    .\docs\cbismuth\utils\jar\textreader
    .\docs\cbismuth\utils\jar\textreader\JarTextResourcesReader.html
    .\docs\cbismuth\utils\jar\textreader\package-frame.html
    .\docs\cbismuth\utils\jar\textreader\package-summary.html
    .\docs\cbismuth\utils\jar\textreader\package-tree.html
    .\docs\resources\inherit.gif
    .\src\cbismuth
    .\src\cbismuth\demos
    .\src\cbismuth\utils
    .\src\cbismuth\demos\JarTextResourcesReaderDemo.java
    .\src\cbismuth\utils\jar
    .\src\cbismuth\utils\jar\textreader
    .\src\cbismuth\utils\jar\textreader\JarTextResourcesReader.java[b]File .\sources.txt :
    .\src\cbismuth\utils\jar\textreader\JarTextResourcesReader.java
    .\src\cbismuth\demos\JarTextResourcesReaderDemo.java[b]File .\makefile.bat :
    @title Java Project Compilation
    @echo off
    echo ------------------
    echo Old Files Deletion
    echo ------------------
    del /f /q *.zip
    del /f /q *.jar
    del /f /q build\cbismuth
    echo -----------
    echo Compilation
    echo -----------
    javac -O -deprecation -d build @sources.txt
    echo -------------------
    echo Java Doc Generation
    echo -------------------
    javadoc -author -version -private -windowtitle JarTextResourcesReaderDemo -d docs @sources.txt
    echo -------------------------
    echo Executable JAR Generation
    echo -------------------------
    cd build
    jar -cvfm JarTextResourcesReaderDemo.jar .\manifest.mf *
    move JarTextResourcesReaderDemo.jar ..
    cd ..
    echo ----------------------
    echo ZIP Project Generation
    echo ----------------------
    jar -cvf JarTextResourcesReaderDemo(Sources).zip *[b]File .\src\cbismuth\utils\jar\textreader\JarTextResourcesReader.java :
    package cbismuth.utils.jar.textreader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.lang.NullPointerException;
    import java.lang.IndexOutOfBoundsException;
    public class JarTextResourcesReader {
      protected BufferedReader[] readers = null;
      public JarTextResourcesReader(String[] paths) throws NullPointerException {
        int nbFiles = paths.length;
        readers = new BufferedReader[nbFiles];
        for (int i = 0; i < nbFiles; i++) {
          InputStream inputStream = this.getClass().getResourceAsStream(paths);
    this.readers[i] = new BufferedReader(new InputStreamReader(inputStream));
    if (readers[i] == null) {
    throw(new NullPointerException());
    public void print() {
    for (int i = 0; i < readers.length; i++) {
    String line = null;
    try {
    while((line = readers[i].readLine()) != null) {
    System.out.println(line);
    catch(IOException e) {
    // exception managment
    public BufferedReader getReaderAt(int i) throws IndexOutOfBoundsException {
    if (i > this.readers.length) {
    throw(new IndexOutOfBoundsException());
    else {
    return(this.readers[i]);
    public BufferedReader[] getReaders() {
    return(this.readers);
    public void close() {
    for (int i = 0; i < this.readers.length; i++) {
    try {
    readers[i].close();
    catch(IOException e) {
    // exception managment
    File .\src\cbismuth\demos\JarTextResourcesReaderDemo.java :
    package cbismuth.demos;
    import cbismuth.utils.jar.textreader.JarTextResourcesReader;
    public class JarTextResourcesReaderDemo {
      public static void main(String[] args) {
        String[] paths = new String[1];
        paths[0] = "/txt/myTextFile.csv";
        JarTextResourcesReader jtrr = new JarTextResourcesReader(paths);
        jtrr.print();
        jtrr.close();
    }[b]File .\build\txt\myTextFile.csv :
    Line 1 Column 1;Line 1 Column 2;Line 1 Column 3
    Line 2 Column 1;Line 2 Column 2;Line 2 Column 3[b]File .\build\manifest.mf :
    Main-Class: cbismuth.demos.JarTextResourcesReaderDemo
    [BLANK LINE !]NOTE : a blank line MUST be left at the end of the MANIFEST file !
    [b]Command line to execute the JAR file in the root directory :
    java -jar JarTextResourcesReaderDemo.jar[b]Output :
    Line 1 Column 1;Line 1 Column 2;Line 1 Column 3
    Line 2 Column 1;Line 2 Column 2;Line 2 Column 3[b]Special thanks to Owen !
    See you soon,
    Christophe

  • Loading Absolute Paths

    Hi,
    I'm new to flash and I'm creating a flash mp3 player and have
    questions about loading paths. I'm trying to find out if it's
    possible to load absolute paths that are outside the document root
    of my website. The reason why I want the mp3's outside the document
    root is because I don't want the mp3's to be accessible for
    download. Here is the code that I'm using to try to accomplish this
    task....
    var getSong:LoadVars = new LoadVars();
    var sndTrack:Sound = new Sound();
    var pauseMs:Number = 0;
    getSong.load("mp3loader.php");
    getSong.onLoad = function(lSuccess:Boolean):Void {
    if (this.theSong) {
    txt_field.text = this.theSong
    } else {
    txt_field.text = "Song Not Found";
    if (lSuccess) {
    sndTrack.loadSound(this.theSong, true);
    sndTrack.onLoad = function(sSuccess:Boolean):Void {
    if (sSuccess) {
    sndTrack.stop();
    play_btn.onRelease = function() {
    sndTrack.start(pauseMs, 0);
    stop_btn.onRelease = function() {
    pauseMs = 0;
    sndTrack.stop();
    pause_btn.onRelease = function() {
    pauseMs = sndTrack.position / 1000;
    sndTrack.stop();
    } else {
    txt_field.text = "Song Could Not be loaded";
    The path that would be returned by the php file would be
    something similar to "/var/www/mp3s/mp3file.mp3 and the swf file
    could be located at "/var/www/public_html/player/mp3player.swf". If
    flash does not have the capability to load files outside of the
    document root of the website can you give alternatives to
    accomplish the same thing?
    Thanks
    Dana H.

    you can't prevent your mp3's location from being discovered
    by moving them to a different server.

  • JSF always uses absolute path

    Hi I am new to JSF. You might be able to help me with an absolute path problem I encountered in my project.
    Our team has a JSF project called PHA, it has been deployed to 8 production machines. Recently I made some change to it and want to test it on one of my company's testing machine n251. In order to access n251, I need to use my company's proxy bbweb1. Here is the URL I ran:
    http://bbweb1.xxxxx.com/bravo/pxhistory/map/n251/charlie/pha/ to access PHA on n251.(BTW, we use http://bbweb1.xxxxx.com/charlie/pha/ to access our production machines.) It seems like I got my main PHA page from N251. But when I clicked any
    of the menu bars, bbweb1 proxy always ignores the relative path "bravo/pxhistory/map/n251" and simply rediect me to the main page again on one of our production machines. Here is the URL AFTER I clicked the menu bar:"http://bbweb1.xxxxx.com/charlie/pha/faces/jsp-pages/main page.jsp;jsessionid=CC8BD42D458EB5361532FF99FC1F5D83". I studied my code for the last 3 days and didn't find any problem. An only wild guess is: when I view source on my IE, I found JSF
    always use absolute path :
    src="/charlie/pha/faces/myFacesExtensionResource/tree2.HtmlTreeRenderer/1161281
    90776/javascript/tree.js"></script><script type="text/javascript" I don't know if this indicates why I failed to route to N251. Could this cause by a wrong config on bbweb1? or is there some trick I don't know? ... Since I don't
    have much experience on JSF, can you please help me with this? Thanks in advance.

    I wish there were. I don't know of any way to do this. Why
    not submit it
    here -
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mikeycorn" <[email protected]> wrote in
    message
    news:gou2p7$8dl$[email protected]..
    > When I design my newsletters in Dreamweaver, I always
    have to manually
    > switch
    > the image links to the absolute path before sending it
    out as an email.
    > Is
    > there a way I can switch back and forth between relative
    paths for when
    > I'm
    > designing the site and absolute paths for when I'm doing
    the newsletter?
    >

  • Execution of a class from a class in different Eclipse project.

    I have 2 projects in Eclipse and i want to execute a class in one project from a class in the other project.The package hierachy of the classes are same under both the eclipse projects.
    project1:
    foo.hoo.E.java
    project2 :
    foo.hoo.F.java
    Trying to run E.java from F.java using the code below.:-
    try{     
         ProcessBuilder pb = null;
         pb = new ProcessBuilder("java",
                   "-classpath",
                   System.getProperty("java.class.path"),                         "-Xms16M",                         "-Xmx256M",                         "foo.hoo.E.java");
              Process process = pb.start();
              }catch (IOException e) {
    The excetion of E.java does not actually take.Please suggest.

    When you run the java command to start a new JVM the class name you supply is the name of the class, not the name of the java file. i.e. no .java. "foo.hoo.E" not "foo.hoo.E.java". Furthermore the class path you are using won't be likely to include the classes from the other project unless you've told eclipse to do so. (It might be enough to specifiy the E project as a run time dependancy).
    This is, by the way, a very strange interpretation of the idea of "executing one class from another". In fact, in java, we don't execute classes, we execute programs. If you want to execute code in another class it's far more often sensible to call it within the same JVM, rather than lauch a new one. That's why your question has provoked so much irritation.

  • Get absolute path of a servlet/jsp

    <p>
    I have deployed an application on JBoss. I need to get the absolute path of a servlet. I used following statement to do that.
    getServletContext().getRealPath("");
    but from this i get the following
    C:\jboss-4.0.2\server\default\.\deploy\sdb.ear\sdb.war\employer
    i don't know why there is a dot in between the path which is not correct.
    My application.xml is as follow
    <module>
    <ejb>sdb.jar</ejb>
    </module>
    <module>
    <web>
         <web-uri>sdb.war</web-uri>
         <context-root>/</context-root>
    </web>
    </module>
    Pls help me with this

    kaviratne wrote:
    but from this i get the following
    C:\jboss-4.0.2\server\default\.\deploy\sdb.ear\sdb.war\employer
    i don't know why there is a dot in between the path which is not correct.Me neither, but that dot shouldn't harm. It just means "current directory". Effectively that path is exactly the same as:
    C:\jboss-4.0.2\server\default\deploy\sdb.ear\sdb.war\employerWhich problems are you occurring with this? It might be worth an issuereport at the JBoss site though.

  • How can you determine the absolute path to a dynamically created NetStream object?

    We are trying to implement video captioning with a freeware component, ccforflash. This requires us to provide an absolute or relative path  to our NetStream object. How can we determine this path in Flash CS5 AS3?
    From the CCforFlashCS5 documentation:
    "2. Object name and path
    Type the name and path.  This is the instance name of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 will query the object with this name for timing information in order to synchronize the captions. The path must also be included; either relative to the CCforFlashAS3 component (i.e. this.parent) or the absolute path from the main level of the movie (root)."

    It would be easier if the NetStream object was created on an easily identifiable place on the timeline. This player has an MVC architecture. The NetStream object is created in a subclass to Model class, which is itself a subclass of the EventDispatcher object. The View class access it via an interface.
    As you can guess, it's not that straightforward to determine where the NetStream object is located on the timeline. This is compounded by the fact that the NetStream object does not have a name property.
    I've tried methods like these, but they only work for the DisplayObject class:
    public static function displayObjectPath( avDisplayObject : DisplayObject ) :String
    var lvPath:String = "";
    do
    if( avDisplayObject.name ) {
    // var obj_name:String = (avDisplayObject.name == 'root1') ? 'root' : avDisplayObject.name;
    if (avDisplayObject.name != 'root1') {
    lvPath = avDisplayObject.name
       + ( lvPath == "" ? "" : "." + lvPath );
    } else {
    trace("displayObjectPath() NO NAME avDisplayObject="+avDisplayObject);
    } while( avDisplayObject = avDisplayObject.parent );
    return lvPath;
    } // displayObjectPath
    private  function showChildren(d:DisplayObjectContainer):void {
    trace("showChildren()");
    if (d.numChildren>0) {
    for (var c:Number = 0; c < d.numChildren; c++) {
    trace("showChildren c=",c," name=",d.getChildAt(c).name);

Maybe you are looking for

  • How can I fix my app store I can't download anything from it ??

    is anyone having problems like me downloading app from app store ??? I can't dowload anything , can click on anything

  • Good projector for macbook pro?

    Hi there, looking for a good projector that will work with my macbook pro, connectivty, or wireless would be great. I'm going to project my desktop onto canvas, i have vector layers to do some trace painting. so really just need hi-def still shots. B

  • Ipod nano has a problem to update to version 1.2 through Itunes7

    I hate to say that I have tried to update to version 1.2 from 1.1.1 that I bought at CompUSA today. I have failed several time to update that it does not update at all , just remained the version 1.1.1. I am so tired to update this one. and I return

  • Need to reinstall Photoshop cs5 for mac

    Where can I go to download Photoshop cs5 for mac, I have lost the disk

  • N97 sync with new OVI suite

    I had my N97 mini and my laptop syncing fine. I have installed the latest OVI suite and now I cannot get the phone into PC suite mode. The OVI suite seems to think it is connected OK but when I click the icon I get a message to change the phone to PC