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

Jar classpath issue on windows #114

Open
ghost opened this issue Jun 29, 2017 · 1 comment
Open

Jar classpath issue on windows #114

ghost opened this issue Jun 29, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 29, 2017

When I jarify the sample project and run it I get:
C:\projects\fxmltableview>jrubyfx-jarify.bat src --main src/FXMLTableView.rb dist/FXMLTableView.jar
C:\projects\fxmltableview>java -jar dist\FXMLTableView.jar
file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jrubyfx/utils/common_converters.rb:28 warning: already initialized constant ARG_CONVERTER_SUFFIX
file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jrubyfx/utils/common_converters.rb:31 warning: already initialized constant NAME_TO_COLORS
file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jrubyfx/utils/common_converters.rb:137 warning: already initialized constant CONVERTERS
file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jrubyfx/utils/common_converters.rb:172 warning: already initialized constant ENUM_CACHE
file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jrubyfx/utils/common_converters.rb:175 warning: already initialized constant ENUM_OVERRIDES
LoadError: no such file to load -- classpath:C:/FXMLTableViewController
require at org/jruby/RubyKernel.java:1040
require at /C:/projects/fxmltableview/dist/FXMLTableView.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/co
re_ext/kernel_require.rb:54
require_relative at file:/C:/projects/fxmltableview/dist/FXMLTableView.jar!/jruby/kernel19/kernel.rb:13
(root) at classpath:/jar-bootstrap.rb:3

It looks like that classpath is getting mangled but I'm not sure what it's supposed to be.
Can anyone offer insight?
TIA

@brucetesar
Copy link

@monkeysuffrage , I just posted three issues that I encountered while trying to jarify the Demo. The workarounds I mention combined to allow me to successfully make and execute a jar for the Demo. One of the issues involves a LoadError very similar to the one you mention; they are quite possibly related. It would be helpful to know if the workarounds work for you as well.

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