#Issues installing JavaFX

161 messages · Page 1 of 1 (latest)

noble lodge
#

I am having issues installing JavaFX in vs studio code. I am getting this error and believe it may be due to an extra space at the end of the maven file name, how do i correct this so it will run?

  • Executing task: "/Users/brentsanford/Desktop/apache-maven-3.9.4 " org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"

zsh:1: no such file or directory: /Users/brentsanford/Desktop/apache-maven-3.9.4

  • The terminal process "/bin/zsh '--login', '-c', '"/Users/brentsanford/Desktop/apache-maven-3.9.4 " org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"'" failed to launch (exit code: 127).
  • Terminal will be reused by tasks, press any key to close it.
oblique canyonBOT
#

This post has been reserved for your question.

Hey @noble lodge! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

hidden roost
#

Do you have some Maven configuration in VSC?

#

If so, can you show it?

noble lodge
#

@hidden roost How do I access that

hidden roost
#

I don't use VSC (at least not with the Java extension from RedHat) but there might be Java settings

#

How did you install Maven?

#

Did you configure a MAVEN_HOME?

#

or did you add it to the PATH

noble lodge
#

I just downloaded the binary file from online

hidden roost
#

was it a zip file?

noble lodge
#

i dont recall

hidden roost
#

How did you tell VSC where you extracted Maven?

noble lodge
#

i know i should remember but i forgot, i was using chatgpt to try to help

hidden roost
#

maybe check VSC settings and look for a maven installation directory setting

noble lodge
#

would this be easier in intellij?

hidden roost
#

also check your environments for a MAVEN_HOME

#

I think IntelliJ doesn't need an external Maven installation

noble lodge
#

can you use python in intellij?

#

im trying to make a project with both together

#

i just read that you can, are you able to instruct me on what i should do in intellij?

hidden roost
#

actually it should be possible in the free version

noble lodge
#

thats the only reason i was going to use vs code

hidden roost
#

I think you can install the Python plugin in IntelliJ Community

#

but I don't know

noble lodge
#

which IDE do you use?

hidden roost
#

I personally use Eclipse (for Java)

#

but that's personal preference

noble lodge
#

ok i can download that one and we can explore to see if i can get JavaFX to work on that

#

ok i downloaded eclipse

hidden roost
#

I wouldn't use Eclipse for Python though

noble lodge
#

ohh ok

hidden roost
#

It is possible but I wouldn't use it

noble lodge
#

im not sure which one i should use then

hidden roost
#

Both IntelliJ and VSC should work

noble lodge
#

ok i preer VSC

#

prefer

#

i just dont know how to get JavaFX to work on it

hidden roost
#

what's available in the settings?

#

maybe under extensions?

noble lodge
#

which settings?

#

code-settings-settings?

hidden roost
#

probably that

noble lodge
hidden roost
#

Does that have a space at the end?

noble lodge
#

yes

hidden roost
#

remove that

noble lodge
#

ok i dont see a way to save

#

maybe it does auto?

hidden roost
#

maybe..?

#

I guess so

noble lodge
#

i think so

#

now what should i try

hidden roost
#

try the project generation again

noble lodge
#

just did

#
  • Executing task: "/Users/brentsanford/Desktop/apache-maven-3.9.4" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"

zsh:1: no such file or directory: /Users/brentsanford/Desktop/apache-maven-3.9.4

  • The terminal process "/bin/zsh '-l', '-c', '"/Users/brentsanford/Desktop/apache-maven-3.9.4" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"'" failed to launch (exit code: 127).
  • Terminal will be reused by tasks, press any key to close it.
hidden roost
#

so removing the space was successful

noble lodge
#

correct

hidden roost
#

Can you try entering ls "/Users/brentsanford/Desktop/apache-maven-3.9.4" in your terminal?

#

Is brentsanford your user?

noble lodge
#

yes

#

ls: /Users/brentsanford/Desktop/apache-maven-3.9.4: No such file or directory

hidden roost
#

Can you open a terminal inside the Maven directory

#

and enter pwd in that terminal?

noble lodge
#

im still new to using terminal

#

how do i do that again

hidden roost
#

I don't know MacOS much but maybe you can open the directory in finder and right-click and select Open in terminal or similar

noble lodge
#

the folder isnt showing up when i ls

hidden roost
#

hm?

#

I guess you need to find out where it actually is

#

maybe your Desktop is somewhere else?

