LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2009, 05:48 PM   #1
ragebot
Member
 
Registered: Jun 2008
Location: Devon, United Kingdom
Distribution: Slackware 12.1-current
Posts: 32

Rep: Reputation: 15
netbeans and JDK


Hello

i've just installed netbeans (using a slackbuild from slackbuild.org) but netbeans needs the jdk. I've got no issue installing it but i wanted to ask a couple of things before i do.

i'm using slackware 12.2 and its got jre installed by default. Should i remove this before installing the jdk or can they safely be used on the same system?

With this in mind, where would the best place to install it ( i was thinking /usr/local)?

I'd really appreciate any advice.

J
 
Old 06-26-2009, 06:24 PM   #2
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware, FreeBSD
Posts: 123

Rep: Reputation: 19
Quote:
Originally Posted by ragebot View Post
Hello

i've just installed netbeans (using a slackbuild from slackbuild.org) but netbeans needs the jdk. I've got no issue installing it but i wanted to ask a couple of things before i do.

i'm using slackware 12.2 and its got jre installed by default. Should i remove this before installing the jdk or can they safely be used on the same system?
J
on my desktop, i have both the jre and jdk installed.it works fine on my setup.but in my laptop, i remove jre before installing jdk.
from this, i can say that you can choose whether to remove or not the jre before installing jdk
Quote:
With this in mind, where would the best place to install it ( i was thinking /usr/local)?
i think files are place in /usr/lib when istalling jdk(not sure though).but why change the default location for install?
 
Old 06-26-2009, 06:37 PM   #3
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
I've got both jre and jdk installed and develop with nb with no issues.

In fact, I've often installed jdks from several java versions and happily switched between them in nb.
 
Old 06-26-2009, 06:45 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
i'm using slackware 12.2 and its got jre installed by default. Should i remove this before installing the jdk or can they safely be used on the same system?

With this in mind, where would the best place to install it ( i was thinking /usr/local)?

I'd really appreciate any advice.
JRE is a package in the "l" series of Slackware packages and is installed by default with a full install.

JDK is in the /extra package set of the Slackware install disk and may installed with JRE. I use netbeans and have both. Just install the packages and installpkg will decide where they install to as Pat intended.
 
Old 06-26-2009, 06:53 PM   #5
ragebot
Member
 
Registered: Jun 2008
Location: Devon, United Kingdom
Distribution: Slackware 12.1-current
Posts: 32

Original Poster
Rep: Reputation: 15
i'm using the binary installer from sun and you need to be in the directory you want it to be installed in.

I've just installed it in /usr/local/ but when i start netbeans it still can't find the jdk. What do i need to do?
 
Old 06-26-2009, 07:11 PM   #6
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware, FreeBSD
Posts: 123

Rep: Reputation: 19
Quote:
Originally Posted by ragebot View Post
i'm using the binary installer from sun and you need to be in the directory you want it to be installed in.

I've just installed it in /usr/local/ but when i start netbeans it still can't find the jdk. What do i need to do?
better use the sdk package that comes with slackware.you can find it in extra.
 
Old 06-26-2009, 07:12 PM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Have a look at Tools->Java Platforms settings in NetBeans. Personally I would stick with the supplied Slackware JDK but it's up to you.
 
Old 06-26-2009, 08:09 PM   #8
ragebot
Member
 
Registered: Jun 2008
Location: Devon, United Kingdom
Distribution: Slackware 12.1-current
Posts: 32

Original Poster
Rep: Reputation: 15
yeah, i will use the package on the slack disk, makes much more sense. I just wish i had thought to check there first.

J
 
Old 06-26-2009, 08:27 PM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I just wish i had thought to check there first.
In future if looking for an application/library/whatever you can run :
Code:
/usr/sbin/slackpkg search application
to find the package an application is in if it's part of the Slackware series - installed or not ! You need to uncomment a mirror and run :
Code:
su -c "slackpkg update"
first to update the package lists.
 
Old 06-26-2009, 08:59 PM   #10
ragebot
Member
 
Registered: Jun 2008
Location: Devon, United Kingdom
Distribution: Slackware 12.1-current
Posts: 32

Original Poster
Rep: Reputation: 15
Sounds pretty cool, thanks for the tip.

And thanks for the help everyone. Just got jdk installed so hopefully that will do the trick.

J
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error installing jdk and netbeans ufmale Linux - Software 1 07-22-2008 04:04 PM
Netbeans 6.0+JDK tombelcher7 Linux - Software 2 03-30-2008 03:39 PM
How to install JDK and NetBeans? ~Linux_user~ Linux - Software 9 10-23-2007 01:30 PM
LXer: How To Install Sun Java SE 6 JDK and NetBeans 5.5.1 - Fedora 7 LXer Syndicated Linux News 0 08-22-2007 06:51 PM
RedHat 8.0 + NetBeans + JDK 1.4.2 JCScoobyRS Linux - Software 0 08-29-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration