Page 1 of 4

Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:39 am
by msknight
Hi Folks,

I've got a Java issue.

I'm on Ubuntu 10.04 64 bit. There don't appear to be any packges beginning sdk- in the repository any more (either that or I'm missing a source.)

I got the Java SE development kit from here....
https://cds.sun.com/is-bin/INTERSHOP.en ... TypeFilter
...but the installation didn't appear to put anything new in the /usr/lib/jvm directory. I still only have the java-6-openkjdk folder from attempting to install the Android development system in that location.

I do have an unpacked folder containing this...

Code: Select all

michelle@michelle-desktop:~/Downloads/jdk1.6.0_21$ ls -latotal 19048drwxr-xr-x 10 michelle michelle     4096 2010-10-04 06:31 .drwxr-xr-x 53 michelle michelle    12288 2010-10-04 06:33 ..drwxr-xr-x  2 michelle michelle     4096 2010-06-22 11:30 bin-r--r--r--  1 michelle michelle     3339 2010-06-22 09:37 COPYRIGHTdrwxr-xr-x  7 michelle michelle     4096 2010-06-22 11:31 dbdrwxr-xr-x 10 michelle michelle     4096 2010-06-22 11:31 demodrwxr-xr-x  3 michelle michelle     4096 2010-06-22 11:31 includedrwxr-xr-x  7 michelle michelle     4096 2010-10-04 06:31 jredrwxr-xr-x  3 michelle michelle     4096 2010-10-04 06:31 libdrwxr-xr-x  4 michelle michelle     4096 2010-06-22 11:31 man-r--r--r--  1 michelle michelle    28230 2010-06-22 09:37 README.html-r--r--r--  1 michelle michelle    25317 2010-06-22 09:37 README_ja.html-r--r--r--  1 michelle michelle    20663 2010-06-22 09:37 README_zh_CN.html-r--r--r--  1 michelle michelle     5271 2010-10-04 06:31 register.html-r--r--r--  1 michelle michelle     6793 2010-10-04 06:31 register_ja.html-r--r--r--  1 michelle michelle     4869 2010-10-04 06:31 register_zh_CN.htmldrwxr-xr-x  9 michelle michelle     4096 2010-06-22 11:31 sample-rw-r--r--  1 michelle michelle 19159548 2010-06-22 09:37 src.zip-r--r--r--  1 michelle michelle   183173 2010-06-22 09:37 THIRDPARTYLICENSEREADME.txtmichelle@michelle-desktop:~/Downloads/jdk1.6.0_21$  
...but I can't find an install routine in there.

Help please?

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:41 am
by Aikimaniac
i recommend to downgrade to 20 or update to 23 cause 21 was according to some forums somehow defective (i had for example issues with Eclipse with that build version)...

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:44 am
by msknight
OK - I'm going to be really dumb here - at least I am dumb when it comes to Java! - but how do I upgrade please?

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:51 am
by MELERIX
Aikimaniac wrote:i recommend to downgrade to 20 or update to 23 cause 21 was according to some forums somehow defective (i had for example issues with Eclipse with that build version)...
these issues in Update 21 are already fixed now in the new build 1.6.0_21-b07.

so now if you download latest Update 21 from Java/Oracle website, it will works fine ;)

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 6:00 am
by msknight
...so I just change JAVA HOME=/home/michelle/Downloads/jdk1.6.0_21
?

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 6:17 am
by Aikimaniac
MELERIX wrote:
Aikimaniac wrote:i recommend to downgrade to 20 or update to 23 cause 21 was according to some forums somehow defective (i had for example issues with Eclipse with that build version)...
these issues in Update 21 are already fixed now in the new build 1.6.0_21-b07.

so now if you download latest Update 21 from Java/Oracle website, it will works fine ;)
why 21 when 23 is out already ? :) even when build 01 :P..

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 6:29 am
by MELERIX
well, u23 is not released yet, only snapshot release :(

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 9:13 am
by _DS_
For easy installation use package system of your linux distributive. Sun distribution require manual install.

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:38 pm
by msknight
The packages beginning sdk- are no longer in my Ubuntu package system. I guess I'm going to need to manually install what I've downloaded...

... now all I need to know is how! Any hints?

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:45 pm
by nBd
msknight wrote:The packages beginning sdk- are no longer in my Ubuntu package system. I guess I'm going to need to manually install what I've downloaded...

... now all I need to know is how! Any hints?

1. sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2. sudo aptitude update
3. sudo aptitude install sun-java6-jdk

Then you have to select it:

sudo update-alternatives --config java

Re: Another Linux Compile problem

Posted: Mon Oct 04, 2010 5:52 pm
by blacksea
Michele open .bashrc
and add this :

Code: Select all

export PATH=/home/michelle/Downloads/jdk1.6.0_21/bin:${PATH}export JAVA_HOME=/home/michelle/Downloads/jdk1.6.0_21export PATH=${PATH}:/home/michelle/

Re: Another Linux Compile problem

Posted: Tue Oct 05, 2010 7:35 am
by msknight
Many thanks folks. I was on door duty at the camera club last night, so it was a late night for me. Plus I'm just off to work, so I'll give this a good go when I get back home tonight.

Many thanks for your help on this. I realise that when it comes to Java, that I'm a complete and utter novice and answering questions like this must be a real bore. Your help is greatly appreciated.

Re: Another Linux Compile problem

Posted: Tue Oct 05, 2010 5:49 pm
by msknight
I've got the Java installed, but now I can't find an "ant" in the L2_GameServer directory. Is there supposed to be one in there? How do I create it?

Re: Another Linux Compile problem

Posted: Tue Oct 05, 2010 7:09 pm
by DeGato
man aptitude
sudo aptitude search ant
sudo aptitude install ant-... etc

Also this: _http://packages.ubuntu.com/ may help You.

Re: Another Linux Compile problem

Posted: Thu Oct 07, 2010 5:54 pm
by msknight
Many thanks. I'm up and running. Going to compile and install tonight and then start work on the dropcalc for any changes. I'm hoping that no more databases have been taken out to xml.