Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 16 Dec 2017, 14:28
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
JDK and Netbeans on Puppy 3
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
robertobech

Joined: 07 Mar 2007
Posts: 23

PostPosted: Sat 26 Jan 2008, 11:11    Post subject:  JDK and Netbeans on Puppy 3
Subject description: ..and how I solved a little problem...
 

First of all, download the installer from:
http://java.sun.com/javase/downloads/index.jsp

As of today, the latest version is "JDK 6 Update 4 with NetBeans 6.0".

Be aware that the installation takes LOTS of space, so maybe you wont be able to do it under a pup_save file. Maybe you'll need a different partition. Anyway, the installer ran fine, and then I proceeded to run netbeans:

Code:
/usr/local/netbeans-6.0/bin/netbeans


and...

Code:
expr: non-numeric argument
expr: syntax error
./netbeans: line 129: [: -gt: unary operator expected
./netbeans: line 131: [: -lt: unary operator expected
./netbeans: line 134: [: -lt: unary operator expected
Invalid maximum heap size: -Xmxm
Could not create the Java virtual machine.


Oh crap... here is a quick fix: open /usr/local/netbeans-6.0/bin/netbeans under your favorite text editor and go to line 125. You'll find this:

Code:
mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]:`


Change it, so it looks like this:

Code:
mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]: | cut -d : -f 2 | cut -d k -f 1`


Now type /usr/local/netbeans-6.0/bin/netbeans and it should work!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0258s ][ Queries: 11 (0.0041s) ][ GZIP on ]