Packages, Classpath, Ant, and JUnit (setting up a nice environment)

Hi,
I am seeking a little help getting up and running, creating a nice environment where I can build a Java project, including building with Ant and using JUnit - hopefully this is the right forum. I am having some trouble in getting JUnit to run my tests properly (it is installed and findable by my Java install) and I think this is due to a package/classpath issue that is currently outside my experience. Here's my setup to explain:
I have installed the JUnit jar in my extensions folder, and it works properly (I can call it, don't get errors about JUnit), however, when I run my test I get the error:
"Could not find class: org.xxx.powersim.ModelTest
Time: 0
OK (0 tests)
Java Result: 1"
ModelTest has been compiled properly without error, and looks like this:
package org.xxx.powersim;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
public final class ModelTest {
     public static void main(String args[]) {
           org.junit.runner.JUnitCore.main("org.xxx.powersim.ModelTest");
     @Test
     public void testJunit() {
          assertTrue(true);
}Pretty simple stuff.
As you can see I'm trying to use the 'main' method of the test to execute the test itself... but I've tried running it via the runner from the command line also: "java org.junit.runner.JUnitCore org.xxx.powersim.ModelTest". I get the same result.
It might be a package issue, so here's how I have things set up in the file system:
PowerSim
     /build
          /org
               /xxx
                    /powersim
                         - ModelTest.class
     /src
          /org
               /xxx
                    /powersim
                         -ModelTest.javaI've tried running it within Ant, by hand using the runner, by hand calling the main method, and from within TextMate's built-in bundle - I get the same result. JUnit is installed and running fine, but it can't seem to see the test class - the more I think about it this is a package problem that I'm just not sure how to fix. I've tried running it by hand in the root /PowerSim directory, in the /build folder, and in the /powersim folder where ModelTest is. I still get the error that "Could not find class: org.xxx.powersim.ModelTest".
My files compile just fine with my simple Ant script which is as follows:
<?xml version="1.0"?>
<project name="PowerSim" default="run" basedir=".">
<property name="src" value="./src"/>
<property name="build" value="./build"/>
<property name="compile.debug"       value="true"/>
<path id="compile.classpath">
   <pathelement location="${mysql.jdbc}"/>
   <pathelement location="${junit.jar}"/>
</path>
   <target name="build" depends="init">
       <javac srcdir="${src}"
              destdir="${build}"
              debug="${compile.debug}"
              source="1.5">
          <classpath refid="compile.classpath"/>
       </javac>
   </target>
<target name="init">
   <mkdir dir="${build}"/>
</target>
<target name="run" depends="build">
   <java classname="org.xxx.powersim.Model"
       fork="true"
       dir="${build}"
       classpath="${build}"
       maxmemory="500m">
   </java>
   </target>
     <target name="test" depends="build">
         <java classname="org.xxx.powersim.ModelTest"
             fork="yes"
             dir="${build}"
             classpath="${build}"
             maxmemory="500m">
         </java>
         </target>
<target name="clean" description="Removes previous build">
   <delete verbose="true">
     <fileset dir="${build}"/>
   </delete>
</target>
</project>As you can see, I'm not sure what to try next - any help would be much appreciated.
I've tried adding things to my $CLASSPATH. For example I've added the root folder of the project, 'PowerSim' to my classpath, but this appears to have no effect. I am running OS X 10.5.
Thanks again for any help you may be able to offer, it will be very much appreciated,
- Peter

Ok - final bump and then I'll go away.
(Really - if anyone has any advice that would be great)

Similar Messages

  • ANT and JUnit in weblogic

    Hi.
    I see that the problem with ant and junit is discussed here, but with no absolutte solution.
    The problem:
    I create an build.xml containing the <junit>-task and want to run this from within the BEA Workshop. The standard error-message is that it cant find the junit-task. I can run the same build file from command since I got ANT set up correctly with JUnit outside Weblogic.
    It sems for me that Workshop dont care about existing installation of ANT, it uses it own version. I have included junit.jar in the same direstory as ant.jar is in BEA-install-dir also, but it wont work.
    Does anyone have a solution to this "small" problem??
    Thanks in advance.

    I haven't figured out why, but my JDeveloper automatically adds the classpath I have in my ant build.xml to the additional classpath of the project. My classpath is set like this in the build.xml:<path id="classpath">
    <fileset dir="env/lib">
          <include name="**/*.jar"/>
        </fileset>
    </path>And my compile target looks like this:<target name="compile" depends="init">
        <mkdir dir="${compile.outdir}"/>
        <!--Compile Java source files-->
        <javac destdir="${compile.outdir}" debug="on">
           <classpath refid="classpath"/>
           <src refid="srcpath"/>
        </javac>
      </target>And my Jdev project settings -> common -> ant has my build.xml file selected with default make and rebuild targets selected. I have never put a single entry in the additional classpath area but somehow I have all the libs as I set up in my build.xml file. I'm using JDev 9.0.3.2 by the way.

  • MOVED: Needed Help Identifying and Properly Setting Voltages for OC Environment

    This topic has been moved to Overclockers & Modding Corner.
    https://forum-en.msi.com/index.php?topic=136075.0

    With the CPU V. taken out of Auto, no point in bothering to enable any power saving features, they are essentially out the window. IOH and PCH probably don't need to be changed out of Auto. Spread Spectrum should be left disabled all the time. 87C is getting on the hot side, but nothing wrong with it in the 70C's.
    Yup, you are right. Too much variation in Intel CPU's to give cut and dried voltages required. DRAM V. may need increasing to maintain stability with the IMC. QPI V. often needs an increase.  Once the CPU is stable, then the RAM can be tweaked using the DRAM Ratio. Trial and error as to speed and timings most likely will be required along with the voltages to make it stable.

  • SAXParser, Classpath woes and ANT

    Greetings,
    I am having a problem running a java task in ANT due to classpath related issues (I believe) but I don't understand why or how to fix them.
    First to give some information I am using ant 1.7.1. I do NOT have an enviroment variable classpath.
    I have not had any issues until a new task I created today which is failing. The program in question needs to use a SAXParser and is failing like below...
         [java] Warning: Caught exception attempting to use SAX to load a SAX XMLRea
    der
         [java] Warning: Exception was: java.lang.ClassNotFoundException: org.apache
    .xerces.parsers.SAXParserSo Google would lend me to believe this is a classpath error. Okay. But I don't really get how, why or most how to fix it. Here is what I know so far.
    - I haven't had problems with other java tasks before now. And other tasks that have run before still run fine today
    - I do not have a classpath environment variable.
    - I can run the program from Eclipse with the same included libraries
    - I munged all the classpath elements into one classpath atrribute for the task. It still does not work but if I copy and paste this exact path into java -cp CLASSPATHPASTEDHERE ClassName then it does work.
    I don't know what to look at next. All the elements of the classpath exist and are correctly named, it runs stand-alone but not in ANT. Any suggestions appreciated.

    ant -d produced 30 odd K of output it didn't tell me anything particularly exciting although ant was trying to use the parent class loader rather than the ant class loader to load it. If that means something to you I don't know.That just means to me something along the lines of "there's something going on with the parser class being visible by which class loader, reminding that JAXP may use the contextClassLoader at some point"... Not a very accurate thought I know, but the class loading traces are probably necessary to go further into the explanation.
    I was hoping the -d traces would give the whole stack trace for the ClassNotFoundException. The problem is probably explainable by JAXP's dynamic loading of the parser class(ses), but I'm not brave enough to try to understand the JDK source code by second-guessing which method might be used in both your scenarios.
    Something happens in ANT that causes the parser factory to do something different. When I run the java command myself with verbose I see this.
    Loaded com.sun.org.apache.xerces.internal.parsers.SAXParser from C:\Program Files\Java\jre6\lib\rt.jar
    So. Um. It's using a different parser (different classname). I don't really understand why.By a quick look at javax.xml.parsers.SAXParserFactory Javadoc:
    - unless the class name is specified, JAXP will look for class whose names are:
    1) specified in a system property javax.xml.parsers.SAXParserFactory
    2) failing that, specified in the JRE config file
    3) failing that, specified a s a service
    4) failing that, default to "platform default"
    A quick look at the code additionally shows that:
    - 4) is com.sun.org.apache.xerces.internal.parsers.SAXParser in Sun's JRE6
    - the config file mentioned at step 2) is read only once (see note below)
    - under some circumstances, which I didn't get well, 4) is not attempted
    - the context class loader plays a role that I didn't dig, I think it's specifically for 3)
    Please note, if you really want to understand what was going on, that the SAXParserFactory Javadoc also mentions:
    Tip for Trouble-shooting
    Setting the jaxp.debug system property will cause this method to print a lot of debug messages to System.err about what it is doing and where it is looking at.
    If you have problems loading DocumentBuilders, try:
    +java -Djaxp.debug=1 YourProgram ....+
    (+note+) just noted by the way that there's a horrible Double-Checked Locking idiom (DCL) in the caching of the properties file!
    Edited by: jduprez on Oct 7, 2009 1:02 PM

  • Ant 1.6.5 and JUnit 4.1

    According to ant bugs Bug-40682 and Bug-40697, Ant 1.6.5 and JUnit 4.1 have integration problems. Is there a plan for Jdeveloper 11g to upgrade to Ant 1.7?

    We are currently testing up take of Ant 1.7 for JDeveloper 11.
    --RiC                                                                                                                                                                                           

  • Package variable g_security_group_id must be set and Collections

    we have an app that works fine under an individual user schema/workspace. I exported/imported the app into a new workspace/schema and all is well except for the page that is using a collection. when I call this page, it is throwing a 404 error. when I look in the apache error log I see:
    mod_plsql: ORA-20001 Execute ORA-20001: Package variable g_security_group_id must be set.\nORA-06512: at "APEX_030200.F", line 279\nORA-06512: at line 33
    Is there some security setting that needs to be set for the schema/workspace where the app was imported into? This appears to be only a collection issue as the new pages in the imported app work fine except for this one. Any ideas about fixing this g_security_group_id or is there a workaround?
    Thanks.

    Another follow up from me. Mine started with a HTTP 404, so in SQL*Plus:
    exec dbms_epg.set_dad_attribute('APEX','error-style','DebugStyle');I refreshed the page and "ORA-20001: Package variable g_security_group_id must be set" appeared with all the debug info.
    It turned out to be a varchar definition in a package function that was too small for the text I was assigning to it.
    Fixed that, then
    exec dbms_epg.delete_dad_attribute('APEX','error-style');to turn debug off.

  • Using Ant  or JUnit with Sun's Verifier

    Hi,
    I am trying to integrate Sun's J2EE "Verifier" into the build process. I am trying two different approaches, but am encountering similar issues.
    Using Ant
    One approach I am trying is with an Ant target. I keep getting this error "No local string for com.sun.enterprise.tools. ....etc...". I suspect the problem is with the setting of J2EE_HOME or the setting of a system property "com.sun.enterprise.home". I see this is set in verifier.bat...and I have decompiled Verifier.class and I see that this environmental variable is read at line 377 of Verifier.class. I am trying to set it...but ....there is the error that seems to indicate that the property file LocalStrings.properties is not being found. Of course the Verifier works when I run verifier.bat.
    <?xml version="1.0"?>
    <project name="verify" default="verify" basedir = "C:\j2sdkee1.3.1\">
    <target name="verify">
    <java fork="yes" classname="com.sun.enterprise.tools.verifier.Verifier">
    <classpath>
    <pathelement path="C:/j2sdkee1.3.1/lib/j2eetools.jar" />
              <pathelement path="c:/j2sdkee1.3.1/lib/j2ee.jar" />
    </classpath>
    <sysproperty key="com.sun.enterprise.home" value="C:\j2sdkee1.3.1\" />
         <sysproperty key="J2EE_HOME" value="C:\j2sdkee1.3.1\" />     
         <sysproperty key="LOCALEDIR" value="C:\j2sdkee1.3.1/lib/locale/" />          
    <arg value="C:/Ascential/RTIServer/apps/jboss/server/default/deploy/RTI.ear"/>
         <arg value="-oc:/verifierant/result"/>
    <arg value="-f"/>     
    </java>
    </target>
    </project>
    From JUnit
    I am trying to call the main() method of the Verifier...but getting similar "No local string..." errors.
    String[] args = { "I:\Release_30Sep2003\development\deploy\build\jboss\RTI.ear",
    "-oI:\Release_30Sep2003\development\deploy\build\jboss\results",
    "-f"};
    Verifier.main(args);
    Has anyone integrated this tool into Ant or Junit that could offer me some advice?
    Thanks,
    Mike Foley
    [email protected]

    How about running verifier.bat using ants exec task?

  • Log4j.properties location for ant and kodo tools

    Greetings all
    Is it possible to configure the kodo ant tasks,
    such as jdoc (kodo.ant.JDOEnhancerTask) to use
    a log4j.properties file that is not in the
    classpath?
    We generally have our log4j.properties
    file in a separate location away from the classpath
    and for standard junit and java ant targets we can
    set it's location via a jvmarg...
    Version: 3.0.0
    Thanks
    droo.

    Ok thanks for the help.
    Perhaps I could suggest for a future version that the
    Kodo Ant Tasks include the ability to specify a "jvmarg"
    like you can for java and junit targets now, for example:
    <taskdef
    name="jdoc"
    classname="kodo.ant.JDOEnhancerTask"
    classpathref="compile.path" />
    <jdoc>
    <fileset refid="all.jdo.files" />
    <classpath refid="other.path" />
    <config propertiesFile="${kodo.properties}"/>
    <jvmarg value="-Dlog4j.properties=file:///my/log4j/config" /
    >
    <jvmarg value="-Djava.compiler=NONE" />
    <jvmarg value="-Dfred=mary" />
    </jdoc>
    But if not then it's ok too :) Thanks again.
    droo.
    Droo-
    I'm not aware of an ant task to set system properties. You could
    specify it on the command line. E.g.,:
    ant -Dlog4j.configuration=/my/log4j/config mytarget
    You could also install beanshell and use the beanshell target to set
    it. E.g.:
    <target name="setlog4jproperty">
    <script language="beanshell"><![CDATA[
                   System.setProperty ("log4j.configuration", "/my/log4j/config");
    ]]> ]]></script>
    </target>
    See the ant documentation for more on the required dependencies for
    beanshell.
    In article <[email protected]>, droo wrote:
    Yes of course, but the real question is...
    How do I specify a system property for a
    kodo ant task?
    Sorry if this question is too stupid!
    Here is what I have...
    <taskdef
    name="jdoc"
    classname="kodo.ant.JDOEnhancerTask"
    classpathref="compile-path" />
    <jdoc>
    <fileset refid="all-jdo-files" />
    <classpath refid="post-compile-path" />
    <config propertiesFile="${nf.kodo.properties}"/>
    </jdoc>
    In <[email protected]> Marc Prud'hommeaux wrote:
    Droo-
    I think you can specify the "log4j.configuration" system property.
    Take a look at:
    http://jakarta.apache.org/log4j/docs/manual.html
    In article <[email protected]>, droo wrote:
    Greetings all
    Is it possible to configure the kodo ant tasks,
    such as jdoc (kodo.ant.JDOEnhancerTask) to use
    a log4j.properties file that is not in the
    classpath?
    We generally have our log4j.properties
    file in a separate location away from the classpath
    and for standard junit and java ant targets we can
    set it's location via a jvmarg...
    Version: 3.0.0
    Thanks
    droo.

  • Packages, classpath, sigh...

    I have a package, which has different versions for mac and windows. So, I thought I would make 2 folders one called "mac" and one called "win" and stick the corresponding package version into each folder along with shared library files for the OS. Depending on which OS the program is running on, I would set the classpath and library path to either "mac" or "win." However, even though both the classpath and libpath ARE being set correctly (I've checked them with println's) the prog cannot find the classes in the package.
    The strange thing is, if I'm on say for instance "mac" os, and I place the macos package AND macos sharedlibrary into my CURRENT directory(along with all my classes and src files) and I set the CLASS and LIBRARY paths to THAT directory, the program finds the package and the lib without a problem and the program runs. I think my problem is that when I put a package into a folder, that folder actually becomes part of the fully qualified package name even though I didn't declare it that way with my package statement in my classes... Or something to do with placing a package into a folder that I cannot figure out. Any of you guys able to help me? Here's some code snippets...
    This sets class and lib to current dir and works
    import java.io.File;
    import java.io.IOException;
    public class PathSetter
         PathSetter()
            try
                String classpath = System.getProperty("java.class.path");
                String libpath = System.getProperty("java.library.path");
                File thisDir = new File (".");
                   String pathSep = System.getProperty("path.separator");
                   String[] dirs1 = classpath.split(pathSep);
                   String[] dirs2 = libpath.split(pathSep);
                   boolean classThere = false;
                   boolean libThere = false;
                   for(int i = 0; i < dirs1.length; i++)
                        if(dirs1.equals(thisDir.getCanonicalPath()))
                             classThere = true;
                             break;
              for(int i = 0; i < dirs2.length; i++)
                        if(dirs2[i].equals(thisDir.getCanonicalPath()))
                             libThere = true;
                             break;
              if(classThere == false)
                   String currentDir = thisDir.getCanonicalPath();
                        System.setProperty("java.class.path", classpath + pathSep + currentDir + pathSep);
                   if(libThere == false)
                   String currentDir = thisDir.getCanonicalPath();
                        System.setProperty("java.library.path", libpath + pathSep + currentDir + pathSep);
         catch(IOException e){ e.printStackTrace(); }
    This sets class and lib to corresponding OS folder, and DOES NOT work
    import java.io.File;
    import java.io.IOException;
    public class PathSetter
         PathSetter()
            try
                String classpath = System.getProperty("java.class.path");
                String libpath = System.getProperty("java.library.path");
                String pathSep = System.getProperty("path.separator");
                String os = System.getProperty("os.name");
                String firstThree = os.substring(0, 3);
                File thisDir = new File (".");
                File newDir = null;
                   String[] dirs1 = classpath.split(pathSep);
                   String[] dirs2 = libpath.split(pathSep);
                   boolean classThere = false;
                   boolean libThere = false;
                   if(firstThree.equalsIgnoreCase("win") == true)
                   { newDir = new File(thisDir.getCanonicalPath() + System.getProperty("file.separator") + "win"); }
                   else if(firstThree.equalsIgnoreCase("mac") == true)
                   { newDir = new File(thisDir.getCanonicalPath() + System.getProperty("file.separator") + "mac"); }
                   for(int i = 0; i < dirs1.length; i++)
                        if(dirs1.equals(newDir.getCanonicalPath()))
                             classThere = true;
                             break;
              for(int i = 0; i < dirs2.length; i++)
                        if(dirs2[i].equals(newDir.getCanonicalPath()))
                             libThere = true;
                             break;
              if(classThere == false)
                   String correctDir = newDir.getCanonicalPath();
                        System.setProperty("java.class.path", classpath + pathSep + correctDir + pathSep);
                   if(libThere == false)
                   String correctDir = newDir.getCanonicalPath();
                        System.setProperty("java.library.path", libpath + pathSep + correctDir + pathSep);
         catch(IOException e){ e.printStackTrace(); }

    Ok heres the setup.
    In my "main" folder I have all class and source files. This folder is called "test."
    Within that folder along with class/src files are 2 folders called "mac" and "win"
    Inside "mac" is the mac version of the package "org.eclipse.swt" and also the mac shared library.
    Inside "win" is the windows version of "org.eclipse.swt" and also the windows .dll files.
    First I run the pathsetter class in the snippets I originally posted. Setting the class and lib paths to either "mac" or "win."
    Then from classes in the "test" folder, I have import statements like "import org.eclipse.swt.graphics.*, import org.eclipse.swt.events.*, etc. Because only one of the "mac"/"win" folders is in the class/lib paths, those import statements should import the correct packages. i.e. If I'm on mac, it should import the package in the "mac" folder because that is the only place it knows to look.
    Does this help? The problem I was running into was finding a way to determine which OS I was on, and then be able to import the correct package and lib files after making that determination. The only way I could think to do this was to make the 2 folders and set classpath and libpath.

  • Package CLASSPATH

    hi folks
    i have created classes and i want to put in a package let say com.isis.graphics so i created 3 folders in order in the package name and i puted my classes in the folder graphics and in every class first line is package com.isis.graphics.and i typed in the Autoexec.bat the followoing line
    set CLASSPATH=%CLASSPATH%;c:\com\isis\graphics the problem is when i'm trying to create a new class outside the package extending a class inside the package i get Compiler Error can any one till me why!? and How to det the CLASSPATH typed in the autoexec.bat in good way?
    Please Help

    Thnx Guys
    thnx Patrick
    it worked in the case of using creating a class using
    a text editor.but i meant that how can i use this
    package from tool under windows like Forte or
    JBuilder.i tried but the (Forte or JBuilder) issue an
    Error that he doesn't know where is the package
    com.isis.javaWith Forte you have to mount the directory or jar file. If you mount the root directory as has been suggested Forte will mount not only the directory /com/isis/java, but also all the other directories under /, which is not what you desire.
    Since you're relatively new at this I assume you out of desparation 'un-jarred' the isis distribution into your file system. So the best thing to do with Forte is to MOUNT THE original isis JAR archive. In future do not unjar third party packages. They waste your disk space and cause you to lose your way in your own file system.
    So for Forte you mount the jar file with the following menu selections: FORTE=>View=>Explorer=>...FileSystems=>MountJar.
    MountJar will be in the LocalMenu of (right-click the mouse over the item ->) 'FileSystems'.
    I am not looking at the JBuilder UI as I type so I cannot be explicit in my answer, but it has a more traditional menu facility for adding third-party libraries and archives. If you have your project already loaded, there should be a place where you can change its SETTINGS such as Debug CommandLine Options,SourcePath, ClassPath, Libraries and the like. Poke around and you will find the spot where you can add the isis jar file immediately after the Sun and Borland jar and zip files. If you have cleaned up the unjar directories, just create your own third-party directory where you plunk the isis jar file. Then update the Classpath to include that thrd party directory, and then finally add the isis librar jar file name into the extra library dialogue.
    if u have a way to do this i'll be gratefull
    and thnx anywayGood luck.
    Malome

  • Package variable g_security_group_id must be set

    Hi all,
    i have the following problem.
    I have a form based on an interactive report.
    all standard made out of the apex possibilities.
    i have a number of validations, all automatically created by apex, in the form because of the not possible being null of certain columns in my database.
    when i press the insert button or save button when i didn't fill in all the necessary fields, i get the following error:
    ORA-20001: Package variable g_security_group_id must be set.
         Error      ERR-1023 Unable perform validations.
    OK      
    i allready checked my validations and i can't find something wrong with it.
    they haven't been modified neither after being automatically created by apex
    anyone any clue?
    thanks in advance,
    Mr. T

    Desmedt,
    Can you please demonstrate this on apex.oracle.com?
    Scott

  • Maximum package size for data packages was exceeded and Process terminated

    Hello Guru,
    When i am execute the process chain i got this message Maximum package size for data packages was exceeded and Process terminated,any body help to me in this case how can i proceed.
    Thanks & Regards,
    Suresh.

    Hi,
    When the load is not getiing processed due to huge volume of data, or more number of records per data packet, Please try the below option.
    1) Reduce the IDOC size to 8000 and number of data packets per IDOC as 10. This can be done in info package settings.
    2) Run the load only to PSA.
    3) Once the load is succesfull , then push the data to targets.
    In this way you can overcome this issue.
    You can also try RSCUSTV* where * is an integer to change data load settings.
    Change Datapackage size for extraction, use Transaction RSCUSTV6.
    Change Datapackage size when upload from an R/3 system, set this value in R/3 Customizing (SBIW -> General settings -> Control parameters for data transfer).
    IN R/3, T-Code SBIW --> Genaral settings --> Maintain Control Parameters for Data Transfer (source system specific)
    Hope this helps.
    Thanks,
    JituK

  • Building jars using ant and eclipse

    Note: If this post could be in a more appropriate forum category could someone please tell me which one is better.
    Vexing issue:
    I am using ANT so that it will take care of which classes have been modified and therefore which jars need to be updated.
    I noticed one way ANT can work is to look at the timestamp of the class files and then build the necessary jars. This works fine EXCEPT that eclipse has a nasty habit of sometimes recompiling everything, even when I dont ask it to. It would seem to make more sense basing the recompilation on the source files, and whether they have been modified. So I set this up with my build.xml, ie
    <target name="compile" depends="init"
    description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" fork="true"/>
         </target>
    Now suppose I go and change one of my source files, ANT recompiles that file and that all works great. However, suppose that file had in it, which many do,
    public static String EXAMPLE_VARIABLE = "example";
    This static variable is referenced in many classes, and yet ANT only recompiles the one file, and thus there begins an inconsistency!
    Is there any way to get around this? I would have expected ANT to recompile all the files that depend on the class with the static variable but it doesnt.
    Any help much appreciated.
    Cel

    You know, that's a good question. I would think JVMs at runtime could resolve static variables, like when it compiles classes using that static variable it puts a placeholder "Hey, here I am using XXX, at runtime, figure it out and give me the value right at the start..". But I think it works like you suggest in that a static value is compiled into every location that uses it. The only thing I can think of is provide a target for a build-all in your ant and have it rebuild all.
    I agree though that the javac compiler should be smarter in how it compiles classes. Anytime a class has certain attributes that may be compiled in to other classes, it should check and recompile any class that depends on the static value that has changed.

  • Transport an Appraisal and Objective Setting Template

    Note the following advice pertaining to transporting an appraisals and objective setting template (I have not found documentation about this anywhere else, so hopefully some of you find this useful):
    Scenario:
    You have maintained your templates in PHAP_CATALOG_PA in the main config client, and you have transported all other configurations (basic settings, etc.) to your unit test/integration test environment.
    However, although you have right-clicked the category groups and templates to be transported and included them in a transport request, you find that only some of your configuration (or perhaps none at all!) is arriving in the target client when the transport is performed.
    You may initially be able to work around this by downloading/uploading your config, but once your templates contain more complex configuration (such as using dynamic element references, etc.) you will find that this is no longer a feasible approach.
    Cause & Resolution:
    The problem is caused by outdated information in the workflow definition environment (transaction SWU3), and specifically the section labeled "Check Entries from HR Control Tables".
    Run transaction SWU3, expand tree node "Maintain Definition Environment" (which should be marked with a red cross at this stage) and click on "Check Entries from HR Control Tables". The information presented in the right-hand pane indicates that:
    If there are errors regarding the transport objects PDST or PDWS, the relevant entries are not maintained in table SOBJ. You can use the report RHSOBJCH to rectify this later.
    Proceed as suggested and run report RHSOBJCH (through SE38 or SA38) in the config client (i.e. where the templates are to be transported from). This has no side-effects I am aware of other than updating the reference information required.
    If you now run SWU3 again you should find that the "Check Entries from HR Control Tables" node is marked with a green tick.
    Simply go back to the catalog, include your cat.groups & templates in a transport again, and Voila! Our work here is done.
    Happy transporting...
    Side-note: You may ask (as I did) what transporting of appraisal templates has to do with workflow, but it just so happens that the PD objects and infotypes associated with appraisals (VA, VB, VC, etc.) are transported through the same mechanism as workflow templates (which are also PD objects). if you peek inside the transport you will note that everything to do with the template and category group configuration is bundled inside PDWS and PDST transport objects...
    Edited by: Francois Van Lille on Jun 29, 2009 9:58 AM

    >
    A. Jimenez wrote:
    > Hi Francois,
    >
    > I have successfully transported Categories and Templates, but I have customized "appraisals process", which seems to create VH Objects, and this objects or customizations are not added in the transport order.
    >
    > You or anyone know how to transport this customization?
    >
    > Thanks in advance
    Hi Abe,
    what is the appraisal process you are talking about?  The new stuff in ep4 where you define the process and steps which create the roadmap at the top of the document?  if so SAP does not have a great straightforward solution, but they did provide us some options.
    you can check out this thread and if you want I can send you the full document that is referred to in the post. 
    EP4: Performance Management-Flexible-Transporting the Tab & Process config

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793
    Author: [email protected]
    Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
    Log Message:
    Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
    Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-17734
    Reviewer: Ryan
    tests: mustella gumbo/layout/GraphicElement
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17734
    http://bugs.adobe.com/jira/browse/SDK-17734
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

Maybe you are looking for

  • Error importing Layoutset(.configarchive)

    Hi everybody! I have a problem importing two layouts:one is depending on the other.The first one is imported correctly but when i try to import the second one system gives me an error: Errors related to configuration upgrade: ImportExportConfigExcept

  • Delta Functionality

    Hello, Can someone please provide me the Basis Delta Functionality between SAP 4.7 to ECC 6.0 Upgarde. Thanks in advance. Br, Naresh.

  • Mac Pro 2nd Gen not shutting down after latest leopard update 10.5.3

    I have a mac pro 8 core 2nd gen machine (August 2007) just updated from 10.5.2 to 10.5.3 and immediately after doing so the machine usually will not shut down by it self. It goes through the shut down process, exits finder but then the grey spinning

  • Autoconfig Template files vs Configuration files

    hi, I did not understand the proper difference between template files and configuration files... can anybody tell me the difference in simple teminology. thanks in advance

  • Manual Form with checksum

    I created a manual for based on the SQL below. When i view the source and look at the fcs item, all my rows have the same value. If I add a md5_checksum item to the select, I get 2 fcs items for each row (1 is the same for all and the other changes).