Path setting for JBuilder project

Dear,
The program is loading the text file from the following path in jbuilder project,
String repository = "file:/D:/JBuilderProject/classes/datasets/prediction.txt";
URL metaFileURL = new URL(repository);
// Attempt to open an input stream attached to the file.
InputStream inputStream = metaFileURL.openStream();
However, when I make an executable file and try to run this program in different computer, then the program is not loading this file (prediction.txt).
Is there any method to load this file directly from jbuilder project such as:
String repository = "classes/datasets/prediction.txt";
URL metaFileURL = new URL(repository);
// Attempt to open an input stream attached to the file.
InputStream inputStream = metaFileURL.openStream();

Dear Ridwan,
Actually, the problem is not with JBuilder. When I make exe file the jbuilder store this path:
"file:/D:/JBuilderProject/classes/datasets/prediction.txt"
But when we run this exe in other computer, definitely jbuilder exe file is still searching this path. However, there is no such path in other computer. I looking for any method that we can give the path from juilder project not from root such as
"classes/datasets/prediction.txt"
Rashid.

Similar Messages

  • Paths Setting for J2EE

    Hi
    Can anyone help mei solving my problum related to PATH Variable.
    on running J2ee -verbose
    i m geetting....
    ERROR: Set J2EE_HOME to the path of valid j2dskee.
    i have set
    JAVA_HOME=C:\JDK1.3.1
    J2EE_HOME=C:\JSDKEE1.3.1
    But that error....
    Can anyone List me the valid path for j2ee for runnning j2ee server. i have to deploy the EJB
    Thanks Amit

    hi
    reinstalling the both products , now i at the stage where on typing at the MSDOS Prompt
    I m Getting........
    C:\j2ee131\bin>j2ee -verbose
    Bad command or file name
    Syntax error
    Syntax error
    Syntax error
    Java 2 Enterprise Edition Server
    Options:
    -verbose Redirect all logging output to the current shell.
    -help Print this help message.
    -version Print the version.
    -stop Stop the J2EE server.
    Now What Should i Do
    Thanks Amit

  • Best setting for hd project from final cut

    i'm ready to export an HD project from final cut. i want to use compressor to export it and then to import it on DVD Studio Pro and burn it on DVD. what setting should i use when exporting it using compressor?

    If you plan to deliver on DVD, use the DVD preset in Compressor that comes closest to matching your program's duration. If you plan to add menus or other extras, take that ito account when determining which preset to use.
    Keep in mind that DVD is a STANDARD DEFINITION format only so your HD footage will be scaled down to fit 720x480 (640x480 square pixels). You can make an HD DVD, but that is an obsolete format and will not play in any regular DVD player.
    -DH

  • SAP setting for my Project Senario

    Hi Gurus,
    The following is the scenario in which my project is to be.
    Kindly do help me by giving me the settings.
    Company 1000(Manufacturing) and Company 2000 (Marketing) under the same Client.
    Company 1000:
    There are 3 Plants u2013 Plant 1001, 1002 and 1003
    There are 3 products manufactured u2013 A, B and C
    Plant 1001 manufactures u2013 Product A, B.
    Plant 1002 manufactures u2013 Product A
    Plant 1003 manufactures u2013 Product A, C.
    Company 2000:
    There are 6 Sales Depots u2013 2001, 2002, 2003, 2004, 2005 and 2006.
    The geographical positions of the Depots are:
    Depots 2001 and 2002 u2013 Near Plant 1001
    Depots 2003 and 2004 u2013 Near Plant 1002
    Depots 2005 and 2006 u2013 Near Plant 1003
    All Depots deal with Products A, B and C.
    The requirements start this way:
    S.O.P created in Co2000 (for all Depots, for all products)
    These S.O.Ps are used to create STOs to Co2000.
    FGoods received from Co1000 to Co2000 thru these STOs.
    The common product A manufactured in all the Plants is to be distributed among the Depots according to the geographical position.
    How to configure the above scenario in SAP??
    Advance thanks
    Udayamala

    Use desktop settings and make your custom preset.

  • Class path setting for JMF

    I'm new to JMF never ever worked on it before... and now i'm currently stuck up.... i cant configure JMF have no idea how to go about the class path settings and the whole procedure involving it......I have also gone through the JMF setup page but in vain....plz help!!

    I'm also working on JMF these are the errors i get after running the SimplePlayerApplet.java file
    C:\j2sdk1.4\bin>javac SimplePlayerApplet.java
    SimplePlayerApplet.java:39: package javax.media does not exist
    import javax.media.*;
    ^
    SimplePlayerApplet.java:55: cannot resolve symbol
    symbol : class ControllerListener
    location: class SimplePlayerApplet
    public class SimplePlayerApplet extends Applet implements ControllerListener {
    ^
    SimplePlayerApplet.java:58: cannot resolve symbol
    symbol : class Player
    location: class SimplePlayerApplet
    Player player = null;
    ^
    SimplePlayerApplet.java:182: cannot resolve symbol
    symbol : class ControllerEvent
    location: class SimplePlayerApplet
    public synchronized void controllerUpdate(ControllerEvent event) {
    ^
    SimplePlayerApplet.java:88: cannot resolve symbol
    symbol : class MediaLocator
    location: class SimplePlayerApplet
    MediaLocator mrl = null;
    ^
    SimplePlayerApplet.java:106: cannot resolve symbol
    symbol : class MediaLocator
    location: class SimplePlayerApplet
    if ((mrl = new MediaLocator(mediaFile)) == null)
    ^
    SimplePlayerApplet.java:122: cannot resolve symbol
    symbol : variable Manager
    location: class SimplePlayerApplet
    player = Manager.createPlayer(mrl);
    ^
    SimplePlayerApplet.java:123: cannot resolve symbol
    symbol : class NoPlayerException
    location: class SimplePlayerApplet
    } catch (NoPlayerException e) {
    ^
    SimplePlayerApplet.java:190: cannot resolve symbol
    symbol : class RealizeCompleteEvent
    location: class SimplePlayerApplet
    if (event instanceof RealizeCompleteEvent) {
    ^
    SimplePlayerApplet.java:225: cannot resolve symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
    } else if (event instanceof CachingControlEvent) {
    ^
    SimplePlayerApplet.java:226: cannot resolve symbol
    symbol : variable Controller
    location: class SimplePlayerApplet
    if (player.getState() > Controller.Realizing)
    ^
    SimplePlayerApplet.java:230: cannot resolve symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
    CachingControlEvent e = (CachingControlEvent) event;
    ^
    SimplePlayerApplet.java:230: cannot resolve symbol
    symbol : class CachingControlEvent
    location: class SimplePlayerApplet
    CachingControlEvent e = (CachingControlEvent) event;
    ^
    SimplePlayerApplet.java:231: cannot resolve symbol
    symbol : class CachingControl
    location: class SimplePlayerApplet
    CachingControl cc = e.getCachingControl();
    ^
    SimplePlayerApplet.java:241: cannot resolve symbol
    symbol : class EndOfMediaEvent
    location: class SimplePlayerApplet
    } else if (event instanceof EndOfMediaEvent) {
    ^
    SimplePlayerApplet.java:244: cannot resolve symbol
    symbol : class Time
    location: class SimplePlayerApplet
    player.setMediaTime(new Time(0));
    ^
    SimplePlayerApplet.java:246: cannot resolve symbol
    symbol : class ControllerErrorEvent
    location: class SimplePlayerApplet
    } else if (event instanceof ControllerErrorEvent) {
    ^
    SimplePlayerApplet.java:249: cannot resolve symbol
    symbol : class ControllerErrorEvent
    location: class SimplePlayerApplet
    Fatal(((ControllerErrorEvent)event).getMessage());
    ^
    SimplePlayerApplet.java:250: cannot resolve symbol
    symbol : class ControllerClosedEvent
    location: class SimplePlayerApplet
    } else if (event instanceof ControllerClosedEvent) {
    ^
    19 errors
    C:\j2sdk1.4\bin>
    Please help as i have some assignments to do on it. Thanks!

  • How to set Logo Image for each Project Site Seperately in project server 2010.

    Hi,
    I want different logo images to be set for each Project Site of different  project Separately in Project server 2010.
    Scenario is,   we have different Project of different client , each client want different logo for their respective Projects.
    How to accomplish this task?
    Please Help me.
    Thanks

    Hello. Store the logo somewhere accessible, either in a library at the PWA site collection or on the project site, make a note of the URL to the site then navigate to the project site and depending on what logo you want to update you can click Site Actions
    > Site Settings > title and description then update the image URL there. Alternatively, on the homepage of the project site add an image web part then reference the new logo using the URL. Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Can you save system settings scratch disks locations for each project?

    When you begin a new project in FCE you need to set the System Settings Scratch Disks. Typically you would set a new folder for each project to keep all of your files for each project in one location for that project.
    I have a couple of FCE projects going at the same time. I've set each project with a different system setting scratch disk location. But if I open a project which should have a unique scratch disk location folder that I've already set before for that project, it ignores the setting I set for that project and just shows the scratch disk setting for the last project opened instead. It does not appear to save or remember the unique setting for that project.
    If you have multiple projects going at the same time, is there a way to save the systems settings scratch disk location for each project and have FCE remember that location for each project?

    I turned off the Open Last Project on Application Launch in the User Preferences and it still does not remember the unique scratch disk settings for each project.
    Since it is quite common to be working on multiple projects simultaneously, you would think that there would be a way in which to save the settings for each project to help keep all related files better organized.
    Any other suggestions?

  • How do I create an installer for my project that allows for variable data entry like a server unc path?

    Hello All,
    I have a questions and a few hours of scouring the internet hasn't brought me much closer to an answer.
    Here's what I want to do. I have created a visual c# wpf application. I want to have an installer that during install time will have a text box or something where I can enter a server path as a string. Basically my application needs to know where to look
    for a server unc path \\server\somesharedfolder that it will be accessing primarily for its work. Secondly, how do I reference said information from within my code.
    I have come across application/user scoped settings, which appears to be what I'm looking for. However I can't find a way to have the installer prompt for a value "Server Path:" __________ that I could type into during installation. So far it appears
    the only way would be to edit the config.deploy file before running the installer, which isn't a big deal but you'd think there'd be an easy way to take in variables during install.
    EDIT: Apparently I can't edit the config.deploy file as I get an error message about the hash not matching.
    Thanks for your help!
    Lance

    Hello,
    The forums I found confusing, didn't know the best place to put this question so I put it here.
    I have found the answer over at stackoverflow and will detail here for anyone who may stumble across the same problem.
    The problem is ClickOnce seemingly doesn't support this feature. Installshield LE either doesn't or does but its incredibly too complicated if all you need is one variable passed to the registry during installation. And it seems the words used for googling
    this particular problem will never lead you to the solution.
    So here's how to do it (we will be first adding the Visual Studio Installer Add-on to restore original installer project functionality):
    1) Inside of visual studio 2013 go to Tools -> Extensions and Updates
    2) On the left-hand side click on Online -> Visual Studio Gallery
    3) In the upper-right search box search for "Visual Studio Installer"
    4) Download the extension labeled "Microsoft Visual Studio Installer Projects"
    5) Install, then open a new project under Templates -> Other Project Templates -> Visual Studio Installer -> Setup Project
    6) Now for the gold. In the solution explorer there are icons in a bar just below its title bar, highlight till you see "User Interface Setup" and open it.
    7) Now you can right click on Start, Progress, End etc any Category heading and hit Add Dialog.
    8) From here for my purposes, I used TextBoxes A
    9) Once you add it, click on it and observe its properties window. You will see Label, Property, and Value. Make a note of the property name as it will be used to store the data directly into the registry. *Note: there appears to be no way to perform data
    validation using the built in textbox dialogs, users can enter whatever they want and move on.
    10) Go to the registry editor on the same icon bar under solution explorer.
    11) Specify your registry folder, make a new value (I used string) and name it whatever you like. In the value section enter the property label formatted as such   [EDITA1]   depending on your value. 
    12) Now when you run the installer for your project, it will take data into that field and place it into the registry provided it has access to that key with the permissions you run the program under.

  • Missing Functionality -where do I set a budget for a Project?

    Budgeting for Projects is non - existent
    Budget for Profit and Loss for a particular project , How is it done ?
    Does not work , No facility to put in Budget for a project ?
    The report I am trying to run is:
    REPORTS>FINANCIAL>BUDGET REPORTS>Profit and Loss Statement Budget Report.Then go to Expanded and choose a PROJECT, say MailOrder.
    The result is that it will show the MailOrder project for the ACTUAL but it will show the whole company Turnover against the BUDGET column.
    This is because there is no place to set a budget for MailOrder Project in the first place. So the question is where do I set a budget for a Project?
    1 Budget setup screen - this has no facility to setup a budget for a PROJECT
    2.Budget Profit and Loss - this has the facility to run a PROJECT budget but the figures for the Budget cannot be right because they were not setup in the first place.
    PS MailOrder project is just an example.
    Version: SAP BUSINESS ONE 2007 A Patch Level 41
    Description of requirements: As above
    (Valid as of: (Date that this legal requirement is applicable) N/A
    Business needs: Customer cannot set the budget for a project and this effects their accounting.
    Examples: (Please describe a typical example, how the functionality should work.)
    Current Workaround: None.
    Proposed solution: Create a Project and then be able to set a Budget for it
    Edited by: Darpal Thiarha on May 14, 2008 10:34 AM

    Hi Darpal/Kerstin
    Please ignore my previous replies because I have now worked out why this idea will not work:
    Kerstins' idea is based on setting up new Nominal Codes for every Project and for Every Nominal Code in the Profit and Loss structure. Apart from the fact that this will create a messy Nominal Structure with hundreds of Nominal Codes, the main issue here is the way the Cost Of Goods Sold is structured. The logic of our Nominal Structure for Sales and Cost of Goods is based on Item/Item Groups and the Nature of these Items. In our case we sell Skin Care products under 3 Brands. Say Brand A, B and C
    So Brand A is summarised into one item Group and the ITEM GROUP is coded to Sales Nominal 20000 and the Cost of this group is coded to Nominal 30000. In Kertins suggestion, I would need to raise a Nominal Code 20001 for say Project Mail Order and 30001 for the Cost of Goods for Mail Order but this the Mail Order project is selling ALL our brands (A,B,C) - so you can see the problem here. You cannot use Nominal Codes for two different purposes and make it work. So the problem here is that my BRAND A summary will contain a Nominal with a Project Mail Order, that has SALES of Brand A,B,C. The Net effect will be that we will not be able to summarise anything in SALES and Cost of SALES in a logical way (Neither by Brand or By Project) and the Nominal Structure will be a mess.
    My conclusion is that SAP b1 Sales and Cost of Goods section demands certain logic when building the Nominal Codes, and this is based on the NATURE OF THE STOCK ITEM and trying to superimpose the PROJECT issue into this, will never work. In my view, the PROJECT issue needs to be sorted without involving New Nominal codes and the starting point would be in sorting out the SALES and COST of SALES and the project Budget for this.
    Please let me know if you need further illustration of the problem.

  • Projects group/set for report painter

    Dear,
    I want to create a report painter report to compare cost of projects.
    I would like to be able to create groups for my projects, like you can do for internal order with KOH1, and use these for my report.
    how can I create these project groups and how do i use them in report painter?
    Kind regards,
    Sander.

    Hi
    In a report painter report - Once you have created a SET means you know for what values you want to execute the report...
    In your form definition, you will see two check boxes beside your characteristic - i.e. One for Defining a variable for the char and the Other for using a SET..
    If you want to use a variable - this means you would specify the values of the projects at the time of execution... For this, click on the relevant check box and you can specify any name in the field "Local Variable"
    If you want to use a SET, this means you know for what projects you would like to see the report.. For this, check on the relevant check box and specify your SET there...
    If you want to use both the above options, then you must create your set from GS11 and choose the radio button SET VARIABLE
    Refer the set 1KOSET from GS13 as a sample...
    And see report 1SIP-001 under library 1VK in GRR3.. This report uses 1KOSET under General Data Selection.... You will get an idea for what you want
    Regards
    Ajay M

  • Unable to click 'Set and save as my Active Configuration for this project'

    Environment: OWB 11.1.0.6 Client running on Windows XP Pro SP3 repository and targets on AIX (IBM UNIX).
    I have created a new Configuration under a specific Project and I'd like to make this configuration the default whenever I login and select this Project.
    There is a check box when I right click the Configuration and select 'Open Editor' that says 'Set and save as my Active Configuration for this project' but when I select the check box and try to click on 'OK' there is no response from the popup window and I have to click 'Cancel' to get out of the popup.
    Any ideas on why this is happening and how to get around it??
    Thanks very much.
    -gary

    Si
    Good catch!! Restarting the app???? What a waste of time!! :-(
    When I went back in the box was already checked! It must have known I was pissed at it!! :-)
    Thanks for the help.
    -gary

  • Managing a set of documents that require approval, for each project stage

    Good day to all,
    I am new to SharePoint but I have dived in head first due to my job.
    The users I am dealing with need a solution where they can upload a specific set of named document types (example: project charter, site plan, schedule, costing approval, designs) but all documents will be scanned to PDF before being uploaded. Every stage
    will have its own set of documents with the same named document types. Each document has to be checked and the approved.
    I know I can use a workflow for the check and approve part.
    What I don't know is how to create a "blank" document set for uploading PDF files. In other words, I envisioned that I would have a document set of sorts where I can enter common information such as the Project Number, and the Project stage, and
    then I would have multiple upload fields that are named by the types above (project charter, site plan, etc.) so that the users will know exactly what documents are needed to complete the document set.
    Can anyone assist me in find a solution?
    Thanks and best regards.

    Hello,
    One thing to note is that the document set content type in SharePoint is analogous to a folder; you don't specify upload fields on the document set, but users can upload any number of documents to the set once it is created. You can have fields of information
    on the document set, and different fields of information on the documents within the set.
    With that in mind, the best way to accomplish what you're looking for may be to have columns on the document set that indicate which required documents have been uploaded.
    Document Set content type columns:
    Project Number (text)
    Project Stage (choice)
    Project Charter Complete (yes/no)
    Site Plan Complete (yes/no)
    Schedule Complete (yes/no)
    Costing Approval Complete (yes/no)
    Designs Complete(yes/no)
    Document content type columns:
    Document type (choice)
    It can either be a manual step so that when a user uploads a document, they then mark the corresponding yes/no checkbox, or it could be automated with a workflow.

  • Str Loc Mandatory Setting for Project System PR

    Hi
    How can i make mandatory setting for a PR getting generated by project system thro the trans CJ20N.
    Since its not an mandatory field the PR s from project based are not hv str loc in PR.
    Also we are not able to edit the same. All the fileds are in PR in ME52N in grey colour whr the PR s from project based.
    Vijay

    if your material is not inventory managed, then you cannot have a storage location in the PR.
    If it is inventory managed, then you can set the defautl storage location in material master MRP view field Storage location EP

  • Setting Disks/Caches/Vault for multiple projects - Best Practices

    Please confirm a couple assumptions for me:
    1. Because Scratch Disk, Cache and Autosave preferences are all contained in System Settings, I cannot choose different settings for different projects at the same time (i.e. I have to change the settings upon launch of a new project, if I desire a change).
    2. It is good practice to set the Video/Render Disks to an external drive, and keep the Cache and Autosave Vault set to the primary drive (e.g. user:Documents:FCP Documents). It is also best practice to save the Project File to your primary drive.
    And a question: I see that the Autosave Vault distinguishes between projects, and the Waveform Cache Files distinguishes between clips. But what happens in the Thumbnail Cache Files folder when you have more than one project targeting that folder? Does it lump it into the same file? Overwrite it? Is that something about which I should be concerned?
    Thanks!

    maxwell wrote:
    Please confirm a couple assumptions for me:
    1. Because Scratch Disk, Cache and Autosave preferences are all contained in System Settings, I cannot choose different settings for different projects at the same time (i.e. I have to change the settings upon launch of a new project, if I desire a change).
    Yes
    2. It is good practice to set the Video/Render Disks to an external drive, and keep the Cache and Autosave Vault set to the primary drive (e.g. user:Documents:FCP Documents).
    Yes
    It is also best practice to save the Project File to your primary drive.
    I don't. And I don't think it matters. But you should back that file up to some other drive (like Time Machine).
    And a question: I see that the Autosave Vault distinguishes between projects, and the Waveform Cache Files distinguishes between clips. But what happens in the Thumbnail Cache Files folder when you have more than one project targeting that folder? Does it lump it into the same file? Overwrite it? Is that something about which I should be concerned?
    I wouldn't worry about it.
    o| TOnyTOny |o

  • Project Setting for a SONY HXR_NX 30P camcorder in CS5.5.2  ???

    Please advise the best setting for a Movie recording Format HD. MPEG-4 AVC/H.264 AVCHD FORMAT Ver. 2 compatible ?

    The camera records avchd so pick a matching preset.
    On a side note there are no project settings just sequence settings.

Maybe you are looking for

  • A simple problem that confounds me....

    Hi everyone, Im hoping this is a painfully simple mistake Im making, and not a profound one. My goal is to pring out a diamond display, and this is the code Ive written so far. If anyone can point out what might be wrong with it I would appreciate it

  • Can't Find A Hard Disc to install

    I'd like to add an additional Hard Disc but cannot find one for the older MacPro version. Is there somewhere on this site I can buy one? If not, why? More importantly, where can I buy one? Processor 2x2.66 GHz Dual-Core Intel Xeon Thanks in advance!

  • Iphoto help

    so i keep getting this message; "Your photo library is either in use by another application or has become unreadable" how do i fix this i've followed the steps and nothing helps! someone help!!

  • Photoshop Elements 11 slow

    I upgraded to Photoshop 11 from Photoshop 9 on my Mac and I can't believe how slow the programe is to respond ! Very Disapointed

  • JAX-RPC outside JWSDP?

    I created a sample application based off the HelloWord example in the tutorial, I build and compiled a test web service and tried to deploy it to a prexisting tomcat 4.0 running jdk1.4, not the one bundled with the tool kit. I added the jaxrpc-api.ja