lambda expressions are not supported at this language level IDEA
I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example
@FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}
and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?
UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here
intellij-idea lambda javafx ide
add a comment |
I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example
@FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}
and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?
UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here
intellij-idea lambda javafx ide
1
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41
add a comment |
I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example
@FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}
and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?
UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here
intellij-idea lambda javafx ide
I'm trying to create my first fxml java project and at the initialising stage I'm trying to set cell value factory for the table columnt, for example
@FXML
private void initialize() {
agentId.setCellValueFactory(cellData -> cellData.getValue().getIdProperty());
.....}
and this is underlined red and gives an error that mentioned in title. Changing language level in project structure gives no effect. What else may be the reason of error?
UPD: I've found that it is nesessary to install java with lambdas that is not included to the official release. I did it and nevertheless it didn't help. I've downloaded it here
intellij-idea lambda javafx ide
intellij-idea lambda javafx ide
edited Apr 30 '15 at 13:23
Nikitin Mikhail
asked Apr 28 '15 at 13:51
Nikitin MikhailNikitin Mikhail
1,45992754
1,45992754
1
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41
add a comment |
1
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41
1
1
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41
add a comment |
5 Answers
5
active
oldest
votes
I had to do a few things to get rid of this problem.
- File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
- File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
- File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
That should do the trick.
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
add a comment |
the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
add a comment |
If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:
- Go to project structure
- Under modules section,click on app.
- In the properties tab, change the Source Compatibility to 1.8.
add a comment |
- Click on File, left top corner in Android Studio.
- Click on Project structure.
- Click on App.
- Choose Properties and set Source Compatibility to 1.8.
add a comment |
If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
File > Project Structure > Modules (parent of module) > Sources > Language level
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29921498%2flambda-expressions-are-not-supported-at-this-language-level-idea%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had to do a few things to get rid of this problem.
- File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
- File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
- File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
That should do the trick.
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
add a comment |
I had to do a few things to get rid of this problem.
- File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
- File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
- File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
That should do the trick.
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
add a comment |
I had to do a few things to get rid of this problem.
- File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
- File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
- File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
That should do the trick.
I had to do a few things to get rid of this problem.
- File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX
- File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8)
- File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8)
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8
- File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
That should do the trick.
answered Dec 9 '15 at 17:40
Fernando RaposoFernando Raposo
30127
30127
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
add a comment |
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
1
1
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
Awesome, thanks! Worked like a charm on Intellij!
– Valter Silva
Mar 13 '17 at 8:43
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
There is no java compiler option in Compiler tab.. please help
– Kitwradr
Oct 7 '18 at 20:06
add a comment |
the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
add a comment |
the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
add a comment |
the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.
the answer is the following: I had to change the language level not only in project structure->project but in project structure-> modules too.
answered May 7 '15 at 13:41
Nikitin MikhailNikitin Mikhail
1,45992754
1,45992754
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
add a comment |
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
1
1
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
This fixed my problem too. But it's not just lamdas - it's all higher-level language changes. I set my modules to use project default, which defers to the top-level.
– end-user
Dec 3 '15 at 13:08
add a comment |
If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:
- Go to project structure
- Under modules section,click on app.
- In the properties tab, change the Source Compatibility to 1.8.
add a comment |
If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:
- Go to project structure
- Under modules section,click on app.
- In the properties tab, change the Source Compatibility to 1.8.
add a comment |
If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:
- Go to project structure
- Under modules section,click on app.
- In the properties tab, change the Source Compatibility to 1.8.
If you are use Android Studio version 3.2.1 ,you can change the language level using below mention steps:
- Go to project structure
- Under modules section,click on app.
- In the properties tab, change the Source Compatibility to 1.8.
answered Oct 20 '18 at 1:56
Sanath KumarSanath Kumar
312
312
add a comment |
add a comment |
- Click on File, left top corner in Android Studio.
- Click on Project structure.
- Click on App.
- Choose Properties and set Source Compatibility to 1.8.
add a comment |
- Click on File, left top corner in Android Studio.
- Click on Project structure.
- Click on App.
- Choose Properties and set Source Compatibility to 1.8.
add a comment |
- Click on File, left top corner in Android Studio.
- Click on Project structure.
- Click on App.
- Choose Properties and set Source Compatibility to 1.8.
- Click on File, left top corner in Android Studio.
- Click on Project structure.
- Click on App.
- Choose Properties and set Source Compatibility to 1.8.
edited Dec 29 '18 at 15:58
סטנלי גרונן
1,63472044
1,63472044
answered Dec 29 '18 at 10:15
AshuAshu
226
226
add a comment |
add a comment |
If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
File > Project Structure > Modules (parent of module) > Sources > Language level
add a comment |
If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
File > Project Structure > Modules (parent of module) > Sources > Language level
add a comment |
If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
File > Project Structure > Modules (parent of module) > Sources > Language level
If you've been through the above and it's still not fixed it, and if you are setting up a new module, check your module source folder hasn't been added to the parent module. I found it was being compiled at 1.5 as this was the parent module setting (since the parent contained no java source). Updating that to 1.8 too finally got rid of the warning and removing the module's source folder from the parent module.
File > Project Structure > Modules (parent of module) > Sources > Language level
answered Jul 14 '17 at 15:15
nick.t.hackernick.t.hacker
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f29921498%2flambda-expressions-are-not-supported-at-this-language-level-idea%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I assume you are setting the language level to 1.8?
– James_D
Apr 28 '15 at 15:20
@James_D it is not written that it is 1.8, but 8
– Nikitin Mikhail
Apr 29 '15 at 6:30
Have you tried using Android N sdk with Jack compiler?
– IgorGanapolsky
Mar 14 '16 at 20:41