Properties files in a Java package not included in DC build

We are developing a Portal Standalone DC and i have a JspDynPage component within it. and i need to do internationalization in  it. so as part of that i want to keep multiple resource bundles(properties) so that i could manage my properties files easily, For example
MSS.properties
MSS_es.properties
ESS.properties
LSO.properties
since portal by default has no way to do this bcos it allows only one resourcebundle to specify in portalapp.xml file, i have kept the resource bundles in java package like
com.companyname.portal.resources.
when i export from NWDS with selection of "i want to add non java resources into jar " option from windows->preferences->enterprise portal ->application development studio, it exports all the properties files as part of the par and everything works. but when i do the DC build it ignores all my properties files and it is not working. any suggestions on how to resolve this??? does SAP provide any other way of handling multiple properties files inside a PAR?????

We are using NWDS 2004 SP19.  and yes i have defined three default SCs as dependencies. I tested with 2004s NWDS and it seems work fine. I am able to resovle this issue by moving my properties files into another java DC and create public part in java DC and use those public parts in Portal application DC.
So The problem of not including the properties files into Jar seems to be issue only in Portal Application DC not in Java DC. thanks everyone for the quick responses..

Similar Messages

  • Problem on how to create a .h file in a java package !!

    Hello,
    Please help me!! I have a problem generating a header file inside a java package. As I do not think eclipse IDE can do that, I then have to use the command as following in the command prompt instead.
    D:\myJava\workspace\myJNI\bin>javah sysHookJNI/PollThread
    javadoc: error -Illegal package name "sysHookJNI/PollThread"
    sysHookJNI is my package name and PollThread is my class name. I think it should works because I compiled it with similar format as>java sysHookJNI/PollThread.java and it outputs the PollThread.class, but in fact it doesnot !>_<.
    Can anyone suggest me what I should do?
    Big thanks in advance,
    Neth

    Thank you so much !!
    But after I got that point my old problem is still not solved with that. After my sysHookJNI.PollThread.h is generated, I compiled everything over and then run Test by
    : java Test and the Exceptions are occurred as:
    Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: sysHookJNI.PollThread.checkKeyboardChanges()V     at sysHookJNI.PollThread.checkKeyboardChanges(Native Method)
         at sysHookJNI.PollThread.run(PollThread.java:21)
    And this is my PollThread.java (actually I took it from Jacob )
    //PollThread.java
    package sysHookJNI;
    import java.io.*;
    public class PollThread extends Thread
         public native void checkKeyboardChanges();
         private KeyboardHook kbh;
         public PollThread( KeyboardHook kh )
              kbh = kh;
              System.loadLibrary("syshook");
         public void run()
              for(;;)
                   checkKeyboardChanges();
                   yield();
         void Callback( boolean ts, int vk, boolean ap, boolean ek )
              KeyboardEvent event = new KeyboardEvent( this, ts, vk, ap, ek );
              if( ts )
                   kbh.keyPressed( event );
              else
                   kbh.keyReleased( event );
    }Anyone has any suggestion about this problem? I really have no clue about it!! it keeps complains the same things no matter I regenerated header file or not.. T_T
    Btw, shall I make a new post about this problem?
    Thanks for your time,
    Edited by: Nethie on Nov 1, 2009 2:37 PM

  • Resolving file names from java package

    Hello Everyone,
    I was wondering if there is a way to get the names of all the java classes inside of a package from my app. What I would like it to do, is to read the names of the classes in the package, and then use reflection to create an instance of each. At the moment, I have a properties file that contains all the class names. The app reads the file and uses reflection to create an object of each. This is not as good for me because i would rather be able to drop a new class into the package and have it work instead of having to edit the properties file first.
    So, is it possible get the list of files that are contained in a package?
    Thanks,
    Bryan Campbell

    So, is it possible get the list of files that are
    contained in a package?No, but why not let the application scan a folder?
    Kaj

  • How to use .properties files in Webdynpro Java code?

    Hi all,
      I want to use a logon.properties file when I initial a JCO connection pool in my webdynpro DC (JCO.addClientPool()),but  I found when I deployed this DC to the server, it always giv e me an FileNotFoundException. So I donot know how to deploy a .properties file to the server and how to access this file in my Java code?
    Thans and Best regards
    Deyang

    Hi,
    1) put .properties file to your packege under src\packages folder (src\packages\com\sdn\properties\jco.properties)
    2) load property:
         final InputStream is = getClass().getClassLoader().getResourceAsStream("com/sdn/properties/jco.properties");
         final Properties properties = new Properties();
         try
              properties.load(is);
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Regatds Maxim R.

  • Passing Arguments/Properties File to SUN JAVA ONE WEBSERVER at startup

    We are porting a Java App currently running on an Orion Web Server to Sun Java One Web Sever.
    We have found that with the various java application servers we've used over the years, that each want to find the properties file in a different spot. They way we've got around this is that we start Orion with a -D option to java to set a system property called cdsProps. Example: java -DcdsProps=Path_to_properties_file. We then reference that cdsProps arugment throughout the java code so it knows where to find the properties file. Because the cdsProps argument is used thoughout the java code, if the -D option is not used when starting the webserver to point to the properties file, the website will not function properly.

    in the case above, the command line arguments are passed in the aaaaaaaaaaaaaaaaaaaaaaarggggggggggs array
    you probably want aaaaaaaaaaaaaaaaaaaaaaarggggggggggs[0] for the filenameAm not sure i understand, do you mean i must change the param of the main method to String[] args[0] as this resulted in error when i did so. Or do you mean at command line instead file simply being passed to the Compressor program as
    "java Compressor < examplefilename"
    It has to be "java Compressor < examplefilename[0]" ?
    If you could expand on this, would be grateful,
    Thanks.

  • Nilvaiu.dll? Why was it not included in the build?

    I am building a standalone application in LV 8.5
    When I install and run the appllication on the target machine it keeps looking for nilvaiu.dll.
    What is this dll and why is it not automatically included in the build if it is needed to run?
    I have created an installer that includes the LV8.5 runtime and this is still not included?

    Hi RTSLU,
    Shouldn't the scales and DAQ assistant automatically be included in the build?
    From the LabVIEW Help:
    Using Application Builder with NI-DAQmx
    When using the Application Builder to create either a stand-alone application or an installer, you can choose to include or exclude project-defined tasks, channels, and scales.
    To create an application, complete the following steps:
    Create a task, channel, or scale.
    Add the task, channel, or scale to a VI by dragging and dropping the object onto the front panel or block diagram.
    Right-click Build Specifications. Select New»Application (EXE).
    The Application Builder window opens. Refer to Building a Stand-Alone Application for more information on setting up an application build.
    Select Source Files from the Category list. Move the desired VI to the Startup VIs list box.
    Select Advanced from the Category list. The option Include hardware configuration files is selected by default. If you build with the option checked, daqmx.ini is created in the support directory path. The .ini file contains task, channel, and scale configuration data in plain text format. When you run the application, the application references the .ini file to set up tasks, channels, and scales in the VI.
    To create an installer, complete the following steps:
    Right-click Build Specifications. Select New»Installer.
    Refer to Building an Installer for more information on setting up an installer build.
    Select Advanced from the Category list. Click Include hardware configuration from MAX. The MAX hardware configuration includes device information, in addition to NI-DAQmx task, channel, and scale configurations.
    Click Configure. The Configuration Export Wizard opens. For more information on exporting a hardware configuration, refer to Measurement & Automation Explorer Help for NI-DAQmx. When you run the installer, the installer references the .nce file to set up devices, tasks, channels, and scales in MAX.
    I have two scales and a DAQ Assistant in the project explorer on the development computer.
    I don't see either of them in MAX.
    To see them in MAX please refer to the "Exporting NI-DAQmx Tasks, Channels, and Scales in a Project" in the LabVIEW Help.
    I do not even know how to troubleshoot this since I can move the DAQ back to the develpoment computer and it runs fine.
    When it runs fine, are you running the built executable or the VI on the development computer? Try including the hardware configuration from MAX in the installer as stated above.
    Mike Lyons
    National Instruments
    http://www.ni.com/devzone

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

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

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

  • Using Packages not Included with J2SE

    I was wondering how you import classes defined in packages from other people.
    I am familiar with the standard import statements..
    import java.util.*;
    But how do you import packages that start com.(more specs)
    Thanks.

    Do those packages need to be downloaded from their respective sites? Or can they be used as long as you are connected to the internet?
    Thanks

  • Why is playerglobal.swc not included in trunk build of Flex 4.5

    Hi, i've downloaded the latest from the Flex SVN trunk, and built it with Ant in every way I can possibly think of (after running Ant -projecthelp). 
    I have Flex 4.5 configured as my Flex SDK in Flex Builder 3, but since playerglobal.swc is not there, I'm missing core libraries.  I'm adding playerglobal.swc from an old downloaded version of Flex 4, which seems to work, but why would this swc not get built from the trunk?
    Thanks,
    Peder J.

    Hmm, it's there but it seems to behave differently in flash builder. When I have the playerglobal.swc from 4.5 in my trunk, I can only access a few limited  packages in code assist in Flex Builder:
    But when I add playerglobal.swc from Flex 4 that I downloaded   a while back, Code assists gives me access to the full library
    Here is the version:
    <flex-sdk-description>
    <name>Flex 4.0</name>
    <version>4.0.0</version>
    <build>7219</build>

  • File.openWithDefaultApplication()  to open directory not working from release build

    Hi,
    I'm trying to use the File.openWithDefaultApplication() method to open a directory location.  I'm running on Windows 7 Professional 64-bit, but have also tested on Windows XP Professional 32-bit with the same result.
    The method works fine if I run the app from Flash Builder 4 (either run or debug), but when I try it from a release build it doesn't work.  I've exported the release build as a native installer, and I updated the <supportedProfiles> tag in the app's XML to only support "extendedDesktop".  That hasn't changed the behavior, however.
    Here's an example of how I'm calling the method:
            var thedir:File = File.applicationStorageDirectory;
            thedir = thedir.resolvePath("the_directory");
            if (!thedir.exists)
              thedir.createDirectory();
            thedir.openWithDefaultApplication();
    Any idea what's going on?
    As an aside, if I try to open individual files in the release build, it works fine.  So far only opening a directory is a problem.  And, I verified the directory exists before trying to open it.
    Thanks for any insight you can offer...
    Best,
    Chris

    Hi Chris,
    Instead of using openWithDefaultApplication(), try using native process and calling "explorer" on windows, and "open" on mac, then pass the folder path as an argument.  Something like this windows example:
    private function openWindowsFolder():void
         var explorer:File = new File("C:\\Windows\\explorer.exe");
         if (explorer.exists)
              var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
              nativeProcessStartupInfo.executable = explorer;
              var args:Vector.<String> = new Vector.<String>();
              args.push("C:\\Windows");
              nativeProcessStartupInfo.arguments = args;
              process = new NativeProcess();
              process.start(nativeProcessStartupInfo);
    Hope this helps,
    Chris

  • Why are icons not included sometimes after build in Xcode 5.0.2

    Sometimes after doing Build in xcode 5.0.2 the iconset is ignored, relaced by the default in displays, even though they remain in the Images.xcassets file. I have to re-import them. What might have I done to cause this? It seems to be a random occurrance.

    Hi kapoor_aman27,
    this is just a warning, because the size of the string is stored as an int32 and some function has Argument with type int32. You can change the compiler setting "Treat Warnings as Errors" to "No". Then it is only a warning and you can ignore it as long as you use string with less than 4GB.
    Markus

  • Java package and c++ header files

    What is the difference between importing java package and including header files in c++?

    I do not know .. have been away from C/C++ for a long time...
    As much as I remember you can only import one header file each time... also when you import a header file you can just call methods from the header file automatically ...
    However I could be very wrong on this .. really lost touch from C/C++ ...
    regards,
    Sim085

  • Should RequestLocale.properties file included in pipeline..?

    Hi All,
    I created a RequestLocale.properties file.. should that be included in the Pipeline services.. And is it mandatory to create Java Class file for the RequestLocale.properties (i.e i just created .properties file without creating Java Class)..?
    Thanks in Advance,
    VishnuVardhan Bovlla

    for 2nd part of your question ,
    no - it is not mandatory to create a java file - unless you want to override/add some method.

  • Java Package count files

    Hi,
    I have a java package which contains several java classes.
    Package name Util
    Contains lets say 3 Classes but further classes could be added in the future. I need to know how many classes are in this package.
    So im wondering is it possible to a count of the number of classes/files in a package and save this to a variable.

    So im wondering is it possible to a count of the
    number of classes/files in a package and savethis
    to
    a variable.NoWell not easily anyway. You could count the number of
    class files in a given directory or something.
    @lunny,
    I can think of no reason why this would be something
    you would want to do. Could you please give more
    information on why you think this is something you
    want/need to do?Ofcourse.
    I am writing a program that has a different class file for every year so runs different for every year.
    At the start of the program there is a drop down box listing the different years. For every year there is a respective class File. At the moment there is 3 class files / 3 years. Lets say I decided to add another one. I would have to add my 4th class file to my java package but also change my form to display 4 years.
    What I would like to do is before i display the form is pick up the number of java files in package (which would tell me the number of years) and then I can use this to display X number of options in form.

  • How to conifg jdeveloper10g to include properties files?

    hello
    in my project,i have a "param.properties" file,that contain the configuration info,i want to read it from my program.
    i put it under the "src" directory in my jdeveloper10g project,and hope it can be included in the "class" directory after compilation and package.unfortunately it CANN'T.
    i remember that jbuilder can be configed to include any kind of resource,but i don't know how can i config the jdeveloper10g to include the properties in the classpath?
    thank you!

    You can get JDev to "compile" (it doesn't really compile the properties file), and put it into your classes directory by adding it into the src directory and getting JDev to open it inside your project. Just make sure to put that properties file into the correct package for your code to reference it in the src directory (meaning just put it in the correct package folder in 'src').

Maybe you are looking for

  • My Itunes won't open. When I click on it I get error message:  The program can't start because MSVCR80.dll is missing from your computer.

    The first error message is: itunes.exe-System Error:  the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix the problem. The second error message says: itunes:  itunes was not installed correct

  • Replacement battery MB pro 15 will not charge

    The MacBook pro 15 part number is MB487LL/A charges the old battery but it only lasts about an hour. But the replacement battery will not charge. It only had two lights green when I installed I think it might be a defective battery. Would running a r

  • To find delivery quantity of materials delivered in batches

    Hi All, When a material is delivered in batches to customers, where can i find the delivery quantities of these materials delivered in batches. Please let me know the table for this ? Also i have the material, production order,  batches  and inspecti

  • Discounts and Commissions in SAP

    Hi, I have situations where I have to issue a Sales order with a Discount field so: Total Gross Before Discount less Total Discount and also to include Commission as a seperate field. Total Gross Before Discount - Total Discount Total After Discount 

  • ST03 Total Collector question

    Recently, SAP_COLLECTOR_FOR_PERMONITOR job was failing due to TSV_TNEW_PAGE_ALLOC_FAILED error in RSCOLL00 program. To fix the issue, I configured the table TCOLL according to the note 966309, I checked off Gen.Total under Expert Mode >Worload Collec