DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page How to set up my eclipse project to build a jar file from two jar files
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default How to set up my eclipse project to build a jar file from two jar files - 11-13-2008, 03:55 PM

I use eclipse 3.4.1 on FC6 linux.
My java source layouts are as follows:
/home/twong/java/myjar/com/mycomp/cpt/
/home/twong/java/myjar/com/mycomp/cptx/
/home/twong/java/myProc/myProc
/home/twong/java/myProc/myProc.mf

My workspace is at:
/home/twong/eclipseworkspace

My build instructions are:
cd /home/twong/java/myjar
javac -classpath ibmpkcs.jar -d . /*.java com/mycomp/cptx/*.java
jar -cf myjar.jar com/mycomp/crypto/*.class
jar -cf myjarx.jar com/mycomp/cptx/*.class

myjar.jar and myjarx.jar are used to build myProc.jar.
cd /home/twong/java/myProc
javac -d . myProc/*.java
jar -cfm myProc.jar myProc.mf myProc/*.class

This is the command to run my application:
java -jar /home/twong/eclipseworkspace/myProc.jar

What is the best way to set up my project to build myProc.jar from myjar.jar and myjarx.jar?

I setup my eclipse project to build the /home/twong/eclipseworkspace/myProc.jar file.
I build myjar.jar and myjarx.jar on bash.
Running myProc.jar in debug mode has the "source not found" error for the source code of myjar.jar and myjarx.jar.
How to fix it?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off build project kramer2718 Eclipse 2 10-10-2008 04:25 PM
XML files excluded from build cmathrusse Eclipse 5 08-28-2008 08:57 AM
copy only the changed class files in a java project ms74120 Eclipse 0 06-04-2008 08:11 PM
Jar file in Dynamic Web Project boyrobot Eclipse 0 04-17-2008 10:26 AM
code to monitor new files in folder with file name in the arraylist: sahuabinash Java 0 04-04-2008 08:26 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com