intellij run button is greyed out any fix - java

I have been having issues when i'm trying to run a skew t plotting project i downloaded from github but when i opened the project in intellij i can't run anything and i have tried to edit the configuration but no luck and i keep getting this error when i open the fxml file that is in the project and the error shows the javafx runtime is not configured either use a JDK that has javafx built in or add a javafx library to the path and i tried javafx sdk version 18 but it kept giving me a not a valid home error

I believe JSF was removed from the JDK in version 11 and newer
You should add it as a JAR dependency to your project. Should be easy to do if you use Maven.

Related

Vaadin 8 to 14 migration: .cache.js file not found when running in eclipse

I am currently trying to migrate a Vaadin 8 gradle project to Vaadin 14. When I package the project for production, it works fine, and the Vaadin app runs. When I attempt to run the project in eclipse, I get the following error:
Loading failed for the <script> with source “http://localhost:31415/VAADIN/static/client/client-4C23589935A74206212F474A719FC41C.cache.js”.
I saw a lot of other posts with similar questions, but none had a sufficient resolution. Nothing I have tried so far from Vaadin forums or github has worked.
Edit: I think I figured out part of the problem. For some reason, jetty is looking for the VAADIN folder in the bin directory within my eclipse project. It should first be looking in the classpath. This works in the compiled production version, but not in the development version of my project

Unable to build JavaFX Application

I just install openJDK 8 (1.8.0_191) and realized that it does not include JavaFX, so I searched on some SO posts and found openJFX.
After installing it, everything worked well. I was able to create and run my JavaFX applications.
The problem is that when I try to build my JavaFX app, it throws some crazy Exceptions.
The build completes successfully if it is not a JavaFX app. Here is a screenshot of part of the stack trace.
I'm using Netbeans 8.2 as my IDE
In the files tab of your project you need to find the project.properties file. There you should search for java.fx.deploy.includeDT=TRUE, set this value to False.
See this: http://hongouru.blogspot.com/2015/09/solved-error-building-new-project-using.html

Cannot find JDK '<unknown>' for module 'appcompatV7'

I have this error popping up.
Error:java: Cannot find JDK '' for module 'appcompatV7'
I cant work out why its happening, im using compatibility library and added it in the project structure. Selected it as "Library module" and added as module dependency.
Its working fine on another project with exactly the same set up.
Found solution. I restarted Android Studio and messaged popped up saying, "Error loading project: cannot load 2 modules" within android.iml file, suggested i remove it, then recompiled and it worked. Thanks for the ideas guys!
JDK v7 won't work as the appcompat libraries are compiled against Java v6, so you'll need JDK v1.6.45.
You can download the JDK here.
Install the JDK and try again.

I have just installed android SDK updates and now my projects are full of errors

I recently just installed downloaded and installed some updates in the android sdk to get access to some features and now when I have restarted eclipse all the projects have errors!!
Theres a small error at the start of package and the only resolutions it suggests is reconfigure build path, here is a picture of the carnage. Does anyone know how I can resolve this?
If java.util is an offending import, you haven't got your JRE configured properly or either the build or the IDE are in a kind of corrupted state. Since you already used the Clean command I'm going for a more complex issue.
Check your project's configuration and make sure you're not still referencing your old Java implementation. If by installing updates you mean that you downloaded a new version, installed it and then deleted the one you've been using so far, then the IDE might not be finding the JRE system library your project has currently configured.
Try right clicking your project > Build Path > Configure build path, then check if your current JRE system library is unbound. If so, you'll have to configure it again on the Libraries tab by using Add Library > JRE System Library.

beginner at vaadin- getting error when I try to create a vaadin app

I am trying to create a UI for a java web app using Vaadin.
I am using Eclipse for this purpose, and I have installed the Google Plugin for Eclipse (which includes GWT SDK) as well as the Vaadin plugin for eclipse.
I created a new project using New Project-> New Vaadin Project... but I am seeing an error message in Eclipse console "GWT SDK not installed."
How do I resolve this error? I have already installed Google Plugin for Eclipse which includes GWT SDK.
Thanks...
Check in 'Preferences->Google->Web Toolkit' if you have existing SDK marked as default. Sometimes, after installing or unistalling other plug-ins, this may get reset to some older, not anymore existing, SDK version.
Also, make sure you have the default (or any other existing SDK) selected in project properties under 'your project->properties->Google->Web Toolkit->GWT SDK'.
Today I resolved this issue (which cropped up after a GWT SDK update on a perfectly working setup) by going to project Properties/Builders and moving the GWT "Google Web Toolkit Project Validator" up to just below Java Builder. I'd tried everything I could think of before that, including uninstalling and re-downloading the SDK, checking default and specific SDK's, trying older ones, editing .classpath entry manually.
Just in case poor some soul follows the path I went through. Using Eclipse Indigo.
help->check for updates
Update all libraries
then:
right-click the project, choose Project Properties->Java Build Path->Libraries
remove invalid GWT library, if any
choose Add Library, choose Google Web Toolkit
If an unknown version of the sdk is selected, click the Configure SDKs link and remove old versions or at least select the current, valid version.
Then, do a Project->clean just to be on the safe side, and your project should now build.
This worked for me using Eclipse Helios.

Categories

Resources