LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Sun Jdk vs Eclipse (https://www.linuxquestions.org/questions/slackware-14/sun-jdk-vs-eclipse-764009/)

Alexvader 10-23-2009 12:49 PM

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

jedi_sith_fears 10-23-2009 01:04 PM

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.

Alexvader 10-23-2009 01:06 PM

Thank you Jedi_sith_fears

I will try to find out how to get ant (!!??) so that I can compile Scilab...


BRGDS

Alex

jedi_sith_fears 10-23-2009 01:08 PM

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


jedi_sith_fears 10-23-2009 01:11 PM

Quote:

Originally Posted by Alexvader (Post 3730110)
Thank you Jedi_sith_fears

I will try to find out how to get ant (!!??) so that I can compile Scilab...


BRGDS

Alex

ant is acronym for Another Neat Tool.

see here .

piete 10-23-2009 01:17 PM

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.

jedi_sith_fears 10-23-2009 01:24 PM

You can grab Scilab ready-made package from Here.

But they are for 12.2 32-bit.



Alexvader 10-23-2009 01:40 PM

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

jedi_sith_fears 10-23-2009 01:48 PM

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.

Alexvader 10-23-2009 01:53 PM

Thanks Jedi_sith_fears :-)

jedi_sith_fears 10-23-2009 01:55 PM

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
come with the system distribution, and the /usr/local tree is free
for the local administrator to manage. The only really hard and fast
rule is that Unix distributions should not touch /usr/local, except
perhaps to create the basic directories within it.

You are basically installing a software for all users, so it will be, more logically, in /usr.

vbatts 10-23-2009 11:52 PM

Quote:

Originally Posted by Alexvader (Post 3730095)
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


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

jedi_sith_fears 10-24-2009 12:43 AM

Quote:

Originally Posted by vbatts (Post 3730548)
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

Actually it conflicts with the symlink created for java.

vbatts 10-24-2009 07:18 AM

Quote:

Originally Posted by jedi_sith_fears (Post 3730574)


Actually it conflicts with the symlink created for java.

while it was a symlink for 1.5, the 1.6 is installed to the /usr/lib$LIBDIRSUFFIX/java. so if you get that resolved, the /etc/profile.d/j*.{,c}sh setting PATH and JAVA_HOME would still need to be cleaned up.

it would require hacking something after installing the pkg, therefore, it conflicts ;)

jedi_sith_fears 10-24-2009 10:41 AM

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.