LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-22-2007, 04:40 AM   #1
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
How to install java in slackware the right way?


What I'm trying to get to work now is snipsnap.

It says it needs java SDK 1.4 or better. I went for jdk-6u1 which should fit (right?). Downloaded the self extracting binary from http://java.sun.com/javase/downloads/index.jsp -> JDK 6u1 download -> Linux self-extracting file and saved it to /usr/src/tar.
I didn't really have any idea what I was doing so I ran it with
Code:
./jdk-6u1-linux-i586.bin
and installed it. It made a folder right there called jdk1.6.0_01. Moved it to /usr/src but then I realized It wasn't the source code but it had already compiled. Okay I figured it was working and ran snipsnap's run.sh
Code:
root@SERVER:/usr/src/snipsnap-1.0b3-uttoxeter# ./run.sh
Error occurred during initialization of VM
Could not reserve enough space for object heap
I went to snipsnap's lib directory and run some file with
Code:
java -jar snipsnap.jar
which said JAVA_HOME wasn't right. Alright, long story short, I finally copied jdk1.6.0_01's files to /usr/lib/jre1.5.0_09/ which I figured was the same version but really wasn't and did
Code:
export JAVA_HOME="/usr/lib/jre1.5.0_09/"
Some things of snipsnap still don't seem to work and I think I have to install java correctly first so I can run it from run.sh

All this wasn't really even important : D, I just wanted to know, what the right steps should be when installing jdk1.6.0_01 from binary.
 
Old 04-22-2007, 05:02 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 161Reputation: 161
Have a look on your local Slackware mirror. jdk-6u1 has been added to Slackware-current. Perhaps if you look in the /slackware-current/extra/source/jdk-6 directory, you'll be able to look at Pat's Slackbuild file and see how he does it.
 
Old 04-22-2007, 05:11 AM   #3
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Original Poster
Rep: Reputation: 30
Thanks, I'm on it.
 
Old 04-22-2007, 08:44 AM   #4
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
Funnily enough on WinXP yesterday (!) I came across this heap memory thing.

The help (for jEdit) said to run with the flag "-Xms64m" (IIRC); or higher number like 128 (or higher numbers in integrals of 16). So, eg
Quote:
java -Xms64m -jar ./somejavathing.jar
See http://javahowto.blogspot.com/2006/0...java-heap.html for more about heap errors for various apps.

Last edited by pbhj; 04-23-2007 at 03:29 PM.
 
Old 04-23-2007, 12:06 PM   #5
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Original Poster
Rep: Reputation: 30
Hey thanks, It kind of works. I know that noone probably uses snipsnap here but it's homepage seems to be pretty dead so I'll post my last problem here just in case. When I make a snipsnap server it appears on my local network as the ip of the server running it (192.168.1.2), I anyone knows how I can make it into a internet public ip so others can actually see it, I'd be tremendously thankful. Thanks again for both of your's help.

Edit: I think I may have figured it out. I just have to use my router as a virtual server.

Last edited by kummiliim; 04-23-2007 at 01:19 PM.
 
  


Reply

Tags
heap, jar, java, memory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
How do you install Java in slackware? gbdavidx Slackware 9 11-21-2004 02:35 AM
install java in Slackware The Chain Linux - General 5 11-13-2004 10:50 PM
Slackware 10, Where is Java? atogbe Slackware 7 08-06-2004 08:13 AM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration