Returned 5 Results for "java" Ordered By Relevance
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
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:./
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)
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 "$@" &
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