If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision latest:
L2JDP Revision latest:
I've switched from Windows to Linux as my primary client; I now have no Windows machines at home.
... and I have a minor problem.
OS - Kubuntu, 64 bit, 9.10 Karmic Koala.
Installed - svn, ant and java - using...
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
... which also seems to have installed sun-java6-bin as well.
On trying to run the ant, however, it is complaining that it can't find the javac compiler. JAVA_HOME is pointing to "/usr/lib/jvm/java-6-openjdk/jre" and there are files in there, but obviously not what I need.
Can anyone help please?
Michelle.
Linux compile problem
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Linux compile problem
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: Linux compile problem
you cant compile with jre, get jdk
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Re: Linux compile problem
OK, I installed the JDK with...
sudo apt-get install sun-java6-jdk
... but the ant still fails with the same message.
An LS of /usr/lib/jvm gives...
...and the ant fails with...
THe contents of /usr/lib/jvm/java-6-openjdk/jre is...
...so I don't know what I'm doing wrong.
sudo apt-get install sun-java6-jdk
... but the ant still fails with the same message.
An LS of /usr/lib/jvm gives...
Code: Select all
root@michelle:/usr/lib/jvm# ls -latotal 120drwxr-xr-x 5 root root 4096 2009-11-19 19:34 .drwxr-xr-x 188 root root 94208 2009-11-19 19:34 ..lrwxrwxrwx 1 root root 14 2009-11-19 19:29 default-java -> java-6-openjdkdrwxr-xr-x 4 root root 4096 2009-11-19 19:29 java-1.5.0-gcj-4.4lrwxrwxrwx 1 root root 14 2009-11-19 19:29 java-1.6.0-openjdk -> java-6-openjdkdrwxr-xr-x 5 root root 4096 2009-11-19 19:29 java-6-openjdk-rw-r--r-- 1 root root 2313 2009-11-10 06:41 .java-6-openjdk.jinfolrwxrwxrwx 1 root root 19 2009-11-19 19:34 java-6-sun -> java-6-sun-1.6.0.15drwxr-xr-x 8 root root 4096 2009-11-19 22:18 java-6-sun-1.6.0.15-rw-r--r-- 1 root root 2313 2009-08-11 14:40 .java-6-sun.jinfo
Code: Select all
BUILD FAILED/home/michelle/Documents/L2J/L2_GameServer/build.xml:76: Unable to find a javac compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK.It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
Code: Select all
drwxr-xr-x 5 root root 4096 2009-11-19 21:21 .drwxr-xr-x 5 root root 4096 2009-11-19 19:29 ..-rw-r--r-- 1 root root 1503 2009-11-10 02:19 ASSEMBLY_EXCEPTIONdrwxr-xr-x 2 root root 4096 2009-11-19 19:29 bindrwxr-xr-x 10 root root 4096 2009-11-19 19:29 libdrwxr-xr-x 4 root root 4096 2009-11-19 19:29 man-rw-r--r-- 1 root root 715 2009-11-10 02:19 README.html-rw-r--r-- 1 root root 127498 2009-11-10 02:19 THIRD_PARTY_README
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Linux compile problem
hi michelle, point JAVA_HOME to the jdk directory java-6-sun-1.6.0.15. (the jdk directory has to have a bin directory in it).
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Re: Linux compile problem
Superb, Janiii, that did the trick. I did the following...
...and that did the trick. Many thanks!
Code: Select all
$ JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.15$ export JAVA_HOME
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Linux compile problem
nice to see you here around Michelle! 

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!