on 09-03-2007 10:00 AM
Hello everyone,
I have an external library that contain many jar files.
One of them is turbine-2.2.jar from apache org.
I need to debug the code of turbine-2.2 but where I should put the java sources
downloaded for turbine-2.2 (turbine-2.2-src.jar)?
thanks
Hi Ola. There may be other ways to do it but here is what we did in a similar situation.
The source code has to go in a DC of type Java. If you already have such a DC you can use it, or if you want to have a separate DC for this you can create a new one.
Extract the code from the source jar to somewhere on your hard drive temporarily. Then open your new DC in Package Explorer view in Studio. Select the 'src/packages' folder.
Now go to Windows Explorer to the root folder where you extracted your jar file. Copy that folder and paste it into the src/packages folder in Studio.
This will add all the java code to Studio.
Next right-click on each package and choose Development Component --> Add to Public Part as a Tree. Create one Public part for each package using the "provides an API..." radio button and create another choosing the "can be packaged..." radio button.
Now go to the external library DC and remove the turbine jar(s) from the 'libraries' folder.
Lastly, go to the DC that uses the turbine code and create a Used Part for each of the new Public Parts. Do a Development Component --> Build and then Development Component -- Deploy.
Now you can debug the turbine code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
in Developer Studio . Right click on your project name select properties
select java build path
select "libraries" tab
Select Add jars .browse and add
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.