 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
TsanChung Guest
|
Posted: Thu Nov 13, 2008 9:05 pm Post subject: How to set up my eclipse project to build a jar file from tw |
|
|
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 |
|
 |
|
|
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
|
|