Sun Jdk vs Eclipse
Hi Forum,
I am trying to compile the latest stable version of Scilab , guess its 5.1.1 ( do not have my Slackware box around to confirm ), anyway, after downloading and untarring the pre-requirements and the source code of Scilab, they all extract to a folder called Scilab, (i guess ) I run ./configure... It aborts, and asks me for a jdk, so I download the jdk-1.5....-linux-x86_64.bin chmod it and run it... in unpacks to a folder which I use as prefix for Scilab's configure, with --with-jdk=/foo/... Should work, and it almost does, it finds the java apps in .../foo/bin and aborts abruptly missing some "ant"... :-( I am clueless here... :-( Can Eclipse from Slackbuilds be a successful substitution for jdk...? .... "ant"... !? what the heck is this... ?? Should i have downloaded ahe sdk, instead of the jdk...? Thanks in advance Alex |
I think you should see more documentation and need to google a bit more.
jdk stands for Java Development Kit, provided in the installation dvd in /extra/jdk-6 folder. Eclipse is an IDE, Integrated Development Environment for Java and many other languages. To run a java program, you need jre. To compile a java program, you need jdk. To make and automate a large program/project, you need tools like Eclipse, or Netbeans. So, jdk will be sufficient IMHO. Do not confuse JDK with Eclipse, they are related but completely different things. |
Thank you Jedi_sith_fears
I will try to find out how to get ant (!!??) so that I can compile Scilab... BRGDS Alex |
default ./configure configure things in /usr/local but usually we use the path as /usr in Slackware.
So it will be a good practise to run configure in slackware as ... Code:
./configure --prefix=/usr --sysconfdir=/etc |
Quote:
see here . |
ant is a build system, comparable to make, but intended for java code.
Best bet would be grabbing the slackbuild of ant: http://slackbuilds.org/repository/13...nt/apache-ant/ I concur with sith_fears - back to google-foo school for you ;) Good luck, - Piete. |
|
Hi @Piete, @jedi_sith_fears
Thks for your help... :-) As soon as I get back home i will get Scilab working, preferably 64 bits, but if not, thanks for the link anyway. @jedi_sith_fears : Why should the default of Slackare install be --prefix=/usr instead of the more traditional /usr/local of most distros...? I guess that this is something peculiar to Slackware itself, but what is the purpose...? Has to do with pkg management...? I do not know enough of Slackware to understand this... :-( In all the other distros that I have used, /usr contained the user "base" system ( although it is an abuse to use BSD parlance when refering to a distribution... I think that you get the idea ) /usr/local being reserved to the packages that ADMIN adds to the system through a ./configure make install clean ... What is the difference about slackware... ? :-) ? BRGDS Alex |
prefix defines where the files will be placed, keeping that place as root.
In other distros, /usr/local is the default place, in Slackware it was kept in /usr from a long time, that's why this convention is used. You can install it to /usr/local too, if you desire so. The problem may arise that when it will be searching for other libraries or programs, they will be /usr, but your program will look for them in /usr/local, so it is better to follow the convention. |
Thanks Jedi_sith_fears :-)
|
You just go through Here.
You will understand what you told is more about Traditional Unix Convention, and this is just Slackware convention, since it's closest to UNIX System V, IMHO. Code:
In traditional Unix systems, /usr usually contains files that |
Quote:
if you still need a java 1.5 jdk, i have several versions kept up http://cardinal.lizella.net/~vbatts/downloads/, but it conflicts with the java 1.6 from most recent versions of slackware |
Quote:
|
Quote:
it would require hacking something after installing the pkg, therefore, it conflicts ;) |
Indeed, installing 1.5 & 1.6 and using them together is a hack :Pengy:
|
All times are GMT -5. The time now is 04:34 AM. |