noble lodge
#

ok i put it in a different folder on my desktop

#

called maven

hidden roost
#

try to get a terminal in the folder or use ls on it

noble lodge
#

i am in the folder

hidden roost
#

what's the output ofn pwd?

noble lodge
#

/Users/brentsanford/desktop/maven

#

i just changed it in settings

hidden roost
#

now does it work?

noble lodge
#
  • Executing task: "/Users/brentsanford/desktop/maven" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"

zsh:1: permission denied: /Users/brentsanford/desktop/maven

  • The terminal process "/bin/zsh '-l', '-c', '"/Users/brentsanford/desktop/maven" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="javafx-archetype-fxml" -DarchetypeGroupId="org.openjfx" -DarchetypeVersion="RELEASE" -DgroupId="test" -DartifactId="testing"'" failed to launch (exit code: 126).
  • Terminal will be reused by tasks, press any key to close it.
hidden roost
#

seems like you don't have the permissions to execute it

#

Are you running Maven with the same user?

noble lodge
#

how do i know that

#

i only have 1 account on my computer

hidden roost
#

What's the output of ls -la /Users/brentsanford/desktop/maven?

noble lodge
hidden roost
#

and I guess whoami shows your username?

noble lodge
#

whoami
brentsanford

hidden roost
#

How do you execute VSC?

#

you don't need to enter your password/run it as an administrator, right?

noble lodge
#

correct

hidden roost
#

Can you try running whoami inside VSC?

#

like I think VSC has an integrated terminal

noble lodge
#

whoami
brentsanford

hidden roost
#

ok you can maybe try changing the permissions of the maven directory to allow all users to access it

#

I think something like chmod -R +rw /Users/brentsanford/desktop/maven should work

noble lodge
#

i typed that in and the terminal didnt do anything

hidden roost
#

so it still doesn't work?

#

ohhhhhhhhhhh

#

lol

#

it isn't a permission issue

#

but the path is still wrong

#

it shouldn't be /Users/brentsanford/desktop/maven but /Users/brentsanford/desktop/maven/bin/mvn

noble lodge
#

ok i think it did something

#

but theres still an error message at bottom right

hidden roost
#

there is an mvn file in the bin directory of the maven directory, right?

noble lodge
#

mvn --version
zsh: command not found: mvn

hidden roost
#

it would be /Users/brentsanford/desktop/maven/bin/mvn --version

noble lodge
#

/Users/brentsanford/desktop/maven/bin/mvn --version
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.

hidden roost
#

you might need to set the JAVA_HOME environment variable to your JDK

noble lodge
#

how do i do that

hidden roost
#

you can set it in the terminal but it would be gone as soon as you close the terminal

noble lodge
#

my zshrc reads: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/brentsanford/Downloads/apache-maven-3.9.4/bin:/opt/homebrew/opt/git/bin:/Users/brentsanford/desktop/maven:$PATH"
PROMPT="% "

hidden roost
#

that looks like it should work

noble lodge
#

well i got that error message

#

also i tried in terminal

#

ls: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home: No such file or directory

#

the correct path is: /Users/brentsanford/Desktop/jdk-21.0.1

hidden roost
#

then it would probably need to be export JAVA_HOME=/Users/brentsanford/Desktop/jdk-21.0.1

noble lodge
#

ok i changed it

#

now i should try to exit vs code and attempt javafx again?

hidden roost
#

yeah

noble lodge
#

i finally may have actually did it

#

how would i know

#

darn i still see the error

hidden roost
#

Did it create the pom.xml and the other files?

noble lodge
#

yes it created the files

#

im so close!!!

hidden roost
hidden roost
#

What did you enter?

noble lodge
#

i dont think its working

#

i tried intellij and this is what i got

hidden roost
#

does look working

noble lodge
#

what?

hidden roost
#

you should be able to run the main

noble lodge
#

which main

hidden roost
#

the green button there

noble lodge
#

this is what i see now

hidden roost
#

seems like JavaFX is working

noble lodge
#

praise the lord

#

what does timeout while waiting for app reactivation mean?

#

Nov 21, 2023 2:32:39 PM com.sun.glass.ui.mac.MacApplication lambda$waitForReactivation$6
WARNING: Timeout while waiting for app reactivation

hidden roost
#

I don't know

#

maybe the application was inactive for a long time?

oblique canyonBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

hidden roost
#

try updating JavaFX/MacOS