#Help me run this java project!
1 messages ยท Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
To run a Java project from GitHub, you need to follow these steps:
-
Install Java Development Kit (JDK) on your computer if you haven't already. You can download it from the official Oracle website: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
-
Install Git on your computer if you haven't already. You can download it from the official Git website: https://git-scm.com/downloads
-
Open a terminal or command prompt on your computer.
-
Clone the project repository by running the following command:
git clone https://github.com/aradzie/phoneticmodel.git
- Change to the project directory:
cd phoneticmodel
- Compile the Java source files using the following command:
javac -d bin src/*.java
- Run the project using the following command:
java -cp bin Main
This should run the Java project and execute the Main class.
Note: Make sure you have all the required dependencies and libraries installed for this project to run successfully. Check if there is a pom.xml file in the project directory, which indicates that it is a Maven-based project and you may need to use Maven commands instead of manually compiling and running.
If you encounter any errors or issues during this process, please provide more specific details so that I can assist you further.
show how you run it
in cmd right?
or bash probably
are you located in the folder that contain bin?
like show a screenshot of the git bash window
maybe try this instead:
java -jar /bin/genmodel.jar --alphabet='abcdefghijklmnopqrstuvwxyz' --order=2 --json < english.txt
use cmd instead
git bash doing weird stuff
and be sure that you cd into the correct directory
why doesnt it work
yes I'm in correct directory
not with git bash
can you pls show the full cmd
I cant see if you are in the correct directory
git bash was looking in the wrong directory C:/Program Files/Git/usr/bin/genmodel.jar
there should be a jar in that folder no?
and inside that should be the jar
java -jar genmodel.jar --alphabet="abcdefghijklmnopqrstuvwxyz" --order=2 --json
works fine for me
you dont need it
and change the command for that
because I dont have it
I just extracted the .jar
used cd to get to the correct folder containing my jar
then used my command
yeah try that
seems like its running
now I have no idea how the program works
so it might take some time idk
what is it supposed to do?
ah ok
you got a english.txt file?
It takes a text file as input and produces either a JSON or a compressed binary file as output.
create the file where the jar is located
and put that into it
then do it like this:
java -jar genmodel.jar --alphabet="abcdefghijklmnopqrstuvwxyz" --order=2 --json english.txt
nice
you actually dont need the whole github project, you only need the .jar file
normally projects have them here to download
but for this project you can go here:
https://github.com/aradzie/phoneticmodel/blob/master/bin/genmodel.jar
and press this one
close this thread with /help-thread close if your question got resolved 
yeah, you can always come back
maybe even create a bookmark to easily find it later
/bookmarks add or smth
Closed the thread.
Your question has been closed due to inactivity.
If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.
Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.
When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.
Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.
With enough info, someone knows the answer for sure ๐