Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Problem with Tycho compiling with java8
Problem with Tycho compiling with java8 [message #1357434] Thu, 15 May 2014 14:17 Go to next message
Jeyhun MAMEDOV is currently offline Jeyhun MAMEDOVFriend
Messages: 21
Registered: March 2014
Junior Member
Hi

I have problem with compiling my code through Tycho 0.20.0 / JDK8. I use
new Java 8 language features. Everything works fine under Eclipse (4.4 M7).

Thanks
Re: Problem with Tycho compiling with java8 [message #1357652 is a reply to message #1357434] Thu, 15 May 2014 16:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

tycho 0.20.0 uses a jdt-core version which does not support java8 yet -
you could give 0.21.0-SNAPSHOT a try and or force tycho to use a
different newer jdt-version.

The process for that is like this:
a) install org.eclipse.jdt.core and org.eclipse.jdt.compiler.apt from
the I-Build repos into your local m2-repo

b) update your root-pom to force useage of the local compiler

Tom

Shellcommands on efxclipse hudson instance:
-------------------------------------------
wget
http://download.eclipse.org/eclipse/updates/4.4-I-builds/I20140512-2000/plugins/org.eclipse.jdt.core_3.10.0.v20140512-1116.jar

/shared/common/apache-maven-3.0.5/bin/mvn install:install-file
-Dpackaging=jar -DgroupId=org.eclipse.tycho
-DartifactId=org.eclipse.jdt.core -Dversion=3.10.0.v20140512-1116
-Dfile=org.eclipse.jdt.core_3.10.0.v20140512-1116.jar

wget
http://download.eclipse.org/eclipse/updates/4.4-I-builds/I20140512-2000/plugins/org.eclipse.jdt.compiler.apt_1.1.0.v20140509-1235.jar

/shared/common/apache-maven-3.0.5/bin/mvn install:install-file
-Dpackaging=jar -DgroupId=org.eclipse.tycho
-DartifactId=org.eclipse.jdt.compiler.apt -Dversion=1.1.0.v20140509-1235
-Dfile=org.eclipse.jdt.compiler.apt_1.1.0.v20140509-1235.jar


root-pom excerpt of efxclipse build:
------------------------------------
> <!-- defines the default settings for the used plugins -->
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-compiler-plugin</artifactId>
> <version>${tycho-version}</version>
> <dependencies>
> <dependency>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>org.eclipse.jdt.core</artifactId>
> <version>3.10.0.v20140512-1116</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
> <version>1.1.0.v20140509-1235</version>
> </dependency>
> </dependencies>
> <configuration>
> <encoding>UTF-8</encoding>
> <extraClasspathElements>
> <extraClasspathElement>
> <groupId>com.oracle</groupId>
> <artifactId>javafx</artifactId>
> <version>8.0.0-SNAPSHOT</version>
> <systemPath>${java.home}/lib/jfxswt.jar</systemPath>
> <scope>system</scope>
> </extraClasspathElement>
> </extraClasspathElements>
> </configuration>
> </plugin>


Tom

On 15.05.14 16:17, Jeyhun MAMEDOV wrote:
> Hi
>
> I have problem with compiling my code through Tycho 0.20.0 / JDK8. I use
> new Java 8 language features. Everything works fine under Eclipse (4.4 M7).
>
> Thanks
Re: Problem with Tycho compiling with java8 [message #1357693 is a reply to message #1357652] Thu, 15 May 2014 16:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Wrote it up in a blog post as well - see
http://tomsondev.bestsolution.at/2014/05/15/maven-tycho-0-20-0-and-java8-source-code/

Tom

On 15.05.14 18:21, Tom Schindl wrote:
> Hi,
>
> tycho 0.20.0 uses a jdt-core version which does not support java8 yet -
> you could give 0.21.0-SNAPSHOT a try and or force tycho to use a
> different newer jdt-version.
>
> The process for that is like this:
> a) install org.eclipse.jdt.core and org.eclipse.jdt.compiler.apt from
> the I-Build repos into your local m2-repo
>
> b) update your root-pom to force useage of the local compiler
>
> Tom
>
> Shellcommands on efxclipse hudson instance:
> -------------------------------------------
> wget
> http://download.eclipse.org/eclipse/updates/4.4-I-builds/I20140512-2000/plugins/org.eclipse.jdt.core_3.10.0.v20140512-1116.jar
>
> /shared/common/apache-maven-3.0.5/bin/mvn install:install-file
> -Dpackaging=jar -DgroupId=org.eclipse.tycho
> -DartifactId=org.eclipse.jdt.core -Dversion=3.10.0.v20140512-1116
> -Dfile=org.eclipse.jdt.core_3.10.0.v20140512-1116.jar
>
> wget
> http://download.eclipse.org/eclipse/updates/4.4-I-builds/I20140512-2000/plugins/org.eclipse.jdt.compiler.apt_1.1.0.v20140509-1235.jar
>
> /shared/common/apache-maven-3.0.5/bin/mvn install:install-file
> -Dpackaging=jar -DgroupId=org.eclipse.tycho
> -DartifactId=org.eclipse.jdt.compiler.apt -Dversion=1.1.0.v20140509-1235
> -Dfile=org.eclipse.jdt.compiler.apt_1.1.0.v20140509-1235.jar
>
>
> root-pom excerpt of efxclipse build:
> ------------------------------------
>> <!-- defines the default settings for the used plugins -->
>> <pluginManagement>
>> <plugins>
>> <plugin>
>> <groupId>org.eclipse.tycho</groupId>
>> <artifactId>tycho-compiler-plugin</artifactId>
>> <version>${tycho-version}</version>
>> <dependencies>
>> <dependency>
>> <groupId>org.eclipse.tycho</groupId>
>> <artifactId>org.eclipse.jdt.core</artifactId>
>> <version>3.10.0.v20140512-1116</version>
>> </dependency>
>> <dependency>
>> <groupId>org.eclipse.tycho</groupId>
>> <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
>> <version>1.1.0.v20140509-1235</version>
>> </dependency>
>> </dependencies>
>> <configuration>
>> <encoding>UTF-8</encoding>
>> <extraClasspathElements>
>> <extraClasspathElement>
>> <groupId>com.oracle</groupId>
>> <artifactId>javafx</artifactId>
>> <version>8.0.0-SNAPSHOT</version>
>> <systemPath>${java.home}/lib/jfxswt.jar</systemPath>
>> <scope>system</scope>
>> </extraClasspathElement>
>> </extraClasspathElements>
>> </configuration>
>> </plugin>
>
>
> Tom
>
> On 15.05.14 16:17, Jeyhun MAMEDOV wrote:
>> Hi
>>
>> I have problem with compiling my code through Tycho 0.20.0 / JDK8. I use
>> new Java 8 language features. Everything works fine under Eclipse (4.4 M7).
>>
>> Thanks
>
Re: Problem with Tycho compiling with java8 [message #1359676 is a reply to message #1357693] Fri, 16 May 2014 12:51 Go to previous message
Jeyhun MAMEDOV is currently offline Jeyhun MAMEDOVFriend
Messages: 21
Registered: March 2014
Junior Member
I will try,

thank you very much :)
Previous Topic:Override captions on Dialogs
Next Topic:Swing in JavaFX in SWT
Goto Forum:
  


Current Time: Fri Apr 26 22:10:39 GMT 2024

Powered by FUDForum. Page generated in 0.03246 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top