[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

changing from gcj to sun-java

Posted on 2006-10-22
3
Medium Priority
?
280 Views
Last Modified: 2013-12-16
Hi,

I am trying to use EPIC with eclipse to develop Perl projects.
I got a lot of error messages when trying to download the sources. After searching a bit I found out that apparently GCJ is not working correctly with Eclipse. So I installed java5.0 from sun and then copied the installation files from eclipse over the ones that came with my FC4. I am still running into problems. Now I want to change to the sun-java version, but don't know how. Can someone please help me?

thanks,

Bernd
0
Comment
Question by:BAJ05
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:BAJ05
ID: 17785070
I think it works now:
I removed /usr/bin/eclipse and appended /usr/share/eclipse to $PATH. Now starting eclipse from the command line works.
I also downloaded all the relevent files/features for EPIC and pointed the eclipse to that local site. Then I added the specific directory again for download and finally succeeded in installation. So far so good. I can at least see some Perl functionality within eclipse now. Let's see what else I can do...

Bernd
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 17808773
Hi,

To upgrade your system for SUN Java. Please note that now all java applications are Java 5.0 compatible. Depending on what application you will use on your system you might need to use Java 4.0. In fact the Java comes with gcj is 1.4.xx. not Jav 5.0 !!!


Follow this procedure to install a sun JDK:
- Uninstall gcj with rpm or yum
- Browse to the Sun Java site.
  http://java.sun.com/javase/downloads/index.jsp
- Download a SDK package not JRE. The current version is "Java SDK update 9". Select the self installing file not Self installing RPM.
- Download the package with firefox if you have gui or get the URL from a browser and copy it as a parameter to wget and download.
- Make the newly downloaded file executable like that:
  chmod 500 jdk-1_5_0_09-linux-i586.bin
- Then execute the file:
  ./jdk-1_5_0_09-linux-i586.bin   (./ is important unless your profile includes . as a path.)
- This will create a directory named jdk-1_5_0_09-linux-i586 (the actual name might vary depending on the version you download.)
- issue these commands:
  mv ./jdk-1_5_0_09-linux-i586 /usr/lib     (move the package into appropriate folder)
  cd /usr/lib
  rm -rf java                               (remove the existing empty folder)
  ln -s /usr/lib/jdk-1_5_0_09-linux-i586 java  (link package to java whew most programs look for java)
- Now we need to add it to user paths like that:
  cd /etc
- Edit the file called profile to add the new paths for users be able to access java like that:

# Path manipulation
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
        pathmunge /scripts
fi

#JAVA installation start
pathmunge /usr/lib/java
pathmunge /usr/lib/java/bin
JAVA_HOME=/usr/lib/java
export JAVA_HOME
#JAVA installation end

pathmunge /usr/X11R6/bin after

Save and exit.  (just add the lines between "#JAVA installation" comments)

-Leave the current shell and re-login.

-When login enter :
java -version

and the command must output SUN java now not gcj.

This will complete the installation.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 17808890
Ooops: There's a typo in the very first line:
Please note that now all java applications are Java 5.0 compatible
must read
Please note that *not* all java applications are Java 5.0 compatible

Sorry for typo :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question