Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

flukus

Installing java/eclipse!

This topic is 5213 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After alot of mucking aroun I think I got the sun JDK working correctly "java -version" shows: java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) But when I try to install the eclipse IDE I get errors saying: eclipse-platform: Depends: j2re1.4 but it is not installable or j2re1.3 but it is not installable or java2-runtime but it is not installable Even though xandros-sun-j2re1.4 is installed! Can anyone help me out with this, I''ve been trying for hours! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure but I think you have to set the enviormental variable JAVA_HOME to point to the intall directory of you java installation, or else Eclipse doesn''t find java. Also add the bin directory of your java installation to your path.

Hope that helps

LizardCPP

Share this post


Link to post
Share on other sites
Is the envireonment variable in linux or eclipse? apt-get won''t install it because it says it can''t find the j2re package.

Share this post


Link to post
Share on other sites
JAVA_HOME is a shell variable, so you can change it the global profile, or in your user''s shell configuration file. Although if that doesn''t help, then I would suggest reading documentation on APT.
Hopefully this helps you.

Share this post


Link to post
Share on other sites
Ok, I changed the bash_prfile around a bit for root an myself, I added this:

# java stuff
JAVA_PREFIX=/usr/java
JAVA_HOME=$JAVA_PREFIX/j2sdk1.4.2_04
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/javaws
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

export PATH JAVA_HOME CLASSPATH

But when I check the java -version as a regular user it works but it won''t for the root user. If apt-get uses this for installing stuff then I assume that it won''t install because of this.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!