AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set up my eclipse project to build a jar file from tw

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools
View previous topic :: View next topic  
Author Message
TsanChung
Guest





PostPosted: Thu Nov 13, 2008 9:05 pm    Post subject: How to set up my eclipse project to build a jar file from tw Reply with quote



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?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.