Java build path as appose to j2ee depenencies ?

if i understand right j2ee depen. basicly means one is in another's build path and has to be deployed under the same war ?
another thing , if i placed one java application in a j2ee project build path why do i have put the same jar in both of 'em ? wil it be deployed twice ?

after copy&paste the missing entries from a .classpath-file of a local project to my NWDI-based projects .classpath file, the build errors are gone.
but how to do that automatically?
and still errors occur in the develop-config perspective:
<i>ERROR: failed to resolve reference "sap.com/tc/..." for DC "....":Cannot find compartment of used component: sap.com:tc/wdp/metamodel/content</i>
kr, achim

Similar Messages

  • Java Build Path Errors in WD with NWDI

    Hi,
    i'm connected to a NWDI and imported a development configuration with a SC from there.
    When I create a new DC (type: Web Dynpro) within this SC, I receive a lot of errors that classes could not be resolved.
    In the projects properties, I can see that the Java Build Path has "JRE_LIB" added only. In local WD-projects (without any NWDI) there are a lot more Libraries added.
    I guess, this is the problem.
    Now the question is: How can I convince my project to use more libraries in its Build Path?
    in the used SC I've added initially the following dependencies according to a tutorial:
    DI BUILD TOOL 7.00
    SAP J2EE ENGINE 7.00
    SAP JAVA TECH SERVICES 7.00
    then, after receiving theses errors, I've added additionally (I guessed them):
    WEB DYNPRO APPLICATIONS 7.00
    WEB DYNPRO RUNTIME 7.00
    still the same...
    additional information: after cretaing the DC, I also receive the following warning/error:
    <i>Development Component Creation completed with some problems.
    Reason:
    Some used DCs are not available locally.
    You have to sync used DCs for this project.</i>
    kr, achim

    after copy&paste the missing entries from a .classpath-file of a local project to my NWDI-based projects .classpath file, the build errors are gone.
    but how to do that automatically?
    and still errors occur in the develop-config perspective:
    <i>ERROR: failed to resolve reference "sap.com/tc/..." for DC "....":Cannot find compartment of used component: sap.com:tc/wdp/metamodel/content</i>
    kr, achim

  • Cant specify the Java Build Path in the Web Module Project

    hi,
    I have a problem while specify  the project dependencies in the Web Module Project.While opening the properties of the web module project i cant choose the Java Build Path.The only two options i have are design root path and web service consistency check builder.Does anybody know why its like that?do i hav to reinstall the SAP developer studio?
    With regards,
    Jaisamma Varghese

    Hi Jaisamma,
    I just tested this, and for me it works as expected, within all explorer/navigator views.
    Before reinstalling NWDS, check if the project itself may have some problem. Just create a new clean web module project and right-click on the project and try to access the BuildPath properties now. If it works, try to set up your project content again within this new project. Otherwise reinstalling NWDS may help.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Path, classpath, java build path???

    I am happy with what path and classpath does but what is java build path for? could someone point me in the direction of where I can find more info?

    cool but the IDE also had a place where you could set the classpath. so is the java build path just like an extra way of setting up classes for different projects where the classpath in the IDE is used by all projects?

  • Wipes out classes and jars in Java Build Path

    Hello!
    All the jar and class files under Library tab gets cleared when I repair my DC project. But when I repair normal projects it does not wipe out  the jars or classes in the Library. Can someone please help me?
    Thanks
    Raj

    Hi Raj,
    The Java build path of a DC-project is based on the definitions in de DC-dependecies (shown in .dcdef file).
    Everytime you repair or build the  DC the build path will be updated into the .project file based on the .dcdef file.
    See the online documentaion for how to add libraries to the DC dependecies.
    Hope this helps.
    Regrads,
    Alain.

  • Can't add jsf doc to Java Build Path of Eclipse

    hi all.
    I don't know why i can't add java document path to jsf-api.jar in eclipse , if i add it and close the settings dialog , then back , i'll see it is empty (as i've not done anything yet ), although that Validate path say ok . it' no problem with other document such as rt.jar or javaee.jar .

    I've looked at that thread, and it does look like the same problem. I've also looked at this thread which seems the same: http://forums.adobe.com/message/4025125#4025125
    That thread also brings up a good point with computer accounts; like it says there, mine is also mobile managed. I'm waiting to talk to IT and see if that's the issue - although again, everything was working fine earlier and my account permissions haven't changed since then, so that might not be it.

  • Eclipse 3.1.2 Bundle JBoss-IDE1.6 -  Java Build Path issue

    I set test/WEB-INF/classes as project output folder , why I can not find
    "WEB-INF/classes" in Eclipse "Package Explorer'. is it normal or issue?
    Thanks ahead!

    You don't need to know about the /classes folder. The classes from the Javasource will be compiled automatically into this folder.
    If you really want to see it, use the Navigator view instead, or setup it in the filters of the Package Explorer.

  • Stubborn Build Path errors

    I created a new Java project in Eclipse from an existing folder. I am getting errors like -
    Unbound classpath variable: 'JRE_LIB_CORE' in project 'RFT'
    Unbound classpath variable: 'JRE_LIB_GRAPHICS' in project 'RFT'
    Unbound classpath variable: 'JRE_LIB_SERVER' in project 'RFT'
    Unbound classpath variable: 'RATIONAL_FT_LIB' in project 'RFT' (I am using Rational Functional Tester API)
    I tried removing these entries from Project Properties -> Java Build Path -> Libraries, and as a replacement, added JRE System Library. When I save these settings, the errors do not go away. And when I check project properties again, all my changes have been reverted back - the variables I had removed are back.
    Can someone help?
    Thanks

    Best I can suggest is that that is entirely an eclispe problem.
    So at a minimum it should be phrased that way (subject) and an eclipse forum would be the best place to ask.

  • Including Library in Build Path

    I am using Eclipse 3.x,
    How do I add External Libraries in my Project
    Ans: Add all the external Jars in the build path (from project properites)
    What if its a huge hirarchy ?
    Ans shoud be: make a userlibrary and link that library to the folder which contains all jar files (hirarch of folders), and then include that userlibrary to your project.
    Problem; If I create userlibrary, I have to select the jar files .. not the higetst level folder, which contains all the jar files ... This is what I dont want. I want to just select a folder.. and that all, and then use this folder as the build path .. "HOW do I do this ""??
    -

    In eclpise, Drop all jar files under the lib folder of your project (including folders and subfolders).
    Right click on the project icon, go to <properties><java build path><libraries>
    Navigate to one of the sub folders. click on the top jar file, hold down the <shift> key and then click on the bottom jar file. All jar files between are selected. Add them to the project. Since this is a one-time-only effort, I wouldn't spend too much time trying to find a better short cut. You can pretty quickly go though each subfolder and get what you need.
    If you insist on your way, perhaps you need to repackage all the folders and subfolders with thier jar file in an all enclosing jar file with a manifest. I dont know how to do this.
    An alternative is to read up on Maven (the more modern way of automatically adding jar files and thier correct versions to a project). However, it will probably take you a long time to come up to speed on it.

  • Build path contains duplicate entry

    Hi
    We are unable to remove the duplicate entry of the jar file in the java build path in Open Script 9.1.Can any one you please let me know how to remove the duplicate entry in the build path.
    Thanks in Advance
    Shiva
    Edited by: SivaThota on Jul 27, 2010 12:55 AM

    Hi
    We are unable to remove the duplicate entry of the jar file in the java build path in Open Script 9.1.Can any one you please let me know how to remove the duplicate entry in the build path.
    Thanks in Advance
    Shiva
    Edited by: SivaThota on Jul 27, 2010 12:55 AM

  • The project was not built since its build path is incomplete

    Hi, Recently I port my project fro bea 8.1 to 10.2 & I am ubale to find following packages... workspace studio alos not able to find teh librraies contabing those files.
    The project was not built since its build path is incomplete. Cannot find the class file for weblogic.management.ManagementException. Fix the build path then try building this project
    The project was not built since its build path is incomplete. Cannot find the class file for weblogic.security.service.ResourceBase. Fix the build path then try building this project
    com.bea.p13n.mbeans.MailServiceMBean
    -KASH

    It seems this occurs since the required jar files for building the files is not available in the IDE build path.
    The build classpath is the path which is used to find classes that are referenced by your source code. During compilation, this path is used to search for classes outside of your project. As you know th build classpath can be specified for each project. In the project properties, it is referred to as the "Java Build Path Adding a JAR file to the build path : You can add a JAR file stored either in the workbench or anywhere in your file system to the build class path. To add a JAR to your build class path follow these steps: 1>>Select the project, and from its pop-up menu, select Properties. In the Properties dialog,select the Java Build Path page. 2>>Click the Libraries tab. You can now either add a JAR file which is contained in your workspace or which is somewhere else: to add a JAR file which is inside your workspace click the Add JARs button to add an external JAR file click the Add External JARs button.

  • Web DynPro DC build path error

    Hi,
    This is the first time i'm working in WDP DC, as i had been using WDP Project previously. After i created the WDP DC, it didnt load the neccessary jar files (shld need more than 10, i think) automatically as in WDP Project. Is there a quick way to add those jar files to Java Build Path, as i don want to add one by one.

    Hi Raj/All,
    I have a few questions regarding WDP DC development:
    1. Can you list the jar files/directory to be added?
    2. Can i deployed and run WDP DC as if it is a standalone WDP application? If not, how to run and view it?
    3. After i was done with the development, when i tried to create archive (after rebuild), the following exception was shown:
    org.eclipse.core.internal.resources.ResourceException: Resource /LocalDevelopmentmatcodesap.com/gen/default/deploy already exists.
    How to solve it?

  • I am new to Java, can any one pls tell me what exactly is "Build Path".

    Hi Techies...
    i am new to Java, can any one pls tell me what exactly is "Build Path".
    thanx in adv.
    Regards
    Nitin.V
    Edited by: Nitin.V on Feb 12, 2008 11:08 PM
    Edited by: Nitin.V on Feb 12, 2008 11:09 PM

    The "BuildPath" is a place where all the "resources" referenced by your java program exists.
    please visit http://www.u.arizona.edu/~jtmurphy/H2R/java.htm for more info

  • WSDC, build path, and a dirty wsanttasks.jar

    I'm attempting to use some customized Ant tasks for starting/stopping applications in Websphere Development Studio Client 5.1. I added the following line to my build.xml file...<taskdef name="wsStopApplication" classname="com.ibm.websphere.ant.tasks.StopApplication"/>...assuming that such a class might already be supported in the WS environment. Silly me - WS told me it couldn't find that class. So, I dug around and found the wsanttasks.jar buried deep in the bowels of the WS install directory. I dutifully added this JAR to the Ant properties, but got the same result. I added the JAR to the project build path, but still no custom-task love.
    I've checked and re-checked the spelling. I've rebuilt the project. I've shut down and restarted WDSC. The project seems to not even recognize that it has access to the wsanttasks.jar. I was able to compile a class outside WDSC using a class from this JAR.
    I'm open to suggestions as to what I might be missing.
    Thanks,
    &#167;

    google search:
    http://p2p.wrox.com/topic.asp?TOPIC_ID=4606
    I had the same problem, so I can help you on that.
    You need to include 2 jar files into a class path for the wsadmin.
    1) in C:\Program Files\WebSphere\AppServer\bin there is a file called setupCmdLine.bat
    2) edit it and chenge the line
    SET WAS_CLASSPATH=%WAS_HOME%/properties;%WAS_HOME%/lib/bootstrap.jar;%WAS_HOME%/lib/j2ee.jar;%WAS_HOME%/lib/lmproxy.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/mail.jar;C:/Program Files/WebSphere/AppServer/java/jre/lib/ext/log.jar
    so that includes the MAIL.JAR and LOG.JAR.
    Dunno if this is same as your problem or not.

  • Loading jperflib failed. jperflib (Not found in java.library.path)

    Please:
    We are working with SAP Netweaver EHP1 7.0, Red Hat Enterprise Linux 5, Oracle 10g,
    SAP Application Server JAVA/Oracle, Central System
    Java versión installed IBMJava2-amd64-142
    java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
    IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142ifx-20100916a (JIT enabled)
    J9VM - 20100914_64612_LHdSMr
    JIT  - 20090210_1447ifx2_r8
    GC   - 200902_24)
    step 23 de 37: Configure UME:
    Message error:
    INFO 2010-11-19 20:04:41.532
    Output of /opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/NW701/AS-JAVA/ORA/
    CENTRAL/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.OfflineToolStart com.s
    ap.engine.configtool.batch.BatchConfig /usr/sap/BJD/SYS/global/security/lib/tools/iaik_jce.ja
    r:/usr/sap/BJD/SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/BJD/SYS/global/security/l
    ib/tools/iaik_smime.jar:/usr/sap/BJD/SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/BJD/
    SYS/global/security/lib/tools/w3c_http.jar:/tmp/sapinst_instdir/NW701/AS-JAVA/ORA/CENTRAL/ins
    tall/lib:/tmp/sapinst_instdir/NW701/AS-JAVA/ORA/CENTRAL/install/sharedlib:/oracle/client/10x_
    64/instantclient/ojdbc14.jar /tmp/sapinst_instdir/NW701/AS-JAVA/ORA/CENTRAL/BatchConfig.xml i
    s written to the logfile batchconfig.log.
    WARNING 2010-11-19 20:04:43.908
    Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/NW
    701/AS-JAVA/ORA/CENTRAL/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.Offlin
    eToolStart com.sap.engine.configtool.batch.BatchConfig /usr/sap/BJD/SYS/global/security/lib/t
    ools/iaik_jce.jar:/usr/sap/BJD/SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/BJD/SYS/g
    lobal/security/lib/tools/iaik_smime.jar:/usr/sap/BJD/SYS/global/security/lib/tools/iaik_ssl.j
    ar:/usr/sap/BJD/SYS/global/security/lib/tools/w3c_http.jar:/tmp/sapinst_instdir/NW701/AS-JAVA
    /ORA/CENTRAL/install/lib:/tmp/sapinst_instdir/NW701/AS-JAVA/ORA/CENTRAL/install/sharedlib:/or
    acle/client/10x_64/instantclient/ojdbc14.jar /tmp/sapinst_instdir/NW701/AS-JAVA/ORA/CENTRAL/B
    atchConfig.xml" finished with return code 183. Output:
    PerfTimes : loadNativeLayer: loading jperflib failed. jperflib (Not found in java.library.pat
    h).
    hotspot_compiler is missing in cluster_data.
    ChangeServicePropsTask has finished successfully. Service: ssl on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: LockingManager on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: ClusterManager on dispatcher
    Error occurred while working with Configuration.
    WARNING[E] 2010-11-19 20:04:43.909
    CJS-30059  Java EE Engine configuration error. DIAGNOSIS: See output of log file batchconfig.
    log: '
    PerfTimes : loadNativeLayer: loading jperflib failed. jperflib (Not found in java.library.pat
    h)
    .hotspot_compiler is missing in cluster_data.
    ChangeServicePropsTask has finished successfully. Service: ssl on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: LockingManager on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: ClusterManager on dispatcher
    Error occurred while working with Configuration. '.
    ERROR 2010-11-19 20:04:44.7
    FCO-00011  The step runBatchconfig with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_S
    ystem|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|i
    nd|ind|ind|ind|5|0|runBatchconfig was executed with status ERROR
    Thanks for your comments nad suggestion

    good afternoon:
    the error loading jperflib failed. jperflib (Not found in java.library.path) is fixed,
    Solution:  LD_LIBRARY_PATH=/sapmnt/SID/exe
    but other error appear
    /usr/sap/BJD/JC01/j2ee/admin/adminCFG.properties doesn't exist and will be created by batchconfig.
    /usr/sap/BJD/JC01/j2ee/admin/cfg/adminCFG.properties doesn't exist and will be created by batchconfig.
    /usr/sap/BJD/JC01/j2ee/deploying/dplOptions.options doesn't exist and will be created by batchconfig.
    /usr/sap/BJD/JC01/j2ee/configtool/config.properties doesn't exist and will be created by batchconfig.
    /usr/sap/BJD/JC01/j2ee/deploying/rdb.properties doesn't exist and will be created by batchconfig.
    .hotspot_compiler is missing in cluster_data.
    ChangeServicePropsTask has finished successfully. Service: ssl on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: LockingManager on dispatcher
    ChangeManagerPropsTask has finished successfully. Manager: ClusterManager on dispatcher
    Error occurred while working with Configuration.
    com.sap.engine.frame.core.configuration.NameNotFoundException: A property with the name "java.parameters" cannot be found in the  PropertySheet "cluster_data/server/cfg/element-info.ID139743".
            at com.sap.engine.core.configuration.impl.addons.PropertyEntryImpl.<init>(PropertyEntryImpl.java:85)
            at com.sap.engine.core.configuration.impl.addons.PropertyEntryImpl.readPropertyEntry(PropertyEntryImpl.java:54)
            at com.sap.engine.core.configuration.impl.addons.PropertySheetImpl.getPropertyEntry(PropertySheetImpl.java:127)
            at com.sap.engine.configtool.batch.task.ElementInfoTask.setElementInfoProperties(ElementInfoTask.java:243)
            at com.sap.engine.configtool.batch.task.ElementInfoTask.go(ElementInfoTask.java:184)
            at com.sap.engine.configtool.batch.BatchConfig.go(BatchConfig.java:60)
            at com.sap.engine.configtool.batch.BatchConfig.main(BatchConfig.java:98)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

Maybe you are looking for

  • I have Windows 7 and i can't sort my bookmarks the normal way. nothing happens

    When i right click on bookmarks menu folder to sort my favourites into alphabetical order it doesn't do anything. I only have the option to drag them manually. Also i am getting duplicates of all the folders going down the left hand side of the bookm

  • Inserting XML(Master Detail like PO)into Database

    hi, Can any one suggest me which tools or what methodolgy I should use to insert master detail data like one header and multiple rows into database. I am unable to insert into database through object view with the help of XML SQL utility for Java. Pl

  • Active scanning of AP

    Hello everyone, About active scanning: Can the STA send data packets through the active scanning? In other words, through the active scanning the STA needs to check every channel by sending “probe request” and waits for an AP-response for specific ti

  • Operating system. We have Premier Pro CS6 and 32-bit Windows 7. It will not install

    Dell Laptop Latitude 6420 Windows 7 Professional 8GB Ram A user in Public Relations needs to use Adobe Premier Pro CS6. However when we tried to install it the program is grayed out and has a caution icon. If I hover over it there is a message that s

  • Photoshop Elements 12 - New Install

    The photo editor will not launch completely.  The menus are not operational and the photo never loads. Tried uninstalling and reinstalling.  No install errors.