Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » project setup for a client program which use two jar files
project setup for a client program which use two jar files [message #251696] Fri, 29 February 2008 08:58 Go to next message
Eclipse UserFriend
Originally posted by: wong_powah.yahoo.ca

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?
Re: project setup for a client program which use two jar files [message #251699 is a reply to message #251696] Fri, 29 February 2008 09:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bartczakt.tt.com.pl

Have You tried adding the jar files as an 'external jar' in the java build
path project property?
Re: project setup for a client program which use two jar files [message #251713 is a reply to message #251696] Fri, 29 February 2008 10:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wong_powah.yahoo.ca

The two jar files are JCA/JCE security providers and are copied from the
source code working directory (workdir) to
C:\Program Files\Java\jdk1.5.0_14\jre\lib\ext

I want to develop/debug the two jar files, so I followed
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. jdt.doc.user/tasks/tasks-33.htm
and exported the jar file to workdir.

Why stepping into a client which call the two jar files result in "Source
not found" error for the jar files?
Re: project setup for a client program which use two jar files [message #251724 is a reply to message #251699] Fri, 29 February 2008 12:17 Go to previous message
Eclipse UserFriend
Originally posted by: wong_powah.yahoo.ca

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.
Previous Topic:Resolving Bindings without compiling?
Next Topic:Howto use AST to declare a local variable
Goto Forum:
  


Current Time: Tue Apr 29 16:21:56 EDT 2025

Powered by FUDForum. Page generated in 0.06568 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top