Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutlet Gui Error: Could not find or load main class com.sun.javafx.tools.packager.Main #2

Open
singhneha407 opened this issue Mar 5, 2019 · 0 comments

Comments

@singhneha407
Copy link

singhneha407 commented Mar 5, 2019

@mru00
I am trying to run the Cutlet Gui module by opening the project in Netbeans 8.1. The JDK used is 1.8, but i am receiving this error Could not find or load main class com.sun.javafx.tools.packager.Main. I understood that it is not able to find any required file for JavaFX. But how to fix this issue. This is my first time runing a maven project, so i am nt able to debug this. Here is the output which i got when i run this project.Please tell what is wrong here:

`cd H:\Projects\Examples\cutlet-master\CutletGui; "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45" cmd /c """C:\Program Files\NetBeans 8.1\java\maven\bin\mvn.bat" -Dmaven.ext.class.path="C:\Program Files\NetBeans 8.1\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 clean install""
Scanning for projects...

Some problems were encountered while building the effective model for com.cutlet:CutletGui:jar:1.0-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 21

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.


Building CutletGui 1.0-SNAPSHOT

--- maven-clean-plugin:2.4.1:clean (default-clean) @ CutletGui ---

--- maven-resources-plugin:2.5:resources (default-resources) @ CutletGui ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 6 resources

--- maven-compiler-plugin:2.3.2:compile (default-compile) @ CutletGui ---
Compiling 4 source files to H:\Projects\Examples\cutlet-master\CutletGui\target\classes

--- maven-resources-plugin:2.5:testResources (default-testResources) @ CutletGui ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory H:\Projects\Examples\cutlet-master\CutletGui\src\test\resources

--- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ CutletGui ---
No sources to compile

--- maven-surefire-plugin:2.16:test (default-test) @ CutletGui ---
No tests to run.

--- maven-jar-plugin:2.3.2:jar (default-jar) @ CutletGui ---
Building jar: H:\Projects\Examples\cutlet-master\CutletGui\target\CutletGui-1.0-SNAPSHOT.jar

--- maven-dependency-plugin:2.6:unpack-dependencies (unpack-dependencies) @ CutletGui ---
Unpacking C:\Users\KiaraSingh.m2\repository\com\cutlet\CutletLib\1.0-SNAPSHOT\CutletLib-1.0-SNAPSHOT.jar to H:\Projects\Examples\cutlet-master\CutletGui\target\classes with includes "" and excludes ""
Unpacking C:\Users\KiaraSingh.m2\repository\xyz\thepathfinder\simulatedannealing\0.0.3\simulatedannealing-0.0.3.jar to H:\Projects\Examples\cutlet-master\CutletGui\target\classes with includes "" and excludes ""
Unpacking C:\Users\KiaraSingh.m2\repository\com\google\guava\guava\19.0\guava-19.0.jar to H:\Projects\Examples\cutlet-master\CutletGui\target\classes with includes "" and excludes ""
Unpacking C:\Users\KiaraSingh.m2\repository\org\projectlombok\lombok\1.18.2\lombok-1.18.2.jar to H:\Projects\Examples\cutlet-master\CutletGui\target\classes with includes "" and excludes ""
Unpacking C:\Users\KiaraSingh.m2\repository\io\jenetics\jenetics\3.7.0\jenetics-3.7.0.jar to H:\Projects\Examples\cutlet-master\CutletGui\target\classes with includes "" and excludes ""

--- exec-maven-plugin:1.2.1:exec (unpack-dependencies) @ CutletGui ---
Error: Could not find or load main class com.sun.javafx.tools.packager.Main

BUILD FAILURE

Total time: 53.476s
Finished at: Wed Mar 06 00:23:41 IST 2019
Final Memory: 10M/111M

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (unpack-dependencies) on project CutletGui: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant