Author Topic: help installing java or upgrading for SUSE 10.1 with Plesk 8.1  (Read 4250 times)

0 Members and 1 Guest are viewing this topic.

Offline xgreedyx

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • The Art Of War
Hello

I been trying this for weeks on and off I have even googled my eyes out. I tryed installing through YaST and even did walk through from main java site.

It appered as if I did everything ok I restarted server and when I type......   java -version
I get........
java version "1.4.2_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)

I'm looking to try out Camel bnubot but I need the newest java as my server is running old ver.
Can anyone please help me or put me in the right direction. please ???
It Is What It Is...... With Out The Playa There Would Be No GAME!

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2398
    • View Profile
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #1 on: March 03, 2008, 11:41:51 PM »
The new version of java you installed probably isn't in your path, or it is in your path but it comes after the older version of your java.

Just for kicks, try typing javac -version.

If it's 1.6 or whatever your target version is, then your java is installed, but it doesn't have priority in your path, so it's a matter of finding where your updated java program is and then adding it to the front of your path. For me, it's in /usr/lib/jvm. Maybe that's the Sun default or something, so try it out. But you'll likely have to look for it.

Once you find it, you can add your updated java to your path in a couple ways... one is the local solution, which is to modify .bash_profile or .profile in your home directory. The other is to modify /etc/profile which is the global solution. In my ~/.profile file I have at the end:

Quote
if [ -d /usr/lib/jvm/java-6-sun ] ; then
    PATH=/usr/lib/jvm/java-6-sun/bin:"${PATH}"
fi

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2398
    • View Profile
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #2 on: March 04, 2008, 10:57:17 PM »
you ask question

then you go afk?

wtf.

iago can we move this to my forum?

Offline xgreedyx

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • The Art Of War
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #3 on: March 04, 2008, 11:01:58 PM »
I didn't go afk. I'm a Cable Contractor and work from 7am-6-8pm Mon-Sat. Here is what I got for.........
~ # javac -version
javac: invalid flag: -version
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options

AND

~ # java -version
java version "1.4.2_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)
It Is What It Is...... With Out The Playa There Would Be No GAME!

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2398
    • View Profile
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #4 on: March 04, 2008, 11:11:35 PM »
It's okay, I was just kidding ;) ;) ;) :D ;D

The javac -version thing was just for kicks; turns out your javac doesn't have that switch, though my 1.6 does.   Here's the least annoying solution to your problem, IMO.

I don't know how familiar with Linux you are, so I'll cover some basics. Download Java from Sun's website, whichever version you want. Now you have this .tar.gz on your computer somewhere, like on your Desktop. Extract it and move the folder to some nice place like /usr/local or /usr. Now find the binaries, such as java and javac, and add that directory to the front of your $PATH$ variable. If you have trouble with any of these steps, post here.

Offline MaDDoG

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #5 on: April 03, 2008, 04:08:17 PM »
Have you tried using KonvenientSUSE to install it, could make it easier on you. Not sure how it works but its suppose to be an Automatix clone for Suse as far as i know. May give it a try.


http://www.kde-apps.org/content/show.php?content=43378
Ubuntu Gutsy Gibbon
Cedega: Starcraft, Diablo II, F.E.A.R., WoW (no longer subscribed)
Gamer Since: 1992 when the doc prescribed me to a SNES...

Offline MaDDoG

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #6 on: April 03, 2008, 04:12:17 PM »
Have you tried using KonvenientSUSE to install it, could make it easier on you. Not sure how it works but its suppose to be an Automatix clone for Suse as far as i know. May give it a try.


http://www.kde-apps.org/content/show.php?content=43378


PS: I couldnt get BNUbot to find the dependencies correctly in my ubuntu, i had to use JavaOp.
Ubuntu Gutsy Gibbon
Cedega: Starcraft, Diablo II, F.E.A.R., WoW (no longer subscribed)
Gamer Since: 1992 when the doc prescribed me to a SNES...

Offline Camel

  • Hero Member
  • *****
  • Posts: 1705
    • View Profile
    • BNU Bot
Re: help installing java or upgrading for SUSE 10.1 with Plesk 8.1
« Reply #7 on: April 17, 2008, 02:58:10 PM »
Have you tried using KonvenientSUSE to install it, could make it easier on you. Not sure how it works but its suppose to be an Automatix clone for Suse as far as i know. May give it a try.


http://www.kde-apps.org/content/show.php?content=43378


PS: I couldnt get BNUbot to find the dependencies correctly in my ubuntu, i had to use JavaOp.

What dependency? Are you talking about native libraries? If so, try reinstalling Java.

Otherwise, you're probably launching it incorrectly. There's a script to launch the bot that configures the classpath properly; it's called run.sh, and it should appear automatically if you used the installer. Otherwise, you can try to launch the bot with the following command:
java -cp `ls -1 lib/*.jar | tr '\n' ':'`BNUBot.jar net.bnubot.Main

Be warned, though, that the stderr output is very verbose in the current stable release!

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!