Returned 5 Results for "java" Ordered By Relevance

find java path in ubuntu [relevance: 2.52]


2008-12-08 Digg! icurtain Delcious icurtain Technorati icurtain


finding the java path in ubuntu is easy, just follow the links... most links live in /usr/bin so:

mike@mbox:/$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2008-12-07 22:16 /usr/bin/java -> /etc/alternatives/java

mike@mbox:/$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 40 2008-12-07 22:34 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java


Installing Java on Linux [relevance: 2.26]


2007-08-31 Digg! icurtain Delcious icurtain Technorati icurtain


Install:

chmod +x jdk-6u2-linux-i586-rpm.bin

./jdk-6u2-linux-i586-rpm.bin

Follow prompts [yes]/[no] etc

If it gives the error message

error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Then you have to download

compat-libstdc++-33-3.2.3-47.fc4.i386.rpm

which can be found

ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/

or by googling it

rpm -i compat-libstdc++-33-3.2.3-47.fc4.i386.rpm
or # yum install libstdc++.so.5

The SDK installed in /usr/java/jdk/

add path to $HOME/.bash_profile

PATH=/usr/java/jdk/bin:$PATH:$HOME/bin:./

export PATH

export JAVA_HOME=/usr/java/jdk

export CLASSPATH=/usr/java/jdk/lib/tools.jar:/usr/java/jdk/jre/lib/rt.jar:./

Possible Issues

When installing Jboss 4.2.1.GA it throws a fit if you have anything less than Java 1.6 JRE and the 1.5 JDK installed - Centos installs it's own version of Java 1.4 to fulfil install dependencies and this seems to conflict with the Sun versions - make sure you uninstall GNU Java 1.4 from the package manager or any other way you fancy and then install first the 1.6 JRE followed by the 1.5 JDK. After that you can just drag a copy of Jboss onto the linux box and start it with /bin/./run.sh & (to spawn a process)


Jboss Seam PermGen space crash [relevance: 2.14]


2007-09-10 Digg! icurtain Delcious icurtain Technorati icurtain


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:393)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.OutOfMemoryError: PermGen space

note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.

--------------------------------------------------------------------------------

JBossWeb/2.0.0.GA

This can be rectified by modifying run.sh to include a MaxPermSize parameter for JVM memory allocation

# Execute the JVM in the background
add # Setup JBoss sepecific properties
JAVA_OPTS="-XX:MaxPermSize=128M -Dprogram.name=$PROGNAME $JAVA_OPTS"

or

"$JAVA" $JAVA_OPTS \
-XX:MaxPermSize="128M" -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@" &


Tag Library Descriptor - TLD files for Java Editors [relevance: 2.01]


2007-12-04 Digg! icurtain Delcious icurtain Technorati icurtain


xmlns:s="http://jboss.com/products/seam/taglib"
seam-ui.tld
xmlns:ui="http://java.sun.com/jsf/facelets"
jsf-ui.tld
xmlns:f="http://java.sun.com/jsf/core"
myfaces_core.tld
xmlns:h="http://java.sun.com/jsf/html"
myfaces_html.tld
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
rich.tld
xmls:a4j="https://ajax4jsf.dev.java.net/ajax"
a4j.tld

Debian Java Install on Sarge [fragment] [relevance: 1.95]


2007-09-14 Digg! icurtain Delcious icurtain Technorati icurtain


I dont have a clue what im doing with Debian so im sticking it all here in no particular order

for sarge:

add to etc/apt/sources.list

deb http://oss.oracle.com/debian unstable main non-free
deb http://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia sarge main
deb ftp://ftp.sunet.se/pub/os/Linux/distributions/debian-multimedia sarge main

then type apt-get update

installing java:

apt-get install java-package

gcc errors?
apt-get gcc install

download your JRE/JDK.bin to the director in which you are working then as a USER NOT ROOT (adduser blah - then follow prompts) type:

fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin

or whatever ur bin is called.. if this bitches out with a module not found error your version of java-package is probably prior to 0.25 - you can check this by typing:

apt-cache policy java-package | head -2

at this stage you can try to find an up to date repository or you can just download a version of java-package higher than 0.24 and stick it in the directory then type:

dpkg -i java-package.deb

this might complain about unzip and soundlib.. to resolve this type:

apt-get -f install

this will resolve your dependency issues

now you should have a combiled JRE....deb sitting in your directory - if you dont then type

fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin

ok.. so far

now we have the .deb file you should just be able to type

dpkg -i jre-1_5_0_06-linux-i586.deb

and Java will be installed

type

java -version

to varify this