LaurensWeyn / Spark-Reader

A tool to assist non-naitive speakers in reading Japanese
GNU General Public License v3.0
31 stars 7 forks source link

Build instructions? #2

Closed wareya closed 7 years ago

wareya commented 7 years ago

Trying to build it (using intellij idea and jdk 8) to see what I can do with it, and it looks as though there isn't a project level build configuration. Alright, what if I try to build the .jar artifact manually?

Error:Failed to load project configuration: cannot read file C:\Users\wareya\dev\spark\.idea\modules.xml: C:\Users\wareya\dev\spark\.idea\modules.xml (The system cannot find the file specified)

Said file is listed in the .gitignore

Generating an ant build causes it to not find jna when I go to compile, even though it's in the right place for the project settings screen to find it

I'm not really a java dev, so I don't know what's missing or what I'm doing wrong; my impression was that things like maven are normally used to handle dependencies, but I don't know anything about that. FWIW, I come from c/++ where the normal way of doing things is so awful that I learned to put my dependencies right in my repository and compile them on the fly as needed.

LaurensWeyn commented 7 years ago

Just a little earlier I wondered if it would even compile for others when I noticed half the .idea files were in gitignore. I'll just upload them all in the next commit, sorry about that.

As for dependencies, this project doesn't use Maven as I couldn't find eb4j on the maven repo. In hindsight, if I took the source code and ran 'mvn install' on it locally it would've worked (I'm still learning Maven myself, didn't think to try that when I set this up at the time), but right now it's just building with whatever configuration intellij has, no fancy build tools.

You should just be able to add libraries to the project in intellij. From there you can link the jars and optionally javadoc and sources for eb4j and jna as libraries.

2017/02/20 21:04 "Alexander Nadeau" notifications@github.com:

Trying to build it (using intellij idea and jdk 8) to see what I can do with it, and it looks as though there isn't a project level build configuration. Alright, what if I try to build the .jar artifact manually?

Error:Failed to load project configuration: cannot read file C:\Users\wareya\dev\spark.idea\modules.xml: C:\Users\wareya\dev\spark.idea\modules.xml (The system cannot find the file specified)

Said file is listed in the .gitignore

Generating an ant build causes it to not find jna when I go to compile, even though it's in the right place for the project settings screen to find it

I'm not really a java dev, so I don't know what's missing or what I'm doing wrong; my impression was that things like maven are normally used to handle dependencies, but I don't know anything about that. FWIW, I come from c/++ where the normal way of doing things is so awful that I learned to put my dependencies right in my repository and compile them on the fly as needed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thatdude624/Spark-Reader/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/APbSjUpt3xjRryQcRbhzxOKOemnXYs3aks5reeO_gaJpZM4MGhlx .

wareya commented 7 years ago

It took a while, but I got it to work. Thanks for the heads up that the missing project files were the problem.

LaurensWeyn commented 7 years ago

Cool that you got it working. Just a heads up: I'm currently busy with a bit of reorganising, and while the majority of it is done, the one thing I still want to change is move stuff out of the UI class and into a Main class, and have things that are static or within instances of UI be a bit more logical. Apologies in advance if that breaks any code you're working on.

If you have any questions on how the code works I'll gladly help further, or if you come up with some useful extra features I can add them to the main branch. Happy coding!