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

Error: Could not find or load main class org.jabref.org.jabref.JabRefLauncher #5314

Closed
novak82 opened this issue Sep 14, 2019 · 6 comments
Closed

Comments

@novak82
Copy link

novak82 commented Sep 14, 2019

For some time I use bat file to start JabRef but master release from yesterday and today give me the error:

D:>c:\jdk-11.0.4\bin\java.exe -jar JabRef--master--latest.jar
Error: Could not find or load main class org.jabref.org.jabref.JabRefLauncher
Caused by: java.lang.ClassNotFoundException: org.jabref.org.jabref.JabRefLauncher

It worked few days ago, but there is something wrong now.

@Siedlerchr
Copy link
Member

Siedlerchr commented Sep 14, 2019

Yes, this is known. The jar file can no longer be directly started. This is due to the module system with java 11.
For Windows just use the installer. You should also be able to install that in a separate dir if you want to keep an older JabRef version side by side.

See the discussion also for Linux in #5299

@novak82
Copy link
Author

novak82 commented Sep 15, 2019

It worked with Java 11 few days ago...

@tobiasdiez
Copy link
Member

Support for a portable version (similar to the jar) is coming with #5312. Shouldn't take that long until this PR is finished.

@NRJank
Copy link

NRJank commented Sep 21, 2020

with issue closed should start from .bat work again? due to apparent security/permissions issues with user folder in 5.1 I had been using shortcut to .bat file as per "Fail to launch JVM" problem solution as only way to start the program. just checked 5.2 dev build and getting both Fail to launch JVM error and error above.

@Siedlerchr
Copy link
Member

@NRJank You probably need to modify the bat file again and add the arguments again. Please note that the Launcher class changed (the argument after the "-m"
pushd %DIR% & %JAVA_EXEC% -p "%~dp0/../app" -m org.jabref/org.jabref.gui.JabRefLauncher

@NRJank
Copy link

NRJank commented Sep 22, 2020

Ok, thanks. Just confirming that with that change I can load 5.2 with the bat file.

koppor pushed a commit that referenced this issue Mar 29, 2021
e1acabe Upload Styles (#5351)
d9cbf08 Update and rename journal-of-eta-maritime-science.csl to dependent/journal-of-eta-maritime-science.csl (#5353)
988ecca Update clinical-and-translational-immunology.csl (#5348)
1691078 Update molecular-plant-pathology.csl (#5349)
932a5bf Create neurospine.csl (#5334)
d663ffc Update sylwan.csl (#5341)
b7be05d Update pakistan-journal-of-agricultural-sciences.csl (#5343)
d742832 Please rename to Tijdschrift-voor-geneeskunde-en-gezondheidszorg (#5344)
6c6be4d Update et-al settings for journal-of-the-american-society-of-nephrology.csl (#5333)
0263204 Correct citation format of numeric AOSIS styles (#5335)
e4cd348 Create the-horticulture-journal.csl (#5327)
5804a6f Add AOSIS dependents (#5332)
2b4510b Create natura-croatia.csl (#5328)
03c6789 Create groundwater.csl (#5329)
e08fa09 Create hystrix-the-italian-journal-of-mammalogy.csl (#5330)
1d730aa update page-range-format for Anglia (#5331)
9bb8724 Sort American Physiological Society citation style according to updated author instructions (#5305)
a8b53ca Create african-online-scientific-information-systems-vancouver.csl (#5326)
c7d8f90 Update yozgat-bozok-universitesi-fen-bilimleri-enstitusu.csl (#5319)
87dc0eb Update and rename tijdschrift-voor-geneeskunde.csl to tijdschrift-voo… (#5325)
89e07b0 Create university-of-gothenburg-apa7-swedish-legislations (#5316)
4582cb6 Create chinese-law-journals.csl (#5314)
6412083 Create stellenbosch-law-review.csl (#5322)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: e1acabe
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

4 participants