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

java.class.path property empty with embedded jar #90

Open
bdw429s opened this issue Jan 29, 2019 · 0 comments
Open

java.class.path property empty with embedded jar #90

bdw429s opened this issue Jan 29, 2019 · 0 comments

Comments

@bdw429s
Copy link

bdw429s commented Jan 29, 2019

When embedding the jar into the exe with RCEdit.exe, Java behaves differently. Firstly, this

System.getProperty( "java.class.path" )

returns an empty string. Additionally,

Thread.currentThread().getContextClassLoader().getResourceAsStream("foo.gif")

returns null. Also code like this:

LoaderCLIMain.class.getProtectionDomain().getCodeSource().getLocation().getPath() ).getParentFile()

also returns null.

I assume these are all related, but it is really screwing up my console app which needs to detect what directory it's running out of.

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