running myProc.jar in debug mode has the "source not found" [message #266194] |
Mon, 10 November 2008 17:02 |
Eclipse User |
|
|
|
I use eclipse 3.4.1 on FC6.
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 on bash 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
To run my application:
java -jar /home/twong/eclipseworkspace/myProc.jar
What is the best way to set up my project?
Now I setup my eclipse project to build the
/home/twong/eclipseworkspace/myProc.jar file.
Now I build myjar.jar and myjarx.jar on bash.
How to setup eclipse to build myjar.jar and myjarx.jar?
I added the /home/twong/java/myjar/com/mycomp/cpt/ and
/home/twong/java/myjar/com/mycomp/cptx/
to the debug configuration source path of the launch configuration
properties.
However, running myProc.jar in debug mode has the "source not found" error.
How to fix it?
|
|
|
Powered by
FUDForum. Page generated in 0.36836 seconds