[jitsi-users] Eclipse Tutorial Bug


#1

I've been following:
https://jitsi.org/Documentation/ConfigureEclipseNew

I purposefully am have installed and tried to setup Eclipse Kepler and JDK 1.6 the 2 prerequisites:
  * At least JDK 1.6
  * A recent Eclipse (4.3.1 Kepler SR1 at the time of this writing)

I get the below error when I do the build.xml ant make-and-deply:

Buildfile: C:\Users\Chad\jitsi.org\jitsi\build.xml
clean-bundle-repositories:
init:
-pre-version:
version:

BUILD FAILED
C:\Users\Chad\jitsi.org\jitsi\build.xml:486: Class not found: javac1.8

Total time: 883 milliseconds

<< I assume this is because somewhere the project is still pointing to JDK 1.8? An update on the tutorials would help a ton...I have tried all 3 and found errors in each. I am used to using Visual Studio and Mono Develop...these other IDE's are new to me.

Thank you for your help.

<<Alright I actually thought I would go the extra mile with this setup, and try a few more things before sending.

I found that if I right clicked on make-and-deploy, I could choose External Config tools...and in there switch to JRE6. I also tried JRE7.

I now get:
Buildfile: C:\Users\Chad\jitsi.org\jitsi\build.xml
clean-bundle-repositories:
clean-test-reports:
clean-macosx:
clean:
init:
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\classes
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\doc\api
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\macosx
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\linux
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\windows
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\freebsd
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\solaris
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\android
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\test-reports
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\test-reports\html
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\release
[mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\log
-pre-version:
version:

BUILD FAILED
C:\Users\Chad\jitsi.org\jitsi\build.xml:486: 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 "C:\Program Files\Java\jre6"

Total time: 1 second

<<<<Alright, my last ditch efforts proved successful it looks like...
Pointing things at jdk1.6.0_45 resulted in this...

 \[echo\] ver=2\.5\.0\.build\.by\.SVN

BUILD SUCCESSFUL
Total time: 1 minute 37 seconds

Hopefully the above info can go towards making a slight improvement on the tutorial...I would be happy to adjust and commit in github if it helps.

Two final notes, as I have now built and executed Jitsi all from source (ya!) it might be useful to mention that after you have make-and-deployed and such...that to get the gui to appear you need to choose the ant button in Eclipse and that is where you choose your custom config'd Debug_SIPCommunicator.

Anyways, the tutorial did serve it's purpose to get me through the setup. Thank you Brian B. and other authors for the time spent on these...it is really valuable for attracting new developers to help grow the product. Now to look at the GUI tutorial...be afraid, be very afraid :wink:

Thanks again,
Chad


#2

The 1.8 error comes from the fact that your C:\Program Files\Java\jre is
most probably a Java 8 installation. Eclipse searches multiple paths for
JDKs and JREs, and uses the first it finds to run. As Eclipse comes with its
own Java compiler, it can compile without a JDK. Ant on the other hand
requires the JDK. So JAVA_HOME really needs to point to a JDK.

You really don't need the Ant-button in Eclipse to run the project. That is
what the whole tutorial and especially the section "CONFIGURE RUN AND DEBUG
THROUGH ECLIPSE" is about. Otherwise you could just run ant make-and-deploy
and ant-run from the command-line.

IMO configuring Eclipse with a JDK instead of a JRE can be considered common
knowledge that doesn't need to be documented in this tutorial.

Ingo

···

From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Chad Macon
Sent: Donnerstag, 10. Juli 2014 11:08
To: users@jitsi.org
Subject: [jitsi-users] Eclipse Tutorial Bug

I've been following:

https://jitsi.org/Documentation/ConfigureEclipseNew

I purposefully am have installed and tried to setup Eclipse Kepler and JDK
1.6 the 2 prerequisites:

. At least JDK 1.6

. A recent Eclipse (4.3.1 Kepler SR1 at the time of this writing)

I get the below error when I do the build.xml ant make-and-deply:

Buildfile: C:\Users\Chad\jitsi.org\jitsi\build.xml

clean-bundle-repositories:

init:

-pre-version:

version:

BUILD FAILED

C:\Users\Chad\jitsi.org\jitsi\build.xml:486: Class not found: javac1.8

Total time: 883 milliseconds

<< I assume this is because somewhere the project is still pointing to JDK
1.8? An update on the tutorials would help a ton...I have tried all 3 and
found errors in each. I am used to using Visual Studio and Mono
Develop...these other IDE's are new to me.

Thank you for your help.

<<Alright I actually thought I would go the extra mile with this setup, and
try a few more things before sending.

I found that if I right clicked on make-and-deploy, I could choose External
Config tools...and in there switch to JRE6. I also tried JRE7.

I now get:

Buildfile: C:\Users\Chad\jitsi.org\jitsi\build.xml

clean-bundle-repositories:

clean-test-reports:

clean-macosx:

clean:

init:

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\classes

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\doc\api

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\sc-bundles

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\macosx

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\linux

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\windows

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\freebsd

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\solaris

    [mkdir] Created dir:
C:\Users\Chad\jitsi.org\jitsi\sc-bundles\os-specific\android

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\test-reports

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\test-reports\html

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\release

    [mkdir] Created dir: C:\Users\Chad\jitsi.org\jitsi\log

-pre-version:

version:

BUILD FAILED

C:\Users\Chad\jitsi.org\jitsi\build.xml:486: 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 "C:\Program Files\Java\jre6"

Total time: 1 second

<<<<Alright, my last ditch efforts proved successful it looks like...

Pointing things at jdk1.6.0_45 resulted in this...

     [echo] ver=2.5.0.build.by.SVN

BUILD SUCCESSFUL

Total time: 1 minute 37 seconds

Hopefully the above info can go towards making a slight improvement on the
tutorial...I would be happy to adjust and commit in github if it helps.

Two final notes, as I have now built and executed Jitsi all from source
(ya!) it might be useful to mention that after you have make-and-deployed
and such...that to get the gui to appear you need to choose the ant button
in Eclipse and that is where you choose your custom config'd
Debug_SIPCommunicator.

Anyways, the tutorial did serve it's purpose to get me through the setup.
Thank you Brian B. and other authors for the time spent on these...it is
really valuable for attracting new developers to help grow the product. Now
to look at the GUI tutorial...be afraid, be very afraid :wink:

Thanks again,

Chad