Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2008

Tip: Looking for answers? Try searching our database.

project setup for a java client program which use two jar files

Thread view: 
wong_powah@yahoo.ca - 29 Feb 2008 19:21 GMT
What is the best way to setup a project for a client program C (in
directory1) which use my two own JCA/JCE jar files created from
directory2 and directory3?
For my current project setup, when I single step into C, the source
files of the jar files cannot be found even though I had specified
directory2 and directory3.
Which documentation or tutorial I should read?

Source files are at
C:\win10\JavaSP\com\mycomp\crypto\X509
C:\win10\JavaSP\com\mycomp\cryptox

Then compiled and created MyJCASP.jar and MyJCESP.jar at C:
\win10\JavaSP.
javac -classpath ibmpkcs.jar -d . com\mycomp\crypto\*.java com\mycomp
\cryptox\*.java com\mycomp\crypto\X509\*.java
jar -cf MyJCASP.jar com\mycomp\crypto\*.class com\mycomp\crypto
\X509\*.class
jar -cf MyJCESP.jar com\mycomp\cryptox\*.class

The two jar files are copied to C:\Program Files\Java\jdk1.5.0_14\jre
\lib\ext.

When a java project is created, the two jar files MyJCASP.jar and
MyJCESP.jar will appear in the "JRE System Library".
Then I select and right click the two jar files MyJCASP.jar and
MyJCESP.jar one by one by attach source by "Properties", "Java Source
Attachment", "External Folder".
Set the values to C:/win/Java_dir/Java/com/mycomp/crypto and C:/win/
Java_dir/Java/com/mycomp/cryptox respectively.

Looking at the

"Project", "Properties", "Java Build Path", "Libraries", "Source
Attachment" confirm that the directory are set.

However, I still get the "Source Not Found" error.
wong_powah@yahoo.ca - 29 Feb 2008 19:39 GMT
On Feb 29, 2:21 pm, wong_po...@yahoo.ca wrote:
> What is the best way to setup a project for a client program C (in
> directory1) which use my two own JCA/JCE jar files created from
[quoted text clipped - 33 lines]
>
> However, I still get the "Source Not Found" error.

I use Eclipse 3.3.1.1 on windows 2000.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.