Thread: [Mathlib-develop] JMathLib installation
Status: Beta
Brought to you by:
st_mueller
From: bb-543437 <bb-...@ve...> - 2008-07-02 19:28:19
|
I am new to JMathLib and I am a confident linux user. I downloaded MathLib version 0.9.0 and tried to setup. As it is running now, I have to say that is a very nice piece of code. Java frees from the trouble with every new version of C-Compilers and missing libraries with every new version of the OS. ( I have this problem actually with the new version of openSUSE 11 with some other software.) I am very curious about the performance. (Anyone knows: Java is slow and the earth is a disk.) In the pdf-manual there is a start sequence described with the input of Classes>>java MathLib.MathlibGUI.GUI That is wrong. First I tried some renaming of directories, but that gives some confusion with other pathes. The input must be Classes>>java MathLib.GUI.GUI That costed me some time because I tried to setup JMathLib by the shell-script make.linux.sh after that bad succes in the first run. make.linux.sh does not work after download. It is a well known effect that text files saved under Windows do not work with linux. (The reason is that there are different codes for the line break. The solution is to mark the full text and copy it into an empty document and save it again.) I do not understand the line JAVAC_OPTS="-classpath \$CLASSPATH\$Classpath\$classpath:. -d ../Classes" as in Linux there are very often set so called "hard links", that are unknown in Windows (afaik). So the system variable CLASSPATH is empty. Another point is that command "find . | grep ".Java"" cannot and does not find any files to compile, because all subdirectories under Classes only have Class files. So this script is absolutely useless in the directory Classes. One more problem is the trial to write the class files to the Java library via CLASSPATH ( echo -n $JAVAC_OPTS "" >> $NEW_FILE) , because the lib-directory is only readable for the normal user. Only root (that is the administrator) can write to that directory. That differs completely from the Windows system where java usually is installed on C:, wher every user has access. I am not a real shell coder, so may be I do not understand the script completely. I have not jet read the manual but I hope that there are some more explanations to write own functions? I would recommend to correct that error in the pdf - many users will be discouraged. Regards BB |
From: Stefan M. <st...@he...> - 2008-07-06 13:15:01
|
Dear BB, i just read your email. As it turns out the documentation is really old regarding manual starting of JMathLib. The part about starting has been written when JMathLib was still called MathLib. There are acutually two GUIs in JMathLib 0.9.0. One is a conservative AWT and one is a swing type. from the main directory: java -cp bin jmathlib.ui.awt.GUI or java -cp bin jmathlib.ui.swing.SwingGUI I just committed the documentation change to SVN. Could you please supply the "start" file for Linux? (I am no linux user, windows only) Kind regards, Stefan. bb-543437 wrote: > I am new to JMathLib and I am a confident linux user. I downloaded > MathLib version 0.9.0 and tried to setup. As it is running now, I have > to say that is a very nice piece of code. Java frees from the trouble > with every new version of C-Compilers and missing libraries with every > new version of the OS. ( I have this problem actually with the new > version of openSUSE 11 with some other software.) I am very curious > about the performance. (Anyone knows: Java is slow and the earth is a > disk.) > > In the pdf-manual there is a start sequence described with the input of > Classes>>java MathLib.MathlibGUI.GUI > That is wrong. First I tried some renaming of directories, but that > gives some confusion with other pathes. The input must be > Classes>>java MathLib.GUI.GUI > That costed me some time because I tried to setup JMathLib by the > shell-script make.linux.sh after that bad succes in the first run. > > make.linux.sh does not work after download. It is a well known effect > that text files saved under Windows do not work with linux. (The reason > is that there are different codes for the line break. The solution is to > mark the full text and copy it into an empty document and save it again.) > I do not understand the line > JAVAC_OPTS="-classpath \$CLASSPATH\$Classpath\$classpath:. -d ../Classes" > as in Linux there are very often set so called "hard links", that are > unknown in Windows (afaik). So the system variable CLASSPATH is empty. > Another point is that command "find . | grep ".Java"" cannot and does > not find any files to compile, because all subdirectories under Classes > only have Class files. So this script is absolutely useless in the > directory Classes. One more problem is the trial to write the class > files to the Java library via CLASSPATH ( echo -n $JAVAC_OPTS "" >> > $NEW_FILE) , because the lib-directory is only readable for the normal > user. Only root (that is the administrator) can write to that directory. > That differs completely from the Windows system where java usually is > installed on C:, wher every user has access. I am not a real shell > coder, so may be I do not understand the script completely. > > I have not jet read the manual but I hope that there are some more > explanations to write own functions? > > I would recommend to correct that error in the pdf - many users will be > discouraged. > > Regards > > BB > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Mathlib-develop mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/mathlib-develop > |