Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Want to have -classpath myjar.jar and then update myjar.jar with the newly compiled class
Want to have -classpath myjar.jar and then update myjar.jar with the newly compiled class [message #275329] Sat, 06 November 2004 13:45
Eclipse UserFriend
Hi!


I am sorry if this is to much of a newbie question, but i do not know
where else to turn and i have tried reading the manual for the solution
without success (but it's probably there somewhere). I have just started
to use Eclipse but it looks really good, but i am an not that familiar
with it yet so please bare with me. :-)

WHAT I WANT TO DO

I usually have a .bat file containging three (long) lines with the below
content to compile my code and and update an existing jar file with the
new class:

javac -cp JAIF-ass1.jar -source 1.4 PropertyMapCord.java
PropertyMap.java BehaviorHandler.java WalkAndClean.java
RobotController.java WalkShortestPathTo.java PropertyMapNode.java

jar -uf JAIF-ass1.jar RobotController.class PropertyMapCord.class
PropertyMap.class BehaviorHandler.class WalkAndClean.class
WalkShortestPathTo.class PropertyMapNode.class

del *.class

However i do not know how to do this using Eclipse (latest relaese run
under Windows XP with Sun's JDK). What i want is to compile my classes,
which are dependant on the classes inside JAIF-ass1.jar, and then update
the JAIF-ass1.jar with the resulting classes. As the last thing i do i
remove all *.class files as i have no need for them lying around.

WHAT I HAVE DONE SO FAR

I have installed Eclipse, and got it running fine normally. I then
create a (Java) project and import (from file system) the .java files as
well as the .jar file. It looks good, but i get a lot of errors
immediatly as the necessary classes which my code is dependent on is
inside the .jar file...

With hope of some help, best regards Kent
Previous Topic:addDropTargetListener deprecated?
Next Topic:3.1 M3 ant preferences not available
Goto Forum:
  


Current Time: Tue Jul 08 13:57:11 EDT 2025

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

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

Back to the top