on 05-10-2011 11:29 AM
Hello,
I am facing a problem while building entreprise portal.
The file .classpath is well defined before the build. After building, many lines are removed from the file!
Of course, the build failed because it miss .jar files....
Could you help me or explain me why ?
I really need to build this application.
Thank you in advance.
Nick
Hey Nick,
Can you try adding the ext jars via a library dc ??
Just give it a try.
Hope it helps,
Sattam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you creating a Development Component (DC) for the portal component? If you are you can't mess with the classpath, as this is taken care of by dc-to-dc dependencies. Jars placed in the correct folders will be found by the portal component anyways, so you shouldn't need to alter the classpath.
If you're creating a plain Portal project, then unfortunately I've got nothing to add.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nick,
Are you modifying the .classpath file directly? You should add entries to your classpath via your projects Properties > Java Build Path. Here you can reference to projects, (external) jar files, etc.
Hope this helps!
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is very strange... let me get this straight:
- You have added a custom JAR file in dist/PORTAL-INF/lib/ directory
- You have right-clicked your portal project, and from the context menu chose 'Properties > Java Build Path > Libraries', clicked 'Add Jars' and navigated to your Jar file
I'm wondering,
- Before building, are you able to reference the classes in your project via the 'import' statement?
- When exporting to a PAR file, that's when your references are lost?
I think it's very strange too, but I am an expert ABAP, not JAVA!
Well, here the steps what I have done :
I imported the project via a .PAR file.
I built the project and noticed many errors.
I checked the classpath file and saw that many libraries were missing. And that's true because when I am going .java files, I can see that import are not recognised (red underline). If I add the missing libraries in Properties>Java Build path, it's okay....
Then I build the project again.... and it's failed, I can see that libraries added are missing now in the classpath...
I am using NWDS 7.0.
I am actually downloading the version 2.0. Maybe it's a compatible issue?
Many thanks.
Nick
Hi Nick,
From what I can tell, your procedure seems right, so I'm running out of options as well...
My wild guess would also be a compatibility issue, however, since I currently don't have NWDS version 7.0 at hand, I can't tell for sure.
Please let me know if you problem is solved or not with the older NWDS version
Cheers,
Robin
Hello Robin,
This is the same behavior with NWDS 2.0....
I really don't know why my .classpath is totaly edited... Do you know if a special customizing in NWDS could do that ? (a default classpath for example).
EDIT:
The error is talking about a variant ? What's this ?
ERROR: xxxx: Build failed for xxxx.com/xxxx(MyComponents) in variant "default":
Nick
Edited by: P. Nicolas on May 10, 2011 6:56 PM
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.