log - archive - JCLIPS
JCLIPS LOG
It is a little painful learning eclipse al over again
particulary frustrating was the use of Jars...
Essentially in eclipse you need to set up a few things
you need to set the variables for java (VM) and the javac (buildpath)
for setting the buildpath, click on your project (not the package) and on the
top bar
Project>Properties you should be able to see "Java Build Path" add the jar here
Then goto
Run > Run as
Click on your current java application
here you can set your program arguments and your VM arguments (things you wanna tell java)
to add a jar to your class path add a jar under "classpath"
of course if you know the codes
this is the infamous :
"why does java use -cp and javac -classpath ?????"
note that when you do this you do not need to add the jar to your classpath anymore...
For example:
Previously this is what I have to do to run it:-
javac -classpath C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed\jclips.jar JClipsExample.java
java -cp C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed;C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed\jclips.jar -Djava.library.path=C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed
the class path option is now not needed (or atleast unseen as it is automated by eclipse)
Though I suspect the -D option is still necessary
For a simpler example of how to set jclips up see here:
http://www.cs.vu.nl/~mrmenken/jclips/
(mine is actually nt more complex, just that the path is longer so it looks messy =P)
It is a little painful learning eclipse al over again
particulary frustrating was the use of Jars...
Essentially in eclipse you need to set up a few things
you need to set the variables for java (VM) and the javac (buildpath)
for setting the buildpath, click on your project (not the package) and on the
top bar
Project>Properties you should be able to see "Java Build Path" add the jar here
Then goto
Run > Run as
Click on your current java application
here you can set your program arguments and your VM arguments (things you wanna tell java)
to add a jar to your class path add a jar under "classpath"
of course if you know the codes
this is the infamous :
"why does java use -cp and javac -classpath ?????"
note that when you do this you do not need to add the jar to your classpath anymore...
For example:
Previously this is what I have to do to run it:-
javac -classpath C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed\jclips.jar JClipsExample.java
java -cp C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed;C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed\jclips.jar -Djava.library.path=C:\eclipse-SDK-3.0M4-win32\eclipse\workspace\ferret\jclipsed
the class path option is now not needed (or atleast unseen as it is automated by eclipse)
Though I suspect the -D option is still necessary
For a simpler example of how to set jclips up see here:
http://www.cs.vu.nl/~mrmenken/jclips/
(mine is actually nt more complex, just that the path is longer so it looks messy =P)
0 Comments:
Post a Comment
<< Home