Hey,

I guess there is still a configuration error somewhere. Here are steps  
to add a .jar file to a plugin:

1) Create a lib folder and copy the jar into it
2) Right click on the jar and select Build Path > Add to Build Path
3) Right click on the project and go to the Properties > Java Build  
Path.
4) Make sure that the .jar is checked under Order and Export
5) On the Runtime tab > Classpath, Click Add... to add the jar file
6) On the Build tab > Binary Build, make sure the .jar is included

If Class.forName still fails, then instantiate the Driver class  
directly.

If there are warnings in any file (MANIFEST.MF), then view the source  
code of the file and find the yellow markers on the left border. Click  
on this to get suggestions on how to fix the issue.

All these are general Eclipse plugin development issues, on which  
there is also a lot of extra information on the web and in the Eclipse  
Help.

Regards,
Holger



On Aug 6, 2009, at 8:59 AM, CF: wrote:

>
> Hey
>
> Thanks for the reply. I tried the first option but have still run into
> the same problem (same error). I have listed below the steps I took
> for doing your first option to see if I may have left something out.
>
> 1) First I placed the mysql-connector-java-5.1.8-bin.jar file in my
> com.my.project.functions/bin folder (This project is located in the
> Topbraid workspace)
>
> 2) Next I went to the RUNTIME tab
>
> 3) In the box labeled as Classpath I clicked on the button ADD
>
> 4) A screen pops up called JAR Selection. The box has four folders
> listed .settings, bin, META-INF, and src.
>
> 5) I select the bin folder (I can only select folders here no files
> are shown) and press OK
>
> 6) Back at the RUNTIME tab in the Classpath box I see the folder bin/
> listed
>
> 7) I now click on the MANIFEST.MF tab
>
> 8) I see the line you mentioned above which looks like the following:
>
>     Bundle-ClassPath: bin/
>
> 9) It does not have the jar file listed so I add it manually to look
> like the following:
>
>     Bundle-ClassPath: mysql-connector-java-5.1.8-bin.jar
>        bin/
>        .
>
> 10) When I do this the a change occurs back on the RUNTIME tab.
>
> 11) In the Classpath box a new line has been added which is the JAR
> file, the bin/. is still there with the add "." after the slash
>
> 12) On the BUILD tab in the Binary Build box the folder bin has a
> check mark beside it. (I am assuming this is what you meant for the
> last step)
>
> I do all of the above steps and then I launch a new eclipse
> application form the OVERVIEW tab and the same problem still happens
> as before.
>
> Also of note, what should be in the build.properties tab?
>
> Mine has the following
>
>     bin.includes = META-INF/,\
>                             plugin.xml,\
>                             bin/
>
> The reason I ask is because there is a yellow triangle  next to this
> file.
>
> Thanks for the help.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to